.nxl-navigation .nxl-submenu {
  display: none !important;
}
.nxl-navigation .nxl-hasmenu.nxl-trigger > .nxl-submenu {
  display: block !important;
}

.nxl-navigation .m-header .logo.logo-lg {
  height: 30px !important;
  max-height: 30px;
  max-width: 140px;
}

@media (max-width: 1024px) {
  html {
    overflow-x: visible;
    overflow-y: visible;
  }
  body {
    overflow-x: clip;
    overflow-y: visible;
  }

  input, select, textarea {
    font-size: 16px;
  }

  .nxl-header .nxl-md-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1025;
    background: rgba(0, 0, 0, 0.2);
  }
  .nxl-header .nxl-md-overlay[hidden] {
    display: none !important;
  }
  html.nxl-navigation-open .nxl-header .hamburger .hamburger-inner,
  html.nxl-navigation-open .nxl-header .hamburger .hamburger-inner::before,
  html.nxl-navigation-open .nxl-header .hamburger .hamburger-inner::after {
    background-color: #0f6a6e;
  }

  .nxl-navigation {
    overflow: hidden;
    box-shadow: none;
  }
  .nxl-navigation:not(.mob-navigation-active) {
    visibility: hidden;
    pointer-events: none;
  }
  .nxl-navigation.mob-navigation-active {
    visibility: visible;
    pointer-events: auto;
    box-shadow: 0 10px 25px rgba(40, 60, 80, 0.18);
  }

  .page-header {
    min-height: 58px !important;
    flex-wrap: nowrap !important;
    gap: 8px;
  }
  .page-header-left {
    min-width: 0;
    flex: 1 1 auto;
    flex-wrap: nowrap !important;
  }
  .page-header-title h5 {
    white-space: nowrap;
  }
  .page-header .breadcrumb {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 52vw;
  }
  .page-header-right {
    flex: none;
  }
  .page-header-right .btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-grid;
    place-items: center;
  }

  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .card .table {
    min-width: 640px;
  }

  .form-grid,
  .settings,
  .quad,
  .command-body,
  .split,
  .ops3,
  .board,
  .report-center,
  .live-board,
  .lane-grid {
    grid-template-columns: 1fr !important;
  }

  .profile-layout {
    gap: 10px !important;
  }
  .profile-side .profile-avatar {
    width: 64px !important;
    height: 64px !important;
    font-size: 20px !important;
  }
  .profile-side .actions,
  .profile-side .profile-actions {
    grid-template-columns: 1fr 1fr !important;
  }
  .profile-main > .chips,
  .profile-main > .profile-tabs {
    padding: 0 4px !important;
  }
  .profile-pane { padding: 2px 10px 8px !important; }
  .profile-kv > div {
    grid-template-columns: minmax(90px, 120px) minmax(0, 1fr) !important;
    gap: 8px !important;
  }
  .identity,
  .card.identity {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 20px !important;
    gap: 8px 10px;
    margin-bottom: 16px !important;
  }
  .identity > .avatar,
  .card.identity > .avatar {
    width: 40px;
    height: 40px;
    font-size: 15px;
  }
  .identity > div:not(.actions),
  .card.identity > div:not(.actions) {
    flex: 1 1 0;
    min-width: 0;
  }
  .identity .plate,
  .card.identity .plate {
    font-size: 18px;
    margin: 0 0 2px;
  }
  .identity h2,
  .card.identity h2 {
    font-size: 15px;
  }
  .identity .actions,
  .card.identity .actions {
    width: 100%;
    flex: 1 1 100%;
    order: 5;
    margin: 0 !important;
  }

  .live-feed,
  .live-list {
    max-height: none;
  }
  .live-grid {
    grid-template-columns: 1fr !important;
  }
  .live-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .toolbar {
    gap: 8px;
  }
  .toolbar input,
  .toolbar select {
    flex: 1 1 100%;
    min-width: 0;
    width: 100%;
  }
  .toolbar .btn {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .nxl-header .header-wrapper {
    padding: 0 14px !important;
  }
  .nxl-container .nxl-content .page-header {
    padding: 0 14px !important;
  }
  .nxl-container .nxl-content .main-content {
    padding: 14px 14px 18px !important;
  }
  .card .card-body {
    padding: 14px !important;
  }
  .card .card-body.p-0 {
    padding: 0 !important;
  }
  .pass {
    grid-template-columns: 48px minmax(0, 1fr);
  }
  .pass em,
  .pass .pill {
    justify-self: start;
  }
  .lane-grid {
    grid-template-columns: 1fr;
  }
  .plate {
    font-size: 20px;
    overflow-wrap: anywhere;
  }
  /* Eski .gate/.gate-card kuralları kaldırıldı — giriş lm-login ile yazılıyor */
}

@media (max-width: 640px) {
  dialog.editor {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
  }
}
