/* tissie-status: huisstijl voor Grafana (publieke kant en beheerkant) */
@font-face { font-family: "General Sans"; font-weight: 400; font-display: swap; src: url(/thema/fonts/general-sans-400.woff2) format("woff2"); }
@font-face { font-family: "General Sans"; font-weight: 500; font-display: swap; src: url(/thema/fonts/general-sans-500.woff2) format("woff2"); }
@font-face { font-family: "General Sans"; font-weight: 600; font-display: swap; src: url(/thema/fonts/general-sans-600.woff2) format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-display: swap; src: url(/thema/fonts/bricolage-grotesque-700.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url(/thema/fonts/jetbrains-mono-500.woff2) format("woff2"); }

/* ---------- Beide kanten ---------- */
html.tissie {
  --ts-ink: #211a16; --ts-zacht: #6e5f54; --ts-cream: #f7eee6; --ts-teal: #2cc3c3; --ts-diep: #0c4a4a;
  --ts-schaduw: 0 10px 28px -16px rgba(70, 40, 18, .30);
  --ts-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
}
html.tissie ::selection { background: var(--ts-ink); color: var(--ts-cream); }
html.tissie body.theme-light { background-color: var(--ts-cream) !important; }
html.tissie .preloader__text { display: none !important; }

html.tissie section[class*="panel-container"] {
  border: 0 !important;
  border-radius: 14px !important;
  box-shadow: var(--ts-schaduw) !important;
}
html.tissie [data-testid^="text-panel"] section[class*="panel-container"] { box-shadow: none !important; background: transparent !important; }
html.tissie [data-testid^="text-panel"] [class*="panel-content"] { padding: 0 2px !important; }
html.tissie [data-testid^="text-panel"] [class*="panel-content"] [tabindex="0"] { overflow: hidden !important; padding: 0 !important; }
/* Kop: ruimte boven de titel, dicht op de kaarten eronder */
html.tissie [data-testid^="text-panel"] .markdown-html { overflow: hidden !important; padding: 54px 0 0 !important; width: 100%; }
html.tissie [class*="panel-title"] h2 {
  font-family: var(--ts-display) !important;
  font-weight: 700 !important;
  font-size: 20px !important;
  line-height: 26px !important;
  letter-spacing: -.3px;
}
html.tissie .markdown-html h2 {
  font-family: var(--ts-display);
  font-weight: 700;
  font-size: 43px;
  line-height: 46px;
  letter-spacing: -.86px;
  margin: 0 0 6px;
}
html.tissie .markdown-html h2::after { content: "."; }
html.tissie .markdown-html p { font-size: 16px; line-height: 25px; color: var(--ts-zacht); margin: 0; }
html.tissie .table-cell-actions { display: none !important; }
html.tissie .rdg { --rdg-border-color: rgba(33, 26, 22, .07); border: 0 !important; }
html.tissie .rdg [role="columnheader"] { font-weight: 600; color: var(--ts-zacht); }
html.tissie .rdg-cell { border-inline-end: 0 !important; }

/* ---------- Publieke kant ---------- */
html.tissie-publiek, html.tissie-publiek body { background: transparent !important; }
html.tissie-publiek.tissie-ingebed body { overflow: hidden !important; }
html.tissie-publiek [data-testid="public-dashboard-scene-page"] { padding: 0 !important; background: transparent !important; }
html.tissie-publiek [data-testid="public-dashboard-scene-page"] > div:first-child,
html.tissie-publiek [data-testid="public-dashboard-footer"] { display: none !important; }
html.tissie-publiek [class*="-body"] { padding: 0 !important; }
html.tissie-publiek .react-grid-item:has([data-viz-panel-key="panel-1"]) { display: none !important; }
html.tissie-publiek .react-resizable-handle { display: none !important; }

/* Statuskaarten */
html.tissie-publiek [style*="z-index"][style*="font-weight: 500"] {
  font-family: var(--ts-display) !important;
  font-weight: 700 !important;
  letter-spacing: -.015em;
}
html.tissie-publiek [data-viz-panel-key="panel-10"] [style*="z-index"] span::before {
  content: "";
  display: inline-block;
  width: 10px; height: 10px;
  margin-right: 9px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 20%, transparent);
  vertical-align: 2px;
}

