/* Deploy 22: mobile-admin responsive pass + accessibility */

/* ── Skip link for keyboard navigation ─────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: #f0a500;
  color: #000;
  padding: 8px 16px;
  z-index: 1000;
  font-weight: 700;
  font-size: 14px;
  border-radius: 0 0 8px 0;
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
}

/* ── Focus-visible outlines for keyboard users ─────────────────────── */
:focus-visible {
  outline: 2px solid #f0a500;
  outline-offset: 2px;
}

/* ── Mobile breakpoints ────────────────────────────────────────────── */
@media (max-width: 768px) {
  body {
    padding: 16px !important;
  }
  h1 {
    font-size: 20px !important;
  }

  /* Nav: horizontal scroll instead of multi-row wrap */
  .nav {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a, .nav button {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 13px !important;
    padding: 6px 10px !important;
  }

  /* Summary cards: 2 columns on mobile */
  .summary-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .summary-card {
    padding: 14px !important;
  }
  .summary-val {
    font-size: 22px !important;
  }

  /* Tables: horizontal scroll */
  .orders-table, .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  table {
    min-width: 600px;
  }
  th, td {
    padding: 10px 12px !important;
    font-size: 13px !important;
  }

  /* Cards: reduce padding */
  .card {
    padding: 18px !important;
  }

  /* Filter rows: stack vertically */
  .top-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }
  .top-row select, .top-row input[type="date"] {
    width: 100% !important;
  }

  /* Modals: full-width on mobile */
  .modal-body, .modal-content {
    width: 95vw !important;
    max-width: 95vw !important;
    margin: 16px !important;
    padding: 20px !important;
  }

  /* Auth badge: shrink */
  .auth-badge {
    font-size: 11px !important;
  }
}

@media (max-width: 480px) {
  .summary-grid {
    grid-template-columns: 1fr !important;
  }
  .nav a, .nav button {
    font-size: 12px !important;
    padding: 5px 8px !important;
  }
}
