:root {
  --bg: #edf2f7;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: #ffffff;
  --text: #162234;
  --muted: #5b687c;
  --accent: #123967;
  --accent-soft: #dce8f8;
  --line: rgba(18, 57, 103, 0.12);
  --gold: #dbb353;
  --shadow: 0 24px 60px rgba(18, 57, 103, 0.12);
  --card-surface:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(240, 246, 255, 0.92)),
    rgba(255, 255, 255, 0.94);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(219, 179, 83, 0.18), transparent 28%),
    linear-gradient(180deg, #f7fafc, var(--bg));
  color: var(--text);
}

.page-shell {
  position: relative;
  width: calc(100vw - 12px);
  max-width: none;
  margin: 6px auto 18px;
}

.page-shell.analiz-sidebar-open .analiz-sidebar-shell {
  transform: translateX(0);
}

.page-shell.analiz-sidebar-open .analiz-sidebar-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.analiz-sidebar-shell {
  position: fixed;
  top: 14px;
  left: 14px;
  bottom: 14px;
  width: min(320px, calc(100vw - 28px));
  padding: 22px;
  display: grid;
  align-content: start;
  gap: 16px;
  overflow-y: auto;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(252, 253, 255, 0.98), rgba(233, 241, 251, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 30px 70px rgba(18, 57, 103, 0.22);
  transform: translateX(calc(-100% - 22px));
  transition: transform 0.24s ease;
  z-index: 40;
}

.analiz-sidebar-backdrop {
  position: fixed;
  inset: 0;
  border: none;
  background: rgba(10, 25, 49, 0.34);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
  z-index: 30;
}

.analiz-sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(18, 57, 103, 0.1);
}

.analiz-sidebar-brand {
  display: grid;
  gap: 4px;
}

.analiz-sidebar-brand p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.analiz-sidebar-brand strong {
  color: var(--accent);
  font-size: 1.08rem;
}

.analiz-sidebar-nav {
  display: grid;
  gap: 14px;
}

.analiz-sidebar-group {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(18, 57, 103, 0.08);
}

.analiz-sidebar-heading {
  margin: 2px 2px 4px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.analiz-sidebar-link {
  display: block;
  padding: 13px 16px;
  border-radius: 18px;
  background: rgba(18, 57, 103, 0.05);
  border: 1px solid rgba(18, 57, 103, 0.08);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.analiz-sidebar-link:hover {
  transform: translateY(-1px);
  background: rgba(18, 57, 103, 0.1);
  border-color: rgba(18, 57, 103, 0.18);
}

.analiz-ghost-icon-btn,
.analiz-sidebar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.analiz-ghost-icon-btn {
  min-height: 42px;
  border-color: rgba(18, 57, 103, 0.14);
  background: rgba(18, 57, 103, 0.06);
  color: var(--accent);
}

.analiz-ghost-icon-btn:hover,
.analiz-sidebar-toggle:hover {
  transform: translateY(-1px);
}

.analiz-page-hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text);
  align-items: stretch;
}

.analiz-page-copy {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  padding: 30px;
  border-radius: 32px;
  background:
    linear-gradient(145deg, rgba(250, 253, 255, 0.96), rgba(230, 239, 251, 0.86));
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.analiz-page-brand {
  display: flex;
  align-items: center;
  align-self: start;
  justify-content: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(18, 57, 103, 0.98), rgba(10, 31, 58, 0.94));
  box-shadow: 0 16px 30px rgba(13, 26, 50, 0.14);
}

.analiz-page-logo {
  flex: 0 1 auto;
  width: min(280px, 100%);
  max-width: 100%;
  height: auto;
  display: block;
}

.analiz-eyebrow {
  margin: 4px 0 0;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
}

.analiz-page-copy h1 {
  margin: 0;
  font-size: clamp(2.2rem, 3vw, 3.4rem);
  line-height: 1.02;
}

.analiz-page-text {
  max-width: 920px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.96rem;
}

.analiz-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2px;
}

.analiz-primary-btn,
.analiz-ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.analiz-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  font-size: 0.9rem;
  line-height: 1;
}

