/**
 * Blitzsch Lab - Kontrol paneli teması
 * Tipografi: Plus Jakarta Sans + Manrope
 * Boxicons, #ffcb00 vurgu, şık kutular
 */
:root {
  --blitzsch-primary: #ffcb00;
  --blitzsch-primary-hover: #e5a900;
  --blitzsch-primary-light: rgba(255, 203, 0, 0.12);
  --blitzsch-bg: #ffffff;
  --blitzsch-bg-card: #ffffff;
  --blitzsch-bg-card-gradient: linear-gradient(160deg, #ffffff 0%, #fafbff 100%);
  --blitzsch-sidebar: #ffffff;
  --blitzsch-sidebar-border: rgba(15, 23, 42, 0.06);
  --blitzsch-text: #0f172a;
  --blitzsch-text-muted: #64748b;
  --blitzsch-border: #e2e8f0;
  --blitzsch-radius: 12px;
  --blitzsch-radius-lg: 16px;
  --blitzsch-radius-btn: 10px;
  --blitzsch-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  --blitzsch-shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
  --blitzsch-shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.08);
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;
  --sidebar-width: 260px;
  --header-height: 56px;
  --topbar-height: 72px;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--blitzsch-bg);
  color: var(--blitzsch-text);
  min-height: 100vh;
  min-width: 320px;
  max-width: 100vw;
}

