/* ─── SIGA — Custom styles ─────────────────────────────────────────────────── */

/* Brand colours */
:root {
  --siga-navy:      #0D1A2E;
  --siga-blue:      #1B3872;
  --siga-secondary: #1B3872;   /* color secundario del tema */
  --siga-red:       #D01F1F;
  --siga-bg:        #E8EFF6;
  --siga-muted:     #6A8FAA;
  --siga-success:   #166B38;
  --siga-warning:   #B87000;
}

/* ─── Sidebar: active/open item — brand navy (overridden below for dark) ─── */

/* ─── Sidebar: Muted skin ───────────────────────────────────────────────────── */
.siga-sidebar-muted {
  background: #f4f4f5 !important;
}
.siga-sidebar-muted .site-menubar-body {
  background: #f4f4f5 !important;
}
/* Nav items on muted sidebar */
.siga-sidebar-muted .site-menu .site-menu-item > a {
  color: #4a4a5a;
}
.siga-sidebar-muted .site-menu .site-menu-item > a .site-menu-icon {
  color: #7a7a8a;
}
.siga-sidebar-muted .site-menu .site-menu-item > a:hover,
.siga-sidebar-muted .site-menu .site-menu-item > a:hover .site-menu-icon {
  color: var(--siga-blue, #1B3872);
  background: rgba(27,56,114,.06) !important;
}
.siga-sidebar-muted .site-menu-category {
  color: #9a9aaa;
}

/* ─── Sidebar dark mode override ─── */
html.dark .siga-sidebar-muted,
html.dark .siga-sidebar-muted .site-menubar-body,
html.dark .site-menubar {
  background: #1a2535 !important;
}
/* Footer siempre mantiene su fondo propio y texto blanco */
html.dark .site-menubar-footer,
.site-menubar-footer {
  background: #6A8FAA !important;
}
html.dark .siga-mf-action,
html.dark .siga-mf-action:hover {
  color: #fff !important;
}
html.dark .siga-sidebar-muted .site-menu .site-menu-item > a,
html.dark .siga-sidebar-muted .site-menu .site-menu-item > a .site-menu-title {
  color: #8baad4 !important;
}
html.dark .siga-sidebar-muted .site-menu .site-menu-item > a .site-menu-icon {
  color: #6a8fb8 !important;
}
html.dark .siga-sidebar-muted .site-menu .site-menu-item > a:hover,
html.dark .siga-sidebar-muted .site-menu .site-menu-item > a:hover .site-menu-icon,
html.dark .siga-sidebar-muted .site-menu .site-menu-item > a:hover .site-menu-title {
  color: #c8def4 !important;
  background: rgba(255,255,255,.06) !important;
}
html.dark .site-menu .site-menu-item.active > a {
  color: var(--siga-muted, #6A8FAA) !important;
  background: rgba(106,143,170,.15) !important;
  border-left: 3px solid var(--siga-muted, #6A8FAA) !important;
  position: relative;
}
html.dark .site-menu .site-menu-item.active > a .site-menu-icon {
  color: var(--siga-muted, #6A8FAA) !important;
}
html.dark .site-menu .site-menu-item.open > a {
  color: #8baad4 !important;
  background: rgba(255,255,255,.04) !important;
}
html.dark .site-menu .site-menu-item.open > a .site-menu-icon {
  color: #8baad4 !important;
}
html.dark .site-menu .site-menu-item.active:not(.has-sub) > a::after {
  content: '';
  position: absolute;
  right: 0; top: 50%; transform: translateY(-50%);
  width: 0; height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-right: 7px solid var(--siga-muted, #6A8FAA);
}
html.dark .siga-sidebar-muted .site-menu-category { color: #4a6080 !important; }

/* Sidebar sub-menus in dark */
html.dark .site-menu-sub { background: #111827 !important; }
html.dark .site-menu-sub .site-menu-item > a { color: #6a8fb8 !important; }
html.dark .site-menu-sub .site-menu-item > a:hover { color: #c8def4 !important; }

/* ─── Sidebar dark — independent of page theme (sidebar_theme = dark) ─── */
html.sidebar-dark .siga-sidebar-muted,
html.sidebar-dark .siga-sidebar-muted .site-menubar-body,
html.sidebar-dark .site-menubar {
  background: #1a2535 !important;
}
html.sidebar-dark .siga-sidebar-muted .site-menu .site-menu-item > a,
html.sidebar-dark .siga-sidebar-muted .site-menu .site-menu-item > a .site-menu-title {
  color: #8baad4 !important;
}
html.sidebar-dark .siga-sidebar-muted .site-menu .site-menu-item > a .site-menu-icon {
  color: #6a8fb8 !important;
}
html.sidebar-dark .siga-sidebar-muted .site-menu .site-menu-item > a:hover,
html.sidebar-dark .siga-sidebar-muted .site-menu .site-menu-item > a:hover .site-menu-icon,
html.sidebar-dark .siga-sidebar-muted .site-menu .site-menu-item > a:hover .site-menu-title {
  color: #c8def4 !important;
  background: rgba(255,255,255,.06) !important;
}
html.sidebar-dark .site-menu .site-menu-item.active > a {
  color: var(--siga-muted, #6A8FAA) !important;
  background: rgba(106,143,170,.15) !important;
  border-left: 3px solid var(--siga-muted, #6A8FAA) !important;
  position: relative;
}
html.sidebar-dark .site-menu .site-menu-item.active > a .site-menu-icon {
  color: var(--siga-muted, #6A8FAA) !important;
}
html.sidebar-dark .site-menu .site-menu-item.open > a {
  color: #8baad4 !important;
  background: rgba(255,255,255,.04) !important;
}
html.sidebar-dark .site-menu .site-menu-item.open > a .site-menu-icon {
  color: #8baad4 !important;
}
html.sidebar-dark .site-menu .site-menu-item.active:not(.has-sub) > a::after {
  content: '';
  position: absolute;
  right: 0; top: 50%; transform: translateY(-50%);
  width: 0; height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-right: 7px solid var(--siga-muted, #6A8FAA);
}
html.sidebar-dark .siga-sidebar-muted .site-menu-category { color: #4a6080 !important; }
html.sidebar-dark .site-menu-sub { background: #111827 !important; }
html.sidebar-dark .site-menu-sub .site-menu-item > a { color: #6a8fb8 !important; }
html.sidebar-dark .site-menu-sub .site-menu-item > a:hover { color: #c8def4 !important; }

/* ─── Topbar dark mode override ─── */
html.dark .site-navbar,
html.dark .site-navbar .navbar-container,
html.dark .site-navbar .navbar-collapse {
  background: #162032 !important;
}
html.dark .site-navbar .navbar-header {
  background: #0f1a2a !important;
}

/* ─── Sidebar: active item — donchicharron style ────────────────────────────── */
.site-menu .site-menu-item.active > a {
  color: var(--siga-navy, #0D1A2E) !important;
  background: rgba(27,56,114,.10) !important;
  border-left: 3px solid var(--siga-navy, #0D1A2E) !important;
  position: relative;
}
.site-menu .site-menu-item.active > a .site-menu-icon {
  color: var(--siga-navy, #0D1A2E) !important;
}
/* Open parent: subtle tint only, no border-left */
.site-menu .site-menu-item.open > a {
  color: var(--siga-blue, #1B3872) !important;
  background: rgba(27,56,114,.05) !important;
}
.site-menu .site-menu-item.open > a .site-menu-icon {
  color: var(--siga-blue, #1B3872) !important;
}
/* Right-pointing triangle for leaf (non-parent) active items */
.site-menu .site-menu-item.active:not(.has-sub) > a::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-right: 7px solid var(--siga-navy, #0D1A2E);
}
/* Submenu background (light sidebar) */
.siga-sidebar-muted .site-menu-sub {
  background: #edf0f6 !important;
}
/* ── Padding hierarchy: 20px → 38px → 56px ── */
.site-menu > .site-menu-item > a {
  padding-left: 20px !important;
}
.site-menu > .site-menu-item > .site-menu-sub > .site-menu-item > a {
  padding-left: 38px !important;
}
.site-menu > .site-menu-item > .site-menu-sub > .site-menu-item > .site-menu-sub > .site-menu-item > a {
  padding-left: 56px !important;
}

/* ─── Sidebar footer: vertical layout (keep Remark's position:fixed;bottom:0) ── */
.site-menubar-footer {
  display: flex !important;
  flex-direction: column;
  border-top: none;
  background: #6A8FAA;
}

/* Override site-menubar-body height for our taller footer (~100px vs Remark's 76px) */
.site-menubar-body {
  height: calc(100% - 102px) !important;
}

/* Row 1: avatar + name + role */
.siga-mf-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  min-width: 0;
}

/* Row 2: action buttons side by side */
.siga-mf-actions {
  display: flex;
  border-top: 1px solid rgba(255,255,255,.2);
}

.siga-mf-action {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 4px;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  font-size: .78rem;
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.siga-mf-action + .siga-mf-action {
  border-left: 1px solid rgba(255,255,255,.2);
}
.siga-mf-action i {
  font-size: .82rem;
}
.siga-mf-action:hover {
  color: #fff !important;
  background: rgba(0,0,0,.15);
  text-decoration: none;
}

/* Avatar circle */
.siga-mf-avatar {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .75rem;
  color: #fff;
  object-fit: cover;
  line-height: 1;
}

/* Name + role */
.siga-mf-info {
  flex: 1;
  min-width: 0;
  line-height: 1.3;
  overflow: hidden;
}
.siga-mf-info strong {
  display: block;
  color: #fff;
  font-size: .80rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.siga-mf-info small {
  color: rgba(255,255,255,.7);
  font-size: .70rem;
  white-space: nowrap;
}

/* Fold mode: show only avatar, hide everything else */
.site-menubar-fold .site-menubar-footer {
  align-items: center;
}
.site-menubar-fold .siga-mf-user {
  justify-content: center;
  padding: 12px 4px;
}
.site-menubar-fold .siga-mf-info  { display: none; }
.site-menubar-fold .siga-mf-actions { display: none !important; }

/* ─── Floating Action Button (FAB) ─────────────────────────────────────────── */
#siga-fab {
  position: fixed;
  right: 24px;
  bottom: 30px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--siga-secondary);
  color: #fff;
  border: none;
  box-shadow: 0 4px 16px rgba(27,56,114,.45);
  font-size: 1.4rem;
  cursor: grab;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, box-shadow .15s, transform .1s;
  user-select: none;
  -webkit-user-select: none;
}

#siga-fab:hover {
  background: var(--siga-navy);
  box-shadow: 0 6px 24px rgba(27,56,114,.6);
}

#siga-fab.dragging {
  cursor: grabbing;
  transform: scale(1.08);
  box-shadow: 0 8px 28px rgba(0,0,0,.35);
}

/* FAB context menu */
#siga-fab-menu {
  position: fixed;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0,0,0,.18);
  z-index: 1049;
  min-width: 180px;
  display: none;
  padding: 6px 0;
}

#siga-fab-menu.open { display: block; }

#siga-fab-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  color: #333;
  text-decoration: none;
  font-size: .82rem;
  transition: background .12s;
}

#siga-fab-menu a:hover {
  background: #f0f4ff;
  color: var(--siga-secondary);
}

#siga-fab-menu a .fa {
  width: 16px;
  text-align: center;
  color: var(--siga-secondary);
}

/* ─── Avatar initials ──────────────────────────────────────────────────────── */
.avatar-initials-nav,
.avatar-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 600;
  font-size: .75rem;
  width: 32px;
  height: 32px;
  line-height: 1;
  flex-shrink: 0;
}

/* ─── Topbar: SIGA palette override ───────────────────────────────────────── */
/* Brand/header area: dark navy */
.site-navbar .navbar-header {
  background: #1B3872 !important;
  height: 68px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.site-navbar {
  height: 68px !important;
  min-height: 68px !important;
}
.site-navbar .navbar-container {
  height: 68px !important;
}
.page {
  padding-top: 68px !important;
}
/* Container/search/icon area: muted blue (matches sidebar footer) */
.site-navbar,
.site-navbar .navbar-container,
.site-navbar .navbar-collapse {
  background: #6A8FAA !important;
}

/* Flex layout for navbar-collapse so search flex:1 works */
.site-navbar .navbar-container .navbar-collapse {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
}

/* Right-side toolbar: center items vertically in topbar */
.site-navbar .navbar-container .navbar-toolbar-right {
  display: flex !important;
  align-items: center !important;
  height: 100%;
}
.site-navbar .navbar-container .navbar-toolbar-right > .nav-item {
  display: flex !important;
  align-items: center !important;
}
.site-navbar .navbar-container .nav-link,
.site-navbar .navbar-container .nav-link i,
.site-navbar .navbar-container .nav-link .icon {
  color: #fff !important;
}
.site-navbar .navbar-container .nav-link:hover,
.site-navbar .navbar-container .nav-link:hover i,
.site-navbar .navbar-container .nav-link:hover .icon {
  color: rgba(255,255,255,.75) !important;
}
/* Hamburger: center bar + arrow arms (::before/::after are on the <i> element) */
.site-navbar .navbar-container .hamburger .hamburger-bar,
.site-navbar .navbar-container .hamburger::before,
.site-navbar .navbar-container .hamburger::after {
  background-color: #fff !important;
  background: #fff !important;
}

/* ─── Topbar inline search ─────────────────────────────────────────────────── */
.siga-topbar-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 420px;
  margin: 0 16px;
}
.siga-topbar-search-icon {
  position: absolute;
  left: 12px;
  color: rgba(255,255,255,.7);
  font-size: .82rem;
  pointer-events: none;
}
.siga-topbar-search-input {
  width: 100%;
  background: rgba(0,0,0,.18) !important;
  border: 1px solid rgba(255,255,255,.15) !important;
  border-radius: 6px !important;
  color: #fff !important;
  padding: 6px 12px 6px 34px !important;
  font-size: .82rem !important;
  outline: none !important;
  box-shadow: none !important;
  transition: background .15s, border-color .15s;
}
.siga-topbar-search-input::placeholder { color: rgba(255,255,255,.55); }
.siga-topbar-search-input:focus {
  background: rgba(0,0,0,.28) !important;
  border-color: rgba(255,255,255,.35) !important;
}

/* ─── Topbar pill buttons (theme / tour / lang) ─────────────────────────────── */
.siga-nav-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  background: rgba(0,0,0,.18) !important;
  border-radius: 6px !important;
  padding: 5px 10px !important;
  color: #fff !important;
  transition: background .15s;
  margin: 0 2px;
}
.siga-nav-btn:hover,
.siga-nav-btn:focus {
  background: rgba(0,0,0,.32) !important;
  color: #fff !important;
}
.siga-nav-btn i,
.siga-nav-btn .icon {
  color: #fff !important;
}
.siga-nav-lang { font-size: .78rem; font-weight: 600; letter-spacing: .03em; }

/* ─── Login page ───────────────────────────────────────────────────────────── */
.page-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--siga-navy) 0%, var(--siga-blue) 100%);
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  overflow: hidden;
}

.login-card-header {
  background: var(--siga-navy);
  padding: 28px 32px 24px;
  text-align: center;
}

.login-card-header h1 {
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.04em;
  margin: 0 0 2px;
}

.login-card-header p {
  color: #4A6A8A;
  font-size: .78rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.login-card-body {
  padding: 28px 32px;
}

/* ─── Password toggle ──────────────────────────────────────────────────────── */
.input-group .input-group-addon {
  cursor: pointer;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-left: none;
  padding: 0 12px;
  display: flex;
  align-items: center;
  border-radius: 0 4px 4px 0;
  transition: background .15s;
}

.input-group .input-group-addon:hover {
  background: #e8e8e8;
}

/* ─── Sala cards (index) ───────────────────────────────────────────────────── */
.sala-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow .15s, transform .15s;
  cursor: grab;
}

.sala-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  transform: translateY(-2px);
}

.sala-card.dragging {
  opacity: .5;
  cursor: grabbing;
}

.sala-card-photo {
  width: 100%;
  height: 120px;
  object-fit: cover;
  background: var(--siga-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 2rem;
}

.sala-card-body {
  padding: 14px 16px;
}

.sala-card-name {
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: 2px;
  color: var(--siga-navy);
}

.sala-card-meta {
  font-size: .75rem;
  color: #888;
  margin-bottom: 8px;
}

.sala-card-footer {
  padding: 8px 16px;
  background: #f9f9f9;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ─── Status badges ────────────────────────────────────────────────────────── */
.badge-sala-active   { background: #E0F4E8; color: var(--siga-success); }
.badge-sala-inactive { background: #f5f5f5; color: #999; }

/* ─── Auto-dismiss alerts ──────────────────────────────────────────────────── */
/* handled in siga.js */

/* ─── Dashboard: conversion donut labels ─────────────────────────────────── */
.siga-conv-rate {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1B3872;
}
.siga-conv-sub {
  font-size: .75rem;
  color: #888;
}
html.dark .siga-conv-rate { color: #7eb3e8; }
html.dark .siga-conv-sub  { color: #7a94b2; }

/* ─── Dashboard quick-links ────────────────────────────────────────────────── */
.siga-quicklink {
  transition: background .15s, color .15s, border-color .15s;
}
.siga-quicklink:hover,
.siga-quicklink:focus {
  background: #fff !important;
  border-color: #3f51b5 !important;
  color: #3f51b5 !important;
}

/* ─── Pearl steps (prep checklist) ─────────────────────────────────────────── */
.siga-pearl-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 3px;
}
.siga-pearl {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e0e0e0;
  border: 2px solid #ccc;
  flex-shrink: 0;
  transition: background .2s, border-color .2s;
  cursor: default;
}
.siga-pearl.done {
  background: #27ae60;
  border-color: #1e8449;
  box-shadow: 0 0 0 2px rgba(39,174,96,.2);
}
.siga-pearl-line {
  display: inline-block;
  flex: 1;
  height: 2px;
  background: #e0e0e0;
  min-width: 4px;
  transition: background .2s;
}
.siga-pearl-line.done {
  background: #27ae60;
}

/* Larger pearls for the detail/edit view */
.siga-pearl-steps-lg .siga-pearl,
.siga-pearl-lg {
  width: 14px !important;
  height: 14px !important;
}
.siga-pearl-steps-lg .siga-pearl-line {
  min-width: 6px !important;
}

/* ─── DataTables buttons ───────────────────────────────────────────────────── */
.dt-buttons .btn {
  font-size: .75rem;
  padding: 4px 10px;
}

/* ─── Skeleton loader ──────────────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.4s infinite;
  border-radius: 4px;
}

@keyframes skeleton-pulse {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── Global search results ────────────────────────────────────────────────── */
.global-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 0 0 6px 6px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 9999;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  text-decoration: none;
  color: #333;
  border-bottom: 1px solid #f5f5f5;
  font-size: .82rem;
}

.search-result-item:hover {
  background: #f5f8ff;
  color: var(--siga-blue);
}

.search-result-type {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: var(--siga-bg);
  color: var(--siga-muted);
  padding: 1px 6px;
  border-radius: 3px;
}

/* ─── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .sala-card-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ─── Dark mode overrides ──────────────────────────────────────────────────── */
/*
  Palette:
    --dk-bg       #111827   page background
    --dk-surface  #1a2535   cards, panels
    --dk-surface2 #1f2d40   inputs, table rows (alt)
    --dk-border   #2a3a50   borders, dividers
    --dk-text     #c8def4   primary text
    --dk-muted    #7a94b2   secondary/muted text
*/

/* Body & page canvas */
html.dark body,
html.dark .page,
html.dark .page-content { background: #111827 !important; }

/* ── Cards ── */
html.dark .card,
html.dark .card-shadow {
  background: #1a2535 !important;
  border-color: #2a3a50 !important;
}
html.dark .card-header,
html.dark .card-footer {
  background: #1f2d40 !important;
  border-color: #2a3a50 !important;
  color: #c8def4 !important;
}
html.dark .card-block,
html.dark .card-body { color: #c8def4; }
html.dark .card-title,
html.dark .card-subtitle { color: #c8def4 !important; }

/* ── Page header & breadcrumbs ── */
html.dark .page-header { border-bottom-color: #2a3a50; }
html.dark .page-title  { color: #c8def4 !important; }
html.dark .breadcrumb  { background: transparent; }
html.dark .breadcrumb-item,
html.dark .breadcrumb-item a { color: #7a94b2; }
html.dark .breadcrumb-item.active { color: #c8def4; }
html.dark .breadcrumb-item + .breadcrumb-item::before { color: #2a3a50; }

/* ── General text ── */
html.dark,
html.dark body,
html.dark p,
html.dark label,
html.dark h1, html.dark h2, html.dark h3,
html.dark h4, html.dark h5, html.dark h6 { color: #c8def4; }
html.dark .text-muted { color: #7a94b2 !important; }
html.dark small { color: #7a94b2; }
html.dark hr { border-color: #2a3a50; }
html.dark a:not(.btn):not(.nav-link):not(.siga-notif-btn) { color: #7eb3e8; }

/* ── Form UX improvements ─────────────────────────────────────────────────── */
.form-control:focus {
  border-color: #1B3872 !important;
  box-shadow: 0 0 0 3px rgba(27,56,114,.13) !important;
  outline: none !important;
}
.form-control-label {
  font-weight: 600;
  font-size: .84rem;
  margin-bottom: 4px;
  color: #2c3e50;
}
.form-control-label .req {
  color: #D01F1F;
  font-weight: 700;
  margin-left: 2px;
}
.form-hint {
  display: block;
  font-size: .75rem;
  color: #8a9ab8;
  margin-top: 3px;
  line-height: 1.4;
}
.form-required-note {
  font-size: .78rem;
  color: #8a9ab8;
  margin-bottom: 14px;
}
.form-required-note .req { color: #D01F1F; font-weight: 700; }
.form-section-title {
  color: var(--siga-blue, #1B3872);
  border-bottom: 2px solid #e8eef6;
  padding-bottom: 8px;
  margin-bottom: 16px;
  font-size: .92rem;
  font-weight: 700;
}
/* Empty state for DataTables */
td.dataTables_empty {
  text-align: center !important;
  padding: 48px 24px !important;
  color: #aab !important;
  font-size: .88rem !important;
}
td.dataTables_empty::before {
  content: '\f07b';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  display: block;
  font-size: 2rem;
  margin-bottom: 10px;
  opacity: .3;
}
html.dark .form-control-label { color: #c8def4; }
html.dark .form-hint, html.dark .form-required-note { color: #4a6080; }
html.dark .form-section-title { color: #7eb3e8; border-bottom-color: #1e3050; }
html.dark td.dataTables_empty { color: #3a5070 !important; }

/* ── Form controls ── */
html.dark .form-control,
html.dark .form-control:focus,
html.dark select.form-control,
html.dark textarea.form-control {
  background: #0d1928 !important;
  border-color: #2a3a50 !important;
  color: #c8def4 !important;
}
html.dark .form-control::placeholder { color: #4a6080; }
html.dark .form-control:disabled,
html.dark .form-control[readonly] {
  background: #16212e !important;
  color: #7a94b2 !important;
}
html.dark .input-group-addon {
  background: #1f2d40 !important;
  border-color: #2a3a50 !important;
  color: #7a94b2 !important;
}
html.dark .form-control-label { color: #c8def4; }

/* ── Buttons: btn-outline-secondary — Remark overrides color to #ccc (invisible on white) ── */
.btn-outline-secondary {
  color: #6A8FAA !important;
  border-color: #6A8FAA !important;
  background-color: transparent !important;
}
.btn-outline-secondary:hover,
.btn-outline-secondary:active,
.btn-outline-secondary.active {
  background-color: #6A8FAA !important;
  border-color: #6A8FAA !important;
  color: #fff !important;
}
.btn-outline-secondary:focus,
.btn-outline-secondary.focus {
  box-shadow: 0 0 0 2px rgba(106,143,170,.3) !important;
}

/* ── Buttons (outline variants in dark) ── */
html.dark .btn-outline-secondary {
  color: #7eb3e8 !important;
  border-color: #2a3a50 !important;
  background: transparent !important;
}
html.dark .btn-outline-secondary:hover,
html.dark .btn-outline-secondary:active {
  background: #1f2d40 !important;
  border-color: #4a6a90 !important;
  color: #fff !important;
}
html.dark .btn-default,
html.dark .btn-light {
  background: #1f2d40 !important;
  border-color: #2a3a50 !important;
  color: #c8def4 !important;
}

/* ── Tables ── */
html.dark .table,
html.dark .table th,
html.dark .table td {
  color: #c8def4;
  border-color: #2a3a50 !important;
}
html.dark .table-striped tbody tr:nth-of-type(odd) { background: rgba(31,45,64,.6); }
html.dark .table-hover tbody tr:hover { background: rgba(31,45,64,.9) !important; }
html.dark .table thead th { background: #1f2d40; color: #7a94b2; }
html.dark .table-responsive { background: transparent; }

/* DataTables toolbar */
html.dark .dt-length label,
html.dark .dt-search label { color: #7a94b2; }
html.dark .dt-length select,
html.dark .dt-search input {
  background: #0d1928 !important;
  border-color: #2a3a50 !important;
  color: #c8def4 !important;
}
html.dark .dt-info { color: #7a94b2; }
html.dark .dt-pages .paginate_button:not(.current) { color: #c8def4 !important; }
html.dark .dt-pages .paginate_button:not(.current):hover { background: #1f2d40 !important; }
html.dark .dataTables_wrapper .DTFC_LeftWrapper table,
html.dark .dataTables_wrapper .DTFC_RightWrapper table { background: #1a2535; }

/* ── Modals ── */
html.dark .modal-content {
  background: #1a2535 !important;
  border-color: #2a3a50 !important;
  color: #c8def4;
}
html.dark .modal-header,
html.dark .modal-footer {
  background: #1f2d40 !important;
  border-color: #2a3a50 !important;
}
html.dark .modal-title { color: #c8def4; }
html.dark .close,
html.dark .close:hover { color: #c8def4; }

/* ── Dropdowns ── */
html.dark .dropdown-menu {
  background: #1a2535 !important;
  border-color: #2a3a50 !important;
}
html.dark .dropdown-item { color: #c8def4 !important; }
html.dark .dropdown-item:hover,
html.dark .dropdown-item:focus { background: #1f2d40 !important; color: #fff !important; }
html.dark .dropdown-divider { border-color: #2a3a50 !important; }
html.dark .dropdown-header { color: #7a94b2 !important; }

/* ── List groups ── */
html.dark .list-group-item {
  background: #1a2535 !important;
  border-color: #2a3a50 !important;
  color: #c8def4;
}
html.dark .list-group-item:hover { background: #1f2d40 !important; }
html.dark .list-group-item.active {
  background: #1B3872 !important;
  border-color: #1B3872 !important;
}

/* ── Alerts ── */
html.dark .alert { border-color: #2a3a50; }
html.dark .alert-info    { background: #112233; color: #7eb3e8; }
html.dark .alert-warning { background: #221a00; color: #f0c040; }
html.dark .alert-danger  { background: #2a0a0a; color: #f07070; }
html.dark .alert-success { background: #0a2010; color: #60c080; }

/* ── Badges / pills ── */
html.dark .badge-secondary { background: #2a3a50; color: #c8def4; }

/* ── Notification drawer (dark mode) ── */
html.dark .siga-notif-drawer {
  background: #1a2535;
  box-shadow: -4px 0 24px rgba(0,0,0,.4);
}
html.dark .siga-notif-drawer-header {
  border-bottom-color: #2a3a50;
}
html.dark .siga-notif-drawer-header h5 { color: #c8def4; }
html.dark .siga-notif-drawer-close { color: #7a94b2; }
html.dark .siga-notif-drawer-close:hover { color: #c8def4; background: rgba(255,255,255,.08); }
html.dark .siga-notif-drawer-actions { border-bottom-color: #2a3a50; }
html.dark .siga-notif-item { background: #1a2535; border-bottom-color: #2a3a50; }
html.dark .siga-notif-item:hover { background: #1f2d40; }
html.dark .siga-notif-item.unread { background: #201520; }
html.dark .siga-notif-msg { color: #c8def4; }
html.dark .siga-notif-time { color: #5a7899; }
html.dark .siga-notif-empty { color: #5a7899; }
html.dark .siga-reveal-toggle { background: #2a4a6a; }
html.dark .siga-reveal-delete  { background: #8b1515; }
html.dark #notifModal .modal-header { background: #0f1a2a; }

/* ── Footer ── */
html.dark .site-footer {
  background: #1a2535 !important;
  border-top-color: #2a3a50 !important;
}
html.dark .site-footer-copy,
html.dark .site-footer-made,
html.dark .site-footer-brand-link { color: #7a94b2 !important; }

/* ── Misc template elements ── */
html.dark .panel,
html.dark .panel-heading,
html.dark .panel-body { background: #1a2535; border-color: #2a3a50; color: #c8def4; }
html.dark .nav-tabs .nav-link { color: #7a94b2; border-color: #2a3a50; }
html.dark .nav-tabs .nav-link.active {
  background: #1a2535;
  border-color: #2a3a50;
  color: #c8def4;
}
html.dark .tab-content { background: #1a2535; border-color: #2a3a50; }
html.dark .progress { background: #1f2d40; }
html.dark code { background: #1f2d40; color: #c8def4; }
html.dark pre { background: #0d1928; color: #c8def4; border-color: #2a3a50; }

/* ── Sala cards ── */
html.dark .sala-card { background: #1a2535; border-color: #2a3a50; }
html.dark .sala-card-name { color: #c8def4; }
html.dark .sala-card-footer { background: #0d1928; border-color: #2a3a50; }

/* ── Login ── */
html.dark .login-card { background: #1a2535; }
html.dark .login-card-body .form-control { background: #0d1928; border-color: #2a3a50; color: #c8def4; }

/* ── DataTable: selected rows ── */
html.dark table.dataTable tbody tr.selected,
html.dark table.dataTable tbody tr.selected td { background: #1B3872 !important; color: #fff; }

/* ── SweetAlert2 ── */
html.dark .swal2-popup {
  background: #1a2535 !important;
  color: #c8def4 !important;
}
html.dark .swal2-title,
html.dark .swal2-content { color: #c8def4 !important; }

/* ── Select2 ── */
html.dark .select2-container--default .select2-selection--single,
html.dark .select2-container--default .select2-selection--multiple {
  background: #0d1928 !important;
  border-color: #2a3a50 !important;
  color: #c8def4 !important;
}
html.dark .select2-container--default .select2-selection--single .select2-selection__rendered { color: #c8def4; }
html.dark .select2-dropdown {
  background: #1a2535 !important;
  border-color: #2a3a50 !important;
}
html.dark .select2-container--default .select2-results__option { color: #c8def4; }
html.dark .select2-container--default .select2-results__option--highlighted { background: #1B3872 !important; }
html.dark .select2-search__field {
  background: #0d1928 !important;
  color: #c8def4 !important;
  border-color: #2a3a50 !important;
}

/* ─── Fixed page footer ─────────────────────────────────────────────────────── */
/* z-index:900 < sidebar z-index:1400 — sidebar naturally covers left section */
.site-footer {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 900 !important;
  margin-left: 0 !important;
  background: #fff;
  border-top: 1px solid #e4e7ec;
  padding: 10px 24px !important;
}
.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
}
/* margin-left pushes text past the sidebar so the visible gap = right-side padding (24px) */
.site-footer-copy  {
  color: #9aa5b4;
  font-size: 0.875rem;
  margin-left: 260px; /* expanded sidebar */
}
body.site-menubar-fold .site-footer-copy { margin-left: 90px; }
body.site-menubar-hide .site-footer-copy { margin-left: 0; }
@media (max-width: 767px) {
  .site-footer-copy { margin-left: 0 !important; }
}
.site-footer-made  { color: #9aa5b4; font-size: 0.875rem; }
.site-footer-heart { color: #D01F1F; font-style: normal; }
.site-footer-brand-link,
.site-footer-brand-link:visited {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
}
.site-footer-brand-link:hover { text-decoration: underline; }

/* Extra bottom padding so content isn't hidden behind fixed footer */
.page { padding-bottom: 50px !important; }

/* ─── Logo video overlay (fullscreen custom overlay, no Bootstrap modal) ────── */
/* Styles are inline on the overlay div; no additional CSS needed here */

/* ─── DataTable SIGA standard ─────────────────────────────────────────────── */
/* Toolbar: length left, search right */
.dt-toolbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 14px !important;
  flex-wrap: wrap;
  gap: 10px;
}

/* Length control */
.dt-length {
  display: flex !important;
  align-items: center;
}
.dt-length label {
  display: flex !important;
  align-items: center;
  gap: 12px;
  font-size: .88rem;
  color: #555;
  font-weight: 500;
  white-space: nowrap;
  margin: 0;
}
.dt-length select {
  font-size: 1rem !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
  border: 1px solid #ccc !important;
  min-width: 72px;
  height: auto !important;
}

/* Search */
.dt-search {
  display: flex !important;
  align-items: center;
  gap: 8px;
}
.dt-search label {
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  font-weight: 500;
  color: #555;
  margin: 0;
  white-space: nowrap;
}
.dt-search input {
  border: 1px solid #ccc !important;
  border-radius: 6px !important;
  padding: 5px 10px !important;
  font-size: .88rem !important;
  min-width: 200px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.dt-search input:focus {
  border-color: var(--siga-blue, #1B3872) !important;
  box-shadow: 0 0 0 2px rgba(27,56,114,.1) !important;
}

/* Footer: info left, pagination right */
.dt-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-top: 12px !important;
  flex-wrap: wrap;
  gap: 8px;
}
.dt-info {
  font-size: .82rem;
  color: #888;
}

/* Pagination: right-aligned, SIGA blue active */
.dt-pages {
  margin-left: auto;
}
.dt-pages .paginate_button {
  border-radius: 5px !important;
}
.dt-pages .paginate_button.current,
.dt-pages .paginate_button.current:hover {
  background: var(--siga-blue, #1B3872) !important;
  color: #fff !important;
  border-color: var(--siga-blue, #1B3872) !important;
}

/* ── Notification bell ──────────────────────────────────────────────────── */
.siga-notif-btn {
  position: relative !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0 !important;
  color: #fff !important;
  background: rgba(0,0,0,.18) !important;
  border: none !important;
  border-radius: 6px !important;
  margin: 0 2px;
  cursor: pointer;
  transition: background .15s;
}
.siga-notif-btn:hover,
.siga-notif-btn:focus {
  background: rgba(0,0,0,.32) !important;
  color: #fff !important;
}
.siga-notif-btn svg {
  display: block;
  flex-shrink: 0;
}
.siga-notif-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  background: #D01F1F;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 9px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  line-height: 1;
  border: 2px solid #6A8FAA;
  box-sizing: border-box;
}
/* ── Notification Drawer ────────────────────────────────────────────────── */
.siga-notif-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 380px;
  max-width: 100vw;
  z-index: 1060;
  background: #fff;
  box-shadow: -4px 0 24px rgba(0,0,0,.15);
  display: flex;
  flex-direction: column;
  transform: translateX(110%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.siga-notif-drawer.open {
  transform: translateX(0);
}
.siga-notif-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e9ecef;
  min-height: 62px;
  flex-shrink: 0;
}
.siga-notif-drawer-header h5 {
  margin: 0;
  font-size: .95rem;
  font-weight: 700;
}
.siga-notif-drawer-close {
  background: none;
  border: none;
  font-size: 1.1rem;
  color: #6c757d;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  line-height: 1;
  transition: background .15s, color .15s;
}
.siga-notif-drawer-close:hover { color: #333; background: rgba(0,0,0,.06); }
.siga-notif-drawer-actions {
  padding: 10px 16px;
  border-bottom: 1px solid #e9ecef;
  flex-shrink: 0;
}
.siga-notif-drawer-body {
  flex: 1;
  overflow-y: auto;
}
.siga-notif-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 1059;
  display: none;
}
.siga-notif-overlay.active { display: block; }
.siga-notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  background: #fff;
  position: relative;
  z-index: 1;
  user-select: none;
  transition: background .15s, transform .25s ease;
}
.siga-notif-item:hover { background: #f5f6f8; }
.siga-notif-item.unread { background: #fef6f6; }
.siga-notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  margin-top: 5px;
  flex-shrink: 0;
}
.siga-notif-dot.active { background: #D01F1F; }
.siga-notif-content { flex: 1; min-width: 0; }
.siga-notif-msg {
  margin: 0;
  font-size: .82rem;
  line-height: 1.4;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.siga-notif-item.unread .siga-notif-msg { font-weight: 600; }
.siga-notif-time {
  display: block;
  font-size: .72rem;
  color: #999;
  margin-top: 3px;
}
.siga-notif-empty {
  text-align: center;
  color: #999;
  font-size: .82rem;
  padding: 32px 16px;
}

/* ── Swipe-to-reveal on notification items ──────────────────────────────── */
.siga-notif-item-wrap {
  position: relative;
  overflow: hidden;
}
.siga-notif-actions-reveal {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  display: flex;
  align-items: stretch;
  width: 128px;
}
.siga-notif-item-wrap.open .siga-notif-item {
  transform: translateX(-128px);
}
.siga-reveal-btn {
  flex: 1;
  border: none;
  cursor: pointer;
  font-size: .68rem;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 6px;
  transition: filter .15s;
}
.siga-reveal-btn i { font-size: .9rem; }
.siga-reveal-btn:hover { filter: brightness(.88); }
.siga-reveal-toggle { background: #6A8FAA; color: #fff; }
.siga-reveal-delete  { background: #D01F1F; color: #fff; }

/* ── Notification detail modal header ───────────────────────────────────── */
#notifModal .modal-header {
  background: var(--siga-blue, #1B3872);
  color: #fff;
  border-radius: .3rem .3rem 0 0;
}
#notifModal .modal-header .modal-title { color: #fff; font-size: .95rem; font-weight: 700; }
#notifModal .modal-header .close { color: rgba(255,255,255,.8); text-shadow: none; opacity: 1; }
#notifModal .modal-header .close:hover { color: #fff; opacity: 1; }

/* ── Guided tour (intro.js) custom skin ─────────────────────────────────── */
.introjs-overlay {
  background: rgba(0,0,0,.55) !important;
}
.introjs-helperLayer {
  border-radius: 8px !important;
  box-shadow: rgba(0,0,0,.6) 0 0 0 5000px, 0 0 0 3px #1B3872, 0 0 0 5px rgba(27,56,114,.25) !important;
}
.introjs-tooltip {
  background: #ffffff !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 40px rgba(0,0,0,.28) !important;
  min-width: 300px !important;
  max-width: 380px !important;
  padding: 0 !important;
  border: none !important;
  overflow: hidden;
}
/* Header strip with SIGA blue */
.introjs-tooltip::before {
  content: '';
  display: block;
  height: 5px;
  background: #1B3872;
  border-radius: 12px 12px 0 0;
}
.introjs-tooltiptext {
  background: #ffffff !important;
  color: #1B3872 !important;
  font-size: .87rem !important;
  line-height: 1.6 !important;
  padding: 16px 20px 10px !important;
  font-family: inherit !important;
}
.introjs-tooltiptext strong {
  display: block;
  font-size: .96rem;
  color: #1B3872;
  margin-bottom: 5px;
  font-weight: 700;
}
.introjs-tooltiptext br + br { display: none; }
.introjs-tooltipbuttons {
  background: #f0f4f9 !important;
  border-top: 1px solid #dde4ef !important;
  padding: 10px 14px !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}
.introjs-button {
  border-radius: 7px !important;
  font-size: .8rem !important;
  font-weight: 600 !important;
  padding: 6px 16px !important;
  text-shadow: none !important;
  text-decoration: none !important;
  transition: opacity .15s !important;
}
.introjs-nextbutton {
  background: #1B3872 !important;
  border: 1px solid #1B3872 !important;
  color: #ffffff !important;
  margin-left: auto !important;
}
.introjs-nextbutton:hover,
.introjs-nextbutton:focus { opacity: .88 !important; color: #fff !important; }
.introjs-prevbutton {
  background: #ffffff !important;
  border: 1px solid #c8d3e8 !important;
  color: #1B3872 !important;
}
.introjs-prevbutton:hover { background: #eef1f8 !important; color: #1B3872 !important; }
.introjs-prevbutton.introjs-disabled {
  opacity: .35 !important;
  pointer-events: none !important;
}
.introjs-skipbutton {
  background: transparent !important;
  border: none !important;
  color: #8a9ab8 !important;
  font-size: .77rem !important;
  padding: 6px 8px !important;
  font-weight: 500 !important;
}
.introjs-skipbutton:hover { color: #D01F1F !important; }
.introjs-progress {
  background: #dde4ef !important;
  border-radius: 4px !important;
  height: 4px !important;
  margin: 0 20px 12px !important;
}
.introjs-progressbar {
  background: #1B3872 !important;
  border-radius: 4px !important;
  height: 4px !important;
}
/* Step counter badge */
.introjs-stepnumber {
  display: inline-block;
  background: #1B3872 !important;
  color: #fff !important;
  font-size: .7rem !important;
  font-weight: 700 !important;
  border-radius: 20px;
  padding: 1px 7px;
  margin-right: 6px;
  vertical-align: middle;
}
/* Arrow colors to match white tooltip */
.introjs-arrow.top         { border-bottom-color: #ffffff !important; }
.introjs-arrow.bottom      { border-top-color:    #ffffff !important; }
.introjs-arrow.left        { border-right-color:  #ffffff !important; }
.introjs-arrow.right       { border-left-color:   #ffffff !important; }
.introjs-arrow.top-right   { border-bottom-color: #ffffff !important; }
.introjs-arrow.top-middle  { border-bottom-color: #ffffff !important; }

/* ── Dark mode overrides ──────────────────────────────────────────────────── */
html.dark .introjs-tooltip { background: #162032 !important; }
html.dark .introjs-tooltip::before { background: #7eb3e8; }
html.dark .introjs-tooltiptext { background: #162032 !important; color: #c8def4 !important; }
html.dark .introjs-tooltiptext strong { color: #7eb3e8; }
html.dark .introjs-tooltipbuttons { background: #0f1a2a !important; border-top-color: #1e3050 !important; }
html.dark .introjs-nextbutton { background: #1B3872 !important; border-color: #1B3872 !important; color: #fff !important; }
html.dark .introjs-prevbutton { background: #1a2d45 !important; border-color: #2a4060 !important; color: #c8def4 !important; }
html.dark .introjs-skipbutton { color: #5a7a9a !important; }
html.dark .introjs-progress { background: #1e3050 !important; }
html.dark .introjs-arrow.top        { border-bottom-color: #162032 !important; }
html.dark .introjs-arrow.bottom     { border-top-color:    #162032 !important; }
html.dark .introjs-arrow.left       { border-right-color:  #162032 !important; }
html.dark .introjs-arrow.right      { border-left-color:   #162032 !important; }

/* ── KPI icon circles — dashboard ─────────────────────────────────────────── */
.kpi-icon {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.kpi-icon-navy   { background: #e8f4f8; }
.kpi-icon-amber  { background: #fef9e7; }
.kpi-icon-blue   { background: #eaf4fb; }
.kpi-icon-purple { background: #f9ebf9; }
.kpi-icon-green  { background: #eafaf1; }
.kpi-icon-steel  { background: #f0f4ff; }
html.dark .kpi-icon-navy   { background: #1a2d3e; }
html.dark .kpi-icon-amber  { background: #2d2510; }
html.dark .kpi-icon-blue   { background: #0f2030; }
html.dark .kpi-icon-purple { background: #2a1a2e; }
html.dark .kpi-icon-green  { background: #0d2818; }
html.dark .kpi-icon-steel  { background: #1a2040; }