/* Telefoon: minder kolommen, grotere statuskaart */
@media (max-width: 769px) {
  html.tissie-publiek [data-viz-panel-key="panel-12"] .rdg { grid-template-columns: minmax(96px, 1fr) 0 0 80px 80px 0 !important; overflow: hidden !important; }
  html.tissie-publiek [data-viz-panel-key="panel-12"] .rdg [aria-colindex="2"],
  html.tissie-publiek [data-viz-panel-key="panel-12"] .rdg [aria-colindex="3"],
  html.tissie-publiek [data-viz-panel-key="panel-12"] .rdg [aria-colindex="6"] { display: none !important; }
  /* Statuskaart als nette lijst: dienst links, stand rechts */
  html.tissie-publiek [data-viz-panel-key="panel-10"] [data-testid="data-testid panel content"] > div { display: flex; flex-direction: column; justify-content: center; }
  html.tissie-publiek [data-viz-panel-key="panel-10"] [data-testid="data-testid panel content"] > div > div { position: static !important; width: 100% !important; height: 25px !important; }
  html.tissie-publiek [data-viz-panel-key="panel-10"] [data-testid="data-testid panel content"] > div > div > div { width: 100% !important; height: 25px !important; padding: 0 14px !important; }
  html.tissie-publiek [data-viz-panel-key="panel-10"] [data-testid="data-testid panel content"] > div > div > div > div { width: 100% !important; flex-flow: row nowrap !important; justify-content: space-between !important; }
  html.tissie-publiek [data-viz-panel-key="panel-10"] [data-testid="data-testid panel content"] > div > div > div > div > div { font-size: 15px !important; }
  /* Nodes: waarde past op één regel */
  html.tissie-publiek [data-viz-panel-key="panel-20"] [style*="z-index"],
  html.tissie-publiek [data-viz-panel-key="panel-21"] [style*="z-index"] { font-size: 19px !important; white-space: nowrap; }
  html.tissie-publiek [data-viz-panel-key="panel-20"] [style*="z-index"] span,
  html.tissie-publiek [data-viz-panel-key="panel-21"] [style*="z-index"] span { font-size: inherit !important; }
  html.tissie [data-testid^="text-panel"] .markdown-html { padding-top: 54px !important; }
  html.tissie .markdown-html h2 { font-size: 32px; line-height: 36px; letter-spacing: -.6px; }
  html.tissie .markdown-html p { font-size: 15px; line-height: 22px; }
}

/* ---------- Beheerkant: inloggen ---------- */
html.tissie-beheer [class*="page-wrapper"]:has(.login-content-box),
html.tissie-beheer [class*="page-wrapper"]:has(.login-content-box) > div {
  background: linear-gradient(150deg, #2cc3c3, #2cc3c3 55%, #45e0e0 140%) !important;
}
html.tissie-beheer [class*="page-wrapper"]:has(.login-content-box)::before,
html.tissie-beheer [class*="page-wrapper"]:has(.login-content-box) > div::before { display: none !important; }
html.tissie-beheer [class*="page-wrapper"]:has(.login-content-box)::after {
  content: "";
  position: fixed; right: max(24px, 7vw); bottom: 0;
  width: 270px; height: 300px;
  background: url(/thema/fluf-slot.webp) no-repeat center bottom / contain;
  filter: drop-shadow(0 18px 18px rgba(12, 74, 74, .25));
  pointer-events: none;
}
html.tissie-beheer .login-content-box {
  background: #fff !important;
  backdrop-filter: none !important;
  border-radius: 22px !important;
  box-shadow: 0 34px 64px -28px rgba(70, 40, 18, .46) !important;
}
/* Alleen het woordmerk: Fluf staat al in beeld, dus geen tweede gezicht */
html.tissie-beheer .login-content-box img { content: url(/thema/tissie-woordmerk.svg); width: auto !important; height: 38px !important; max-width: 150px; }
html.tissie-beheer .login-content-box button[type="submit"] { background: #211a16 !important; color: #f7eee6 !important; min-height: 44px; border-radius: 10px !important; font-weight: 600; }
html.tissie-beheer .login-content-box h1, html.tissie-beheer .login-content-box [class*="title"] {
  font-family: var(--ts-display) !important; font-weight: 700 !important; letter-spacing: -.02em;
}
html.tissie-beheer footer:has(a[href*="grafana.com"]), html.tissie-beheer [class*="page-wrapper"]:has(.login-content-box) footer { display: none !important; }
@media (max-width: 900px) {
  html.tissie-beheer [class*="page-wrapper"]:has(.login-content-box)::before,
html.tissie-beheer [class*="page-wrapper"]:has(.login-content-box) > div::before { display: none !important; }
html.tissie-beheer [class*="page-wrapper"]:has(.login-content-box)::after { display: none; }
}
