@media (max-width: 720px), (pointer: coarse) and (max-width: 1000px), (max-height: 500px) and (max-width: 1000px) {
  html, body { overflow-x: hidden; }
  body { padding: 12px 10px 40px !important; }
  header { margin-bottom: 14px !important; }
  header .divider { display: none; }
  .card { padding: 12px !important; border-radius: 12px !important; }
  .controls { flex-direction: column; align-items: stretch !important; gap: 10px !important; }
  .controls .field { width: 100%; min-width: 0 !important; }
  .controls .field > label:empty,
  .controls .field > label:only-child { display: none; }
  .controls select, .controls input[type=date],
  #empSelect, #dateInput { width: 100% !important; height: 44px; font-size: 16px; }
  .controls button, .controls .btn { width: 100%; height: 44px; }
  .quick-btns, .quick { display: grid !important; grid-template-columns: repeat(2, 1fr); gap: 8px; width: 100%; }
  .quick-btns button, .quick button { width: 100%; }
  .checks { flex-wrap: wrap; height: auto !important; gap: 10px 16px !important; }
  .field:has(> .checks) > label { display: block; }
  #map { height: 62vh !important; min-height: 320px; }
  .layout { grid-template-columns: 1fr !important; }
  .eng-list { max-height: none !important; }
  .legend, .map-legend { gap: 8px 14px !important; }
  table.m-cards thead { display: none; }
  table.m-cards, table.m-cards tbody { display: block; width: 100%; }
  table.m-cards tbody tr { display: block; border: 1px solid var(--line); border-radius: 10px; margin: 0 0 10px; padding: 8px 10px; }
  table.m-cards tbody td { display: block; overflow: hidden; padding: 3px 0 !important; border: none !important; text-align: right !important; }
  table.m-cards tbody td::before { content: attr(data-label); float: left; color: var(--ink-soft); font-size: 11px; text-align: left; max-width: 45%; padding: 2px 12px 0 0; }
  table.m-cards tbody td[data-label=""]::before { content: none; }
  table.m-cards tbody td > div { text-align: right; }
  table.m-cards tbody tr.skip { opacity: .55; }
  table.m-cards .near div, table.m-cards .late, table.m-cards .order-line { white-space: normal !important; }
  table.m-cards td.name { font-size: 15px; }
  table.m-cards td.name::before { content: none; }
  table.m-cards .bar { display: none; }
  table.m-cards .cat { min-width: 0 !important; margin-right: 6px; }
  .modal-bg { padding: 0 !important; }
  .modal { max-width: 100vw !important; min-height: 100vh; border-radius: 0 !important; padding: 14px 12px !important; }
  .tiles { grid-template-columns: 1fr !important; }
}
