/* 2026-10-03 v78 Mobil (Chrome) tam oturma katmani.
   Sadece dar ekranda (<=980px) devreye girer; masaustu gorunumu degismez.
   Mobil uygulama (GoksunServisApp) icinde yuklenmez. */
@media (max-width: 980px) {
  /* Ust bar sag aksiyonlar: sigmazsa kesilmesin, alt satira gecsin */
  html body .topbar:not(#mf-x) .topbar-right {
    justify-content: safe flex-end !important;
    flex-wrap: wrap !important;
    flex: 1 1 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    row-gap: 6px !important;
    overflow: visible !important;
  }
  html body .topbar:not(#mf-x) .topbar-right > * { flex-shrink: 0 !important; max-width: 100% !important; }
  /* Sirket adi zaten basligin altinda yaziyor; ust bardaki tekrar eden sirket etiketi gizlenir */
  html body .topbar:not(#mf-x) .topbar-right > span.chip:not(.topbar-user-chip) { display: none !important; }

  /* Mesajlar dugmesi: ekrandan tasmayan, alt menunun ustunde duran yuvarlak dugme */
  html body #portalMessages #pmLauncher:not(#gks-x):not(#gks-y):not(#mf-x) {
    left: 14px !important;
    right: auto !important;
    bottom: calc(96px + env(safe-area-inset-bottom)) !important;
    top: auto !important;
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 14px !important;
    border-radius: 999px !important;
    font-size: 0 !important;
    line-height: 0 !important;
    gap: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 10px 24px rgba(15, 42, 74, .28) !important;
    z-index: 60 !important;
  }
  html body #portalMessages #pmLauncher:not(#mf-x)::before {
    content: "";
    width: 18px;
    height: 18px;
    display: block;
    background: #fff;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  html body #portalMessages #pmLauncher:not(#mf-x) #pmBadge:not([hidden]) {
    position: absolute !important;
    top: -4px !important;
    right: -4px !important;
    min-width: 18px !important;
    height: 18px !important;
    padding: 0 5px !important;
    border-radius: 999px !important;
    font-size: 10.5px !important;
    line-height: 18px !important;
    background: #ef4444 !important;
    color: #fff !important;
    box-shadow: 0 0 0 2px #fff !important;
  }

  /* Gizli (ozel tasarimli) secim kutulari mobilde gorunur hale gelmesin */
  html body .mf-hidden-native:not(#mf-x) { opacity: 0 !important; }
  /* Tam genislige yayilan yerel onay kutulari normal boyuta doner */
  html body .mf-native-check:not(#mf-x) {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    min-height: 20px !important;
    flex: 0 0 20px !important;
    margin: 0 8px 0 0 !important;
    padding: 0 !important;
    vertical-align: middle !important;
    accent-color: #1d4ed8;
  }
  html body .mf-check-label:not(#mf-x) {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0 !important;
    width: auto !important;
    min-height: 40px;
  }
  /* Koyu zemin uzerinde okunmayan dugme yazilari */
  html body .mf-on-dark:not(#mf-x) { color: #fff !important; -webkit-text-fill-color: #fff !important; }
  html body .mf-on-light:not(#mf-x) { color: #16386e !important; -webkit-text-fill-color: #16386e !important; }

  /* Medya ve uzun icerik ekrandan tasmasin */
  html body .wrap img:not(#mf-x), html body .wrap video:not(#mf-x) { max-width: 100%; height: auto; }
  html body .wrap pre:not(#mf-x) { max-width: 100%; overflow-x: auto; white-space: pre-wrap; word-break: break-word; }
  html body .wrap iframe:not(#mf-x) { max-width: 100%; }
}

/* Tablolar (<=980px): mobile-fit.js .mf-tidy ekler. Basliklar gorunur, hucre ici tekrar eden etiketler gizlenir. */
@media (max-width: 980px) {
  html body table.mf-tidy:not(#mf-x) > thead { display: table-header-group !important; }
  html body table.mf-tidy:not(#mf-x) > thead > tr { display: table-row !important; }
  html body table.mf-tidy:not(#mf-x) > tbody { display: table-row-group !important; }
  html body table.mf-tidy:not(#mf-x) > tfoot { display: table-footer-group !important; }
  html body table.mf-tidy:not(#mf-x) > tbody > tr, html body table.mf-tidy:not(#mf-x) > tfoot > tr { display: table-row !important; }
  html body table.mf-tidy:not(#mf-x) > thead th { display: table-cell !important; position: static; font-size: 11px !important; letter-spacing: .04em; text-transform: uppercase; color: #64748b !important; background: #f8fafc !important; padding: 10px 12px !important; white-space: nowrap !important; border-bottom: 1px solid rgba(15, 42, 74, .08) !important; }
  html body table.mf-tidy:not(#mf-x) > tbody > tr > td::before,
  html body table.mf-tidy:not(#mf-x) > tbody > tr > th::before,
  html body table.mf-tidy:not(#mf-x) > tfoot > tr > td::before { display: none !important; content: none !important; }
  html body table.mf-tidy:not(#mf-x) > tbody > tr > td { padding: 10px 12px !important; vertical-align: middle !important; border-bottom: 1px solid rgba(15, 42, 74, .06) !important; font-size: 13px !important; line-height: 1.4 !important; }
  html body table.mf-tidy.mf-fit:not(#mf-x) > tbody > tr > td { overflow-wrap: anywhere !important; }
  /* Kaydirilan tablolarda ilk sutun sabit kalir: hangi satirda oldugunuz kaybolmaz */
  html body table.mf-tidy.mf-sticky:not(#mf-x) > thead > tr > th:first-child,
  html body table.mf-tidy.mf-sticky:not(#mf-x) > tbody > tr > td:first-child { position: sticky !important; left: 0 !important; z-index: 2 !important; background: #fff !important; box-shadow: 1px 0 0 rgba(15, 42, 74, .08) !important; }
  html body table.mf-tidy.mf-sticky:not(#mf-x) > thead > tr > th:first-child { background: #f8fafc !important; z-index: 3 !important; }
}

/* Duz metin hata / bilgi sayfalari (mf_bare_page) */
.mf-bare { margin: 0; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; box-sizing: border-box; background: linear-gradient(180deg, #f3f6fb, #eaf0f7); font-family: "Poppins", "Segoe UI", system-ui, -apple-system, Arial, sans-serif; color: #0b1b33; }
.mf-bare-card { width: 100%; max-width: 460px; background: #fff; border: 1px solid rgba(15, 42, 74, .08); border-radius: 20px; box-shadow: 0 18px 40px rgba(15, 42, 74, .10); padding: 26px 22px 22px; text-align: center; }
.mf-bare-ico { width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 16px; display: grid; place-items: center; background: #eff6ff; color: #1d4ed8; }
.mf-bare-ico.err { background: #fef2f2; color: #dc2626; }
.mf-bare-msg { font-size: 15px; line-height: 1.55; font-weight: 500; overflow-wrap: anywhere; }
.mf-bare-actions { display: flex; gap: 8px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.mf-bare-actions a { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 18px; border-radius: 12px; font-size: 14px; font-weight: 500; text-decoration: none; border: 1px solid rgba(15, 42, 74, .12); color: #16386e; background: #fff; }
.mf-bare-actions a.pri { background: linear-gradient(135deg, #0c1d38, #1d4ed8); color: #fff; border-color: transparent; }
