:root{--tb-primary:#0E6B33;--tb-primary-hover:color-mix(in srgb, #0E6B33 85%, black);--tb-accent:#D4EFDD;}
/* Site brand for the standard screens (desk, login, /apps). Not loaded as an asset: brand.css()
   (trygve_erp/brand.py) serves it with the "" prefixes removed and the --tb-* colours from
   Trygve ERP Settings, and only when the site has brand colours. */

@font-face {
  font-family: 'Montserrat';
  src: url('/assets/trygve_erp/fonts/montserrat-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

/* ---- buttons: solid (primary) buttons in the brand colour instead of black */
.es-button[data-variant='solid']:not([data-theme]):not(.btn-danger) {
  --bt-solid-bg: var(--tb-primary);
  --bt-solid-bg-hover: var(--tb-primary-hover);
}
.btn-primary,
.btn.btn-primary {
  background-color: var(--tb-primary) !important;
  border-color: var(--tb-primary) !important;
  color: #ffffff !important;
}
.btn-primary:hover,
.btn.btn-primary:hover {
  background-color: var(--tb-primary-hover) !important;
  border-color: var(--tb-primary-hover) !important;
}

/* ---- desk sidebar and dock: white like the brand website header; active item in brand colour */
.body-sidebar,
.dock {
  background: #ffffff;
}
.standard-sidebar-item.active-sidebar {
  background: var(--tb-primary) !important;
  color: #ffffff !important;
  box-shadow: inset 3px 0 0 var(--tb-accent);
}
.standard-sidebar-item.active-sidebar * {
  color: #ffffff !important;
}
.standard-sidebar-item.active-sidebar svg,
.standard-sidebar-item.active-sidebar .sidebar-item-icon {
  color: var(--tb-accent) !important;
  stroke: var(--tb-accent);
}
.dock .header-logo img,
.app-logo {
  object-fit: contain;
}

/* ---- headings in the brand display face (website: Montserrat, heavy) */
.page-title,
.page-title .title-text,
.page-card-head h4,
.page-card-head .page-card-title,
.widget-title,
.workspace-title,
h1 {
  font-family: var(--tb-display-font, inherit), 'InterVariable', 'Inter', sans-serif !important;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ---- links and focus accents */
a.text-primary,
.text-primary {
  color: var(--tb-primary) !important;
}
