/* v77: Ülke Dashboard üst bar standardı - tüm panel ekranları için tek kaynak */
:root{
  --topbar-action-red:#c1121f;
  --topbar-action-green:#14804a;
  --topbar-action-line:#e6ebf1;
}

/* Ülke Genel sayfasındaki 34 px, ince çerçeveli aksiyon dili.
   Tüm seçiciler .topbar ile sınırlandı: içerikteki kart/aksiyon stilleri etkilenmez. */
.topbar .quick-btn,
.topbar .quick-action-button,
.topbar .global-quick-action{
  height:34px !important;
  min-height:34px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:7px !important;
  padding:0 11px !important;
  margin:0 !important;
  border:1px solid var(--topbar-action-red) !important;
  border-radius:9px !important;
  background:#fff !important;
  color:var(--topbar-action-red) !important;
  box-shadow:none !important;
  font-family:inherit !important;
  font-size:11px !important;
  font-weight:600 !important;
  line-height:1 !important;
  text-decoration:none !important;
  white-space:nowrap !important;
}
.topbar .quick-btn:hover,
.topbar .quick-btn:focus-visible,
.topbar .quick-btn[aria-expanded="true"],
.topbar .quick-action-button:hover,
.topbar .quick-action-button:focus-visible,
.topbar .quick-action-button[aria-expanded="true"],
.topbar .global-quick-action:hover,
.topbar .global-quick-action:focus-visible{
  border-color:var(--topbar-action-red) !important;
  background:#fff5f5 !important;
  color:var(--topbar-action-red) !important;
}

/* Hızlı İşlemler yanındaki eski caret hiçbir sayfada çizilmez. */
.topbar .quick-btn .button-caret,
.topbar .quick-action-button .button-caret,
.topbar .global-quick-action .button-caret,
.topbar .quick-btn [data-caret],
.topbar .quick-action-button [data-caret],
.topbar .global-quick-action [data-caret]{
  display:none !important;
}

/* Hesaplama, Ülke Genel'deki gibi yeşil sınır / beyaz zemin olmalı. */
.topbar .calc-btn,
.topbar .global-calc-btn{
  height:34px !important;
  min-height:34px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:6px !important;
  padding:0 11px !important;
  margin:0 !important;
  border:1px solid var(--topbar-action-green) !important;
  border-radius:9px !important;
  background:#fff !important;
  color:var(--topbar-action-green) !important;
  box-shadow:none !important;
  font-family:inherit !important;
  font-size:11px !important;
  font-weight:600 !important;
  line-height:1 !important;
  text-decoration:none !important;
  white-space:nowrap !important;
}
.topbar .calc-btn:hover,
.topbar .calc-btn:focus-visible,
.topbar .global-calc-btn:hover,
.topbar .global-calc-btn:focus-visible{
  border-color:var(--topbar-action-green) !important;
  background:#edf9f1 !important;
  color:var(--topbar-action-green) !important;
}

/* Açılır menüler üst bar aksiyonlarıyla aynı ölçü dilini takip eder. */
.topbar .quick-actions{position:relative !important;}
.topbar .quick-action-dropdown,
.topbar .quick-menu{
  border-color:var(--topbar-action-line) !important;
  border-radius:10px !important;
}
.topbar .quick-action-dropdown button:hover,
.topbar .quick-action-dropdown a:hover,
.topbar .quick-menu button:hover,
.topbar .quick-menu a:hover{
  background:#fff5f5 !important;
  color:var(--topbar-action-red) !important;
}

/* Sol menüde pembe hover kullanımı yok, tüm panelde yeşil vurgu. */
.sidebar .nav-item:hover,
.sidebar .side-nav > a:hover,
.sidebar .nav-group > .active-link:hover,
.sidebar .sidebar-nav-toggle:hover{
  background:rgba(20,128,74,.08) !important;
  color:var(--topbar-action-green) !important;
}
.sidebar .explore-subnav a:hover,
.sidebar .subnav a:hover{
  background:rgba(20,128,74,.08) !important;
  color:var(--topbar-action-green) !important;
}
.sidebar .explore-subnav a:hover::before,
.sidebar .subnav a:hover::before{background:var(--topbar-action-green) !important;}
.sidebar-collapsed .nav-item:hover{
  background:#fff !important;
  color:var(--topbar-action-green) !important;
  box-shadow:inset 0 0 0 1px rgba(20,128,74,.20) !important;
}