/* Tipografi – zarif modern sistem */
body, .blitzsch-body, input, textarea, select, button {
  font-family: var(--font-sans);
}
h1, h2, h3, .font-display, .btn, .erp-btn-primary, .blitzsch-btn-primary {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Boxicons hizalama */
.bx {
  vertical-align: middle;
  font-size: 1.25em;
}
.bx.w-5 { width: 1.25rem; display: inline-block; text-align: center; }
.bx.text-lg { font-size: 1.125em; }
.bx.text-xl { font-size: 1.25em; }
.bx.bx-loader-alt.bx-spin { animation: bx-spin 0.8s linear infinite; }
@keyframes bx-spin { to { transform: rotate(360deg); } }

/* Body sınıfı (layout’ta kullanılır) */
.blitzsch-body {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #18181b;
  background: var(--blitzsch-bg);
  min-height: 100vh;
  min-width: 320px;
  max-width: 100vw;
}

/* ========== Utility: layout & display ========== */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1 1 0%; }
.hidden { display: none; }
.fixed { position: fixed; }
.relative { position: relative; }
.top-0 { top: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.inset-0 { inset: 0; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-0\.5 { gap: 0.125rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.h-full { height: 100%; }
.h-14 { height: 3.5rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-9 { width: 2.25rem; }
.h-9 { height: 2.25rem; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.min-h-screen { min-height: 100vh; }
.min-w-0 { min-width: 0; }
.w-full { width: 100%; }
.max-w-4xl { max-width: 56rem; }
.max-w-\[1600px\] { max-width: 1600px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.overflow-y-auto { overflow-y: auto; }
.rounded-xl { border-radius: var(--blitzsch-radius); }
.rounded { border-radius: 0.25rem; }
.shadow-sm { box-shadow: var(--blitzsch-shadow); }
.transition-colors { transition-property: color, background-color, border-color; transition-timing-function: ease; transition-duration: 0.15s; }
.transition-transform { transition-property: transform; transition-timing-function: ease; transition-duration: 0.15s; }

/* Padding */
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.pt-4 { padding-top: 1rem; }
.pt-14 { padding-top: 3.5rem; }
.pt-16 { padding-top: 4rem; }
.pb-6 { padding-bottom: 1.5rem; }

/* Margin */
.mb-0\.5 { margin-bottom: 0.125rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-auto { margin-top: auto; }

/* Tipografi ölçeği – Inter, tüm panelde tutarlı */
.text-xs { font-size: var(--font-size-xs); line-height: 1.25; }
.text-sm { font-size: var(--font-size-sm); line-height: var(--line-height-normal); }
.text-base { font-size: var(--font-size-base); line-height: var(--line-height-normal); }
.text-lg { font-size: var(--font-size-lg); line-height: var(--line-height-relaxed); }
.text-xl { font-size: var(--font-size-xl); line-height: var(--line-height-tight); }
.text-2xl { font-size: var(--font-size-2xl); line-height: var(--line-height-tight); }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.tracking-wider { letter-spacing: 0.05em; }
.uppercase { text-transform: uppercase; }
.text-center { text-align: center; }

/* Renkler */
.text-zinc-400 { color: #a1a1aa; }
.text-zinc-500 { color: #71717a; }
.text-zinc-600 { color: #52525b; }
.text-zinc-700 { color: #3f3f46; }
.text-zinc-800 { color: #27272a; }
.text-zinc-900 { color: #18181b; }
.bg-zinc-100 { background-color: #f4f4f5; }
.bg-\[\#ffcb00\] { background-color: #ffcb00; }
.border-zinc-100 { border-color: #f4f4f5; }
.border-zinc-200 { border-color: #e4e4e7; }

/* Genişlik (layout) */
.w-\[260px\] { width: 260px; }

/* Hamburger çizgileri */
.erp-hamburger-line {
  width: 1.5rem;
  height: 2px;
  background-color: #52525b;
  border-radius: 0.25rem;
  transition: transform 0.2s ease;
}
.erp-hamburger:hover { background-color: #f4f4f5; }

/* Main içerik alanı – responsive, net */
.erp-main {
  min-height: 100vh;
  padding-top: 3.5rem;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 1rem;
}
@media (min-width: 640px) {
  .erp-main { padding-top: 1.5rem; padding-bottom: 1.5rem; }
}
@media (min-width: 1024px) {
  .erp-main { padding-top: var(--topbar-height); padding-left: 0; padding-bottom: 2rem; }
}

/* Safe area (notch / home indicator) */
.pb-safe { padding-bottom: max(1rem, env(safe-area-inset-bottom, 0)); }
.box-border { box-sizing: border-box; }

/* Konum haritası container */
.location-map-page .map-container {
  min-height: 280px;
  height: calc(100vh - 12rem);
}
@media (min-width: 640px) {
  .location-map-page .map-container { height: calc(100vh - 14rem); min-height: 360px; }
}

/* Tablo: mobilde bazı hücreleri gizle */
@media (max-width: 639px) {
  .hidden.sm\:table-cell { display: none; }
}
@media (min-width: 640px) {
  .sm\:table-cell { display: table-cell; }
}
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whitespace-nowrap { white-space: nowrap; }

/* Responsive flex */
.flex-col { flex-direction: column; }
@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
  .sm\:items-center { align-items: center; }
  .sm\:justify-between { justify-content: space-between; }
  .sm\:rounded-2xl { border-radius: 1rem; }
  .sm\:p-4 { padding: 1rem; }
  .sm\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
  .sm\:text-base { font-size: 1rem; line-height: 1.5rem; }
}
@media (min-width: 1024px) {
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}

/* Touch-friendly (mobil) */
@media (max-width: 639px) {
  .btn, .erp-btn-primary, button[type="submit"],
  a.btn { min-height: 44px; min-width: 44px; }
  .location-map-page .btn { padding: 0.5rem 0.75rem; }
}

/* Responsive: mobilde göster, desktop’ta gizle */
@media (min-width: 1024px) {
  .lg\:hidden { display: none !important; }
}

/* Responsive: mobilde gizle, desktop’ta flex */
.lg\:flex { display: none; }
@media (min-width: 1024px) {
  .lg\:flex { display: flex !important; }
}

.lg\:pt-0 { padding-top: 0; }
.lg\:pl-\[260px\] { padding-left: 260px; }
@media (min-width: 1024px) {
  .erp-main.lg\:pt-0 { padding-top: 0; }
  .erp-main.lg\:pl-\[260px\] { padding-left: 260px; }
}

/* Sol sidebar: açılır/kapanır */
.erp-desktop-sidebar {
  width: 260px;
  background: var(--blitzsch-sidebar);
  border-right: 1px solid var(--blitzsch-sidebar-border);
  box-shadow: var(--blitzsch-shadow);
  flex-direction: column;
  transition: width 0.25s ease;
}
.erp-desktop-sidebar.is-collapsed { width: 72px; }
/* Sidebar logo - responsive, aspect ratio korunur */
.erp-sidebar-brand {
  width: clamp(2.5rem, 5vw, 3.75rem);
  height: clamp(2.5rem, 5vw, 3.75rem);
  min-width: 2.5rem;
  min-height: 2.5rem;
}
.erp-sidebar-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: none;
}
.erp-sidebar-logo-fallback {
  width: 100%;
  height: 100%;
  font-size: clamp(1.5rem, 5vw, 2rem);
}
/* Mobil header logo */
.erp-mobile-logo-wrap {
  width: clamp(2.5rem, 12vw, 3.25rem);
  height: clamp(2.5rem, 12vw, 3.25rem);
  min-width: 2.5rem;
  min-height: 2.5rem;
}
.erp-mobile-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: none;
}
.erp-mobile-logo-fallback {
  width: 100%;
  height: 100%;
  font-size: clamp(1.125rem, 4vw, 1.25rem);
}
.erp-desktop-sidebar.is-collapsed .erp-sidebar-brand-text,
.erp-desktop-sidebar.is-collapsed .erp-sidebar-link-text,
.erp-desktop-sidebar.is-collapsed .erp-sidebar-section-title,
.erp-desktop-sidebar.is-collapsed .erp-sidebar-user-name {
  opacity: 0; visibility: hidden; width: 0; overflow: hidden; white-space: nowrap; display: inline-block;
}
.erp-desktop-sidebar.is-collapsed .erp-sidebar-toggle-icon { transform: rotate(180deg); }
.erp-sidebar-inner {
  display: flex; flex-direction: column; height: 100%;
  width: 260px; min-width: 260px;
}
.erp-desktop-sidebar.is-collapsed .erp-sidebar-inner { width: 72px; min-width: 72px; }
.erp-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.75rem;
  border-bottom: 1px solid var(--blitzsch-sidebar-border);
  flex-shrink: 0;
}
.erp-desktop-sidebar.is-collapsed .erp-sidebar-header {
  flex-direction: column;
  gap: 0.5rem;
  justify-content: center;
  padding: 1rem 0.75rem;
}
.erp-desktop-sidebar.is-collapsed .blitzsch-nav-link { justify-content: center; padding-left: 1rem; padding-right: 1rem; }
.erp-sidebar-brand { text-decoration: none; min-width: 0; }
.erp-sidebar-brand-text,
.erp-sidebar-section-title,
.erp-sidebar-link-text,
.erp-sidebar-user-name { transition: opacity 0.2s, visibility 0.2s; }
.erp-sidebar-toggle {
  width: 2rem; height: 2rem; display: flex; align-items: center; justify-content: center;
  border: none; background: #f1f5f9; border-radius: var(--blitzsch-radius-btn);
  color: #64748b; cursor: pointer; flex-shrink: 0; transition: background 0.2s, color 0.2s;
}
.erp-sidebar-toggle:hover { background: #e2e8f0; color: #0f172a; }
.erp-sidebar-toggle-icon { font-size: 1.25rem; transition: transform 0.25s ease; }
.erp-desktop-sidebar.is-collapsed .erp-sidebar-toggle { margin: 0 auto; }
.erp-sidebar-nav {
  padding: 0.5rem 0.4rem;
}
.erp-sidebar-nav .blitzsch-nav-link {
  min-height: 36px;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.875rem;
}
.erp-sidebar-footer {
  border-top: 1px solid var(--blitzsch-sidebar-border);
  padding: 0.5rem 0.4rem 0.75rem;
  flex-shrink: 0;
}
@media (min-width: 1024px) {
  body.sidebar-collapsed .erp-main { padding-left: 72px !important; }
}

/* Sidebar: desktop’ta sabit genişlik */
.erp-sidebar {
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  flex-direction: column;
}

/* Desktop üst bar */
.blitzsch-topbar {
  height: var(--topbar-height);
  background: var(--blitzsch-sidebar);
  border-bottom: 1px solid var(--blitzsch-sidebar-border);
  box-shadow: var(--blitzsch-shadow);
  padding: 0 1rem;
  align-items: center;
  gap: 1rem;
  overflow: visible;
}
.blitzsch-topbar-brand {
  flex: 0 0 auto;
}
.blitzsch-topbar-nav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  overflow: visible;
  white-space: nowrap;
  padding: 0.25rem 0;
}
.blitzsch-topbar-nav::-webkit-scrollbar { height: 6px; }
.blitzsch-topbar-nav::-webkit-scrollbar-thumb { background: rgba(15, 23, 42, 0.12); border-radius: 999px; }
.blitzsch-topbar-dropdown {
  position: relative;
}
.blitzsch-topbar-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  color: var(--blitzsch-text-muted);
  border: 1px solid transparent;
  background: transparent;
  font-size: 0.92rem;
  cursor: pointer;
}
.blitzsch-topbar-dropdown.active .blitzsch-topbar-trigger,
.blitzsch-topbar-trigger:hover {
  color: var(--blitzsch-text);
  background: rgba(0, 0, 0, 0.04);
}
.blitzsch-topbar-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--blitzsch-border);
  border-radius: 16px;
  box-shadow: var(--blitzsch-shadow-card);
  padding: 0.5rem;
  display: none;
  z-index: 80;
}
.blitzsch-topbar-dropdown.is-open .blitzsch-topbar-menu {
  display: block;
}
.blitzsch-topbar-menu .blitzsch-topbar-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  color: var(--blitzsch-text-muted);
}
.blitzsch-topbar-menu .blitzsch-topbar-link:hover {
  color: var(--blitzsch-text);
  background: rgba(0, 0, 0, 0.04);
}
.blitzsch-topbar-menu .blitzsch-topbar-link.active {
  color: #b8860b;
  background: var(--blitzsch-primary-light);
  font-weight: 600;
}
.blitzsch-topbar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 0 0 auto;
}
.blitzsch-topbar-logout {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--blitzsch-text-muted);
  border: 1px solid var(--blitzsch-border);
  background: #fff;
}
.blitzsch-topbar-logout:hover {
  color: var(--blitzsch-text);
  border-color: rgba(15, 23, 42, 0.2);
}
@media (min-width: 1024px) {
  .erp-sidebar.w-\[260px\] { width: 260px; }
}

/* ========== Sayfa layout & içerik ========== */
.space-y-0\.5 > * + * { margin-top: 0.125rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.flex-wrap { flex-wrap: wrap; }
.justify-between { justify-content: space-between; }
.mt-1 { margin-top: 0.25rem; }
.mt-3 { margin-top: 0.75rem; }
.mb-3 { margin-bottom: 0.75rem; }
.ml-auto { margin-left: auto; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.rounded-lg { border-radius: 0.5rem; }
.text-lg { font-size: 1.125rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.font-bold { font-weight: 700; }
.tracking-tight { letter-spacing: -0.025em; }
.list-disc { list-style-type: disc; }
.list-inside { list-style-position: inside; }
.cursor-pointer { cursor: pointer; }
.underline { text-decoration: underline; }
.hover\:underline:hover { text-decoration: underline; }
.resize-y { resize: vertical; }

/* Slate renkler */
.text-slate-500 { color: #64748b; }
.text-slate-600 { color: #475569; }
.text-slate-700 { color: #334155; }
.text-slate-800 { color: #1e293b; }
.bg-slate-50 { background-color: #f8fafc; }
.bg-white { background-color: #fff; }
.border-slate-100 { border-color: #f1f5f9; }
.border-slate-200 { border-color: #e2e8f0; }
.border-slate-300 { border-color: #cbd5e1; }
.hover\:bg-slate-50:hover { background-color: #f8fafc; }

/* Banner / feedback renkleri */
.bg-emerald-500 { background-color: #10b981; }
.text-white { color: #fff; }
.bg-white\/20 { background-color: rgba(255, 255, 255, 0.2); }
.text-white\/90 { color: rgba(255, 255, 255, 0.9); }
.hover\:bg-white\/30:hover { background-color: rgba(255, 255, 255, 0.3); }
.bg-amber-500 { background-color: #f59e0b; }
.bg-emerald-50 { background-color: #ecfdf5; }
.border-emerald-200 { border-color: #a7f3d0; }
.text-emerald-800 { color: #065f46; }
.bg-amber-50 { background-color: #fffbeb; }
.border-amber-200 { border-color: #fde68a; }
.text-amber-800 { color: #92400e; }
.bg-red-50 { background-color: #fef2f2; }
.border-red-200 { border-color: #fecaca; }
.text-red-800 { color: #991b1b; }
.text-green-600 { color: #16a34a; }

/* Primary vurgu */
.text-\[\#ffcb00\] { color: #ffcb00; }
.bg-primary-500 { background-color: var(--blitzsch-primary); }
.hover\:bg-primary-600:hover { background-color: var(--blitzsch-primary-hover); }
.text-primary-600 { color: #b8860b; }
.hover\:underline:hover { text-decoration: underline; }

/* Grid */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.gap-4 { gap: 1rem; }
.sm\:grid-cols-3 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 640px) {
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.sm\:px-6 { padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 640px) {
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
}
.sm\:py-8 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
@media (min-width: 640px) {
  .sm\:py-8 { padding-top: 2rem; padding-bottom: 2rem; }
}
.lg\:flex-row { flex-direction: row; }
.lg\:items-end { align-items: flex-end; }
@media (min-width: 1024px) {
  .lg\:flex-row { flex-direction: row; }
  .lg\:items-end { align-items: flex-end; }
  .lg\:justify-between { justify-content: space-between; }
}

/* Kart & tablo – şık kutular */
.card {
  background: var(--blitzsch-bg-card);
  background-image: var(--blitzsch-bg-card-gradient);
  border-radius: var(--blitzsch-radius);
  border: 1px solid var(--blitzsch-border);
  box-shadow: var(--blitzsch-shadow-card);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { box-shadow: var(--blitzsch-shadow-card-hover); }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.border-b { border-bottom-width: 1px; }
.text-left { text-align: left; }
.text-right { text-align: right; }
table.w-full { width: 100%; border-collapse: collapse; }
thead.bg-slate-50 { background-color: #f8fafc; }
th.p-3, td.p-3 { padding: 0.75rem; }
tr.border-t { border-top-width: 1px; }

/* Buton – modern, yuvarlatılmış */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0;
  border-radius: var(--blitzsch-radius-btn);
  padding: 0.5rem 1rem;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s ease, border-color 0.2s;
}
.btn:active { transform: scale(0.98); }
.mr-2 { margin-right: 0.5rem; }
input.rounded { border-radius: 0.25rem; }
input:focus, textarea:focus { outline: none; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px var(--blitzsch-primary-light); }
.focus\:ring-primary-500:focus { box-shadow: 0 0 0 2px rgba(255, 203, 0, 0.5); }

/* Ek yardımcılar */
.max-h-64 { max-height: 16rem; }
.col-span-full { grid-column: 1 / -1; }
.sm\:col-span-1 { grid-column: span 1 / span 1; }
.shrink-0 { flex-shrink: 0; }
.min-w-0 { min-width: 0; }
.w-14 { width: 3.5rem; }
.h-14 { height: 3.5rem; }
.transition-colors a { color: inherit; }
a.underline { text-decoration: underline; }

/* Ayarlar sayfası: kutu kutu */
.settings-page .settings-box { border-radius: var(--blitzsch-radius); }
.settings-box-head { background: #fafafa; }
.settings-box-body { background: #fff; }
.settings-status-badge { display: inline-block; padding: 0.375rem 0.75rem; border-radius: 0.5rem; font-size: 0.875rem; font-weight: 500; }
.settings-status-ok { background: #10b981; color: #fff; }
.settings-status-paused { background: #fef3c7; color: #92400e; }
.settings-status-none { background: #f1f5f9; color: #475569; }
.settings-field { margin-bottom: 0; }
.settings-input { display: block; }
.btn-save { min-width: 8rem; }

/* Kartlar: yumuşak gradyan, yuvarlatılmış köşe */
.erp-card,
.blitzsch-card {
  background: var(--blitzsch-bg-card);
  background-image: var(--blitzsch-bg-card-gradient);
  border-radius: var(--blitzsch-radius);
  box-shadow: var(--blitzsch-shadow-card);
  border: 1px solid var(--blitzsch-border);
}

/* Buton primary – modern */
.erp-btn-primary,
.blitzsch-btn-primary {
  background: var(--blitzsch-primary);
  color: #0f172a;
  border: none;
  border-radius: var(--blitzsch-radius-btn);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.625rem 1.25rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s ease;
}
.erp-btn-primary:hover,
.blitzsch-btn-primary:hover {
  background: var(--blitzsch-primary-hover);
  box-shadow: 0 4px 12px rgba(255, 203, 0, 0.3);
}
.erp-btn-primary:active,
.blitzsch-btn-primary:active {
  transform: scale(0.98);
}

/* Buton secondary (İptal vb.) */
.erp-btn-secondary {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: var(--blitzsch-radius-btn);
  font-weight: 500;
  padding: 0.625rem 1.25rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.erp-btn-secondary:hover {
  background: #e2e8f0;
  color: #0f172a;
  border-color: #cbd5e1;
}

/* Progress bar container */
.blitzsch-progress-wrap {
  height: 8px;
  border-radius: 9999px;
  background: var(--blitzsch-border);
  overflow: hidden;
}
.blitzsch-progress-fill {
  height: 100%;
  border-radius: 9999px;
  background: var(--blitzsch-primary);
  transition: width 0.4s ease;
}

/* Mobil: header açık tema */
.blitzsch-mobile-header {
  background: var(--blitzsch-sidebar) !important;
  color: var(--blitzsch-text) !important;
  border-bottom: 1px solid var(--blitzsch-sidebar-border);
  box-shadow: var(--blitzsch-shadow);
}

/* Mobil menü overlay */
.erp-mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.erp-mobile-menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* Mobil menü paneli: açık tema */
.erp-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  width: min(280px, 85vw);
  max-width: 280px;
  background: var(--blitzsch-sidebar);
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.08);
  border-right: 1px solid var(--blitzsch-sidebar-border);
}
.erp-mobile-menu.is-open {
  transform: translateX(0);
}

/* Sidebar desktop: açık tema */
.blitzsch-sidebar {
  background: var(--blitzsch-sidebar) !important;
  color: var(--blitzsch-text) !important;
  border-right: 1px solid var(--blitzsch-sidebar-border);
  box-shadow: var(--blitzsch-shadow);
}

/* Nav link: koyu metin, aktifte sarı vurgu */
.blitzsch-nav-link {
  color: var(--blitzsch-text-muted);
  border-left: 3px solid transparent;
  border-radius: var(--blitzsch-radius);
  transition: background 0.15s, color 0.15s;
}
/* Sol menü dropdown */
.erp-sidebar-dropdown { margin-bottom: 0.25rem; }
.erp-sidebar-dropdown-trigger {
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}
.erp-sidebar-dropdown-trigger:hover { background: rgba(0, 0, 0, 0.04); }
.erp-sidebar-dropdown-chevron { transition: transform 0.2s; color: #94a3b8; }
.erp-sidebar-dropdown-open .erp-sidebar-dropdown-chevron { transform: rotate(180deg); }
.erp-sidebar-dropdown-menu {
  overflow: hidden;
  transition: opacity 0.2s;
}
.erp-sidebar-dropdown-menu[hidden] { display: none; }
.erp-sidebar-dropdown-menu .blitzsch-nav-link {
  min-height: 32px;
  padding: 0.35rem 0.9rem 0.35rem 2.25rem;
}
.erp-desktop-sidebar.is-collapsed .erp-sidebar-dropdown-menu,
.erp-desktop-sidebar.is-collapsed .erp-sidebar-dropdown-chevron { display: none !important; }
.erp-desktop-sidebar.is-collapsed .erp-sidebar-dropdown-trigger .erp-sidebar-link-text { display: none; }

.blitzsch-nav-section-title {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
}
.blitzsch-topbar .blitzsch-nav-section-title {
  padding: 0 0.5rem;
  font-size: 0.65rem;
}
.blitzsch-topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  color: var(--blitzsch-text-muted);
}
.blitzsch-topbar-link:hover {
  color: var(--blitzsch-text);
  background: rgba(0, 0, 0, 0.04);
}
.blitzsch-topbar-link.active {
  color: #b8860b;
  background: var(--blitzsch-primary-light);
  font-weight: 600;
}

/* ========== Index: sadece lock ikon buton ========== */
.index-lock-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 120px;
  height: 120px;
  background: #ffffff;
  border: 3px solid #000000;
  border-radius: 24px;
  color: #000000;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.index-lock-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}
.index-lock-icon {
  font-size: 48px;
  line-height: 1;
}
.index-lock-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ========== Use App (personel/ortak web yönlendirme) ========== */
.use-app-card {
  max-width: 400px;
  padding: 32px;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}
.use-app-icon {
  font-size: 56px;
  color: #ffcb00;
  display: block;
  margin-bottom: 16px;
}
.use-app-title {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 12px;
}
.use-app-desc {
  font-size: 15px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

/* ========== Home (sadece ffcb00 / 000000 / ffffff) ========== */
.home-page {
  background: #ffcb00;
  min-height: 100vh;
  color: #000000;
}
.home-hero {
  max-width: 1040px;
  margin: 0 auto;
  padding: 48px 20px 64px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
}
.home-brand {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.home-logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 24px;
}
.home-logo-fallback {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  background: #000000;
  color: #ffcb00;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}
.home-title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: 0;
}
.home-subtitle {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}
.home-live {
  width: 100%;
  max-width: 720px;
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 20px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px 16px;
}
.home-live-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.home-live-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.home-live-value {
  font-size: 16px;
  font-weight: 700;
}
.home-live-meta {
  grid-column: 1 / -1;
  font-size: 11px;
  font-weight: 600;
}
.home-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.home-card {
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 20px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #000000;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.home-card:hover {
  transform: translateY(-2px);
}
.home-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #ffcb00;
  border: 2px solid #000000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.home-card h2 {
  font-size: 18px;
  font-weight: 800;
  margin: 0;
}
.home-card p {
  font-size: 13px;
  font-weight: 600;
  margin: 0;
}
.home-card-link {
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 640px) {
  .home-hero {
    padding: 32px 16px 48px;
  }
  .home-title {
    font-size: 24px;
  }
}

/* Sayfa header ve aksiyonlar */
.erp-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.erp-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
@media (max-width: 640px) {
  .erp-actions-sticky {
    position: sticky;
    top: calc(var(--header-height) + 0.5rem);
    background: var(--blitzsch-bg);
    padding: 0.5rem 0;
    z-index: 30;
  }
}

/* Filtre barı: mobilde stack */
.erp-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.erp-filter-item {
  min-width: 140px;
}
@media (max-width: 640px) {
  .erp-filter-bar > * {
    flex: 1 1 100%;
  }
}

/* Tablo: mobilde daha kompakt */
.erp-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.erp-table {
  width: 100%;
  min-width: 720px;
}
@media (max-width: 640px) {
  .erp-table {
    min-width: 520px;
  }
  .erp-table th,
  .erp-table td {
    padding: 0.5rem 0.65rem !important;
    font-size: 0.82rem;
  }
  .erp-table th {
    font-size: 0.68rem;
    letter-spacing: 0.04em;
  }
}

/* Kart grid: auto-fit */
.erp-card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.blitzsch-nav-link:hover {
  color: var(--blitzsch-text);
  background: rgba(0, 0, 0, 0.04);
}
.blitzsch-nav-link.active {
  background: var(--blitzsch-primary-light);
  color: #b8860b;
  border-left-color: var(--blitzsch-primary);
  font-weight: 600;
  font-family: var(--font-display);
}

/* İstatistik kartı büyük sayı */
.blitzsch-stat-card {
  background: var(--blitzsch-bg-card);
  background-image: var(--blitzsch-bg-card-gradient);
  border-radius: var(--blitzsch-radius-lg);
  box-shadow: var(--blitzsch-shadow-card);
  border: 1px solid var(--blitzsch-border);
  padding: 1.5rem 1.75rem;
  transition: box-shadow 0.25s ease, border-color 0.2s ease;
}
.blitzsch-stat-card:hover {
  box-shadow: var(--blitzsch-shadow-card-hover);
  border-color: rgba(255, 203, 0, 0.2);
}
.blitzsch-stat-value {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--blitzsch-text);
  letter-spacing: -0.025em;
}
.blitzsch-stat-label {
  font-size: 0.8125rem;
  color: var(--blitzsch-text-muted);
  margin-top: 0.25rem;
  font-weight: 500;
}

/* Tablo mobil */
.erp-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  min-width: 0;
}
.erp-table-wrap table {
  min-width: 640px;
}

.erp-card canvas {
  max-width: 100%;
}

/* ========== Görevler (tasks) ========== */
.task-form-input {
  width: 100%;
  padding: 0.5rem 1rem;
  border: 1px solid var(--blitzsch-border);
  border-radius: var(--blitzsch-radius-btn);
  font-size: 0.9375rem;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.task-form-input:focus {
  border-color: var(--blitzsch-primary);
  box-shadow: 0 0 0 3px var(--blitzsch-primary-light);
}
.task-form-radio {
  accent-color: var(--blitzsch-primary);
}
.task-filter-select {
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  border: 1px solid var(--blitzsch-border);
  border-radius: var(--blitzsch-radius);
  font-size: 0.875rem;
  background: #fff;
  cursor: pointer;
}
.task-assignee-badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  background: var(--blitzsch-primary-light);
  color: var(--blitzsch-text);
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
}
.task-status-badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
}
.task-status-pending { background: #fef3c7; color: #b45309; }
.task-status-in_progress { background: #dbeafe; color: #1d4ed8; }
.task-status-done { background: #d1fae5; color: #047857; }
.task-status-cancelled { background: #f1f5f9; color: #64748b; }

/* ========== Sağ sidebar (görevler) – tüm sayfalarda ========== */
.erp-right-sidebar-inner {
  padding: 1.25rem 1rem;
  min-height: 100%;
}
.erp-right-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.erp-right-sidebar-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
}

/* Sidebar mini takvim */
.erp-right-sidebar-calendar {
  margin-bottom: 1rem;
}
.erp-right-sidebar-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.erp-right-sidebar-cal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--blitzsch-radius-btn);
  color: #64748b;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.erp-right-sidebar-cal-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.erp-right-sidebar-cal-month {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0f172a;
}
.erp-right-sidebar-cal-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.125rem;
  margin-bottom: 0.25rem;
}
.erp-right-sidebar-cal-wd {
  font-size: 0.625rem;
  font-weight: 600;
  color: #94a3b8;
  text-align: center;
}
.erp-right-sidebar-cal-body {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.125rem;
  overflow: visible;
}
.erp-right-sidebar-cal-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.25rem;
  border: none;
  border-radius: 0.375rem;
  background: transparent;
  font-size: 0.75rem;
  font-weight: 500;
  color: #0f172a;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: inherit;
}
.erp-right-sidebar-cal-cell:hover {
  background: #e2e8f0;
}
.erp-right-sidebar-cal-cell.erp-right-sidebar-cal-empty {
  cursor: default;
  pointer-events: none;
}
.erp-right-sidebar-cal-cell.erp-right-sidebar-cal-weekend {
  background: rgba(224, 231, 255, 0.6);
  color: #4338ca;
}
.erp-right-sidebar-cal-cell.erp-right-sidebar-cal-weekend:hover {
  background: rgba(224, 231, 255, 0.9);
}
.erp-right-sidebar-cal-cell.erp-right-sidebar-cal-holiday {
  background: rgba(252, 231, 243, 0.7);
  color: #be185d;
}
.erp-right-sidebar-cal-cell.erp-right-sidebar-cal-holiday:hover {
  background: rgba(252, 231, 243, 0.95);
}
.erp-right-sidebar-cal-cell.erp-right-sidebar-cal-special {
  background: rgba(254, 243, 199, 0.7);
  color: #b45309;
}
.erp-right-sidebar-cal-cell.erp-right-sidebar-cal-special:hover {
  background: rgba(254, 243, 199, 0.95);
}
.erp-right-sidebar-cal-cell.erp-right-sidebar-cal-today {
  background: var(--blitzsch-primary-light);
  color: #0f172a;
  font-weight: 600;
}
.erp-right-sidebar-cal-cell.erp-right-sidebar-cal-today:hover {
  background: rgba(255, 203, 0, 0.25);
}
.erp-right-sidebar-cal-num {
  line-height: 1.2;
}
.erp-right-sidebar-cal-dot {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5625rem;
  font-weight: 700;
  color: #0f172a;
  background: var(--blitzsch-primary);
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.erp-right-sidebar-cal-birthday {
  font-size: 0.625rem;
  color: #ec4899;
  margin-top: 0.0625rem;
  line-height: 1;
}
.erp-right-sidebar-cal-birthday .bx-cake { font-size: 0.75rem; }

/* Takvim tarih genişletme satırı */
.erp-cal-date-expand {
  margin-top: 0.5rem;
  padding: 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--blitzsch-radius-btn);
}
.erp-cal-date-expand[hidden] { display: none !important; }
.erp-cal-date-expand-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.erp-cal-date-expand-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;
}
.erp-cal-date-day-info {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
}
.erp-cal-date-birthdays {
  font-size: 0.6875rem;
  color: #ec4899;
}
.erp-cal-date-add-task {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0f172a;
  background: var(--blitzsch-primary);
  border: none;
  border-radius: var(--blitzsch-radius-btn);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.erp-cal-date-add-task:hover {
  background: var(--blitzsch-primary-hover);
  color: #0f172a;
}
.erp-right-sidebar-list-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-align: left;
}
.erp-right-sidebar-item-btn {
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
}

/* Görev accordion */
.erp-task-accordion-item {
  margin-bottom: 0.25rem;
  overflow: visible;
  text-align: left;
}
.erp-task-accordion-trigger {
  position: relative;
  overflow: visible;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.5rem;
  text-align: left;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.erp-task-accordion-trigger .erp-task-accordion-chevron {
  margin-left: auto;
}
.erp-task-accordion-item.is-open .erp-task-accordion-trigger {
  border-radius: var(--blitzsch-radius-btn) var(--blitzsch-radius-btn) 0 0;
  border-bottom-color: transparent;
}
.erp-task-item-badge {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  flex-shrink: 0;
  z-index: 1;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.erp-task-accordion-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
  text-align: left;
}
.erp-task-accordion-chevron {
  font-size: 1rem;
  color: #94a3b8;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.erp-task-accordion-item.is-open .erp-task-accordion-chevron { transform: rotate(180deg); }
.erp-task-accordion-body {
  padding: 0.75rem 0.75rem 0.5rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-top: none;
  border-radius: 0 0 var(--blitzsch-radius-btn) var(--blitzsch-radius-btn);
  margin-top: -0.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  text-align: left;
}
.erp-task-accordion-body[hidden] { display: none; }
.erp-task-accordion-detail { font-size: 0.8125rem; }
.erp-task-detail-desc { margin: 0 0 0.5rem; color: #475569; line-height: 1.4; }
.erp-task-detail-meta { margin: 0 0 0.5rem; color: #64748b; font-size: 0.75rem; }
.erp-task-accordion-actions {
  display: flex;
  justify-content: flex-start;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid #e2e8f0;
}
.erp-task-btn-edit,
.erp-task-btn-delete {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, color 0.2s;
}
.erp-task-btn-edit {
  background: #e0e7ff;
  color: #4338ca;
}
.erp-task-btn-edit:hover { background: #c7d2fe; }
.erp-task-btn-delete {
  background: #fee2e2;
  color: #b91c1c;
}
.erp-task-btn-delete:hover { background: #fecaca; }
.erp-right-sidebar-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--blitzsch-radius-btn);
  color: #64748b;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.erp-right-sidebar-link:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.erp-right-sidebar-body { }
.erp-right-sidebar-month {
  font-size: 0.75rem;
  font-weight: 500;
  color: #64748b;
  margin: 0 0 0.75rem;
}
.erp-right-sidebar-empty {
  font-size: 0.8125rem;
  color: #94a3b8;
  margin: 0 0 0.75rem;
}
.erp-right-sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
}
.erp-right-sidebar-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.25rem;
  background: #fff;
  border-radius: var(--blitzsch-radius-btn);
  border: 1px solid #e2e8f0;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.erp-right-sidebar-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.erp-right-sidebar-date {
  font-size: 0.6875rem;
  color: #64748b;
}
.erp-right-sidebar-task {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #0f172a;
  line-height: 1.3;
}
.erp-right-sidebar-badge {
  font-size: 0.625rem;
  font-weight: 600;
  align-self: flex-start;
  padding: 0.1rem 0.35rem;
  border-radius: 0.25rem;
}
/* Mobil: görevler drawer */
@media (max-width: 1023px) {
  .erp-right-sidebar-inner { padding-top: 3.5rem; }
}
body.mobile-tasks-open .erp-right-sidebar { display: block !important; }
body.mobile-tasks-open .erp-mobile-tasks-backdrop { display: block !important; }
.erp-right-sidebar-close { margin-left: auto; }
.erp-mobile-tasks-backdrop { transition: opacity 0.2s; }

.erp-right-sidebar .task-status-pending { background: #fef3c7; color: #b45309; }
.erp-right-sidebar .task-status-in_progress { background: #dbeafe; color: #1d4ed8; }
.erp-right-sidebar .task-status-done { background: #d1fae5; color: #047857; }
.erp-right-sidebar .task-status-cancelled { background: #f1f5f9; color: #64748b; }
.erp-right-sidebar-add {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--blitzsch-primary);
  text-decoration: none;
  transition: color 0.2s;
}
.erp-right-sidebar-add:hover { color: var(--blitzsch-primary-hover); }

/* ========== Takvim (tasks) ========== */
.task-calendar-nav { }
.task-cal-nav-btn {
  display: flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: var(--blitzsch-radius-btn);
  background: #f8fafc;
  color: #475569;
  text-decoration: none;
  border: 1px solid #e2e8f0;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.task-cal-nav-btn:hover { background: #f1f5f9; color: #0f172a; border-color: #cbd5e1; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.task-cal-month-title { font-size: 1.25rem; font-weight: 600; color: #0f172a; min-width: 140px; text-align: center; }
.task-cal-legend { display: flex; gap: 1rem; flex-wrap: wrap; }
.task-cal-legend-item { font-size: 0.75rem; padding: 0.25rem 0.5rem; border-radius: 0.5rem; }
.task-cal-legend-weekend { background: #e0e7ff; color: #4338ca; }
.task-cal-legend-holiday { background: #fce7f3; color: #be185d; }
.task-cal-legend-special { background: #fef3c7; color: #b45309; }

.tasks-desktop-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.tasks-calendars-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 1024px) {
  .tasks-calendars-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    align-items: start;
  }
  .tasks-calendars-wrap .task-calendar:not(:first-child) { display: block; }
}
.tasks-calendars-wrap .task-calendar:not(:first-child) { display: none; }
@media (min-width: 768px) {
  .tasks-calendars-wrap {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .tasks-calendars-wrap .task-calendar:nth-child(2) { display: block; }
}
@media (min-width: 1024px) {
  .tasks-calendars-wrap .task-calendar { display: block; }
  .tasks-calendars-wrap { grid-template-columns: repeat(3, 1fr); }
}

.task-cal-month-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
  padding: 0.5rem 0.75rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  text-align: center;
}

.task-calendar { padding: 0; }
.task-cal-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.task-cal-header-cell {
  padding: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-align: center;
}
.task-cal-body {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  min-height: 320px;
}
.task-cal-cell {
  min-height: 4rem;
  padding: 0.5rem;
  border-right: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}
.task-cal-cell:nth-child(7n) { border-right: none; }
.task-cal-cell:hover { background: #f8fafc; }
.task-cal-cell-weekend { background: #eef2ff; }
.task-cal-cell-weekend:hover { background: #e0e7ff; }
.task-cal-cell-holiday { background: #fdf2f8; }
.task-cal-cell-holiday:hover { background: #fce7f3; }
.task-cal-cell-today { outline: 2px solid var(--blitzsch-primary); outline-offset: -2px; z-index: 1; }
.task-cal-cell-special { background: #fffbeb; }
.task-cal-cell-special:hover { background: #fef3c7; }
.task-cal-cell-empty { background: #fafafa; cursor: default; }
.task-cal-day-num { font-size: 0.875rem; font-weight: 600; color: #334155; }
.task-cal-special-badge {
  font-size: 0.5625rem;
  line-height: 1.1;
  color: #b45309;
  background: #fef3c7;
  padding: 0.1rem 0.25rem;
  border-radius: 0.25rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.task-cal-dot {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.15rem;
  min-width: 1.25rem; height: 1.25rem;
  padding: 0 0.25rem;
  font-size: 0.6875rem; font-weight: 700;
  background: var(--blitzsch-primary);
  color: #0f172a;
  border-radius: 9999px;
}
.task-cal-dot .bx { font-size: 0.75rem; }

.tasks-sidebar-inner { padding: 0; }
.task-cal-list-title { font-size: 1rem; font-weight: 600; color: #0f172a; padding: 1rem 1.25rem; border-bottom: 1px solid #e2e8f0; margin: 0; }
.task-cal-list-empty { padding: 1.5rem; color: #64748b; font-size: 0.875rem; margin: 0; }
.task-cal-list-ul { list-style: none; padding: 0; margin: 0; }
.task-cal-list-item { border-bottom: 1px solid #f1f5f9; }
.task-cal-list-link {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  color: inherit; text-decoration: none;
  transition: background 0.15s;
}
.task-cal-list-link:hover { background: #f8fafc; }
.task-cal-list-date { font-size: 0.75rem; color: #64748b; min-width: 4.5rem; }
.task-cal-list-task-title { flex: 1; font-weight: 500; color: #0f172a; }

.task-dialog {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.task-dialog[hidden] { display: none; }
.task-dialog-backdrop {
  position: absolute; inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(2px);
}
.task-dialog-box {
  position: relative;
  width: 100%; max-width: 420px;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}
.task-dialog-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
}
.task-dialog-header h2 { font-size: 1.125rem; font-weight: 600; margin: 0; color: #0f172a; }
.task-dialog-close {
  width: 2rem; height: 2rem;
  display: flex; align-items: center; justify-content: center;
  border: none; background: #f1f5f9;
  border-radius: 0.5rem;
  color: #64748b;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.task-dialog-close:hover { background: #e2e8f0; color: #0f172a; }
.task-dialog-body { padding: 1.25rem; }
.task-dialog-field { margin-bottom: 1rem; }
.task-dialog-field:last-child { margin-bottom: 0; }
.task-dialog-field label { display: block; font-size: 0.8125rem; font-weight: 500; color: #475569; margin-bottom: 0.375rem; }
.task-dialog-radio-row { display: flex; gap: 1rem; margin-bottom: 0.5rem; }
.task-dialog-radio-row label { display: inline-flex; align-items: center; gap: 0.375rem; margin: 0; cursor: pointer; }
.task-dialog-footer {
  display: flex; gap: 0.5rem; justify-content: flex-end;
  padding: 1rem 1.25rem;
  border-top: 1px solid #e2e8f0;
  background: #fafafa;
}
.task-dialog-btn-cancel {
  padding: 0.625rem 1.25rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: var(--blitzsch-radius-btn);
  font-size: 0.9375rem; font-weight: 500;
  color: #64748b;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.task-dialog-btn-cancel:hover { background: #f8fafc; color: #0f172a; border-color: #cbd5e1; }
body.task-dialog-open { overflow: hidden; }

/* ========== Lemo-inspired dashboard ========== */
.lemo-dashboard-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}
@media (min-width: 1200px) {
  .lemo-dashboard-shell {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
  }
}
.lemo-main {
  background: #f8f8f9;
  border: 1px solid #ececf0;
  border-radius: 24px;
  padding: 1rem;
}
@media (min-width: 768px) {
  .lemo-main { padding: 1.25rem; }
}
.lemo-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.lemo-eyebrow {
  margin: 0;
  font-size: 0.82rem;
  color: #6b7280;
}
.lemo-title {
  margin: 0.125rem 0 0;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: #111111;
}
.lemo-search-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border: 1px solid #ececf0;
  border-radius: 12px;
  padding: 0.5rem 0.625rem;
  min-width: min(100%, 360px);
}
.lemo-search-wrap i { color: #6b7280; }
.lemo-search-wrap input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.86rem;
  flex: 1;
  min-width: 0;
}
.lemo-bell {
  position: relative;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  border: 1px solid #ececf0;
  color: #111111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: #fff;
}
.lemo-bell span {
  position: absolute;
  top: -0.3rem;
  right: -0.25rem;
  min-width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: #111111;
  color: #ffcb00;
  font-size: 0.62rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  padding: 0 0.2rem;
}
.lemo-kpis {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}
@media (min-width: 900px) {
  .lemo-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.lemo-kpi-card {
  background: #ffffff;
  border: 1px solid #ececf0;
  border-radius: 16px;
  padding: 0.9rem;
  display: flex;
  gap: 0.7rem;
  align-items: center;
}
.lemo-kpi-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
  background: rgba(255, 203, 0, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111111;
}
.lemo-kpi-label { margin: 0; font-size: 0.72rem; color: #6b7280; text-transform: uppercase; letter-spacing: 0.03em; }
.lemo-kpi-value { margin: 0.1rem 0; font-size: 1.2rem; font-family: var(--font-display); color: #111111; }
.lemo-kpi-meta { margin: 0; font-size: 0.74rem; color: #6b7280; }
.lemo-section {
  background: #ffffff;
  border: 1px solid #ececf0;
  border-radius: 18px;
  padding: 0.95rem;
  margin-bottom: 0.9rem;
}
.lemo-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}
.lemo-section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #111111;
}
.lemo-section-head a {
  font-size: 0.8rem;
  color: #6b7280;
  text-decoration: none;
}
.lemo-course-grid {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 900px) {
  .lemo-course-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.lemo-course-card {
  background: #fbfbfb;
  border: 1px solid #ececf0;
  border-radius: 15px;
  padding: 0.85rem;
  text-decoration: none;
  color: inherit;
}
.lemo-course-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.lemo-course-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  background: #ffcb00;
}
.lemo-course-head h3 {
  margin: 0;
  font-size: 0.95rem;
  color: #111111;
}
.lemo-course-subtitle { margin: 0.3rem 0 0; color: #6b7280; font-size: 0.78rem; }
.lemo-course-level { margin: 0.55rem 0 0; color: #8f8f95; font-size: 0.75rem; }
.lemo-progress-track {
  margin-top: 0.6rem;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #ebebee;
  overflow: hidden;
}
.lemo-progress-track span {
  display: block;
  height: 100%;
  background: #111111;
}
.lemo-course-progress { margin: 0.48rem 0 0; font-size: 0.75rem; color: #6b7280; }
.lemo-assignment-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.lemo-assignment-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid #ececf0;
  border-radius: 14px;
  padding: 0.65rem;
  background: #fffef8;
}
.lemo-assignment-thumb {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 10px;
  background: #f0f0f2;
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
}
.lemo-assignment-body { min-width: 0; flex: 1; }
.lemo-assignment-title { margin: 0; color: #111; font-size: 0.85rem; font-weight: 600; }
.lemo-assignment-meta { margin: 0.12rem 0 0; color: #6b7280; font-size: 0.76rem; }
.lemo-ghost-btn,
.lemo-primary-btn {
  text-decoration: none;
  border-radius: 10px;
  font-size: 0.74rem;
  padding: 0.38rem 0.58rem;
  white-space: nowrap;
}
.lemo-ghost-btn {
  color: #111;
  border: 1px solid #d5d5d9;
  background: #fff;
}
.lemo-primary-btn {
  color: #111;
  background: #ffcb00;
  border: 1px solid #e7b800;
}
.lemo-task-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 0.7rem;
}
@media (min-width: 900px) {
  .lemo-task-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.lemo-task-card {
  border-radius: 14px;
  padding: 0.95rem;
  text-decoration: none;
}
.lemo-task-card h3 {
  margin: 0.35rem 0 0;
  font-size: 1rem;
}
.lemo-task-card p {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
}
.lemo-task-card span {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.76rem;
}
.lemo-task-card-dark {
  background: #111111;
  color: #ffffff;
}
.lemo-task-card-yellow {
  background: #ffcb00;
  color: #111111;
}
.lemo-task-priority {
  margin: 0;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  opacity: 0.8;
}
.lemo-side {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.lemo-profile-card,
.lemo-calendar-card,
.lemo-reminder-card {
  background: #ffffff;
  border: 1px solid #ececf0;
  border-radius: 18px;
  padding: 0.95rem;
}
.lemo-profile-card h3 { margin: 0 0 0.7rem; font-size: 1.05rem; color: #111; }
.lemo-avatar {
  width: 4rem;
  height: 4rem;
  border-radius: 999px;
  background: linear-gradient(140deg, #2d2d2d, #111111);
  color: #ffcb00;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 700;
}
.lemo-profile-name { margin: 0.7rem 0 0; font-size: 1rem; font-weight: 700; color: #111; }
.lemo-profile-email { margin: 0.2rem 0 0; color: #6b7280; font-size: 0.78rem; }
.lemo-calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.55rem;
}
.lemo-calendar-head button {
  border: none;
  background: #f6f6f8;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 8px;
  color: #111;
}
.lemo-calendar-head h4 { margin: 0; color: #111; font-size: 0.95rem; }
.lemo-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.25rem;
}
.lemo-calendar-grid span {
  height: 1.6rem;
  border-radius: 8px;
  font-size: 0.72rem;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lemo-calendar-grid-head span {
  font-size: 0.63rem;
  color: #9ca3af;
}
.lemo-calendar-grid span.is-today {
  background: #111;
  color: #ffcb00;
  font-weight: 700;
}
.lemo-reminder-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.lemo-reminder-item {
  text-decoration: none;
  border: 1px solid #ececf0;
  border-radius: 12px;
  padding: 0.55rem;
  display: flex;
  gap: 0.55rem;
  align-items: center;
  background: #fffef8;
  color: inherit;
}
.lemo-reminder-item i {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 8px;
  background: rgba(255, 203, 0, 0.24);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111;
}
.lemo-reminder-item p {
  margin: 0;
  font-size: 0.8rem;
  color: #111;
  font-weight: 600;
}
.lemo-reminder-item span {
  margin-top: 0.15rem;
  display: inline-block;
  font-size: 0.72rem;
  color: #6b7280;
}

/* Request management enhancements */
.lemo-request-table th {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.lemo-request-table td {
  vertical-align: middle;
}
.lemo-status-chip {
  border: 1px solid rgba(17, 17, 17, 0.06);
}
.lemo-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.7rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  background: #ffffff;
}
.lemo-action-btn-approve {
  color: #166534;
  border-color: #bbf7d0;
  background: #f0fdf4;
}
.lemo-action-btn-approve:hover {
  background: #dcfce7;
}
.lemo-action-btn-reject {
  color: #991b1b;
  border-color: #fecaca;
  background: #fef2f2;
}
.lemo-action-btn-reject:hover {
  background: #fee2e2;
}
