/* Insaat CRM — AidatGo-inspired dark theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@500;700;800&display=swap');

:root {
  --crm-bg: #0f0f1a;
  --crm-surface: #1a1a2e;
  --crm-surface-hover: #22223a;
  --crm-sidebar: #12121f;
  --crm-sidebar-hover: rgba(255, 255, 255, 0.05);
  --crm-sidebar-active: rgba(129, 140, 248, 0.18);
  --crm-sidebar-text: #94a3b8;
  --crm-sidebar-text-active: #e2e8f0;
  --crm-accent: #818cf8;
  --crm-accent-dark: #6366f1;
  --crm-accent-soft: rgba(129, 140, 248, 0.12);
  --crm-accent-glow: rgba(129, 140, 248, 0.25);
  --crm-purple: #c084fc;
  --crm-success: #34d399;
  --crm-warning: #fbbf24;
  --crm-danger: #f87171;
  --crm-info: #38bdf8;
  --crm-border: rgba(255, 255, 255, 0.06);
  --crm-glass-border: rgba(255, 255, 255, 0.08);
  --crm-text: #e2e8f0;
  --crm-text-muted: #94a3b8;
  --crm-radius: 12px;
  --crm-radius-sm: 8px;
  --crm-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  --crm-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.35);
  --crm-sidebar-width: 260px;
  --crm-transition: all 0.2s ease;
  --crm-input-bg: #252542;
  --crm-input-border: rgba(255, 255, 255, 0.18);
  --crm-input-text: #f8fafc;

  /* Bootstrap dark overrides */
  --bs-body-bg: var(--crm-bg);
  --bs-body-color: var(--crm-text);
  --bs-secondary-color: var(--crm-text-muted);
  --bs-tertiary-color: var(--crm-text-muted);
  --bs-border-color: rgba(255, 255, 255, 0.12);
  --bs-emphasis-color: var(--crm-input-text);
  --bs-form-control-bg: var(--crm-input-bg);
  --bs-form-control-color: var(--crm-input-text);
  --bs-form-select-bg: var(--crm-input-bg);
  --bs-form-select-color: var(--crm-input-text);
}

* { box-sizing: border-box; }

html {
  font-size: 15px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--crm-text);
  background: var(--crm-bg);
  margin: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 15%, rgba(129, 140, 248, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 80%, rgba(192, 132, 252, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--crm-accent);
}

a:hover {
  color: var(--crm-purple);
}

h2, h3, h4, h5, h6, .modal-title {
  font-family: 'Outfit', sans-serif;
  color: var(--crm-text);
}
.app-wrapper {
  display: flex;
  min-height: 100vh;
  position: relative;
}

.app-sidebar {
  width: var(--crm-sidebar-width);
  background: var(--crm-sidebar);
  color: var(--crm-sidebar-text);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1040;
  transition: transform 0.25s ease;
}

.app-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.app-sidebar-brand .brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #818cf8, #c084fc);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  overflow: hidden;
  flex-shrink: 0;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-icon:has(.brand-logo),
.auth-brand-mark:has(.brand-logo) {
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.app-sidebar-brand .brand-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.2;
  background: linear-gradient(135deg, #818cf8, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.app-sidebar-brand .brand-sub {
  font-size: 0.7rem;
  color: var(--crm-sidebar-text);
  font-weight: 500;
}

.app-nav {
  flex: 1;
  padding: 0.75rem 0.75rem;
  overflow-y: auto;
}

.app-nav-section {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  padding: 0.75rem 0.75rem 0.35rem;
}

.app-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.55rem 0.85rem;
  margin-bottom: 2px;
  border-radius: var(--crm-radius-sm);
  color: var(--crm-sidebar-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.15s, color 0.15s;
}

.app-nav-link i {
  font-size: 1.1rem;
  width: 22px;
  text-align: center;
  opacity: 0.85;
}

.app-nav-link:hover {
  background: var(--crm-sidebar-hover);
  color: #e2e8f0;
}

.app-nav-link.active {
  background: var(--crm-sidebar-active);
  color: var(--crm-sidebar-text-active);
}

.app-nav-link.active i {
  color: var(--crm-accent);
}

.app-sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
}

.app-main {
  flex: 1;
  margin-left: var(--crm-sidebar-width);
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.app-header {
  background: rgba(26, 26, 46, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--crm-glass-border);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 1020;
}

.app-header-title {
  font-size: 0.85rem;
  color: var(--crm-text-muted);
  font-weight: 500;
}

.app-header-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-header-user .user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--crm-accent-soft);
  color: var(--crm-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--crm-border);
}

