/* theme-ultra-clean-crm-reports.css */

body.theme-ultra-clean {
  font-family: 'Manrope', sans-serif;
}

body.theme-ultra-clean .crm-reports-page-shell {
  padding: 28px 28px 40px;
}

/* ── Layout ── */
.report-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
@media (max-width: 1024px) {
  .report-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .report-grid {
    grid-template-columns: 1fr;
  }
}

.report-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
@media (max-width: 768px) {
  .report-grid-3 {
    grid-template-columns: 1fr;
  }
}

.report-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  margin-bottom: 22px;
}
@media (max-width: 768px) {
  .report-content {
    grid-template-columns: 1fr;
  }
}

.report-full {
  margin-bottom: 22px;
}

/* ── KPI Card ── */
.rpt-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.rpt-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}
.rpt-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.rpt-icon {
  font-size: 22px;
}
.rpt-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.rpt-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}
.rpt-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
}
.rpt-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  margin-top: 8px;
}
.trend-up {
  color: #059669;
}
.trend-dn {
  color: #dc2626;
}

/* ── Panel ── */
.rpt-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 20px 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
.rpt-panel h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 800;
}
.rpt-panel .rpt-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 16px;
}

/* ── Funnel ── */
.funnel-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.funnel-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.funnel-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  width: 160px;
  flex-shrink: 0;
}
.funnel-bar-wrap {
  flex: 1;
  background: var(--bg-main);
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}
.funnel-bar {
  height: 10px;
  border-radius: 999px;
  transition: width 0.6s ease;
}
.funnel-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  width: 32px;
  text-align: right;
}

/* ── Stage colors ── */
.stage-yeni       { background: #6366f1; }
.stage-arama      { background: #0ea5e9; }
.stage-toplanti   { background: #8b5cf6; }
.stage-analiz     { background: #f59e0b; }
.stage-teklif     { background: #f97316; }
.stage-muzakere   { background: #ec4899; }
.stage-sozlesme   { background: #14b8a6; }
.stage-kazanildi  { background: #22c55e; }
.stage-kaybedildi { background: #ef4444; }
.stage-askida     { background: #94a3b8; }

/* ── Table ── */
.rpt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.rpt-table th {
  background: var(--bg-main);
  padding: 10px 12px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border-color);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.rpt-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  vertical-align: middle;
}
.rpt-table tr:last-child td {
  border-bottom: none;
}
.rpt-table tr:hover td {
  background: rgba(15, 111, 117, 0.04);
}
.empty-row td {
  text-align: center;
  color: var(--text-muted);
  padding: 24px;
}

/* ── Badge ── */
.badge-stage {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}
.badge-green  { background: #e0fdf4; color: #047857; }
.badge-red    { background: #fee2e2; color: #b91c1c; }
.badge-orange { background: #fff7ed; color: #c2410c; }
.badge-blue   { background: #eff6ff; color: #1d4ed8; }
.badge-gray   { background: #f8fafc; color: #475569; }

/* ── Win/Loss donut placeholder ── */
.winloss-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
}
.winloss-legend {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 12px;
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
}

/* ── Activity summary ── */
.activity-type-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
}
.activity-type-row:last-child {
  border: none;
}
.act-bar-mini {
  height: 6px;
  border-radius: 3px;
  background: var(--primary);
  margin-top: 4px;
}

/* ── Section header ── */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.section-header h2 {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text-muted);
  font-weight: 700;
}

/* ── Date filter ── */
.date-filter-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 12px 20px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.date-filter-bar label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.date-filter-bar input,
.date-filter-bar select {
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-size: 13px;
  background: var(--bg-main);
  color: var(--text-main);
  font-family: 'Manrope', sans-serif;
  transition: all 0.15s ease;
}
.date-filter-bar input:focus,
.date-filter-bar select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 111, 117, 0.12);
}
.btn-filter {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
  transition: opacity 0.15s ease;
}
.btn-filter:hover {
  opacity: .9;
}
