/* ЦИФРОСИТИ — МОБИЛЬНАЯ АДАПТАЦИЯ */

.bottom-nav { display: none; }

@media (max-width: 768px) {
  body { padding-bottom: 70px; }
  .app-layout { display: block !important; }

  #sidebar {
    position: fixed !important;
    top: 0; left: 0;
    height: 100vh;
    width: 280px !important;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0,0,0,0.3);
  }
  #sidebar.open { transform: translateX(0) !important; }

  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
  }
  .sidebar-overlay.active { display: block; }

  .mobile-menu-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    background: var(--red);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    position: fixed;
    top: 12px; left: 12px;
    z-index: 998;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  }

  .page-header {
    padding: 12px 12px 12px 60px !important;
    flex-wrap: wrap;
    gap: 8px;
  }
  .page-header h1 { font-size: 18px !important; }

  #main {
    margin-left: 0 !important;
    padding: 60px 12px 12px !important;
    width: 100% !important;
  }

  .stats-grid { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  .stat-card { padding: 12px !important; }
  .stat-card .value { font-size: 20px !important; }

  .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table { min-width: 500px; }
  .table th, .table td { padding: 8px 10px !important; font-size: 13px !important; }

  .btn { padding: 8px 14px !important; font-size: 13px !important; }

  .modal-dialog { margin: 10px !important; max-width: calc(100vw - 20px) !important; }
  .modal-body { padding: 16px !important; }

  .profile-grid { grid-template-columns: 1fr !important; }
  .nominations-grid { grid-template-columns: 1fr !important; }
  .form-control, .form-select { font-size: 16px !important; }
  .employee-card { padding: 12px !important; }
  .desktop-only { display: none !important; }

  .bottom-nav {
    display: flex !important;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 64px;
    background: white;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
    z-index: 997;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #9ca3af;
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    background: none;
    padding: 6px 0;
    transition: color 0.2s;
    -webkit-tap-highlight-color: transparent;
  }
  .bottom-nav-item.active { color: #C0392B; }
  .bottom-nav-item .bn-icon { font-size: 22px; line-height: 1; }
  .bottom-nav-item .bn-label { font-size: 10px; line-height: 1; }
}
