/* Mobil uyumluluk katmani. Sadece kucuk ekranlarda (<=991px) devreye girer,
   masaustu goruntuyu degistirmez. Var olan class/HTML yapisi korunur, sadece
   @media icinde override edilir. */

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 22px;
  color: #2C667C;
  padding: 4px 10px;
  margin-right: 10px;
  cursor: pointer;
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1040;
}

.mobile-menu-overlay.active {
  display: block;
}

@media (max-width: 991px) {
  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
  }

  nav.sub-menu {
    left: 0;
    top: 0;
    width: 82vw;
    max-width: 300px;
    z-index: 1050;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }

  nav.sub-menu.mobile-open {
    transform: translateX(0);
  }

  header.main-header {
    left: 0;
    right: 0;
    padding: 12px 16px;
  }

  header.main-header .header-left {
    display: flex;
    align-items: center;
  }

  header.main-header .header-right {
    float: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
  }

  header.main-header .breadcrumb {
    flex-wrap: wrap;
    font-size: 13px;
  }

  section.content {
    left: 0;
    right: 0;
    top: 130px;
    bottom: 0;
    margin: 0 10px;
  }

  .row > [class*="col-"] {
    margin-bottom: 10px;
  }

  form.form label {
    font-size: 13px;
  }

  .button-filled.btn,
  .btn {
    width: 100%;
    text-align: center;
    margin-bottom: 6px;
  }

  header.main-header .header-right a.button-filled.btn {
    width: auto;
  }

  table.table {
    font-size: 12px;
  }

  .modal-dialog,
  .swal2-popup {
    max-width: 95vw !important;
    width: 95vw !important;
  }
}