.back-btn{
  min-height:34px;
  display:inline-flex;
  align-items:center;
  padding:0 11px;
  border:1px solid #d0d5dd;
  border-radius:9px;
  color:#475467;
  background:#fff;
  font-size:11px;
  font-weight:600;
  text-decoration:none;
}
.back-btn:hover{border-color:var(--topbar-action-green);color:var(--topbar-action-green);background:rgba(20,128,74,.06)}

@media (max-width:860px){
  .topbar .quick-btn,
  .topbar .quick-action-button,
  .topbar .global-quick-action,
  .topbar .calc-btn,
  .topbar .global-calc-btn{
    width:34px !important;
    min-width:34px !important;
    padding:0 !important;
    font-size:0 !important;
  }
  .topbar .quick-btn::first-letter,
  .topbar .quick-action-button::first-letter,
  .topbar .global-quick-action::first-letter,
  .topbar .calc-btn::first-letter,
  .topbar .global-calc-btn::first-letter{font-size:13px;}
  .topbar .calc-btn span,
  .topbar .global-calc-btn span{display:none !important;}
}


/* v78: Acente Ana Sayfa üst barı, Ülke Genel şablonuyla birebir aynı yapıya bağlandı. */
.main-area .topbar.country-topbar{
  height:64px !important;
  min-height:64px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:10px !important;
  padding:0 24px !important;
  border-bottom:1px solid #e6ebf1 !important;
  background:rgba(255,255,255,.96) !important;
}
.main-area .country-topbar .hamburger,
.main-area .country-topbar .bell{
  width:36px !important;
  height:36px !important;
  min-width:36px !important;
  display:inline-grid !important;
  place-items:center !important;
  padding:0 !important;
  border:1px solid #e6ebf1 !important;
  border-radius:10px !important;
  background:#fff !important;
  color:#344054 !important;
  box-shadow:none !important;
  font-size:16px !important;
  line-height:1 !important;
}
.main-area .country-topbar .quick-wrap{position:relative !important;display:inline-flex !important;align-items:center !important;}
.main-area .country-topbar .quick-menu{position:absolute !important;top:42px !important;left:0 !important;width:190px !important;display:none !important;z-index:50 !important;padding:6px !important;background:#fff !important;border:1px solid #e6ebf1 !important;border-radius:10px !important;box-shadow:0 14px 28px rgba(15,23,42,.12) !important;}
.main-area .country-topbar .quick-menu.is-open{display:grid !important;}
.main-area .country-topbar .quick-menu a,
.main-area .country-topbar .quick-menu button{display:block !important;width:100% !important;text-align:left !important;border:0 !important;background:#fff !important;color:#344054 !important;border-radius:7px !important;padding:8px 9px !important;font-size:11px !important;font-weight:500 !important;}
.main-area .country-topbar .quick-menu a:hover,
.main-area .country-topbar .quick-menu button:hover{background:#fff5f5 !important;color:#c1121f !important;}
.main-area .country-topbar .top-spacer{flex:1 1 auto !important;}
.main-area .country-topbar .bell{position:relative !important;}
.main-area .country-topbar .bell sup{position:absolute !important;right:-5px !important;top:-6px !important;display:grid !important;place-items:center !important;min-width:15px !important;height:15px !important;border-radius:50% !important;background:#c1121f !important;color:#fff !important;font-size:9px !important;line-height:1 !important;}
.main-area .country-topbar .user-chip{display:flex !important;align-items:center !important;gap:8px !important;padding:0 4px !important;min-height:0 !important;border:0 !important;border-radius:0 !important;background:transparent !important;color:#152033 !important;box-shadow:none !important;text-decoration:none !important;}
.main-area .country-topbar .user-chip>span{width:32px !important;height:32px !important;display:grid !important;place-items:center !important;border-radius:50% !important;background:#fff1f2 !important;color:#c1121f !important;}
.main-area .country-topbar .user-chip b{display:block !important;font-size:12px !important;font-weight:700 !important;line-height:1.15 !important;}
.main-area .country-topbar .user-chip small{display:block !important;margin-top:2px !important;font-size:10px !important;color:#667085 !important;line-height:1.15 !important;}
/* Ana Sayfa eski butonlarını bu üst barda göstermeyerek kırmızı tur düğmesi ve boş kutu kalıntısını yok eder. */
.main-area .country-topbar .primary-button,
.main-area .country-topbar .ghost-button,
.main-area .country-topbar .icon-button{display:none !important;}
@media(max-width:860px){.main-area .topbar.country-topbar{padding:0 12px !important;}.main-area .country-topbar .user-chip small{display:none !important;}}