.user-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.app-header-user-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  border-radius: var(--crm-radius-sm);
  padding: 0.15rem 0.35rem;
  transition: background 0.15s;
}

.app-header-user-link:hover {
  background: rgba(30, 136, 229, 0.08);
}

.profile-avatar-panel {
  padding: 1rem;
  border: 1px solid var(--crm-border);
  border-radius: var(--crm-radius);
  background: var(--crm-surface-hover);
}

.profile-avatar-wrap {
  width: 140px;
  height: 140px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--crm-border);
  box-shadow: var(--crm-shadow);
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-form {
  padding: 1.5rem;
}

.app-header-user .user-name {
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.2;
}

.app-header-user .user-role {
  font-size: 0.75rem;
  color: var(--crm-text-muted);
}

.app-content {
  padding: 1.5rem;
  flex: 1;
}

.sidebar-toggle {
  display: none;
  border: 1px solid var(--crm-border);
  background: var(--crm-surface);
  border-radius: var(--crm-radius-sm);
  padding: 0.4rem 0.6rem;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 1035;
}

/* ——— Page header ——— */
.page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.page-header h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
  background: linear-gradient(135deg, #818cf8, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-header .page-subtitle {
  color: var(--crm-text-muted);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* ——— Cards & surfaces ——— */
.card {
  border: 1px solid var(--crm-glass-border);
  border-radius: var(--crm-radius);
  box-shadow: var(--crm-shadow);
  background: rgba(26, 26, 46, 0.65);
  color: var(--crm-text);
}

.card-header {
  background: transparent;
  border-bottom: 1px solid var(--crm-border);
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--crm-text);
}

.card-body {
  padding: 1.25rem;
}

.crm-panel {
  background: rgba(26, 26, 46, 0.65);
  backdrop-filter: blur(12px);
  border: 1px solid var(--crm-glass-border);
  border-radius: var(--crm-radius);
  box-shadow: var(--crm-shadow);
  overflow: hidden;
}

/* ——— Stat cards (dashboard) ——— */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: rgba(26, 26, 46, 0.65);
  backdrop-filter: blur(12px);
  border: 1px solid var(--crm-glass-border);
  border-radius: var(--crm-radius);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--crm-shadow);
  transition: var(--crm-transition);
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(129, 140, 248, 0.2);
  box-shadow: var(--crm-shadow-lg);
}

.stat-card .stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--crm-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.stat-card .stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.stat-card .stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.stat-card.stat-primary .stat-icon { background: rgba(129, 140, 248, 0.15); color: #818cf8; }
.stat-card.stat-success .stat-icon { background: rgba(52, 211, 153, 0.15); color: #34d399; }
.stat-card.stat-warning .stat-icon { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.stat-card.stat-danger .stat-icon { background: rgba(248, 113, 113, 0.15); color: #f87171; }
.stat-card.stat-neutral .stat-icon { background: rgba(148, 163, 184, 0.12); color: #94a3b8; }

.stat-card.stat-highlight {
  background: linear-gradient(135deg, #6366f1 0%, #818cf8 50%, #c084fc 100%);
  border: none;
  color: #fff;
}

.stat-card.stat-highlight .stat-label { color: rgba(255,255,255,0.75); }
.stat-card.stat-highlight .stat-icon { background: rgba(255,255,255,0.15); color: #fff; }

.stat-card .stat-value.text-success { color: var(--crm-success); }
.stat-card .stat-value.text-danger { color: var(--crm-danger); }
.stat-card .stat-value.text-warning { color: var(--crm-warning); }
.stat-card .stat-value.text-primary { color: var(--crm-accent); }

/* ——— Tables ——— */
.table {
  margin-bottom: 0;
}

.table thead th {
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--crm-border);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--crm-text-muted);
  padding: 0.85rem 1rem;
  white-space: nowrap;
}

.table tbody td {
  padding: 0.85rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.9rem;
  color: var(--crm-text);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--crm-text);
  --bs-table-hover-bg: rgba(255, 255, 255, 0.02);
}

.table a {
  color: var(--crm-accent);
  font-weight: 500;
  text-decoration: none;
}

.table a:hover {
  text-decoration: underline;
}

/* ——— Buttons ——— */
.btn {
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--crm-radius-sm);
  padding: 0.5rem 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--crm-accent), var(--crm-purple));
  border: none;
  color: #fff;
  box-shadow: 0 2px 12px rgba(129, 140, 248, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  border: none;
  color: #fff;
  box-shadow: 0 4px 20px rgba(129, 140, 248, 0.35);
  transform: translateY(-1px);
}

.btn-outline-primary {
  color: var(--crm-accent);
  border-color: var(--crm-glass-border);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--crm-accent-soft);
  border-color: var(--crm-accent);
  color: var(--crm-accent);
}

.btn-outline-secondary {
  color: var(--crm-text-muted);
  border-color: var(--crm-glass-border);
  background: transparent;
}

.btn-outline-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--crm-accent);
  color: var(--crm-text);
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
}

