:root {
  --ff-primary: 'Inter', sans-serif;
}

/* Override DHTMLX font at the widget level where it's originally defined */
.dhx_widget {
  --dhx-font-family: 'Inter', sans-serif;

  --fw-400: 500;
  --fw-700: 600;

  --fs-300: 0.6875rem;
  --fs-400: 0.8125rem;
  --fs-500: 1.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
  overflow: hidden;
  font-family: var(--ff-primary);
  font-weight: var(--fw-400);
}

a:not([class]) {
  text-decoration-skip-ink: auto;
}

img,
picture {
  max-width: 100%;
  display: block;
}

input,
button,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3 {
  font-weight: var(--fw-700);
}

/* App shell typography & page background (tokens from theme-tokens.css). */
body,
.dhx_widget {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif !important;
  color: var(--re-ink);
}

html,
body {
  background: var(--re-bg) !important;
}

/* Global scrollbars (webkit); inner .scroll-view hides bars in toolbar/sidebar. */
*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: var(--re-border-strong);
  border-radius: 8px;
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--re-ink-faint);
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

.scroll-view::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.scroll-view {
  scrollbar-width: none !important;
}

.dhx_toolbar .scroll-view-wrapper > .scroll-view {
  width: 100% !important;
  height: 100% !important;
  margin-bottom: 0 !important;
}

.dhx_sidebar .scroll-view-wrapper > .scroll-view {
  width: 100% !important;
  height: 100% !important;
  margin-bottom: 0 !important;
}
