/* Оформление в духе интерфейса Solarcrm (solar-frontend/src/design-system):
   системный шрифт, один фирменный синий, спокойные серые границы.
   Переопределяются только переменные Gravity UI, разметку Diplodoc не трогаем. */

.g-root {
  --g-font-family-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --g-font-family-monospace: "SF Mono", "Cascadia Code", "JetBrains Mono", Menlo, Consolas, monospace;

  --g-color-base-brand: #0f6cbd;
  --g-color-base-brand-hover: #115ea3;
  --g-color-line-brand: #0f6cbd;
  --g-color-text-brand: #0f6cbd;
  --g-color-text-brand-heavy: #0c3b5e;
  --g-color-text-link: #0f6cbd;
  --g-color-text-link-hover: #115ea3;
  --g-color-text-link-visited: #0c3b5e;
  --g-color-text-link-visited-hover: #115ea3;
  --g-color-base-selection: #ebf3fc;
  --g-color-base-selection-hover: #deecf9;

  --g-color-base-background: #ffffff;
  --g-color-text-primary: #242424;
  --g-color-text-secondary: #616161;
  --g-color-line-generic: #e0e0e0;

  --g-color-text-info: #0078d4;
  --g-color-text-positive: #107c10;
  --g-color-text-warning: #d67e14;
  --g-color-text-danger: #d13438;
}

.g-root_theme_dark,
.g-root_theme_dark-hc {
  --g-color-base-brand: #479ef5;
  --g-color-base-brand-hover: #62abf5;
  --g-color-line-brand: #479ef5;
  --g-color-text-brand: #479ef5;
  --g-color-text-brand-heavy: #62abf5;
  --g-color-text-link: #479ef5;
  --g-color-text-link-hover: #62abf5;
  --g-color-text-link-visited: #2886de;
  --g-color-text-link-visited-hover: #62abf5;
  --g-color-base-selection: #0c3b5e;
  --g-color-base-selection-hover: #0a2e4d;

  --g-color-base-background: #1f1f1f;
  --g-color-text-primary: #f5f5f5;
  --g-color-text-secondary: #d1d1d1;
  --g-color-line-generic: #404040;

  --g-color-text-info: #62b0f4;
  --g-color-text-positive: #5ec75e;
  --g-color-text-warning: #f2a93b;
  --g-color-text-danger: #f47275;
}

/* Радиусы как в приложении: 4 px у мелких элементов, 8 px у контейнеров. */
.g-root {
  --g-border-radius-xs: 2px;
  --g-border-radius-s: 4px;
  --g-border-radius-m: 4px;
  --g-border-radius-l: 8px;
  --g-border-radius-xl: 12px;
}