/* ——— Forms ——— */
.form-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: #e2e8f0;
  margin-bottom: 0.35rem;
}

.form-control,
.form-select {
  background-color: var(--crm-input-bg);
  border: 1px solid var(--crm-input-border);
  border-radius: var(--crm-radius-sm);
  padding: 0.55rem 0.85rem;
  font-size: 0.9rem;
  color: var(--crm-input-text);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
}

.form-control::placeholder {
  color: #94a3b8;
  opacity: 1;
}

.form-control:focus,
.form-select:focus {
  background-color: #2d2d4f;
  border-color: var(--crm-accent);
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.2);
  color: var(--crm-input-text);
  outline: none;
}

.form-control:disabled,
.form-select:disabled {
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--crm-text-muted);
  opacity: 1;
}

.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

.form-control[type="date"],
.form-control[type="datetime-local"],
.form-control[type="time"] {
  color-scheme: dark;
}

body.nakliye-theme .form-control[type="date"],
body.nakliye-theme .form-control[type="datetime-local"],
body.nakliye-theme .form-control[type="time"] {
  color-scheme: light;
}

body.nakliye-theme .form-control[type="date"]::-webkit-calendar-picker-indicator,
body.nakliye-theme .form-control[type="datetime-local"]::-webkit-calendar-picker-indicator {
  opacity: 0.75;
  cursor: pointer;
}

.form-select option {
  background: var(--crm-surface);
  color: var(--crm-text);
}

/* Boş validation summary kutusunu gizle */
.validation-summary-valid {
  display: none !important;
}

.crm-form-card {
  background: rgba(26, 26, 46, 0.65);
  backdrop-filter: blur(12px);
  border: 1px solid var(--crm-glass-border);
  border-radius: var(--crm-radius);
  padding: 1.5rem;
  box-shadow: var(--crm-shadow);
}

.modal {
  --bs-modal-zindex: 1060;
  z-index: 1060;
}

.modal-backdrop {
  --bs-backdrop-zindex: 1050;
  z-index: 1050;
}

.modal-content {
  background: #22223a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--crm-text);
  box-shadow: var(--crm-shadow-lg);
  pointer-events: auto;
}

.modal-dialog {
  pointer-events: none;
}

.modal-dialog .modal-content {
  pointer-events: auto;
}

.modal-header .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

.modal-backdrop.show {
  opacity: 0.72;
}

.text-muted {
  color: var(--crm-text-muted) !important;
}

/* ——— Expense category picker (AidatGo glass cards) ——— */
.expense-category-grid-wrap {
  min-height: 280px;
  padding: 0.25rem;
  border-radius: var(--crm-radius);
  border: 1px dashed transparent;
}

.expense-category-grid-wrap:hover {
  border-color: rgba(30, 136, 229, 0.12);
}

.expense-category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.expense-type-divider {
  grid-column: 1 / -1;
  padding: 0.35rem 0 0.15rem;
}

.expense-type-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--crm-text-muted);
}

.expense-category-context-menu {
  position: fixed;
  z-index: 2060;
  min-width: 210px;
  padding: 0.35rem 0;
  background: #fff;
  border: 1px solid var(--crm-glass-border);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.15);
}

.expense-context-menu-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  border: none;
  background: transparent;
  padding: 0.55rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--crm-text);
  text-align: left;
  cursor: pointer;
}

.expense-context-menu-item:hover {
  background: #f7fbff;
  color: #1565c0;
}

.expense-context-menu-item.text-danger:hover {
  background: #fef2f2;
  color: #dc2626;
}

.expense-context-menu-item i {
  width: 1.1rem;
  text-align: center;
  opacity: 0.85;
}

