/*! FUL SERVIS FINAL FIX v53
   Topbar Bil/Şifre, Patron Özeti boss-grid, Trust-stats ortalama,
   PWA bottom-nav, install-toast, hizmet detay layout */

:root{
  --primary:#1B2A4E;--primary-mid:#2A3F6B;--primary-dark:#0F1A33;
  --beige:#C9A876;--beige-soft:#DFC79E;--beige-bg:#FAF6EE;--beige-200:#E5D4B0;--beige-darker:#6E532A;--beige-dark:#8E6E40;
  --text:#1F2A44;--text-strong:#0F1A33;--muted:#6B7588;
  --border:#E2E6EC;--divider:#EDEFF3;
  --bg:#FAFBFC;--surface:#FFFFFF;--surface-2:#F5F7FA;
  --danger:#B91C1C;
}

/* =============================================================
   ADMİN — TOPBAR Bil/Şifre çakışması düzeltmesi
   notification-bell HTML'de "🔔 Bildirim<b>3</b>" şeklinde,
   metin var. width:38px yapmak yerine içeriğine sığsın
   ============================================================= */
.topbar .top-btn.notification-bell{
  width:auto!important;
  padding:0 14px!important;
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  height:38px!important;
  font-size:13px!important;
  white-space:nowrap!important;
}
.topbar .top-btn.notification-bell b{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:18px!important;
  height:18px!important;
  padding:0 5px!important;
  border-radius:999px!important;
  background:var(--danger)!important;
  color:#fff!important;
  font-size:10.5px!important;
  font-weight:700!important;
  margin-left:6px!important;
  border:0!important;
  position:static!important;
}

/* Top-actions arası boşluk artırıldı */
.topbar .top-actions{
  gap:8px!important;
  flex-wrap:wrap!important;
}

/* Tüm topbar butonları aynı yükseklik + ortalı */
.topbar .top-btn,
.topbar .user-pill,
.topbar a.btn{
  height:38px!important;
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  padding:0 14px!important;
  font-size:13px!important;
  white-space:nowrap!important;
  border-radius:8px!important;
  line-height:1!important;
  flex-shrink:0!important;
}
.topbar .user-pill{
  background:var(--primary)!important;
  color:#fff!important;
  border-color:var(--primary)!important;
  font-weight:600!important;
  gap:8px!important;
}
.topbar .user-pill b{color:#fff!important;font-weight:700!important}
.topbar .user-pill small{color:var(--beige-soft)!important;font-weight:500!important;font-size:11px!important;letter-spacing:.5px!important}

/* "Açık Servisler" neon → kurumsal */
.topbar .top-btn.neon{
  background:var(--beige)!important;
  color:#fff!important;
  border-color:var(--beige)!important;
}
.topbar .top-btn.neon:hover{
  background:var(--beige-dark)!important;
  border-color:var(--beige-dark)!important;
}

/* =============================================================
   PATRON ÖZETİ — boss-grid overlap fix
   HTML: <div><span>Bu Ay Servis Cirosu</span><b>105.434,25</b></div>
   ============================================================= */
.boss-grid,
.dashboard-boss-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:10px!important;
  margin-top:4px!important;
}
.boss-grid > div,
.dashboard-boss-grid > div{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  gap:4px!important;
  padding:14px!important;
  background:var(--surface-2)!important;
  border:1px solid var(--border)!important;
  border-radius:10px!important;
  min-width:0!important;
}
.boss-grid > div > span,
.dashboard-boss-grid > div > span{
  display:block!important;
  color:var(--muted)!important;
  font-size:11.5px!important;
  font-weight:600!important;
  letter-spacing:.3px!important;
  text-transform:uppercase!important;
  margin:0!important;
  line-height:1.2!important;
  white-space:normal!important;
  word-break:break-word!important;
}
.boss-grid > div > b,
.dashboard-boss-grid > div > b{
  display:block!important;
  color:var(--text-strong)!important;
  font-size:18px!important;
  font-weight:700!important;
  font-variant-numeric:tabular-nums!important;
  margin:0!important;
  line-height:1.2!important;
  word-break:break-word!important;
}

@media(max-width:900px){
  .boss-grid,.dashboard-boss-grid{grid-template-columns:repeat(2,1fr)!important}
}
@media(max-width:560px){
  .boss-grid,.dashboard-boss-grid{grid-template-columns:1fr!important}
}

