﻿@charset "UTF-8";
/**
 * ==========================================
 * TEMIZ APARTMAN Y??NETIMI - MAIN CSS
 * Final override katman??
 * (T??m global base/layout/components utils zaten layout'tan y??klenir.)
 * ==========================================
 */

/* Buraya sadece global override ve ince ayar kurallar?? eklenmeli.
   ??rnek:
   .btn { border-radius: 999px; }
*/

/* Topbar/sidebar renkleri canl??da son katmanda sabit kals??n. */
:root {
  --by-bg-sidebar: linear-gradient(180deg, #0f1c2f 0%, #1a2f4a 100%);
  --by-bg-header: linear-gradient(90deg, #0f1c2f 0%, #1a2f4a 100%);
  --by-bg-shell-solid: #0f1c2f;
}

.topbar,
.yonetim-ui .topbar {
  background: var(--by-bg-header) !important;
}

.sidebar {
  background: var(--by-bg-sidebar) !important;
}

/* Kullanici menusu: sadece renk katmani, olcu ve konuma dokunmaz. */
.sidebar .dropdown-menu-building {
  --bs-dropdown-bg: #223045;
  --bs-dropdown-link-color: #e5eaf1;
  --bs-dropdown-link-hover-color: #ffffff;
  --bs-dropdown-link-hover-bg: rgba(255, 255, 255, 0.06);
  --bs-dropdown-link-active-color: #ffffff;
  --bs-dropdown-link-active-bg: rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, #273446 0%, #1d2a3c 100%) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35) !important;
}

.sidebar .dropdown-menu-building .dropdown-header {
  color: #9da8b8 !important;
}

.sidebar .dropdown-menu-building .dropdown-item {
  color: #e5eaf1 !important;
  background: transparent;
}

.sidebar .dropdown-menu-building .dropdown-item:hover,
.sidebar .dropdown-menu-building .dropdown-item:focus,
.sidebar .dropdown-menu-building .dropdown-item.active {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

.sidebar .dropdown-menu-building .dropdown-item i {
  color: #cbd3df !important;
}

.sidebar .dropdown-menu-building .dropdown-divider {
  border-color: rgba(255, 255, 255, 0.08) !important;
  opacity: 1;
}

.sidebar .dropdown-menu-building .dropdown-item.text-danger,
.sidebar .dropdown-menu-building .dropdown-item.text-danger:hover,
.sidebar .dropdown-menu-building .dropdown-item.text-danger:focus {
  color: #ff5b5b !important;
}

.sidebar .dropdown-menu-font-size {
  --bs-dropdown-bg: #223045;
  --bs-dropdown-link-color: #e5eaf1;
  --bs-dropdown-link-hover-color: #ffffff;
  --bs-dropdown-link-hover-bg: rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, #273446 0%, #1d2a3c 100%) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* BY ortak üst özet kart satırı (Toplu Borçlandırma, Personel, vb.) */
.by-stat-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
  padding: 0 0 8px 0;
  margin: 0;
  align-items: flex-start;
}

.by-stat-card-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: flex-start;
  flex: 0 0 auto;
}

.by-stat-card-stack.by-stat-card-stack-row {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.by-stat-card-op {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  font-size: 18px;
  font-weight: 700;
  color: #64748b;
  line-height: 1;
  user-select: none;
}

.by-stat-card-stack.by-stat-card-stack-row {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.by-stat-card-op {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  font-size: 18px;
  font-weight: 700;
  color: #64748b;
  line-height: 1;
  user-select: none;
}

.by-stat-cards > .by-stat-card {
  align-self: flex-start;
  height: auto;
}

.by-stat-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 12px;
  padding: 10px 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.by-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.by-stat-card-active {
  border-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

.by-stat-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.by-stat-icon.blue   { background: #eef2ff; color: #3b7fb9; border-radius: 12px; }
.by-stat-icon.green  { background: #d1fae5; color: #059669; border-radius: 50%; }
.by-stat-icon.amber  { background: #fef3c7; color: #d97706; border-radius: 50%; }
.by-stat-icon.blue2  { background: #dbeafe; color: #2563eb; border-radius: 50%; }
.by-stat-icon.indigo { background: #eef2ff; color: #6366f1; }
.by-stat-icon.emerald { background: #ecfdf5; color: #10b981; }
.by-stat-icon.red    { background: #fef2f2; color: #ef4444; }

.by-stat-label {
  font-size: 11px;
  color: #9ca3af;
  line-height: 1.3;
  font-weight: 500;
  display: block;
}
.by-stat-label-sub {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: #9ca3af;
  line-height: 1.25;
  margin-top: 1px;
}

.by-stat-value {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
  letter-spacing: -0.02em;
  display: block;
}

.by-stat-value .text-danger {
  color: #ef4444 !important;
}

.by-stat-value .text-success {
  color: #059669 !important;
}

/* BY4 Toast bildirimleri (Başarılı / Hata / Uyarı) */
.by4-toast-stack {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

/* BY4 overlay (Ekstre Gönder vb.) açıkken toast modalın üstünde kalsın */
body.by4-modal-lock .by4-toast-stack {
  z-index: 2147483100;
}

.by4-toast {
  pointer-events: auto;
  width: min(420px, calc(100vw - 32px));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid #f3f4f6;
  border-radius: 16px;
  box-shadow: var(--vector-shadow-elevated, 0 8px 24px rgba(0, 0, 0, 0.08));
  padding: 12px 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  overflow: hidden;
}

.by4-toast::before {
  content: "";
  width: 4px;
  align-self: stretch;
  border-radius: 999px;
  background: #9ca3af;
}

.by4-toast.is-success::before { background: #10b981; }
.by4-toast.is-error::before   { background: #ef4444; }
.by4-toast.is-warning::before { background: #f59e0b; }
.by4-toast.is-info::before    { background: #3b82f6; }

.by4-toast-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: #f3f4f6;
  color: #6b7280;
}
.by4-toast.is-success .by4-toast-icon { background: #ecfdf5; color: #10b981; }
.by4-toast.is-error .by4-toast-icon   { background: #fef2f2; color: #ef4444; }
.by4-toast.is-warning .by4-toast-icon { background: #fffbeb; color: #f59e0b; }
.by4-toast.is-info .by4-toast-icon    { background: #eff6ff; color: #3b82f6; }

.by4-toast-body {
  flex: 1 1 auto;
  min-width: 0;
}

.by4-toast-title {
  font-size: 12px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}

.by4-toast-message {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  line-height: 1.35;
  word-break: break-word;
}

.by4-toast-close {
  border: 0;
  background: transparent;
  color: #9ca3af;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  cursor: pointer;
}
.by4-toast-close:hover { background: rgba(17, 24, 39, 0.06); color: #111827; }

.by4-toast-in {
  animation: by4ToastIn 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.by4-toast-out {
  animation: by4ToastOut 180ms ease both;
}

@keyframes by4ToastIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes by4ToastOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-8px); }
}

