/* Cibernos local theme, Wazuh 4.14.8 / Grafana 13.2.2. Login is excluded. */
body.cibernos-wazuh { background: #eff6fc !important; color: #102b43; }
.cibernos-wazuh .euiHeader { background: #fff !important; border-bottom: 1px solid #c9dfef !important; }
.cibernos-wazuh .euiHeaderLogo { min-width: 180px; padding: 8px 18px; }
.cibernos-wazuh .euiHeaderLogo img { width: 160px; height: 42px; object-fit: contain; }
.cibernos-wazuh .euiNavDrawer { background: #004b72 !important; }
.cibernos-wazuh .euiNavDrawer .euiListGroupItemLabel,
.cibernos-wazuh .euiNavDrawer .euiIcon { color: #fff !important; }
.cibernos-wazuh .euiNavDrawer .euiListGroupItem-isActive { background: #1767b7 !important; }
.cibernos-wazuh .euiPage, .cibernos-wazuh .dshDashboardViewport { background: #eff6fc !important; }
.cibernos-wazuh .euiPanel, .cibernos-wazuh .embPanel { border: 1px solid #d4e5f2; border-radius: 8px; }
.cibernos-wazuh .euiTitle, .cibernos-wazuh .euiText h1,
.cibernos-wazuh .euiText h2, .cibernos-wazuh .embPanel__title { color: #004b72; }
.cibernos-wazuh .euiButton--primary.euiButton--fill { background: #1767b7; border-color: #1767b7; }
.cibernos-wazuh .euiLink { color: #1767b7; }
.cibernos-wazuh .euiTableHeaderCell { background: #eff6fc; }
.cibernos-wazuh .euiTabs .euiTab-isSelected { color: #1767b7; box-shadow: inset 0 -2px #1767b7; }
body.cibernos-grafana { background: #081b2e !important; }
/* Only the native Home logo link; the menu button and breadcrumbs stay visible. */
.cibernos-grafana a:has(> img[alt="Grafana"][src*="grafana_icon"]) { display: none !important; }
.cibernos-grafana a[data-testid*="breadcrumb" i][data-testid*="Home"] { display: none !important; }
.cibernos-grafana #reactRoot { height: calc(100% - 64px); }
.cibernos-masthead { height: 64px; display: flex; align-items: center; gap: 20px; padding: 0 20px; background: #061523; border-bottom: 1px solid #23475f; color: #f4f9ff; font-family: Inter, Arial, sans-serif; }
.cibernos-masthead img { width: 155px; height: 49px; object-fit: contain; background: #fff; border-radius: 5px; padding: 5px 8px; }
.cibernos-masthead strong { font-size: 18px; display: block; line-height: 23px; }
.cibernos-masthead small { color: #9ebdd3; font-size: 12px; }
.cibernos-masthead nav { margin-left: auto; display: flex; gap: 18px; }
.cibernos-masthead nav a { color: #b8e0ff; text-decoration: none; font-size: 13px; }
.cibernos-masthead nav a:hover { color: #fff; text-decoration: underline; }
.cibernos-grafana .dashboard-container, .cibernos-grafana .main-view,
.cibernos-grafana .page-container { background: #081b2e !important; }
.cibernos-grafana .panel-container,
.cibernos-grafana [data-testid="data-testid Panel content"] { background: #102b43 !important; border-radius: 8px; }
.cibernos-grafana .panel-container { border: 1px solid #23475f !important; }
.cibernos-grafana [data-testid="data-testid navigation mega-menu"],
.cibernos-grafana [data-testid="data-testid Nav toolbar"] { background: #061523 !important; }
@media (max-width: 700px) {
  .cibernos-masthead { gap: 10px; padding: 0 10px; }
  .cibernos-masthead img { width: 110px; }
  .cibernos-masthead strong { font-size: 14px; }
  .cibernos-masthead nav { display: none; }
}
body.cibernos-grafana-login { background: linear-gradient(145deg, #004b72, #081b2e 75%) !important; }
.cibernos-grafana-login div::before { background-image: none !important; }
.cibernos-grafana-login img[src*="cibernos-symbol.png"] { width: 120px !important; height: 120px !important; object-fit: contain; padding: 8px; background: white; border-radius: 12px; }
.cibernos-grafana-login .cibernos-login-title { color: #f4f9ff; }
body.cibernos-wazuh-login { background: #1767b7 !important; }
.cibernos-wazuh-login .login-wrapper img[src*="cibernos-logo.png"] { background: white; padding: 18px 24px; border-radius: 12px; width: 100%; max-height: 170px; object-fit: contain; box-sizing: border-box; }
.cibernos-wazuh-login .login-wrapper > .euiText { color: white; font-size: 20px; }