.expense-category-tile {
  background: rgba(26, 26, 46, 0.65);
  backdrop-filter: blur(12px);
  border: 1px solid var(--crm-glass-border);
  border-radius: var(--crm-radius);
  padding: 1.1rem 0.5rem;
  min-height: 118px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--crm-transition);
  box-shadow: var(--crm-shadow);
}

.expense-category-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(129, 140, 248, 0.25);
  box-shadow: var(--crm-shadow-lg), 0 0 20px rgba(129, 140, 248, 0.08);
}

.expense-category-tile:active {
  transform: translateY(-1px);
}

.expense-category-tile i {
  font-size: 1.85rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.expense-category-icon-img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.2s ease;
}

.expense-category-tile:hover .expense-category-icon-img {
  transform: scale(1.08);
}

.category-upload-preview-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--crm-border);
}

.category-form-preview img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--crm-border);
}

.category-list-icon {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 6px;
  vertical-align: middle;
}

.expense-category-tile:hover i {
  transform: scale(1.08);
}

.expense-category-tile:nth-child(8n+1) i { color: #818cf8; }
.expense-category-tile:nth-child(8n+2) i { color: #f472b6; }
.expense-category-tile:nth-child(8n+3) i { color: #34d399; }
.expense-category-tile:nth-child(8n+4) i { color: #fbbf24; }
.expense-category-tile:nth-child(8n+5) i { color: #a78bfa; }
.expense-category-tile:nth-child(8n+6) i { color: #fb923c; }
.expense-category-tile:nth-child(8n+7) i { color: #38bdf8; }
.expense-category-tile:nth-child(8n+8) i { color: #f87171; }

.expense-category-tile span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--crm-text-muted);
  text-align: center;
  line-height: 1.25;
  max-width: 100%;
  padding: 0 4px;
}

.expense-category-tile:hover span {
  color: var(--crm-text);
}

.expense-modal-content {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--crm-radius);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
  background: #22223a;
}

.expense-modal-content .modal-title {
  color: #f8fafc;
  font-weight: 700;
}

.expense-modal-content .modal-body {
  padding-top: 0.5rem;
}

.expense-modal-content .form-label {
  color: #e2e8f0;
  font-weight: 600;
}

.expense-modal-content .form-control,
.expense-modal-content .form-select {
  background-color: #2d2d4f !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: #f8fafc !important;
  min-height: 42px;
}

.expense-modal-content .form-control:focus,
.expense-modal-content .form-select:focus {
  background-color: #353560 !important;
  border-color: #818cf8 !important;
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.25) !important;
  color: #f8fafc !important;
}

.expense-modal-content .form-control::placeholder {
  color: #94a3b8 !important;
  opacity: 1;
}

.expense-modal-content .expense-project-locked {
  background: #2d2d4f;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #f8fafc;
  min-height: 42px;
}

.expense-modal-content small.text-muted {
  color: #94a3b8 !important;
}

.expense-modal-content small.text-muted a {
  color: #a5b4fc;
  font-weight: 600;
  text-decoration: none;
}

.expense-modal-content small.text-muted a:hover {
  color: #c084fc;
  text-decoration: underline;
}

.expense-modal-content .modal-footer {
  background: rgba(0, 0, 0, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding-top: 1rem !important;
}

.expense-modal-category {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #818cf8, #c084fc);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  box-shadow: 0 2px 12px rgba(129, 140, 248, 0.25);
}

.expense-modal-category i {
  font-size: 1rem;
  color: #fff;
}

.expense-project-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  background: var(--crm-accent-soft);
  color: var(--crm-accent);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
}

.expense-project-locked {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  background: var(--crm-input-bg);
  border: 1px solid var(--crm-input-border);
  border-radius: var(--crm-radius-sm);
  font-weight: 600;
  color: var(--crm-input-text);
}

.expense-project-locked i {
  color: var(--crm-accent);
}

@media (max-width: 1200px) {
  .expense-category-grid { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 992px) {
  .expense-category-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  .expense-category-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
  .expense-category-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ——— Project cost report (maliyet dökümü) ——— */
.project-cost-report {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.project-cost-hero {
  border-radius: var(--crm-radius);
  overflow: hidden;
  box-shadow: var(--crm-shadow-lg);
  background: linear-gradient(135deg, #6366f1 0%, #818cf8 45%, #c084fc 100%);
  position: relative;
}

.project-cost-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -12deg,
    transparent,
    transparent 18px,
    rgba(255, 255, 255, 0.04) 18px,
    rgba(255, 255, 255, 0.04) 36px
  );
  pointer-events: none;
}

.project-cost-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 1.75rem 2rem 1.25rem;
  position: relative;
}

.project-cost-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
}

.project-cost-stat:last-child {
  border-bottom: none;
}

.project-cost-stat .label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0.92;
}

.project-cost-stat .value {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.project-cost-hero-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 1.25rem;
  background: var(--crm-surface);
  font-size: 0.78rem;
  font-weight: 700;
  border-top: 1px solid var(--crm-border);
}

.project-cost-hero-footer .company {
  color: var(--crm-text-muted);
}

.project-cost-hero-footer .project {
  color: var(--crm-accent);
  text-align: right;
}

.project-cost-hero-footer .code {
  color: #94a3b8;
  font-weight: 600;
}

.project-cost-group {
  background: var(--crm-surface);
  border-radius: var(--crm-radius);
  border: 1px solid var(--crm-border);
  box-shadow: var(--crm-shadow);
  overflow: hidden;
}

.project-cost-group-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.25rem;
  background: linear-gradient(90deg, #6366f1 0%, #818cf8 50%, #c084fc 100%);
  color: #fff;
}

.project-cost-group-header .group-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 0.95rem;
  white-space: nowrap;
  padding: 0.5rem 0.85rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
}

.project-cost-group-header .group-desc {
  font-size: 0.78rem;
  line-height: 1.45;
  margin: 0;
  opacity: 0.95;
}

.project-cost-table-wrap {
  padding: 0;
}

.project-cost-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.project-cost-table thead th {
  background: linear-gradient(90deg, #6d28d9, #7c3aed);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.65rem 1rem;
  border: none;
}

.project-cost-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.project-cost-table tbody td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--crm-border);
  vertical-align: middle;
  color: var(--crm-text);
}

.project-cost-table tbody td .line-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  background: rgba(129, 140, 248, 0.12);
  border-radius: 6px;
  margin-right: 0.5rem;
  color: var(--crm-accent);
}

