@font-face { font-family: Inter; src: url('/Inter-Medium.ttf') format('truetype'); font-display: swap; }
* { box-sizing: border-box; }
html, body, #root { min-height: 100%; margin: 0; }
body { font-family: Inter, ui-sans-serif, system-ui, sans-serif; background: #071422; }
button, input, textarea, select { font: inherit; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(112, 145, 165, .35); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }

@media (max-width: 599.95px) {
  body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
  #root .MuiTypography-h4 { font-size: 1.5rem; line-height: 1.25; }
  #root .MuiTypography-h3 { font-size: 2rem; }
  #root .MuiCardContent-root { padding: 12px; }
  #root .MuiCardContent-root:last-child { padding-bottom: 12px; }
  .dashboard-stats .MuiAvatar-root { width: 28px; height: 28px; }
  .dashboard-stats .MuiAvatar-root svg { width: 18px; height: 18px; }
  .MuiDialog-root .MuiCardContent-root { padding: 12px; }
  #root .MuiTypography-root, .MuiDialog-root .MuiTypography-root { overflow-wrap: anywhere; }
  .MuiButton-root, .MuiIconButton-root, .MuiCheckbox-root, .MuiTab-root, .MuiMenuItem-root { min-height: 44px; }
  .MuiIconButton-root, .MuiCheckbox-root { min-width: 44px; }
  .MuiInputBase-input { font-size: 16px !important; }
  .MuiInputBase-root, .MuiFormControl-root { min-width: 0; max-width: 100%; }
  .MuiChip-root.MuiChip-root { max-width: 100%; height: auto; min-height: 24px; }
  .MuiChip-label { overflow-wrap: anywhere; white-space: normal; }
  .MuiChip-root:has(button) { min-height: 44px; }
  .MuiList-root .MuiMenuItem-root { white-space: normal; overflow-wrap: anywhere; }
  .MuiDialog-root .MuiTabs-scroller { overflow-x: auto !important; }
  .MuiDialog-root .MuiTabs-list { min-width: max-content; }
  .MuiDialog-root .MuiTab-root { flex-shrink: 0; }
  .page-header > .MuiStack-root { flex-wrap: wrap; gap: 8px; }
  .page-header > .MuiStack-root > * { margin: 0; }
  .page-header > .MuiStack-root > .MuiButton-contained { flex-grow: 1; }
  .page-content > .MuiCard-root:has(> .mobile-data-grid) { background: transparent; border: 0; overflow: visible; }
  .mobile-record .MuiButton-root { text-align: left; }
  .mobile-record .MuiStack-root > * { min-width: 0; }
  .mobile-record .MuiStack-root > span { max-width: 100%; }
  .MuiDataGrid-panel, .MuiDataGrid-panel .MuiDataGrid-paper { max-width: calc(100vw - 32px); }
  .MuiDataGrid-panelContent { max-width: 100%; overflow-x: auto; }
  .MuiDataGrid-panel .MuiDataGrid-filterForm { flex-direction: column; gap: 12px; min-width: 0; width: 100%; }
  .MuiDataGrid-panel .MuiDataGrid-filterForm > * { width: 100%; margin: 0; }
  .MuiDataGrid-panel .MuiDataGrid-filterFormColumnInput,
  .MuiDataGrid-panel .MuiDataGrid-filterFormOperatorInput { width: 100%; }
}
