/* GPSPOL R22 — tylko login i raporty. Nie rusza mapy ani Street View. */

@media (max-width: 900px) {

  /* =========================
     LOGIN — białe pola, czarny tekst
     ========================= */
  html.gpspol-r22-login input,
  html.gpspol-r22-login textarea,
  html.gpspol-r22-login select,
  html.gpspol-r22-login .MuiInputBase-input,
  html.gpspol-r22-login .MuiOutlinedInput-input,
  html.gpspol-r22-login .MuiSelect-select,
  body.gpspol-login input,
  body.gpspol-login-restore input {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    caret-color: #0f172a !important;
    opacity: 1 !important;
    text-shadow: none !important;
    background: transparent !important;
  }

  html.gpspol-r22-login .MuiInputBase-root,
  html.gpspol-r22-login .MuiOutlinedInput-root,
  body.gpspol-login .MuiInputBase-root,
  body.gpspol-login .MuiOutlinedInput-root,
  body.gpspol-login-restore .MuiInputBase-root,
  body.gpspol-login-restore .MuiOutlinedInput-root {
    background: #ffffff !important;
    color: #0f172a !important;
  }

  html.gpspol-r22-login label,
  html.gpspol-r22-login .MuiFormLabel-root,
  html.gpspol-r22-login .MuiInputLabel-root,
  html.gpspol-r22-login .MuiFormHelperText-root,
  body.gpspol-login label,
  body.gpspol-login .MuiFormLabel-root,
  body.gpspol-login .MuiInputLabel-root,
  body.gpspol-login-restore label,
  body.gpspol-login-restore .MuiFormLabel-root,
  body.gpspol-login-restore .MuiInputLabel-root {
    color: #475569 !important;
    -webkit-text-fill-color: #475569 !important;
    opacity: 1 !important;
  }

  html.gpspol-r22-login input::placeholder,
  body.gpspol-login input::placeholder,
  body.gpspol-login-restore input::placeholder {
    color: #64748b !important;
    -webkit-text-fill-color: #64748b !important;
    opacity: 1 !important;
  }

  /* =========================
     RAPORTY — formularze, tabela, POKAŻ
     ========================= */

  html.gpspol-r22-reports .MuiFormControl-root *,
  html.gpspol-r22-reports .MuiInputBase-root *,
  html.gpspol-r22-reports .MuiOutlinedInput-root *,
  html.gpspol-r22-reports .MuiTable-root *,
  html.gpspol-r22-reports .MuiTableHead-root *,
  html.gpspol-r22-reports .MuiTableBody-root *,
  html.gpspol-r22-reports .MuiTableCell-root,
  html.gpspol-r22-reports .MuiFormLabel-root,
  html.gpspol-r22-reports .MuiInputLabel-root {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    opacity: 1 !important;
    text-shadow: none !important;
  }

  html.gpspol-r22-reports input,
  html.gpspol-r22-reports textarea,
  html.gpspol-r22-reports select,
  html.gpspol-r22-reports .MuiInputBase-input,
  html.gpspol-r22-reports .MuiOutlinedInput-input,
  html.gpspol-r22-reports .MuiSelect-select {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    caret-color: #0f172a !important;
    opacity: 1 !important;
    text-shadow: none !important;
  }

  html.gpspol-r22-reports .MuiInputBase-root,
  html.gpspol-r22-reports .MuiOutlinedInput-root {
    background: #ffffff !important;
    color: #0f172a !important;
  }

  html.gpspol-r22-reports .MuiTableCell-head,
  html.gpspol-r22-reports th,
  html.gpspol-r22-reports thead * {
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
    font-weight: 900 !important;
  }

  html.gpspol-r22-reports .MuiButton-root {
    color: #166534 !important;
    -webkit-text-fill-color: #166534 !important;
    border-color: rgba(22, 163, 74, .45) !important;
    font-weight: 900 !important;
  }

  html.gpspol-r22-reports input::placeholder,
  html.gpspol-r22-reports textarea::placeholder {
    color: #64748b !important;
    -webkit-text-fill-color: #64748b !important;
    opacity: 1 !important;
  }

  /* Menu rozwijane okresu/urządzenia w raportach */
  html.gpspol-r22-reports [role="listbox"],
  html.gpspol-r22-reports [role="option"],
  html.gpspol-r22-reports .MuiMenuItem-root,
  html.gpspol-r22-reports .MuiPopover-paper,
  html.gpspol-r22-reports .MuiMenu-paper {
    background: #ffffff !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    opacity: 1 !important;
  }

  /* Zostaw górną czarną belkę raportów jasną */
  html.gpspol-r22-reports .MuiAppBar-root *,
  html.gpspol-r22-reports header *,
  html.gpspol-r22-reports [class*="MuiToolbar-root"] * {
    color: #f8fafc !important;
    -webkit-text-fill-color: #f8fafc !important;
  }
}