.project-cost-table tbody td.amount {
  font-weight: 700;
  color: var(--crm-text);
}

.project-cost-table tfoot td {
  background: linear-gradient(90deg, #db2777, #be185d);
  color: #fff;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  border: none;
}

.project-cost-empty {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--crm-surface);
  border: 1px dashed var(--crm-border);
  border-radius: var(--crm-radius);
  color: var(--crm-text-muted);
}

.project-cost-empty i {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.75rem;
  opacity: 0.5;
}

@media (max-width: 768px) {
  .project-cost-hero-inner { padding: 1.25rem 1rem; }
  .project-cost-stat .value { font-size: 1.1rem; }
  .project-cost-group-header {
    grid-template-columns: 1fr;
  }
  .project-cost-hero-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ——— Badges ——— */
.badge {
  font-weight: 600;
  font-size: 0.72rem;
  padding: 0.35em 0.65em;
  border-radius: 6px;
}

.badge.bg-secondary {
  background: rgba(148, 163, 184, 0.15) !important;
  color: var(--crm-text-muted) !important;
}

.badge-status-available { background: rgba(52, 211, 153, 0.15); color: #34d399; }
.badge-status-sold { background: rgba(129, 140, 248, 0.15); color: #818cf8; }
.badge-status-reserved { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.badge-status-contracted { background: rgba(192, 132, 252, 0.15); color: #c084fc; }
.badge-status-cancelled { background: rgba(248, 113, 113, 0.15); color: #f87171; }

/* ——— Alerts ——— */
.alert {
  border-radius: var(--crm-radius-sm);
  border: 1px solid transparent;
  font-weight: 500;
}

.alert-success { background: rgba(52, 211, 153, 0.12); color: #34d399; border-color: rgba(52, 211, 153, 0.2); }
.alert-danger { background: rgba(248, 113, 113, 0.12); color: #f87171; border-color: rgba(248, 113, 113, 0.2); }
.alert-warning { background: rgba(251, 191, 36, 0.12); color: #fbbf24; border-color: rgba(251, 191, 36, 0.2); }
.alert-info { background: rgba(129, 140, 248, 0.12); color: #818cf8; border-color: rgba(129, 140, 248, 0.2); }

/* ——— Filter bar ——— */
.filter-bar {
  background: rgba(26, 26, 46, 0.65);
  backdrop-filter: blur(12px);
  border: 1px solid var(--crm-glass-border);
  border-radius: var(--crm-radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--crm-shadow);
}

/* ——— Login / Auth page ——— */
.auth-body {
  margin: 0;
  min-height: 100vh;
  background: #f8fafc;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.auth-hero {
  position: relative;
  background: #0b1220;
  color: #e2e8f0;
  padding: 2.5rem 3rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.auth-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 30% 20%, black, transparent 75%);
}

.auth-hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.auth-hero-glow--1 {
  width: 420px;
  height: 420px;
  top: -120px;
  right: -80px;
  background: rgba(37, 99, 235, 0.35);
}

.auth-hero-glow--2 {
  width: 320px;
  height: 320px;
  bottom: -80px;
  left: -60px;
  background: rgba(14, 165, 233, 0.2);
}

.auth-hero-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 520px;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.auth-brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(145deg, #818cf8, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.35rem;
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.35);
}

.auth-brand-mark--sm {
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
}

.auth-brand-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.02em;
}

.auth-brand-tag {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 0.15rem;
}

.auth-hero-lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #cbd5e1;
  margin-bottom: 2.5rem;
}

.auth-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.auth-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #93c5fd;
  flex-shrink: 0;
}

.auth-feature-list strong {
  display: block;
  font-size: 0.92rem;
  color: #f1f5f9;
  margin-bottom: 0.15rem;
}

.auth-feature-list span {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.4;
}

.auth-hero-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.75rem;
  color: #64748b;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.06), transparent 45%),
    #f8fafc;
}

.auth-panel-inner {
  width: 100%;
  max-width: 420px;
}

.auth-mobile-brand {
  display: none;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  font-weight: 700;
  color: #0f172a;
}

.auth-form-wrap {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 2rem 2rem 1.75rem;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 16px 48px rgba(15, 23, 42, 0.06);
}

.auth-form-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #0f172a;
  margin-bottom: 0.35rem;
}

.auth-form-header p {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 1.75rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.auth-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
}

.auth-input {
  height: 48px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0 0.9rem;
  font-size: 0.95rem;
  color: #0f172a;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-input::placeholder {
  color: #94a3b8;
}

.auth-input:focus {
  outline: none;
  border-color: #818cf8;
  box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.12);
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: -0.25rem;
}

.auth-remember .form-check-input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  cursor: pointer;
  border-color: #cbd5e1;
}

.auth-remember .form-check-input:checked {
  background-color: #818cf8;
  border-color: #818cf8;
}

.auth-remember-label {
  margin: 0;
  font-size: 0.88rem;
  color: #64748b;
  cursor: pointer;
  user-select: none;
}

.auth-submit {
  height: 48px;
  margin-top: 0.25rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #818cf8, #c084fc);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  box-shadow: 0 8px 20px rgba(129, 140, 248, 0.28);
}

.auth-submit:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.auth-submit:active {
  transform: translateY(0);
}

.auth-alert {
  font-size: 0.85rem;
  border-radius: 10px;
  margin-bottom: 0;
}

.auth-legal {
  margin: 1.25rem 0 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #94a3b8;
  text-align: center;
}

/* ——— Project map picker ——— */
.project-location-section {
  border: 1px solid var(--crm-glass-border);
  border-radius: var(--crm-radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  background: #1a1a2e;
  position: relative;
  z-index: 1;
}

.project-location-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: #34d399;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.project-map-search-wrap {
  position: relative;
}

.project-map-search-wrap .form-control {
  padding-right: 2.5rem;
}

.project-map-search-icon {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--crm-accent);
  pointer-events: none;
}

