/* Cudy Web — kurumsal arayüz (nötr palet, sakin menü) */
:root {
  --cudy-sidebar-w: 16.5rem;
  --cudy-top-h: 3.125rem;
  /* Ana marka: lacivert-gri */
  --cudy-navy: #1e293b;
  --cudy-navy-mid: #334155;
  /* Eski şablonlar / stok raporları için uyumluluk */
  --cudy-brand: #334155;
  --cudy-brand-2: #475569;
  --cudy-accent: #0f766e;
  --cudy-accent-soft: rgba(15, 118, 110, 0.1);
  --cudy-surface: #f1f5f9;
  --cudy-surface-elevated: #ffffff;
  --cudy-border: #e2e8f0;
  --cudy-border-strong: #cbd5e1;
  --cudy-text: #0f172a;
  --cudy-text-secondary: #475569;
  --cudy-muted: #64748b;
  --cudy-sidebar-bg: #fafbfc;
  --cudy-sidebar-hover: #f1f5f9;
  --cudy-topbar-text: #f8fafc;
  --cudy-demo-h: 0px;
}

body.app-body--demo {
  --cudy-demo-h: 3.25rem;
}

html {
  font-size: 15px;
}

.print-only {
  display: none;
}

body.app-body {
  margin: 0;
  min-height: 100vh;
  background: var(--cudy-surface);
  color: var(--cudy-text);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Üst bar — düz kurumsal şerit */
.app-demo-stripe {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--cudy-demo-h);
  z-index: 1040;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  padding: 0 1rem;
  background: linear-gradient(90deg, #c2410c 0%, #ea580c 45%, #f59e0b 55%, #ea580c 100%);
  border-bottom: 2px solid #9a3412;
  box-shadow: 0 2px 10px rgba(154, 52, 18, 0.35);
}

.app-demo-stripe__label {
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  font-weight: 900;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: #fff;
  line-height: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
}

.app-demo-stripe__hint {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.02em;
  max-width: 28rem;
  text-align: center;
}

.app-topbar {
  position: fixed;
  top: var(--cudy-demo-h);
  left: 0;
  right: 0;
  height: var(--cudy-top-h);
  z-index: 1030;
  background: var(--cudy-navy);
  border-bottom: 1px solid rgba(15, 23, 42, 0.85);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 2px 8px rgba(15, 23, 42, 0.12);
  display: flex;
  align-items: center;
  padding: 0 1.1rem 0 0.85rem;
  gap: 0.75rem;
}

.app-topbar-brand {
  font-weight: 650;
  font-size: 0.98rem;
  color: var(--cudy-topbar-text) !important;
  text-decoration: none;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.app-topbar-brand small {
  font-weight: 500;
  opacity: 0.72;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
}

.app-topbar-spacer {
  flex: 1;
}

.app-topbar-user {
  color: rgba(248, 250, 252, 0.88);
  font-size: 0.8125rem;
}

.app-topbar .badge-role {
  background: rgba(255, 255, 255, 0.1) !important;
  color: rgba(248, 250, 252, 0.95) !important;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.app-topbar .btn-logout {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--cudy-topbar-text);
  font-size: 0.78rem;
  font-weight: 500;
  border-radius: 0.25rem;
}

.app-topbar .btn-logout:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.app-topbar-help {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--cudy-topbar-text);
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 0.25rem;
  padding: 0.2rem 0.45rem;
  text-decoration: none;
}

.app-topbar-help:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.app-topbar-help kbd {
  font-size: 0.68rem;
  padding: 0.1em 0.35em;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: inherit;
}

.app-topbar-toggler {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: var(--cudy-topbar-text);
  border-radius: 0.25rem;
  padding: 0.3rem 0.55rem;
}

/* Yan menü */
.app-wrapper {
  display: flex;
  padding-top: calc(var(--cudy-top-h) + var(--cudy-demo-h));
  min-height: 100vh;
}

.app-sidebar {
  position: fixed;
  top: calc(var(--cudy-top-h) + var(--cudy-demo-h));
  left: 0;
  width: var(--cudy-sidebar-w);
  height: calc(100vh - var(--cudy-top-h));
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--cudy-sidebar-bg);
  border-right: 1px solid var(--cudy-border);
  box-shadow: 1px 0 0 rgba(15, 23, 42, 0.04);
  z-index: 1020;
  transition: transform 0.22s ease;
}