.analiz-primary-btn {
  background: linear-gradient(135deg, rgba(18, 57, 103, 0.98), rgba(10, 31, 58, 0.94));
  color: #ffffff;
  border: 1px solid rgba(18, 57, 103, 0.9);
}

.analiz-ghost-btn {
  background: rgba(18, 57, 103, 0.06);
  color: var(--accent);
  border: 1px solid rgba(18, 57, 103, 0.14);
}

.analiz-primary-btn:hover,
.analiz-ghost-btn:hover {
  transform: translateY(-1px);
}

.analiz-page-summary {
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
  padding: 18px;
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(10, 31, 58, 0.98), rgba(20, 57, 103, 0.94)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow);
  color: #ffffff;
}

.analiz-summary-topline {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.analiz-hero-quick-actions {
  justify-content: flex-end;
  margin-top: 0;
  padding: 0;
  align-content: start;
}

.analiz-summary-brand {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 4px;
  padding: 18px 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.analiz-summary-kicker {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.analiz-summary-brand strong {
  font-size: 1.2rem;
  color: #ffffff;
}

.analiz-summary-brand small {
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.45;
}

.analiz-sidebar-toggle {
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  align-self: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.analiz-menu-icon {
  display: grid;
  gap: 4px;
}

.analiz-menu-icon span {
  display: block;
  width: 17px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.analiz-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.analiz-summary-card {
  padding: 18px 18px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  gap: 8px;
}

.analiz-summary-card span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  font-weight: 700;
}

.analiz-summary-card strong {
  font-size: 1.18rem;
  line-height: 1.3;
  color: #ffffff;
}

.analiz-summary-card small {
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.45;
}

.analiz-summary-card-accent {
  background:
    linear-gradient(135deg, rgba(247, 210, 109, 0.18), rgba(255, 255, 255, 0.14)),
    rgba(255, 255, 255, 0.12);
  border-color: rgba(247, 210, 109, 0.28);
}

.analiz-summary-card-accent strong {
  color: #f9d77b;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
  padding: 30px 32px;
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(10, 31, 58, 0.98), rgba(20, 57, 103, 0.94)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent);
  box-shadow: var(--shadow);
  color: white;
}

.hero-kicker,
.panel-kicker {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.72);
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero h1,
.panel h2 {
  margin: 0;
}

.hero h1 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
}

.hero-text {
  max-width: 980px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.65;
}

.hero-meta {
  display: grid;
  gap: 12px;
  align-content: start;
}

.hero-meta-card,
.kpi-card,
.panel,
.filter-panel {
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.hero-meta-card {
  padding: 18px 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.12);
}

.hero-meta-card span,
.kpi-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

.hero-meta-card span {
  color: rgba(255, 255, 255, 0.72);
}

.hero-meta-card strong,
.kpi-card strong {
  display: block;
  font-size: 1.15rem;
}

.filter-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 16px;
  padding: 20px 22px;
  position: relative;
  z-index: 12;
  overflow: visible;
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 250, 232, 0.98), rgba(247, 236, 183, 0.92)),
    rgba(255, 247, 214, 0.95);
  border-color: rgba(219, 179, 83, 0.28);
  box-shadow:
    0 18px 42px rgba(219, 179, 83, 0.12),
    var(--shadow);
}

.branch-hub-panel {
  margin-top: 10px;
  padding: 18px 22px 20px;
  border-radius: 28px;
  background: var(--card-surface);
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.branch-hub-panel .panel-head {
  align-items: center;
  margin-bottom: 12px;
}

.branch-hub-panel .panel-kicker {
  margin-bottom: 0;
}

.branch-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.branch-quick-card {
  display: grid;
  gap: 10px;
  padding: 16px 16px 14px;
  border-radius: 22px;
  border: 1px solid rgba(18, 57, 103, 0.1);
  background: rgba(255, 255, 255, 0.94);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.branch-quick-card:hover {
  transform: translateY(-1px);
  border-color: rgba(18, 57, 103, 0.2);
  box-shadow: 0 16px 28px rgba(18, 57, 103, 0.08);
}

.branch-quick-card.is-active {
  background:
    linear-gradient(135deg, rgba(255, 249, 226, 0.98), rgba(248, 236, 180, 0.9)),
    rgba(255, 255, 255, 0.96);
  border-color: rgba(219, 179, 83, 0.55);
  box-shadow:
    0 14px 26px rgba(219, 179, 83, 0.16),
    inset 0 0 0 1px rgba(219, 179, 83, 0.12);
}

.branch-quick-card:focus-visible {
  outline: 3px solid rgba(219, 179, 83, 0.28);
  outline-offset: 2px;
}

.branch-quick-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent);
}