.project-map-container {
  position: relative;
  height: 400px;
  min-height: 400px;
  border-radius: 12px;
  border: 1px solid var(--crm-border);
  background: #0f172a;
  z-index: 0;
}

#project-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Google Maps iç katmanları — cam efektli üst elemanlarda kırılmasın */
.project-map-container .gm-style,
.project-map-container .gm-style > div,
.project-map-container .gm-style iframe,
.project-map-container .gm-style canvas {
  width: 100% !important;
  height: 100% !important;
}

.project-map-hint {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(129, 140, 248, 0.25);
  border-radius: 8px;
  padding: 0.45rem 0.9rem;
  font-size: 0.78rem;
  color: #c7d2fe;
  pointer-events: none;
  white-space: nowrap;
}

.pac-container {
  z-index: 1100 !important;
}

.project-field-readonly {
  background: rgba(255, 255, 255, 0.04);
  cursor: default;
}

.project-addr-status {
  font-size: 0.75rem;
  color: var(--crm-success);
  align-items: center;
  gap: 0.25rem;
}

.project-code-auto-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 48px;
  padding: 0 0.9rem;
  border: 1px dashed var(--crm-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--crm-text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.project-code-auto-hint i {
  color: var(--crm-accent);
}

/* ——— Project list (AidatGo-style cards) ——— */
.project-list-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.project-list-header h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
  background: linear-gradient(135deg, #818cf8, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.project-count-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: var(--crm-accent-soft);
  color: var(--crm-accent);
  font-size: 0.85rem;
  font-weight: 700;
}

.project-list-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--crm-surface);
  border: 1px dashed var(--crm-border);
  border-radius: var(--crm-radius);
  color: var(--crm-text-muted);
}