/* =============================================================
   CARD-HEAD sağ butonları (İş Emirleri / Raporlar / Servis Geçmişi)
   Kurumsal palet
   ============================================================= */
.card-head .btn.small,
.card-head a.btn.small{
  height:32px!important;
  padding:0 14px!important;
  font-size:12.5px!important;
  font-weight:600!important;
  border-radius:7px!important;
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  white-space:nowrap!important;
}
.card-head .btn.small.green{background:var(--beige)!important;color:#fff!important;border-color:var(--beige)!important}
.card-head .btn.small.green:hover{background:var(--beige-dark)!important;border-color:var(--beige-dark)!important}
.card-head .btn.small.cyan{background:var(--primary)!important;color:#fff!important;border-color:var(--primary)!important}
.card-head .btn.small.cyan:hover{background:var(--primary-mid)!important;border-color:var(--primary-mid)!important}
.card-head .btn.small.purple{background:var(--primary-mid)!important;color:#fff!important;border-color:var(--primary-mid)!important}
.card-head .btn.small.purple:hover{background:var(--primary)!important;border-color:var(--primary)!important}
.card-head .btn.small.orange{background:var(--beige-dark)!important;color:#fff!important;border-color:var(--beige-dark)!important}

/* Servis akış listesindeki "Aç" butonları */
.flow-row .btn.small,
.flow-row a.btn,
.compact-list .btn.small{
  background:var(--beige)!important;
  color:#fff!important;
  border-color:var(--beige)!important;
  height:30px!important;
  padding:0 14px!important;
  font-size:12px!important;
  font-weight:600!important;
  border-radius:7px!important;
}
.flow-row .btn.small:hover,
.flow-row a.btn:hover{
  background:var(--beige-dark)!important;
  border-color:var(--beige-dark)!important;
}
.flow-row .btn.gray.small{
  background:var(--surface-2)!important;
  color:var(--text)!important;
  border:1px solid var(--border)!important;
}

/* Tablodaki "Aç" butonu (servis kayıtları) */
.table .btn.small,
.table .btn,
.table a.btn{
  height:28px!important;
  padding:0 14px!important;
  font-size:12px!important;
  font-weight:600!important;
  background:var(--beige)!important;
  color:#fff!important;
  border:1px solid var(--beige)!important;
  border-radius:6px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.table .btn:hover,
.table a.btn:hover{
  background:var(--beige-dark)!important;
  border-color:var(--beige-dark)!important;
}

/* =============================================================
   FRONT — TRUST STATS — Sol metin ve sağ kartlar dengesi
   4 kartı dikey değil yatay 2x2 ortalı
   ============================================================= */
html body .trust-grid,
html body .seo-trust{
  display:grid!important;
  grid-template-columns:1.1fr 1fr!important;
  gap:40px!important;
  align-items:center!important;
}
html body .trust-stats{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:14px!important;
  align-self:center!important;
}
html body .trust-stats > div{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  text-align:center!important;
  justify-content:center!important;
  gap:10px!important;
  padding:24px 18px!important;
  background:#fff!important;
  border:1px solid var(--border)!important;
  border-radius:14px!important;
  box-shadow:0 4px 12px rgba(15,26,51,.06)!important;
  min-height:170px!important;
  transition:transform .2s ease,box-shadow .2s ease!important;
}
html body .trust-stats > div:hover{
  transform:translateY(-3px)!important;
  box-shadow:0 12px 28px rgba(15,26,51,.10)!important;
}
html body .trust-stats > div > b{
  width:50px!important;height:50px!important;
  border-radius:50%!important;
  background:var(--beige-bg)!important;
  color:var(--beige-darker)!important;
  display:grid!important;place-items:center!important;
  font-size:20px!important;font-weight:700!important;
  border:1px solid var(--beige-200)!important;
  flex-shrink:0!important;
  margin:0 auto!important;
}
html body .trust-stats > div > span{
  font-weight:700!important;color:var(--text-strong)!important;
  font-size:15.5px!important;line-height:1.3!important;
  display:block!important;margin:0!important;
}
html body .trust-stats > div > small{
  color:var(--muted)!important;font-size:13px!important;
  line-height:1.5!important;font-weight:400!important;
  display:block!important;margin:0!important;
}

@media(max-width:1180px){
  html body .trust-grid,html body .seo-trust{grid-template-columns:1fr!important;gap:24px!important}
  html body .trust-stats{grid-template-columns:repeat(4,1fr)!important;gap:12px!important}
}
@media(max-width:900px){
  html body .trust-stats{grid-template-columns:1fr 1fr!important}
}
@media(max-width:480px){
  html body .trust-stats{grid-template-columns:1fr!important}
  html body .trust-stats > div{min-height:auto!important;padding:18px!important}
}

/* =============================================================
   FRONT — PWA bottom nav (mobil alt menü) buton aralık
   ============================================================= */
html body .pwa-bottom-nav{
  display:none!important;
  position:fixed!important;
  bottom:0!important;left:0!important;right:0!important;
  background:#fff!important;
  border-top:1px solid var(--border)!important;
  padding:8px 6px calc(8px + env(safe-area-inset-bottom,0px))!important;
  z-index:60!important;
  justify-content:space-around!important;
  align-items:flex-end!important;
  gap:2px!important;
  box-shadow:0 -4px 12px rgba(15,26,51,.06)!important;
}
html body .pwa-bottom-nav a{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:3px!important;
  padding:8px 4px!important;
  color:var(--muted)!important;
  font-size:10.5px!important;
  text-decoration:none!important;
  font-weight:500!important;
  flex:1 1 0!important;
  min-width:0!important;
  border-radius:8px!important;
}
html body .pwa-bottom-nav a > span{
  font-size:18px!important;
  line-height:1!important;
  display:block!important;
}
html body .pwa-bottom-nav a > b{
  font-size:10px!important;
  font-weight:500!important;
  letter-spacing:.2px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  max-width:100%!important;
  display:block!important;
}
html body .pwa-bottom-nav a.active{color:var(--primary)!important;background:var(--primary-50,#EEF1F7)!important}
html body .pwa-bottom-nav a.active > b{font-weight:700!important}
html body .pwa-bottom-nav a.main-action{
  background:var(--beige)!important;
  color:#fff!important;
  width:54px!important;height:54px!important;
  border-radius:50%!important;
  margin-top:-26px!important;
  margin-left:4px!important;margin-right:4px!important;
  box-shadow:0 8px 18px rgba(201,168,118,.40)!important;
  flex:0 0 54px!important;
  padding:0!important;
}
html body .pwa-bottom-nav a.main-action > span{font-size:22px!important}
html body .pwa-bottom-nav a.main-action > b{display:none!important}

@media(max-width:640px){
  html body .pwa-bottom-nav{display:flex!important}
  /* Body'ye alt boşluk koy ki pwa-nav içeriği örtmesin */
  html body{padding-bottom:80px!important}
}

/* =============================================================
   FRONT — PWA install toast tasarım
   "Ful Servis'i telefona ekle"
   ============================================================= */
html body .pwa-install-toast{
  display:none;
  position:fixed!important;
  bottom:96px!important;left:50%!important;
  transform:translateX(-50%)!important;
  background:var(--primary)!important;
  color:#fff!important;
  padding:14px 18px!important;
  border-radius:14px!important;
  box-shadow:0 12px 28px rgba(15,26,51,.30)!important;
  z-index:90!important;
  align-items:center!important;
  gap:14px!important;
  max-width:calc(100vw - 24px)!important;
  font-family:"Helvetica Neue",Helvetica,Arial,sans-serif!important;
  border:1px solid rgba(201,168,118,.30)!important;
}
html body .pwa-install-toast.show{display:flex!important}
html body .pwa-install-toast > div{
  display:flex!important;
  flex-direction:column!important;
  gap:2px!important;
  flex:1!important;
  min-width:0!important;
}
html body .pwa-install-toast > div b{
  display:block!important;
  font-weight:700!important;
  font-size:14px!important;
  color:#fff!important;
}
html body .pwa-install-toast > div span{
  display:block!important;
  color:#C9D2E5!important;
  font-size:12.5px!important;
  font-weight:400!important;
  margin-top:2px!important;
}
html body .pwa-install-toast button{
  border:0!important;
  background:var(--beige)!important;
  color:#fff!important;
  padding:9px 14px!important;
  border-radius:8px!important;
  font-weight:600!important;
  font-size:13px!important;
  cursor:pointer!important;
  font-family:inherit!important;
  white-space:nowrap!important;
  flex-shrink:0!important;
  height:36px!important;
}
html body .pwa-install-toast button:hover{background:var(--beige-dark)!important}
html body .pwa-install-toast button[data-install-close]{
  background:transparent!important;
  color:rgba(255,255,255,.6)!important;
  padding:8px!important;
  width:32px!important;height:32px!important;
  display:grid!important;place-items:center!important;
  font-size:18px!important;
}

/* =============================================================
   FRONT — Hizmet detay sayfası layout düzeltmesi
   service-detail-hero: sol metin + sağ görsel kart simetri
   ============================================================= */
html body .service-detail-hero{
  display:grid!important;
  grid-template-columns:1.2fr 1fr!important;
  gap:40px!important;
  align-items:start!important;
  background:#fff!important;
  border:1px solid var(--border)!important;
  border-radius:18px!important;
  padding:40px!important;
  margin-bottom:24px!important;
  box-shadow:0 4px 14px rgba(15,26,51,.04)!important;
}
html body .service-detail-hero > .service-detail-copy,
html body .service-detail-hero > div:first-child{
  display:flex!important;
  flex-direction:column!important;
  gap:14px!important;
  min-width:0!important;
}
html body .service-detail-hero h1{
  color:var(--text-strong)!important;
  font-size:clamp(24px,3vw,32px)!important;
  margin:0!important;
  font-weight:700!important;
  line-height:1.2!important;
  letter-spacing:-.5px!important;
}
html body .service-detail-hero p{
  color:var(--muted)!important;
  font-size:15.5px!important;
  line-height:1.7!important;
  margin:0!important;
  font-weight:400!important;
}
html body .service-detail-hero .hero-buttons{
  display:flex!important;
  gap:10px!important;
  flex-wrap:wrap!important;
  margin-top:8px!important;
}
html body .service-detail-hero .hero-checks{
  display:flex!important;
  gap:8px!important;
  flex-wrap:wrap!important;
  margin-top:8px!important;
}

/* Sağ taraf görsel kartı */
html body .service-detail-media,
html body .service-detail-hero > div:last-child{
  display:flex!important;
  flex-direction:column!important;
  gap:0!important;
  position:relative!important;
}
html body .service-detail-media img,
html body .service-detail-hero img{
  width:100%!important;
  height:auto!important;
  max-height:380px!important;
  object-fit:cover!important;
  border-radius:14px!important;
  border:1px solid var(--border)!important;
  box-shadow:0 8px 24px rgba(15,26,51,.10)!important;
  display:block!important;
}
html body .service-floating-card{
  position:relative!important;
  right:auto!important;bottom:auto!important;
  margin-top:-32px!important;
  align-self:flex-start!important;
  margin-left:24px!important;
  background:#fff!important;
  border:1px solid var(--border)!important;
  border-radius:12px!important;
  padding:14px 18px!important;
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  box-shadow:0 8px 20px rgba(15,26,51,.10)!important;
  max-width:calc(100% - 48px)!important;
  z-index:2!important;
}
html body .service-floating-card b{
  color:var(--text-strong)!important;
  font-weight:700!important;
  display:block!important;
  font-size:14px!important;
}
html body .service-floating-card small{
  color:var(--muted)!important;
  font-size:12.5px!important;
  display:block!important;
  margin-top:1px!important;
  font-weight:400!important;
}

@media(max-width:900px){
  html body .service-detail-hero{
    grid-template-columns:1fr!important;
    gap:24px!important;
    padding:24px!important;
  }
  html body .service-detail-media,
  html body .service-detail-hero > div:last-child{order:-1!important}
}

/* =============================================================
   ÜST KISIM Hizmet sayfası "FUL SERVİS HİZMETLERİ" topbar
   Genişlik tüm ekran, içerik ortalı
   ============================================================= */
html body .public-page,
html body .seo-landing,
html body .seo-service-detail{
  padding:40px 0!important;
}
html body .service-related{
  background:#fff!important;
  border:1px solid var(--border)!important;
  border-radius:14px!important;
  padding:28px!important;
  margin-top:24px!important;
}
html body .service-related h2{
  color:var(--text-strong)!important;
  font-size:20px!important;
  margin:0 0 14px!important;
  font-weight:700!important;
}

/* =============================================================
   ADMİN — sayfa bottom padding (alt kısım dosya-başlığı altta gözükmesin)
   ============================================================= */
.main{
  padding-bottom:40px!important;
}

/* =============================================================
   Mobil topbar daha kompakt
   ============================================================= */
@media(max-width:900px){
  .topbar .top-actions{gap:6px!important}
  .topbar .top-btn,
  .topbar .user-pill{
    height:34px!important;
    padding:0 10px!important;
    font-size:12px!important;
  }
  .topbar .top-btn.notification-bell b{font-size:9.5px!important}
}