.app-sidebar-inner {
  padding: 0.65rem 0.5rem 2rem;
}

/* Panel — ana giriş (ters renk, büyük harf) */
.sidebar-nav-panel {
  margin-bottom: 0.85rem;
}

.sidebar-panel-link {
  display: block;
  padding: 0.7rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none !important;
  color: #fff !important;
  background: linear-gradient(128deg, #0f172a 0%, #1e40af 48%, #0d9488 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.5rem;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.22);
}

.sidebar-panel-link:hover {
  color: #fef08a !important;
  background: linear-gradient(128deg, #1e293b 0%, #2563eb 50%, #14b8a6 100%);
}

.sidebar-panel-link.active {
  color: #0f172a !important;
  background: linear-gradient(128deg, #fef08a 0%, #fde047 45%, #a7f3d0 100%);
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.15);
}

.sidebar-section-divider {
  border-bottom: 1px solid var(--cudy-border) !important;
}

.sidebar-section {
  margin-bottom: 0.2rem;
}

/* Bölüm başlığı — küçük harf değil, kurumsal etiket */
.sidebar-section-title {
  list-style: none;
  cursor: pointer;
  border-radius: 0.3rem;
  user-select: none;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cudy-text-secondary);
  padding: 0.55rem 0.65rem 0.5rem;
  margin-top: 0.15rem;
}

.sidebar-section-title:hover {
  background: var(--cudy-sidebar-hover);
  color: var(--cudy-navy);
}

.sidebar-section-title::-webkit-details-marker {
  display: none;
}

.sidebar-section-title::after {
  content: "";
  float: right;
  margin-top: 0.28rem;
  width: 0.4rem;
  height: 0.4rem;
  border-right: 1.5px solid var(--cudy-muted);
  border-bottom: 1.5px solid var(--cudy-muted);
  transform: rotate(45deg);
  opacity: 0.85;
  transition: transform 0.2s ease;
}

.sidebar-section[open] > .sidebar-section-title::after {
  transform: rotate(-135deg);
  margin-top: 0.4rem;
}

/* Stok: Distribütör özeti altında açılır yüklemeler */
.sidebar-subsection {
  margin: 0.05rem 0.15rem 0.1rem 0.35rem;
}

.sidebar-subsection-title {
  list-style: none;
  cursor: pointer;
  user-select: none;
  font-size: 0.84rem;
  font-weight: 450;
  padding: 0.42rem 0.75rem 0.42rem 1rem;
  margin: 0.05rem 0;
  border-radius: 0.3rem;
  color: var(--cudy-text);
  border-left: 2px solid transparent;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.sidebar-subsection-title:hover {
  background: var(--cudy-sidebar-hover);
  color: var(--cudy-navy);
}

.sidebar-subsection-title.active {
  background: #fff;
  color: var(--cudy-navy);
  font-weight: 600;
  border-left-color: var(--cudy-accent);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.sidebar-subsection-title::-webkit-details-marker {
  display: none;
}

.sidebar-subsection-title::after {
  content: "";
  float: right;
  margin-top: 0.35rem;
  width: 0.35rem;
  height: 0.35rem;
  border-right: 1.5px solid var(--cudy-muted);
  border-bottom: 1.5px solid var(--cudy-muted);
  transform: rotate(-45deg);
  opacity: 0.75;
  transition: transform 0.2s ease;
}

.sidebar-subsection[open] > .sidebar-subsection-title::after {
  transform: rotate(45deg);
  margin-top: 0.45rem;
}

.sidebar-nav-nested .nav-link {
  padding-left: 1.55rem;
  font-size: 0.81rem;
}

.sidebar-heading {
  width: 100%;
  text-align: left;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cudy-muted);
  padding: 0.5rem 0.75rem 0.35rem;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  border-radius: 0.35rem;
}

.sidebar-heading:hover {
  background: var(--cudy-sidebar-hover);
  color: var(--cudy-navy);
}

.sidebar-heading::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  opacity: 0.5;
  transition: transform 0.2s;
}

.sidebar-heading.collapsed::after {
  transform: rotate(45deg);
}

.sidebar-nav .nav-link {
  font-size: 0.84rem;
  font-weight: 450;
  padding: 0.42rem 0.75rem 0.42rem 0.85rem;
  margin: 0.05rem 0.2rem;
  border-radius: 0.3rem;
  color: var(--cudy-text);
  border-left: 2px solid transparent;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.sidebar-nav .nav-link:hover {
  background: var(--cudy-sidebar-hover);
  color: var(--cudy-navy);
}

.sidebar-nav .nav-link.active {
  background: #fff;
  color: var(--cudy-navy);
  font-weight: 600;
  border-left-color: var(--cudy-accent);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.sidebar-nav .nav-link.fw-semibold {
  font-weight: 600;
  font-size: 0.86rem;
}

.sidebar-nav .nav-link.text-muted {
  font-size: 0.78rem;
  color: var(--cudy-muted) !important;
}

.app-main {
  flex: 1;
  margin-left: var(--cudy-sidebar-w);
  padding: 1.35rem 1.65rem 3rem;
  max-width: calc(100vw - var(--cudy-sidebar-w));
  position: relative;
  z-index: 1;
}

.app-main-public {
  position: relative;
  z-index: 1;
}

/* Kartlar */
.content-card {
  background: var(--cudy-surface-elevated);
  border-radius: 0.4rem;
  border: 1px solid var(--cudy-border);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.page-title {
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--cudy-navy);
  letter-spacing: -0.02em;
}

/* Birincil butonlar — Bootstrap override (kurumsal) */
body.app-body .btn-primary {
  background-color: var(--cudy-navy-mid);
  border-color: var(--cudy-navy-mid);
  font-weight: 500;
}

body.app-body .btn-primary:hover {
  background-color: var(--cudy-navy);
  border-color: var(--cudy-navy);
}

body.app-body .btn-outline-primary {
  color: var(--cudy-navy-mid);
  border-color: var(--cudy-border-strong);
}

body.app-body .btn-outline-primary:hover {
  background: var(--cudy-sidebar-hover);
  border-color: var(--cudy-navy-mid);
  color: var(--cudy-navy);
}

/* Giriş sayfası */
body.auth-layout {
  background: linear-gradient(165deg, #f8fafc 0%, #e2e8f0 55%, #f1f5f9 100%);
  min-height: 100vh;
}

body.auth-layout .app-main-public {
  margin-left: 0;
  max-width: 420px;
  margin-right: auto;
  margin-left: auto;
  padding: 3rem 1rem;
}

/* Mobil */
@media (max-width: 991.98px) {
  .app-topbar-toggler {
    display: inline-block;
  }

  .app-sidebar {
    transform: translateX(-100%);
    pointer-events: none;
  }

  body.sidebar-open .app-sidebar {
    transform: translateX(0);
    pointer-events: auto;
    box-shadow: 8px 0 32px rgba(15, 23, 42, 0.12);
  }

  /* Karartma katmanı kaldırıldı — ekranı kilitleyordu */

  .app-main {
    position: relative;
    z-index: 1;
    margin-left: 0;
    max-width: 100%;
  }

  /* Panel: önce içerik, menü hamburger ile */
  body.page-dashboard .app-main {
    min-height: calc(100vh - var(--cudy-top-h) - var(--cudy-demo-h));
  }
}

/* Panel ana menü (kart yerine sade liste) */
.panel-welcome .page-title {
  margin-bottom: 0.25rem;
}

.panel-nav {
  padding: 0.35rem 0;
  overflow: hidden;
}

.panel-nav-section {
  padding: 0.65rem 1rem 0.5rem;
  border-bottom: 1px solid var(--cudy-border);
}

.panel-nav-section-last {
  border-bottom: 0;
}

.panel-nav-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cudy-text-secondary);
  margin-bottom: 0.35rem;
}

.panel-nav-link {
  display: block;
  padding: 0.45rem 0.5rem 0.45rem 0.65rem;
  margin: 0.1rem 0;
  font-size: 0.9rem;
  color: var(--cudy-navy);
  text-decoration: none;
  border-radius: 0.35rem;
  border-left: 2px solid transparent;
}

.panel-nav-link:hover {
  background: var(--cudy-sidebar-hover);
  color: var(--cudy-navy);
}

@media (min-width: 992px) {
  body.page-dashboard .panel-welcome .panel-welcome-hint-desktop {
    display: block;
    font-size: 0.85rem;
    color: var(--cudy-muted);
    margin-top: 0.35rem;
  }
}

.briefing-tick {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.audit-user-group summary {
  list-style: none;
  cursor: pointer;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
}

.audit-user-group summary::-webkit-details-marker {
  display: none;
}

.audit-user-summary::after {
  content: "";
  float: right;
  margin-top: 0.35rem;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid var(--cudy-muted);
  border-bottom: 2px solid var(--cudy-muted);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.audit-user-group[open] .audit-user-summary::after {
  transform: rotate(-135deg);
  margin-top: 0.5rem;
}

.audit-target-cell {
  max-width: 22rem;
  min-width: 11rem;
  word-break: normal;
  overflow-wrap: break-word;
}

.audit-action-badge {
  font-weight: 500;
  font-size: 0.75rem;
}

/* Yazdır */
/* Fatura durumu rozetleri — masaüstü ile aynı palet */
.badge.badge-inv-order-placed {
  background-color: #e3f2fd;
  color: #1565c0;
}
.badge.badge-inv-shipped {
  background-color: #fff9c4;
  color: #f57f17;
}
.badge.badge-inv-in-turkey {
  background-color: #ffe0b2;
  color: #e65100;
}
.badge.badge-inv-delivered {
  background-color: #e8f5e9;
  color: #2e7d32;
}
.badge.badge-inv-added-to-stock {
  background-color: #ede7f6;
  color: #6a1b9a;
}
.badge.badge-inv-unknown {
  background-color: #eceff1;
  color: #455a64;
}

/* Filtre / arama — içerikten sonra, uzun tablolarda altta yapışkan */
.app-filter-bar--bottom {
  margin-top: 1rem;
  margin-bottom: 0.25rem;
  padding: 0.75rem 1rem;
  background: var(--cudy-surface-elevated);
  border: 1px solid var(--cudy-border);
  border-radius: 10px;
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08);
  position: sticky;
  bottom: 0;
  z-index: 5;
}

.app-filter-bar--bottom .form-label {
  margin-bottom: 0.15rem;
}

/* Daraltılabilir filtre — mobilde tek satır araç çubuğu */
.app-filter-collapsible {
  padding: 0.5rem 0.75rem;
}

.app-filter-collapsible__toolbar {
  min-height: 2.25rem;
}

.app-filter-collapsible__toggle .app-filter-chevron {
  display: inline-block;
  transition: transform 0.2s ease;
  font-size: 0.85rem;
  opacity: 0.85;
}

.app-filter-collapsible__toggle[aria-expanded="true"] .app-filter-chevron {
  transform: rotate(180deg);
}

.app-filter-collapsible__panel {
  border-top: 1px solid var(--cudy-border);
  margin-top: 0.5rem;
  padding-top: 0.25rem;
}

@media (min-width: 768px) {
  .app-filter-collapsible__toolbar {
    justify-content: flex-end;
  }

  .app-filter-collapsible__panel.collapse:not(.show) {
    display: block;
    height: auto !important;
    visibility: visible;
  }

  .app-filter-collapsible__toggle {
    display: none !important;
  }

  .app-filter-collapsible__panel {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
  }

  .app-filter-collapsible {
    padding: 0.75rem 1rem;
  }
}

/* ── Rapor temaları: satış (yeşil kartlar) vs stok (mavi şerit) ─────────── */
.report-page {
  --report-radius: 10px;
  --report-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

.report-page__badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.18rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.35rem;
}

.report-page--sales {
  --report-accent: #059669;
  --report-accent-light: #ecfdf5;
  --report-accent-border: #a7f3d0;
  --report-accent-dark: #065f46;
  --report-head-bg: linear-gradient(135deg, #f0fdf4 0%, #fff 60%);
}

.report-page--sales .report-page__badge {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.report-page--stock {
  --report-accent: #2563eb;
  --report-accent-light: #eff6ff;
  --report-accent-border: #bfdbfe;
  --report-accent-dark: #1e40af;
  --report-head-bg: linear-gradient(135deg, #eff6ff 0%, #f8fafc 55%, #fff 100%);
}

.report-page--stock .report-page__badge {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #93c5fd;
}

.report-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1rem;
  border-radius: var(--report-radius);
  border: 1px solid var(--cudy-border);
  border-left: 4px solid var(--report-accent);
  background: var(--report-head-bg);
  box-shadow: var(--report-shadow);
}

.report-head h1 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  color: #0f172a;
}

.report-head__sub {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0.25rem 0 0;
}

.report-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.15rem;
}

.report-stat-card {
  background: #fff;
  border: 1px solid var(--cudy-border);
  border-radius: var(--report-radius);
  padding: 0.6rem 0.85rem;
  box-shadow: var(--report-shadow);
  border-top: 3px solid var(--report-accent);
}

.report-stat-card__value {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--report-accent-dark);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.report-stat-card__label {
  font-size: 0.76rem;
  color: #64748b;
  margin-top: 0.1rem;
}

.report-stat-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  align-items: center;
  padding: 0.55rem 0.95rem;
  margin-bottom: 1rem;
  border-radius: var(--report-radius);
  background: var(--report-accent-light);
  border: 1px solid var(--report-accent-border);
  font-size: 0.86rem;
  color: #334155;
}

.report-stat-bar strong {
  color: var(--report-accent-dark);
  font-variant-numeric: tabular-nums;
}

.report-stat-bar__sep {
  color: #94a3b8;
  user-select: none;
}

.report-page--sales .report-sheet__title,
.report-page--sales .sr-sheet > h2 {
  background: var(--report-accent-light) !important;
  color: var(--report-accent-dark) !important;
  border-bottom-color: var(--report-accent-border) !important;
}

.report-page--stock .report-sheet__title,
.report-page--stock .sr-sheet > h2 {
  background: #f1f5f9 !important;
  color: #1e293b !important;
  border-left: 3px solid var(--report-accent);
  border-bottom: 1px solid #e2e8f0 !important;
}

.report-page--sales .sr-pill strong,
.report-page--sales .report-num-sales {
  color: var(--report-accent-dark) !important;
}

.report-page--stock .sr-pill strong {
  color: var(--report-accent-dark) !important;
}

.report-page--sales .sr-table-wrap thead tr.sr-total-row th,
.report-page--sales thead tr.report-total-row th {
  background: var(--report-accent-light) !important;
  color: var(--report-accent-dark) !important;
  border-bottom-color: var(--report-accent-border) !important;
}

.report-page--stock .sr-table-wrap thead th {
  background: linear-gradient(180deg, #eff6ff 0%, #e2e8f0 100%) !important;
  color: #1e3a8a !important;
}

.report-page--sales a.sr-link-dist:hover,
.report-page--sales a.sr-link-cat:hover {
  color: var(--report-accent) !important;
}

.report-page--stock a.sr-link-dist:hover {
  color: var(--report-accent) !important;
}

.report-page--sales .sr-hero,
.report-page--stock .sr-hero {
  display: none;
}

.report-period-card {
  background: #fff;
  border: 1px solid var(--cudy-border);
  border-radius: var(--report-radius);
  box-shadow: var(--report-shadow);
  margin-bottom: 1rem;
  overflow: hidden;
  border-left: 3px solid var(--report-accent);
}

.report-page--sales .report-period-card .sr-period-head,
.report-page--sales .report-period-head {
  padding: 0.75rem 1rem;
  background: var(--report-accent-light);
  border-bottom: 1px solid var(--report-accent-border);
}

@media print {
  .app-filter-bar--bottom {
    position: static;
    box-shadow: none;
  }

  .print-only {
    display: block !important;
  }

  .no-print,
  .app-demo-stripe,
  .app-topbar,
  .app-sidebar,
  .app-topbar-toggler {
    display: none !important;
  }

  .app-main {
    margin-left: 0 !important;
    max-width: 100% !important;
    padding: 0 !important;
  }

  body.app-body {
    background: #fff;
  }

  .content-card,
  .card {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }
}

/* ── Cudy yükleme göstergesi ── */
.cudy-loading {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: rgba(248, 250, 252, 0.88);
  backdrop-filter: blur(3px);
}

.cudy-loading[hidden] {
  display: none !important;
}

body.cudy-loading-active {
  overflow: hidden;
}

html.cudy-loading-active body {
  overflow: hidden;
}

.cudy-loading__spinner {
  position: relative;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cudy-loading__ring {
  position: absolute;
  inset: 0;
  border: 3px solid rgba(37, 99, 235, 0.15);
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: cudy-loading-spin 0.85s linear infinite;
}

.cudy-loading__logo {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.12);
}

.cudy-loading__text {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155;
}

@keyframes cudy-loading-spin {
  to {
    transform: rotate(360deg);
  }
}
