/**
 * Mobile — Адаптив для мобильных устройств
 */

@media (max-width: 768px) {
  .header-inner { height: 50px; }
  .logo span { display: none; }
  .nav-primary { display: none; }
  .nav-primary.mobile-open { display: flex; flex-direction: column; position: absolute; top: 50px; left: 0; right: 0; background: var(--bg2); padding: 12px; border-bottom: 1px solid var(--border); box-shadow: 0 10px 30px rgba(0,0,0,.1); z-index: 99; }
  .nav-secondary-inner { overflow-x: auto; scrollbar-width: none; }
  .mobile-menu-btn { display: flex; width: 36px; height: 36px; align-items: center; justify-content: center; border: none; background: var(--bg3); border-radius: 8px; font-size: 18px; cursor: pointer; }
  .mobile-quick-btns { display: flex !important; gap: 4px; margin-left: auto; }
  .mqb { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: none; background: var(--bg3); border-radius: 8px; font-size: 16px; cursor: pointer; transition: background .2s; }
  .mqb:active { background: var(--primary); }
  .user-info { display: none; }
  .main { padding: 12px; }
  .cards-grid { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; }

  /* Shift mobile */
  .shift-today-info { grid-template-columns: 1fr; }
  .shift-selects-row { grid-template-columns: 1fr; }
  .shift-form-card { padding: 16px !important; }

  /* Salary mobile */
  .salary-period-grid { grid-template-columns: 1fr; }
  .salary-emp-row { grid-template-columns: auto 1fr auto; gap: 8px; }
  .salary-emp-row .vydat-section { text-align: right; }
  .salary-grand-total { font-size: 14px; gap: 16px; }

  /* Orders: hide table, show cards on mobile */
  .order-table-wrap { display: none !important; }
  .order-cards-mobile { display: flex !important; }
  .order-search-input { max-width: 100%; }
  .od-field-row { grid-template-columns: 1fr; }

  /* Legacy repairs mobile */
  .repair-row { grid-template-columns: 60px 80px 1fr 80px; }
  .repair-row .defect, .repair-row .client-info { display: none; }
  .schedule-tables.side-by-side { grid-template-columns: 1fr; }
  .bonus-calc-table .input-xs { width: 50px; }
  .form-row { grid-template-columns: 1fr; }
  .bonus-requests-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 769px) { .mobile-menu-btn { display: none; } .mobile-quick-btns { display: none !important; } }