.branch-quick-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
}

.branch-quick-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.filter-panel label {
  display: grid;
  gap: 8px;
  position: relative;
  overflow: visible;
}

.filter-panel span {
  font-size: 0.84rem;
  font-weight: 700;
  color: #795714;
}

.filter-panel > label > input[type="search"],
.filter-panel > label > input[type="date"],
.filter-panel select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(219, 179, 83, 0.24);
  background: var(--surface-strong);
  color: var(--text);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.filter-panel > label > input[type="search"]:focus,
.filter-panel > label > input[type="date"]:focus,
.filter-panel select:focus {
  outline: none;
  border-color: rgba(219, 179, 83, 0.58);
  box-shadow:
    0 0 0 3px rgba(219, 179, 83, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.filter-dropdown {
  position: relative;
  z-index: 1;
}

.filter-dropdown summary {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 42px 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(219, 179, 83, 0.24);
  background: var(--surface-strong);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  list-style: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.filter-dropdown summary::-webkit-details-marker {
  display: none;
}

.filter-dropdown summary::after {
  content: "▾";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(18, 57, 103, 0.7);
  font-size: 0.9rem;
}

.filter-dropdown[open] summary {
  border-color: rgba(219, 179, 83, 0.58);
  box-shadow:
    0 0 0 3px rgba(219, 179, 83, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.filter-dropdown[open] {
  z-index: 40;
}

.filter-dropdown-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 50;
  display: grid;
  gap: 6px;
  max-height: 260px;
  overflow-y: auto;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(18, 57, 103, 0.1);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 34px rgba(18, 57, 103, 0.12);
}

.branch-hub-panel,
.kpi-grid,
.content-grid,
.detail-grid {
  position: relative;
  z-index: 1;
}

.filter-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  column-gap: 10px;
  row-gap: 2px;
  min-height: 24px;
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
}

.filter-option:hover {
  background: rgba(220, 232, 248, 0.55);
}

.filter-option input {
  width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 0;
  accent-color: var(--accent);
  align-self: center;
}

.filter-option span {
  line-height: 1.35;
}

.filter-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding: 0 4px;
}

.date-chip {
  border: 1px solid rgba(18, 57, 103, 0.14);
  background: rgba(255, 255, 255, 0.88);
  color: var(--accent);
  border-radius: 999px;
  padding: 9px 14px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.date-chip:hover {
  background: rgba(220, 232, 248, 0.92);
  border-color: rgba(18, 57, 103, 0.22);
  transform: translateY(-1px);
}

.date-chip.is-active {
  background: linear-gradient(135deg, #f2c74d, #dbb353);
  border-color: rgba(219, 179, 83, 0.92);
  color: #102846;
  box-shadow: 0 12px 26px rgba(219, 179, 83, 0.24);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.kpi-card {
  padding: 18px 20px;
  border-radius: 24px;
  background: var(--card-surface);
}

.kpi-card strong {
  font-size: 1.55rem;
  color: var(--accent);
}

.kpi-card small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.45;
}

.accent-card {
  background:
    linear-gradient(135deg, rgba(18, 57, 103, 0.98), rgba(10, 31, 58, 0.94)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent);
}

.accent-card span,
.accent-card small,
.accent-card strong {
  color: white;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.panel {
  padding: 24px;
  border-radius: 28px;
  background: var(--card-surface);
  min-height: 0;
}

.detail-grid {
  display: grid;
  margin-top: 18px;
}

.charts-panel {
  display: grid;
  gap: 18px;
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.chart-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(18, 57, 103, 0.08);
  box-shadow: 0 14px 24px rgba(18, 57, 103, 0.06);
  min-height: 320px;
}

.chart-card-wide {
  grid-column: 1 / -1;
}

.chart-card-head {
  display: grid;
  gap: 4px;
}

.chart-card-kicker {
  margin: 0;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
}

.chart-card-head h3 {
  margin: 0;
  color: var(--accent);
  font-size: 1.04rem;
}

.chart-card-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.trend-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.trend-stat {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(18, 57, 103, 0.05);
  border: 1px solid rgba(18, 57, 103, 0.08);
}

.trend-stat-label {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.trend-stat-value {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.mini-chart-list {
  display: grid;
  gap: 10px;
  align-content: start;
}

.mini-chart-empty {
  padding: 16px;
  border-radius: 16px;
  background: rgba(18, 57, 103, 0.05);
  color: var(--muted);
  text-align: center;
}

.mini-chart-row {
  display: grid;
  gap: 8px;
}

.mini-chart-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mini-chart-label {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
}

.mini-chart-value {
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

.mini-chart-track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(18, 57, 103, 0.08);
}

.mini-chart-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(18, 57, 103, 0.94), rgba(219, 179, 83, 0.88));
}

.trend-bars {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(80px, 1fr);
  gap: 12px;
  align-items: end;
  min-height: 250px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 4px 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(18, 57, 103, 0.22) rgba(18, 57, 103, 0.08);
}

.trend-bars::-webkit-scrollbar {
  height: 10px;
}

.trend-bars::-webkit-scrollbar-track {
  background: rgba(18, 57, 103, 0.08);
  border-radius: 999px;
}

.trend-bars::-webkit-scrollbar-thumb {
  background: rgba(18, 57, 103, 0.24);
  border-radius: 999px;
}

.trend-bar-item {
  display: grid;
  gap: 10px;
  align-items: end;
  justify-items: stretch;
  min-width: 0;
  min-height: 100%;
  padding: 4px 4px 0;
  border-radius: 16px;
  transition: background-color 0.2s ease;
}

.trend-bar-item.is-current {
  background: rgba(18, 57, 103, 0.06);
}

.trend-bar-col {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 190px;
  min-height: 190px;
  padding: 0 2px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(18, 57, 103, 0.03), rgba(18, 57, 103, 0.07));
}

.trend-bar-fill {
  width: 100%;
  height: var(--bar-height, 12px);
  min-height: 8px;
  border-radius: 12px 12px 6px 6px;
  background: linear-gradient(180deg, rgba(18, 57, 103, 0.92), rgba(86, 134, 199, 0.88));
  box-shadow: 0 10px 18px rgba(18, 57, 103, 0.14);
  transform-origin: bottom center;
  transform: scaleY(0);
  animation: trendBarGrow 720ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--bar-delay, 0ms);
}

.trend-bar-item.is-current .trend-bar-fill {
  background: linear-gradient(180deg, rgba(219, 179, 83, 0.96), rgba(18, 57, 103, 0.88));
  box-shadow: 0 10px 20px rgba(170, 124, 15, 0.22);
}

.trend-bar-fill.is-count {
  background: linear-gradient(180deg, rgba(219, 179, 83, 0.96), rgba(170, 124, 15, 0.88));
  box-shadow: 0 10px 18px rgba(170, 124, 15, 0.18);
}

@keyframes trendBarGrow {
  from {
    transform: scaleY(0);
    opacity: 0.28;
  }

  to {
    transform: scaleY(1);
    opacity: 1;
  }
}

.trend-bar-label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
}

.trend-bar-value {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
}

.trend-bar-item.is-dim .trend-bar-label,
.trend-bar-item.is-dim .trend-bar-value {
  opacity: 0.42;
}

.detail-panel {
  width: 100%;
}

.panel-head {
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.panel-kicker {
  color: var(--gold);
}

.panel-head-note {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(18, 57, 103, 0.08);
  border: 1px solid rgba(18, 57, 103, 0.12);
  color: var(--accent);
  font-size: 0.83rem;
  font-weight: 700;
  white-space: nowrap;
}

.panel h2 {
  font-size: 1.28rem;
  color: var(--accent);
}

.detail-drilldown-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(18, 57, 103, 0.06);
  border: 1px solid rgba(18, 57, 103, 0.1);
}

.detail-drilldown-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-drilldown-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(18, 57, 103, 0.12);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
}

.detail-drilldown-clear {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(18, 57, 103, 0.16);
  background: rgba(255, 255, 255, 0.94);
  color: var(--accent);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.detail-drilldown-clear:hover {
  background: rgba(220, 232, 248, 0.88);
}

.ranking-list {
  display: grid;
  gap: 12px;
  max-height: 540px;
  overflow-y: auto;
  padding-right: 6px;
}

.ranking-item {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(18, 57, 103, 0.08);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.ranking-item:hover {
  transform: translateY(-1px);
  border-color: rgba(18, 57, 103, 0.18);
  box-shadow: 0 16px 28px rgba(18, 57, 103, 0.08);
}

.ranking-item.is-active {
  background:
    linear-gradient(135deg, rgba(255, 249, 226, 0.98), rgba(248, 236, 180, 0.9)),
    rgba(255, 255, 255, 0.96);
  border-color: rgba(219, 179, 83, 0.55);
  box-shadow:
    0 14px 26px rgba(219, 179, 83, 0.16),
    inset 0 0 0 1px rgba(219, 179, 83, 0.12);
}

.ranking-item:focus-visible {
  outline: 3px solid rgba(219, 179, 83, 0.28);
  outline-offset: 2px;
}

.ranking-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ranking-title {
  font-weight: 700;
  color: var(--text);
}

.ranking-value {
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.ranking-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.84rem;
}

.table-shell {
  display: block;
  max-height: 1800px;
  overflow-x: auto;
  overflow-y: auto;
  position: relative;
  border-radius: 22px;
  border: 1px solid rgba(18, 57, 103, 0.08);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(242, 247, 253, 0.94)),
    rgba(255, 255, 255, 0.95);
}

.detail-mini-section {
  display: grid;
  align-content: start;
  gap: 10px;
  margin-top: 22px;
  padding-top: 0;
  min-height: 0;
}

.detail-mini-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.detail-mini-head--compact {
  justify-content: flex-end;
  align-items: center;
  min-height: 0;
}

.detail-mini-head--compact .panel-head-note {
  margin-left: auto;
}

.detail-mini-head h3 {
  margin: 6px 0 0;
  font-size: 1rem;
  color: var(--accent);
}

.detail-bank-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-auto-rows: 92px;
  gap: 10px;
}

.detail-bank-card {
  display: grid;
  grid-template-rows: minmax(40px, 1fr) auto;
  align-content: stretch;
  gap: 6px;
  height: 92px;
  min-height: 92px;
  padding: 11px 11px 9px;
  border-radius: 18px;
  border: 1px solid rgba(18, 57, 103, 0.08);
  background: rgba(255, 255, 255, 0.94);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.detail-bank-card.is-bayi-kasa {
  background:
    linear-gradient(135deg, rgba(255, 248, 214, 0.98), rgba(247, 233, 160, 0.9)),
    rgba(255, 255, 255, 0.96);
  border-color: rgba(219, 179, 83, 0.42);
}

.detail-bank-card.is-nakit-kasa {
  background:
    linear-gradient(135deg, rgba(228, 247, 232, 0.98), rgba(183, 228, 190, 0.9)),
    rgba(255, 255, 255, 0.96);
  border-color: rgba(76, 153, 92, 0.42);
}

.detail-bank-card.is-yocar {
  background:
    linear-gradient(135deg, rgba(255, 238, 220, 0.98), rgba(245, 192, 124, 0.9)),
    rgba(255, 255, 255, 0.96);
  border-color: rgba(215, 138, 47, 0.46);
}

.detail-bank-card.is-pos {
  background:
    linear-gradient(135deg, rgba(223, 234, 251, 0.98), rgba(129, 161, 220, 0.92)),
    rgba(255, 255, 255, 0.96);
  border-color: rgba(49, 87, 150, 0.48);
}

.detail-bank-card:hover {
  transform: translateY(-1px);
  border-color: rgba(18, 57, 103, 0.18);
  box-shadow: 0 14px 24px rgba(18, 57, 103, 0.08);
}

.detail-bank-card.is-active {
  background:
    linear-gradient(135deg, rgba(255, 249, 226, 0.98), rgba(248, 236, 180, 0.9)),
    rgba(255, 255, 255, 0.96);
  border-color: rgba(219, 179, 83, 0.55);
  box-shadow:
    0 14px 24px rgba(219, 179, 83, 0.16),
    inset 0 0 0 1px rgba(219, 179, 83, 0.12);
}

.detail-bank-card:focus-visible {
  outline: 3px solid rgba(219, 179, 83, 0.28);
  outline-offset: 2px;
}

.detail-bank-card-title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 2.35em;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.25;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.detail-bank-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 500;
}

.detail-bank-card-meta span:first-child {
  font-size: 0.94rem;
  font-weight: 500;
}

.detail-bank-card-meta span:last-child {
  font-size: 1.8rem;
  color: var(--accent);
  font-weight: 600;
  line-height: 1.05;
}

@media (max-width: 1280px) {
  .detail-bank-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .detail-bank-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .detail-bank-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.data-table {
  width: 100%;
  min-width: 960px;
  border-collapse: separate;
  border-spacing: 0;
}

.data-table th,
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(18, 57, 103, 0.08);
  text-align: left;
}

.data-table th.numeric-col,
.data-table td.numeric-cell {
  text-align: right;
}

.data-table th.center-col,
.data-table td.center-cell {
  text-align: center;
}

.data-table th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: linear-gradient(180deg, #eef4fb 0%, #e7eef8 100%);
  color: var(--accent);
  font-size: 0.84rem;
  letter-spacing: 0.01em;
  text-transform: none;
  box-shadow:
    inset 0 -1px 0 rgba(18, 57, 103, 0.12),
    0 8px 16px rgba(18, 57, 103, 0.06);
}

.sortable-col {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.sortable-col:hover {
  background: rgba(18, 57, 103, 0.14);
}

.sortable-col[data-sort-direction="asc"],
.sortable-col[data-sort-direction="desc"] {
  background: rgba(18, 57, 103, 0.16);
}

.sort-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  margin-left: 6px;
  color: rgba(18, 57, 103, 0.72);
  font-size: 0.82rem;
}

.data-table tbody tr:nth-child(even) {
  background: rgba(244, 247, 251, 0.82);
}

.empty-state {
  padding: 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
  text-align: center;
}

.ranking-list::-webkit-scrollbar,
.table-shell::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.ranking-list::-webkit-scrollbar-track,
.table-shell::-webkit-scrollbar-track {
  background: rgba(18, 57, 103, 0.06);
  border-radius: 999px;
}

.ranking-list::-webkit-scrollbar-thumb,
.table-shell::-webkit-scrollbar-thumb {
  background: rgba(18, 57, 103, 0.26);
  border-radius: 999px;
}

.ranking-list::-webkit-scrollbar-thumb:hover,
.table-shell::-webkit-scrollbar-thumb:hover {
  background: rgba(18, 57, 103, 0.42);
}

@media (max-width: 1200px) {
  .analiz-page-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .analiz-summary-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .trend-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chart-grid {
    grid-template-columns: 1fr;
  }

  .chart-card-wide {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: calc(100vw - 12px);
    margin: 6px auto 18px;
  }

  .analiz-page-hero,
  .panel,
  .filter-panel {
    padding: 18px;
    border-radius: 22px;
  }

  .analiz-page-actions {
    flex-direction: column;
  }

  .analiz-hero-quick-actions {
    justify-content: flex-start;
  }

  .analiz-primary-btn,
  .analiz-ghost-btn {
    width: 100%;
  }

  .analiz-page-brand {
    gap: 10px;
    padding: 12px 14px;
  }

  .analiz-sidebar-toggle {
    width: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 8px;
    align-self: center;
  }

  .filter-panel,
  .kpi-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .trend-stats {
    grid-template-columns: 1fr;
  }

  .filter-quick-actions {
    padding: 0;
  }

  .hero,
  .panel,
  .filter-panel {
    padding: 18px;
    border-radius: 22px;
  }

  .ranking-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}