.project-list-empty i {
  font-size: 3rem;
  opacity: 0.35;
  display: block;
  margin-bottom: 1rem;
}

.project-list-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.project-list-card {
  background: rgba(26, 26, 46, 0.65);
  backdrop-filter: blur(12px);
  border: 1px solid var(--crm-glass-border);
  border-radius: var(--crm-radius);
  box-shadow: var(--crm-shadow);
  overflow: hidden;
}

.project-list-card-grid {
  display: grid;
  grid-template-columns: minmax(300px, 360px) 1fr;
  min-height: 380px;
}

.project-list-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-right: 1px solid var(--crm-border);
}

.project-list-title-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.project-list-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #818cf8, #c084fc);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.project-list-title-row h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--crm-text);
}

.project-list-code {
  font-size: 0.78rem;
  color: var(--crm-text-muted);
  font-family: ui-monospace, monospace;
  margin-top: 0.15rem;
}

.project-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  border: 1px solid transparent;
}

.project-status-badge i {
  font-size: 0.4rem;
}

.project-status-active {
  background: rgba(52, 211, 153, 0.12);
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.25);
}

.project-status-planning {
  background: rgba(129, 140, 248, 0.12);
  color: #818cf8;
  border-color: rgba(129, 140, 248, 0.25);
}

.project-status-paused {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.25);
}

.project-status-completed {
  background: rgba(192, 132, 252, 0.12);
  color: #c084fc;
  border-color: rgba(192, 132, 252, 0.25);
}

.project-status-cancelled {
  background: rgba(248, 113, 113, 0.12);
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.25);
}

.project-status-default {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  border-color: rgba(148, 163, 184, 0.2);
}

.project-list-meta {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.88rem;
}

.project-list-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: var(--crm-text-muted);
}

.project-list-meta-item i {
  color: var(--crm-accent);
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.project-list-coords {
  font-family: ui-monospace, monospace;
  font-size: 0.78rem;
}

.project-maps-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--crm-accent);
  text-decoration: none;
  border: 1px solid rgba(129, 140, 248, 0.25);
  border-radius: 8px;
  padding: 0.35rem 0.75rem;
  transition: background 0.15s ease;
}

.project-maps-link:hover {
  background: var(--crm-accent-soft);
  color: var(--crm-purple);
}

.project-list-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--crm-border);
}

.project-list-actions .btn-primary {
  flex: 1;
}

.project-list-map {
  min-height: 380px;
  background: #0f172a;
  position: relative;
}

.project-list-map-loading,
.project-list-map-fallback {
  height: 100%;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #94a3b8;
  font-size: 0.85rem;
}

.project-list-map-loading i {
  font-size: 1.5rem;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 992px) {
  .project-list-card-grid {
    grid-template-columns: 1fr;
  }

  .project-list-info {
    border-right: none;
    border-bottom: 1px solid var(--crm-border);
    min-height: auto;
  }

  .project-list-map {
    min-height: 280px;
  }
}

/* ——— Accordion (project details) ——— */
.accordion-item {
  border: 1px solid var(--crm-border);
  border-radius: var(--crm-radius-sm) !important;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.accordion-button {
  font-weight: 600;
  font-size: 0.9rem;
  background: #f8fafc;
}

.accordion-button:not(.collapsed) {
  background: var(--crm-accent-soft);
  color: var(--crm-accent);
}

/* ——— Responsive ——— */
@media (max-width: 991.98px) {
  .app-sidebar {
    transform: translateX(-100%);
  }

  .app-sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay.show {
    display: block;
  }

  .app-main {
    margin-left: 0;
  }

  .sidebar-toggle {
    display: inline-flex;
  }

  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-hero {
    padding: 2rem 1.5rem 1.5rem;
    min-height: auto;
  }

  .auth-hero-lead,
  .auth-feature-list,
  .auth-hero-footer {
    display: none;
  }

  .auth-mobile-brand {
    display: flex;
  }

  .auth-panel {
    padding: 1.5rem;
  }

  .auth-form-wrap {
    padding: 1.5rem;
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .app-content {
    padding: 1rem;
  }
}

/* ——— Talep & Hatırlatıcı ——— */
.followup-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.followup-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--crm-glass-border);
  background: rgba(26, 26, 46, 0.65);
  color: var(--crm-text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--crm-transition);
}

