:root {
  --app-web-focus: #00a07f;
  --app-web-scroll-thumb: #b7d5c9;
  --app-web-scroll-hover: #9ca3af;
}

#root input,
#root textarea,
#root select {
  font-size: 16px !important;
  border: none !important;
}

:where(#root) :is(input, textarea, select):focus-visible {
  outline: 1px solid var(--app-web-focus);
  outline-offset: -1px;
}

input[data-testid="product-field"],
textarea[data-testid="product-field"] {
  outline: none !important;
  box-shadow: none !important;
}

:where(#root) :is(a, button, [role="button"], [role="link"]):focus-visible {
  outline: 2px solid var(--app-web-focus);
  outline-offset: 2px;
}

:where(#root, #root *) {
  scrollbar-width: thin;
  scrollbar-color: var(--app-web-scroll-thumb) transparent;
}

@supports not (scrollbar-width: thin) {
  :where(#root, #root *)::-webkit-scrollbar {
    width: 5px;
    height: 5px;
  }

  :where(#root, #root *)::-webkit-scrollbar-track {
    background: transparent;
  }

  :where(#root, #root *)::-webkit-scrollbar-thumb {
    background: var(--app-web-scroll-thumb);
    border-radius: 999px;
  }

  :where(#root, #root *)::-webkit-scrollbar-thumb:hover {
    background: var(--app-web-scroll-hover);
  }
}

:where(#root, #root *)::selection {
  background: var(--app-web-focus);
  color: #fff;
}


@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
  #root input[data-testid="product-field"],
  #root textarea[data-testid="product-field"] {
    font-size: 12px !important;
  }
}

@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  #root input[data-testid="sales-report-search"] {
    font-size: 12px !important;
  }

  #root input[data-testid="history-field"],
  #root textarea[data-testid="history-field"],
  #root input[data-testid="notification-field"],
  #root textarea[data-testid="notification-field"] {
    font-size: 12px !important;
  }
}
