:root {
  --app-font-scale: 100%;
}

html {
  font-size: var(--app-font-scale);
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overscroll-behavior-y: contain;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* Thanh cuộn ngang gọn gàng cho bộ lọc nhóm trên mobile */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Hiệu ứng mở modal mượt */
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.animate-modal {
  animation: modalFadeIn 0.16s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Đảm bảo vùng chạm tối thiểu 44px cho chuẩn Mobile UX */
.touch-target {
  min-height: 2.75rem;
  min-width: 2.75rem;
}