/* AURIX Admin Panel — siyah / altın kurumsal */

:root {
  --ap-bg: #0c0c0c;
  --ap-surface: #141414;
  --ap-surface-2: #1a1a1a;
  --ap-border: rgba(212, 175, 55, 0.18);
  --ap-gold: #d4af37;
  --ap-gold-dim: rgba(212, 175, 55, 0.12);
  --ap-text: #f2f2f2;
  --ap-muted: #9a9a9a;
  --ap-ok: #3d9a6a;
  --ap-warn: #c9a227;
  --ap-bad: #c45c5c;
  --ap-sidebar: 240px;
}

.ap-shell {
  display: grid;
  grid-template-columns: var(--ap-sidebar) 1fr;
  min-height: calc(100vh - 64px);
  background:
    radial-gradient(ellipse 80% 50% at 0% 0%, rgba(212, 175, 55, 0.06), transparent 55%),
    var(--ap-bg);
  color: var(--ap-text);
}

.ap-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow-y: auto;
  background: var(--ap-surface);
  border-right: 1px solid var(--ap-border);
  padding: 1.25rem 0.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 20;
}

.ap-sidebar__marka {
  font-family: Georgia, 'Times New Roman', serif;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  color: var(--ap-gold);
  padding: 0.5rem 0.75rem 1rem;
  border-bottom: 1px solid var(--ap-border);
  margin-bottom: 0.5rem;
}

.ap-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}

.ap-nav__item {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ap-muted);
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.ap-nav__item:hover {
  color: var(--ap-text);
  background: var(--ap-gold-dim);
}

.ap-nav__item--aktif {
  color: var(--ap-gold);
  background: var(--ap-gold-dim);
  font-weight: 600;
}

.ap-nav__ayrac {
  height: 1px;
  background: var(--ap-border);
  margin: 0.75rem 0.5rem;
}

