/* =========================================
   Auftragspilot Mobile Hard-Fix
   überschreibt nur den Hard Layout Fix aus index.html
   Kasse-Dateien werden nicht angefasst
   ========================================= */

@media screen and (max-width: 900px) {

  html,
  body {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    height: auto !important;
    min-height: 100% !important;

    overflow-x: hidden !important;
    overflow-y: auto !important;

    position: static !important;
  }

  .app {
    position: relative !important;
    inset: auto !important;

    display: block !important;

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    height: auto !important;
    min-height: 100vh !important;

    overflow: visible !important;
  }

  .sidebar {
    position: relative !important;

    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;

    display: block !important;

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    height: auto !important;
    max-height: none !important;

    overflow: visible !important;

    z-index: auto !important;

    border-right: 0 !important;
    border-bottom: 1px solid rgba(212,175,55,0.35) !important;

    padding: 14px !important;
  }

  .main {
    position: relative !important;

    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;

    display: block !important;

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    overflow: visible !important;

    margin: 0 !important;
    padding: 16px 14px 34px !important;

    transform: none !important;
    z-index: auto !important;
  }

  .rightbar {
    display: none !important;
  }

  .menu {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .menu-item {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;

    white-space: normal !important;
    text-align: left !important;
  }

  .topbar {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 14px !important;
  }

  .panel,
  #dashboardPanel {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .dashboard-hero,
  .card,
  .box,
  .tile,
  .panel-card,
  .quick-card,
  .stat-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .grid,
  .cards,
  .row,
  .dashboard-grid,
  .overview-grid,
  .quick-grid,
  .stats-grid,
  .summary-row,
  .result-grid,
  .actions-row,
  .form-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  h1 {
    font-size: 32px !important;
    line-height: 1.05 !important;
  }

  h2 {
    font-size: 24px !important;
    line-height: 1.15 !important;
  }

  img,
  svg {
    max-width: 100% !important;
    height: auto !important;
  }
}