.followup-tab:hover {
  border-color: rgba(129, 140, 248, 0.3);
  color: var(--crm-text);
}

.followup-tab.active {
  background: var(--crm-accent-soft);
  border-color: rgba(129, 140, 248, 0.35);
  color: var(--crm-accent);
}

.followup-tab-count {
  display: inline-flex;
  min-width: 1.35rem;
  justify-content: center;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
}

.followup-tab-count--danger {
  background: rgba(248, 113, 113, 0.18);
  color: #f87171;
}

.followup-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.followup-type-request { background: rgba(129, 140, 248, 0.12); color: #818cf8; border-color: rgba(129, 140, 248, 0.25); }
.followup-type-reminder { background: rgba(251, 191, 36, 0.12); color: #fbbf24; border-color: rgba(251, 191, 36, 0.25); }

.followup-status-open { background: rgba(56, 189, 248, 0.12); color: #38bdf8; border-color: rgba(56, 189, 248, 0.25); }
.followup-status-progress { background: rgba(192, 132, 252, 0.12); color: #c084fc; border-color: rgba(192, 132, 252, 0.25); }
.followup-status-completed { background: rgba(52, 211, 153, 0.12); color: #34d399; border-color: rgba(52, 211, 153, 0.25); }
.followup-status-cancelled { background: rgba(148, 163, 184, 0.12); color: #94a3b8; border-color: rgba(148, 163, 184, 0.2); }

.followup-priority-low { background: rgba(148, 163, 184, 0.12); color: #94a3b8; }
.followup-priority-medium { background: rgba(129, 140, 248, 0.12); color: #818cf8; }
.followup-priority-high { background: rgba(251, 191, 36, 0.12); color: #fbbf24; }
.followup-priority-urgent { background: rgba(248, 113, 113, 0.12); color: #f87171; }

.followup-row-overdue {
  background: rgba(248, 113, 113, 0.04);
}

.followup-details dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--crm-text-muted);
  margin-top: 0.75rem;
}

.followup-details dt:first-child {
  margin-top: 0;
}

.followup-details dd {
  margin-bottom: 0;
  color: var(--crm-text);
}

.followup-dashboard-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.followup-dashboard-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--crm-glass-border);
  border-radius: var(--crm-radius-sm);
  text-decoration: none;
  color: inherit;
  transition: var(--crm-transition);
}

.followup-dashboard-item:hover {
  border-color: rgba(129, 140, 248, 0.25);
  background: rgba(129, 140, 248, 0.06);
  color: inherit;
}

.expense-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.expense-status-paid { background: rgba(52, 211, 153, 0.12); color: #34d399; border-color: rgba(52, 211, 153, 0.25); }
.expense-status-partial { background: rgba(251, 191, 36, 0.12); color: #fbbf24; border-color: rgba(251, 191, 36, 0.25); }
.expense-status-unpaid { background: rgba(248, 113, 113, 0.12); color: #f87171; border-color: rgba(248, 113, 113, 0.25); }
.expense-status-cancelled { background: rgba(148, 163, 184, 0.12); color: #94a3b8; border-color: rgba(148, 163, 184, 0.2); }

.expense-invoice-current {
  padding: 0.85rem 1rem;
  border: 1px solid var(--crm-glass-border);
  border-radius: var(--crm-radius-sm);
  background: rgba(255, 255, 255, 0.03);
}

.expense-due-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.expense-due-filter-tab {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--crm-glass-border);
  background: rgba(26, 26, 46, 0.65);
  color: var(--crm-text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--crm-transition);
}

.expense-due-filter-tab:hover {
  border-color: rgba(129, 140, 248, 0.3);
  color: var(--crm-text);
}

.expense-due-filter-tab.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(129, 140, 248, 0.15));
  border-color: rgba(129, 140, 248, 0.4);
  color: var(--crm-text);
}