.ap-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ap-ust {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--ap-border);
  background: rgba(20, 20, 20, 0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.ap-ust__baslik {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.ap-menu-toggle {
  display: none;
  appearance: none;
  border: 1px solid var(--ap-border);
  background: var(--ap-surface-2);
  color: var(--ap-gold);
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  cursor: pointer;
}

.ap-icerik {
  padding: 1.25rem 1.5rem 2.5rem;
}

.ap-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.ap-kpi {
  background: var(--ap-surface);
  border: 1px solid var(--ap-border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ap-kpi__etiket {
  font-size: 0.75rem;
  color: var(--ap-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ap-kpi__deger {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ap-gold);
  font-variant-numeric: tabular-nums;
}

.ap-paneller {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ap-panel {
  background: var(--ap-surface);
  border: 1px solid var(--ap-border);
  border-radius: 10px;
  padding: 1rem 1.1rem 1.15rem;
}

.ap-panel__baslik {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  color: var(--ap-text);
  font-weight: 600;
}

.ap-tablo-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ap-tablo {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.ap-tablo th,
.ap-tablo td {
  padding: 0.65rem 0.55rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

.ap-tablo th {
  color: var(--ap-muted);
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.ap-badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--ap-muted);
}

.ap-badge--ok {
  color: var(--ap-ok);
  border-color: rgba(61, 154, 106, 0.35);
  background: rgba(61, 154, 106, 0.1);
}

.ap-badge--warn {
  color: var(--ap-warn);
  border-color: rgba(201, 162, 39, 0.35);
  background: rgba(201, 162, 39, 0.1);
}

.ap-badge--bad {
  color: var(--ap-bad);
  border-color: rgba(196, 92, 92, 0.35);
  background: rgba(196, 92, 92, 0.1);
}

.ap-badge--muted {
  color: var(--ap-muted);
}

.ap-bos,
.ap-hata,
.ap-yukleniyor {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--ap-muted);
}

.ap-hata {
  color: #e8a0a0;
}

.ap-spinner {
  display: inline-block;
  width: 22px;
  height: 22px;
  border: 2px solid var(--ap-border);
  border-top-color: var(--ap-gold);
  border-radius: 50%;
  animation: ap-spin 0.7s linear infinite;
  margin-bottom: 0.5rem;
}

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

.ap-sekmeler {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.ap-sekme {
  appearance: none;
  border: 1px solid var(--ap-border);
  background: transparent;
  color: var(--ap-muted);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  cursor: pointer;
}

.ap-sekme--aktif {
  color: #111;
  background: var(--ap-gold);
  border-color: var(--ap-gold);
  font-weight: 600;
}

.ap-kart-liste {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.ap-firma-kart {
  background: var(--ap-surface);
  border: 1px solid var(--ap-border);
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ap-firma-kart__ust {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.ap-firma-kart__logo {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--ap-border);
  background: #000;
}

.ap-firma-kart__logo--bos {
  background: var(--ap-gold-dim);
}

.ap-firma-kart__ad {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.ap-firma-kart__aciklama {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ap-muted);
  line-height: 1.45;
}

.ap-firma-kart__aksiyon {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}

.ap-dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 0.75rem;
  margin: 0;
  font-size: 0.8rem;
}

.ap-dl dt {
  color: var(--ap-muted);
  font-size: 0.7rem;
  margin: 0;
}

.ap-dl dd {
  margin: 0.1rem 0 0;
}

.ap-uyari {
  margin: 0;
  font-size: 0.82rem;
  color: #e8b4b4;
  padding: 0.5rem 0.65rem;
  background: rgba(196, 92, 92, 0.12);
  border-radius: 6px;
}

.ap-filtreler {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.ap-filtreler .form-input {
  max-width: 200px;
  min-width: 140px;
}

.ap-islemler {
  white-space: nowrap;
}

.ap-mini-logo {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 4px;
  vertical-align: middle;
  margin-right: 0.35rem;
}

.ap-satir-mobil {
  display: none;
}

.ap-mobil-kart {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.5rem 0;
}

.ap-muted {
  color: var(--ap-muted);
  font-size: 0.8rem;
}

.ap-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
}

.ap-modal {
  width: min(420px, 100%);
  background: var(--ap-surface);
  border: 1px solid var(--ap-border);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

.ap-modal__baslik {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.ap-modal__metin {
  margin: 0 0 1rem;
  line-height: 1.5;
  color: var(--ap-text);
}

.ap-modal__aksiyon {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}

.ap-modal .form-label {
  display: block;
  margin: 0.65rem 0 0.3rem;
  font-size: 0.8rem;
  color: var(--ap-muted);
}

.ap-modal .form-input {
  width: 100%;
}

/* Admin sayfası eski demo stillerini bastır */
.sayfa[data-sayfa="admin"].sayfa--aktif {
  background: var(--ap-bg);
}

.sayfa[data-sayfa="admin"] .bolum--admin {
  padding: 0;
  max-width: none;
}

.sayfa[data-sayfa="admin"] .kapsayici {
  max-width: none;
  padding: 0;
  width: 100%;
}

@media (max-width: 1100px) {
  .ap-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .ap-shell {
    grid-template-columns: 1fr;
  }

  .ap-menu-toggle {
    display: inline-flex;
  }

  .ap-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(280px, 86vw);
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    box-shadow: 8px 0 30px rgba(0, 0, 0, 0.45);
  }

  html.ap-menu-acik .ap-sidebar {
    transform: translateX(0);
  }

  html.ap-menu-acik::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 15;
  }

  .ap-satir-masa {
    display: none;
  }

  .ap-satir-mobil {
    display: table-row;
  }

  .ap-tablo--firmalar thead {
    display: none;
  }

  .ap-kart-liste {
    grid-template-columns: 1fr;
  }

  .ap-kpi-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ap-dl {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .ap-kpi-grid {
    grid-template-columns: 1fr;
  }

  .ap-icerik {
    padding: 1rem;
  }
}

/* ---- Genel Bakış: harita / finans / analitik ---- */
.ap-genel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ap-genel-ikili {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 1.25rem;
  align-items: start;
}

.ap-hizli__grup {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ap-hizli__btn {
  appearance: none;
  border: 1px solid var(--ap-border);
  background: var(--ap-surface-2);
  color: var(--ap-text);
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.ap-hizli__btn:hover {
  border-color: rgba(212, 175, 55, 0.45);
  color: var(--ap-gold);
  background: var(--ap-gold-dim);
}

.ap-map-alt-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.ap-panel--compact {
  padding: 0.85rem 1rem;
  background: var(--ap-surface-2);
  border: 1px solid var(--ap-border);
  border-radius: 8px;
}

.ap-panel--compact .ap-panel__baslik {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.ap-rank {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ap-rank__item {
  margin: 0;
}

.ap-rank__btn {
  appearance: none;
  width: 100%;
  display: grid;
  grid-template-columns: 1.5rem 1fr auto;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.02);
  color: var(--ap-text);
  padding: 0.4rem 0.55rem;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.ap-rank__btn:hover {
  border-color: var(--ap-border);
  background: var(--ap-gold-dim);
}

.ap-rank__no {
  color: var(--ap-gold);
  font-weight: 600;
  font-size: 0.8rem;
}

.ap-rank__adet {
  color: var(--ap-muted);
  font-size: 0.78rem;
}

.ap-bolge {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.5rem;
}

.ap-bolge__satir {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ap-bolge__ust {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
}

.ap-bolge__ad {
  color: var(--ap-text);
}

.ap-bolge__sayi {
  color: var(--ap-muted);
  white-space: nowrap;
}

.ap-bolge__bar {
  height: 0.35rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.ap-bolge__fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.55), var(--ap-gold));
  border-radius: inherit;
  min-width: 2px;
}

.ap-saglik-ozet__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.55rem;
}

.ap-saglik-ozet__kart {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.55rem 0.65rem;
  background: var(--ap-surface-2);
  border: 1px solid var(--ap-border);
  border-radius: 6px;
  font-size: 0.78rem;
}

.ap-saglik-ozet__ad {
  color: var(--ap-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ap-saglik-ozet__detay {
  color: var(--ap-muted);
  font-size: 0.72rem;
}

.ap-aktivite-panel .ap-tablo--compact td,
.ap-aktivite-panel .ap-tablo--compact th {
  font-size: 0.78rem;
  padding: 0.4rem 0.5rem;
}

.ap-kpi__trend {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin-top: 0.35rem;
  font-size: 0.68rem;
  line-height: 1.3;
}

.ap-kpi__trend--up {
  color: var(--ap-ok);
}

.ap-kpi__trend--down {
  color: var(--ap-bad);
}

.ap-kpi__trend--flat {
  color: var(--ap-muted);
}

.ap-filtreler--tek {
  margin-bottom: 0.75rem;
}

.ap-filtreler--tek .form-input {
  max-width: 220px;
}

.ap-ust-profil {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.ap-ust-profil__durum {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--ap-ok);
  box-shadow: 0 0 0 2px rgba(61, 154, 106, 0.25);
}

.ap-ust-profil__metin {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.05rem;
  line-height: 1.2;
}

.ap-ust-profil__metin strong {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ap-text);
}

.ap-ust-profil__metin em {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--ap-gold);
}

.ap-panel__baslik-satir {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  margin-bottom: 0.85rem;
}

.ap-panel__baslik-satir .ap-panel__baslik {
  margin: 0;
  margin-right: auto;
}

.ap-seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 0.2rem;
  border: 1px solid var(--ap-border);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.15);
}

.ap-seg__btn {
  border: 0;
  background: transparent;
  color: var(--ap-muted);
  font-size: 0.75rem;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  cursor: pointer;
}

.ap-seg__btn--aktif {
  background: rgba(201, 162, 39, 0.18);
  color: var(--ap-gold);
  font-weight: 600;
}

.ap-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 240px);
  gap: 0.85rem;
  align-items: stretch;
}

.ap-map-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(201, 162, 39, 0.22);
  border-radius: 10px;
  background: #121417;
  padding: 0.35rem 0.45rem 0.2rem;
  isolation: isolate;
  z-index: 1;
}

.ap-map__svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 1000 / 441;
}

.ap-map__svg #turkiye {
  transform-origin: center;
}

.ap-map__il {
  cursor: pointer;
}

.ap-map__il path {
  transition: fill 0.16s ease, filter 0.16s ease, stroke 0.16s ease, stroke-width 0.16s ease;
}

.ap-map__il:hover path {
  filter: brightness(1.28);
  stroke: #e8c75a !important;
  stroke-width: 1.15 !important;
}

.ap-map__il--aktif path {
  filter: brightness(1.18);
  stroke: #f0d078 !important;
  stroke-width: 1.25 !important;
}

.ap-map-loading {
  min-height: 220px;
  display: grid;
  place-items: center;
  color: var(--ap-muted);
  font-size: 0.85rem;
}

.ap-map-tooltip {
  position: absolute;
  z-index: 3;
  min-width: 150px;
  max-width: 190px;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(201, 162, 39, 0.4);
  background: rgba(12, 14, 16, 0.96);
  color: var(--ap-text);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  font-size: 0.75rem;
}

.ap-map-tooltip[hidden] {
  display: none !important;
}

.ap-map-tooltip strong {
  color: var(--ap-gold);
  font-size: 0.86rem;
  margin-bottom: 0.1rem;
}

.ap-map-tooltip em {
  margin-top: 0.15rem;
  font-style: normal;
  color: var(--ap-muted);
  font-size: 0.7rem;
}

.ap-map-detay-card {
  border: 1px solid rgba(201, 162, 39, 0.28);
  border-radius: 10px;
  background: #16191e;
  padding: 0.85rem 0.9rem;
  min-height: 100%;
}

.ap-map-detay-card--bos {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 160px;
}

.ap-map-detay-card__ust {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.ap-map-detay-card__ust h4 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--ap-gold);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.ap-map-detay-card__aralik {
  margin: 0 0 0.65rem;
  color: var(--ap-muted);
  font-size: 0.78rem;
}

.ap-map-detay-card__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 0.75rem;
  margin: 0;
}

.ap-map-detay-card__cell {
  margin: 0;
  padding: 0.4rem 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.18);
}

.ap-map-detay-card__cell dt {
  margin: 0 0 0.2rem;
  color: var(--ap-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.ap-map-detay-card__cell dd {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  color: var(--ap-text);
  word-break: break-word;
}

.ap-map-detay-card__val--gold {
  color: var(--ap-gold) !important;
}

.ap-map-ozet {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.ap-map-eslesmeyen {
  margin-top: 0.85rem;
  font-size: 0.85rem;
}

.ap-map-eslesmeyen h4 {
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
}

.ap-map-eslesmeyen ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ap-muted);
}

.ap-kpi__deger--sm {
  font-size: 1rem;
}

.ap-kpi-grid--finans {
  margin-bottom: 0.75rem;
}

.ap-finans-bos {
  margin: 0;
  color: var(--ap-muted);
  font-size: 0.875rem;
}

.ap-chart-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
}

.ap-chart {
  border: 1px solid var(--ap-border);
  border-radius: 8px;
  padding: 0.75rem;
  min-height: 120px;
}

.ap-chart h4 {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  color: var(--ap-muted);
  font-weight: 600;
}

.ap-chart:first-child {
  grid-column: 1 / -1;
}

.ap-chart__svg {
  width: 100%;
  height: auto;
  display: block;
}

.ap-chart__label {
  fill: var(--ap-muted);
  font-size: 11px;
}

.ap-chart__val {
  fill: var(--ap-text);
  font-size: 11px;
}

.ap-chart__bar {
  fill: rgba(201, 162, 39, 0.75);
}

.ap-chart__line {
  stroke-width: 2;
}

.ap-chart__line--a { stroke: #c9a227; }
.ap-chart__line--b { stroke: #5b9fd4; }
.ap-chart__line--c { stroke: #3d9a6a; }

.ap-chart__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.45rem;
  font-size: 0.75rem;
  color: var(--ap-muted);
}

.ap-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  margin-right: 0.3rem;
  vertical-align: middle;
}

.ap-dot--a { background: #c9a227; }
.ap-dot--b { background: #5b9fd4; }
.ap-dot--c { background: #3d9a6a; }

.ap-alt-baslik {
  margin: 0.25rem 0 0;
  font-size: 1rem;
  color: var(--ap-text);
}

.ap-paneller--alt {
  margin-top: 0.25rem;
}

.ap-muted {
  color: var(--ap-muted);
  font-size: 0.8rem;
}

@media (max-width: 1100px) {
  .ap-map-layout {
    grid-template-columns: 1fr;
  }

  .ap-genel-ikili,
  .ap-map-alt-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .ap-map-ozet,
  .ap-chart-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ap-map-wrap {
    padding: 0.25rem;
  }
}

@media (max-width: 520px) {
  .ap-map-ozet,
  .ap-chart-grid,
  .ap-kpi-grid--finans {
    grid-template-columns: 1fr;
  }

  .ap-panel__baslik-satir {
    flex-direction: column;
    align-items: stretch;
  }

  .ap-seg {
    width: 100%;
  }

  .ap-seg__btn {
    flex: 1 1 auto;
    text-align: center;
  }

  .ap-map-wrap {
    overflow: hidden;
  }

  .ap-map__svg {
    width: 100%;
    height: auto;
  }
}
