/* ============================================================
   HyVision White-Labeling Module Styles
   ============================================================ */

/* Paleta compartida: portafolio (Sistemas de energía) + vista SCADA (dashboard) */
:root {
  --hyv-surface-bg: radial-gradient(circle at 50% 12%, #1a331a 0%, #0d1a0d 50%, #070d07 100%);
  --hyv-surface-solid: #070d07;
  --hyv-surface-text: #e5ede4;
  --hyv-card-bg: linear-gradient(165deg, rgba(32, 54, 28, 0.5) 0%, rgba(14, 25, 14, 0.85) 100%);
  --hyv-card-border: rgba(130, 195, 120, 0.22);
  --hyv-text-muted: #92b08f;
  --hyv-accent-soft: #8ce47e;
  --hyv-btn-scada-bg: linear-gradient(135deg, #5a5f4d 0%, #383b2f 100%);
}

/* Floating Launcher Button */
.hyvision-wl-trigger {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #5a5f4d 0%, #383b2f 100%);
  color: #ffffff;
  border: 1px solid rgba(130, 195, 120, 0.4);
  border-radius: 30px;
  padding: 10px 18px;
  font-family: 'Roboto', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 20px rgba(67, 106, 60, 0.4);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.hyvision-wl-trigger:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55), 0 0 28px rgba(67, 106, 60, 0.6);
  background: linear-gradient(135deg, #4e7c46 0%, #355c2f 100%);
}

.hyvision-wl-trigger svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Modal Backdrop */
.hyvision-wl-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 10, 5, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease-out;
}

.hyvision-wl-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Modal Dialog */
.hyvision-wl-modal {
  width: 90%;
  max-width: 680px;
  max-height: 88vh;
  background: #142014;
  background: linear-gradient(165deg, #182818 0%, #0f190f 100%);
  border: 1px solid rgba(130, 195, 120, 0.3);
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 50px rgba(67, 106, 60, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.92) translateY(20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Roboto', sans-serif;
  color: #e5ede4;
}

.hyvision-wl-overlay.active .hyvision-wl-modal {
  transform: scale(1) translateY(0);
}

/* Modal Header */
.hyvision-wl-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.hyvision-wl-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hyvision-wl-header-title h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.hyvision-wl-badge {
  background: rgba(67, 106, 60, 0.35);
  border: 1px solid rgba(130, 195, 120, 0.4);
  color: #a3d99b;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hyvision-wl-close {
  background: transparent;
  border: none;
  color: #8b9c8a;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.hyvision-wl-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* Modal Tab Navigation */
.hyvision-wl-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 20px;
  gap: 6px;
  overflow-x: auto;
}

.hyvision-wl-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #8ea38b;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.hyvision-wl-tab-btn:hover {
  color: #d1ebd0;
}

.hyvision-wl-tab-btn.active {
  color: #9fa68b;
  border-bottom-color: #9fa68b;
  background: rgba(159, 166, 139, 0.05);
}

.hyvision-wl-tab-pane {
  display: none;
  flex-direction: column;
  gap: 20px;
}

.hyvision-wl-tab-pane.active {
  display: flex;
}

/* Report Action Buttons */
.hyv-report-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.hyv-rep-action-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(130, 195, 120, 0.25);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  color: #ffffff;
  transition: all 0.2s ease;
}

.hyv-rep-action-card:hover {
  transform: translateY(-2px);
  background: rgba(159, 166, 139, 0.12);
  border-color: #9fa68b;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.hyv-rep-action-icon {
  font-size: 26px;
}

.hyv-rep-action-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.hyv-rep-action-desc {
  font-size: 11px;
  color: #8ea38b;
  line-height: 1.3;
}

/* Period selector chips */
.hyv-period-selector {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.hyv-period-chip {
  flex: 1;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #b0c7ae;
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hyv-period-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.hyv-period-chip.active {
  background: rgba(159, 166, 139, 0.2);
  border-color: #9fa68b;
  color: #a3e099;
  box-shadow: 0 0 12px rgba(159, 166, 139, 0.3);
}

/* Sidebar Reports Nav Item (Native Look & Feel) */
.hyvision-sidebar-reports-item {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hyvision-sidebar-reports-item a {
  color: inherit !important;
  transition: background-color 0.15s ease, color 0.15s ease;
  user-select: none;
}

.hyvision-sidebar-reports-item a:hover {
  background-color: rgba(255, 255, 255, 0.08) !important;
}

.hyvision-sidebar-reports-item a:active,
.hyvision-sidebar-reports-item.active a {
  background-color: rgba(67, 106, 60, 0.35) !important;
  color: #a3e099 !important;
}

/* Customer View Restrictions (Hide Entidades & Instancias de edge) */
body.hyvision-role-customer [data-hyvision-customer-hidden="true"],
body.hyvision-role-customer li[data-hyvision-customer-hidden="true"] {
  display: none !important;
}

/* Modal Body */
.hyvision-wl-body {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Section Box */
.hyvision-wl-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 18px 20px;
}

.hyvision-wl-section-title {
  margin: 0 0 16px 0;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #9EBA99;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hyvision-wl-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hyvision-wl-form-full {
  grid-column: span 2;
}

.hyvision-wl-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hyvision-wl-label {
  font-size: 12.5px;
  font-weight: 500;
  color: #c7d9c5;
}

.hyvision-wl-input,
.hyvision-wl-select {
  background: rgba(10, 20, 10, 0.7);
  border: 1px solid rgba(130, 195, 120, 0.25);
  border-radius: 8px;
  padding: 10px 14px;
  color: #ffffff;
  font-size: 13.5px;
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

.hyvision-wl-input:focus,
.hyvision-wl-select:focus {
  border-color: #9fa68b;
  box-shadow: 0 0 10px rgba(159, 166, 139, 0.35);
}

.hyvision-wl-color-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hyvision-wl-color-input {
  width: 44px;
  height: 40px;
  padding: 2px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  cursor: pointer;
}

/* Color Presets */
.hyvision-wl-presets {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.hyvision-wl-preset-chip {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.2s ease;
}

.hyvision-wl-preset-chip:hover {
  transform: scale(1.15);
  border-color: #ffffff;
}

/* File Upload Button */
.hyvision-wl-file-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(67, 106, 60, 0.25);
  border: 1px dashed rgba(130, 195, 120, 0.5);
  color: #a3d99b;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hyvision-wl-file-btn:hover {
  background: rgba(67, 106, 60, 0.45);
  border-color: #9fa68b;
  color: #ffffff;
}

/* CSS Editor */
.hyvision-wl-textarea {
  width: 100%;
  min-height: 90px;
  font-family: 'Consolas', 'Roboto Mono', monospace;
  font-size: 12.5px;
  background: rgba(6, 14, 7, 0.85);
  border: 1px solid rgba(130, 195, 120, 0.25);
  border-radius: 8px;
  padding: 12px;
  color: #b8f0b0;
  resize: vertical;
  outline: none;
  box-sizing: border-box;
}

.hyvision-wl-textarea:focus {
  border-color: #9fa68b;
}

/* Modal Footer */
.hyvision-wl-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}

.hyvision-wl-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hyvision-wl-btn {
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hyvision-wl-btn-reset {
  background: transparent;
  color: #c97575;
  border: 1px solid rgba(201, 117, 117, 0.3);
}

.hyvision-wl-btn-reset:hover {
  background: rgba(201, 117, 117, 0.15);
  color: #ff9999;
}

.hyvision-wl-btn-cancel {
  background: rgba(255, 255, 255, 0.08);
  color: #d1ded0;
}

.hyvision-wl-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.hyvision-wl-btn-save {
  background: linear-gradient(135deg, #5a5f4d 0%, #383b2f 100%);
  color: #ffffff;
  border: 1px solid rgba(130, 195, 120, 0.4);
  box-shadow: 0 4px 14px rgba(67, 106, 60, 0.4);
}

.hyvision-wl-btn-save:hover {
  background: linear-gradient(135deg, #4f7d46 0%, #396331 100%);
  box-shadow: 0 6px 20px rgba(67, 106, 60, 0.6);
  transform: translateY(-1px);
}

/* Toast Notification */
.hyvision-wl-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(50px);
  background: #1b3819;
  border: 1px solid #9fa68b;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(159, 166, 139, 0.4);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100001;
  pointer-events: none;
}

.hyvision-wl-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ============================================================
   HyVision Fleet Control Hub (Portafolio de Sistemas de Energía)
   ============================================================ */

/* Full Bleed SCADA Canvas: Unify background and eliminate white borders */
mat-sidenav-content,
.mat-drawer-content,
tb-dashboards-table,
tb-entities-table,
.tb-dashboards-table-container,
.tb-default-dashboard,
.mat-drawer-container {
  background: var(--hyv-surface-bg) !important;
}

/* Fondo SCADA solo en portafolio /dashboards (no en Dispositivos, Alarmas, SCADA individual, etc.) */
html.hyvision-route-dashboards .tb-main-content,
body.hyvision-fleet-list-mode .tb-main-content {
  background: radial-gradient(circle at 50% 12%, #1a331a 0%, #0d1a0d 50%, #070d07 100%) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

/*
 * Fleet Hub montado DENTRO de tb-entities-table (mat-drawer-content).
 * Mismo contenedor que la lista nativa → respeta margen del sidenav TB.
 */
tb-entities-table.hyvision-fleet-host,
tb-dashboards-table.hyvision-fleet-host {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  height: auto !important;
  min-height: 100% !important;
}

tb-entities-table.hyvision-fleet-host mat-drawer-container,
tb-dashboards-table.hyvision-fleet-host mat-drawer-container {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 100% !important;
}

tb-entities-table.hyvision-fleet-host mat-drawer,
tb-dashboards-table.hyvision-fleet-host mat-drawer {
  display: none !important;
}

tb-entities-table.hyvision-fleet-host .tb-entity-table,
tb-dashboards-table.hyvision-fleet-host .tb-entity-table {
  display: none !important;
}

tb-entities-table.hyvision-fleet-host mat-drawer-content,
tb-dashboards-table.hyvision-fleet-host mat-drawer-content {
  position: relative !important;
  inset: auto !important;
  overflow: visible !important;
  height: auto !important;
  min-height: 100% !important;
  background: transparent !important;
}

#hyvision-fleet-hub {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  box-sizing: border-box;
  overflow-x: clip;
}

.hyv-fleet-hub {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: calc(100vh - 64px);
  box-sizing: border-box;
  background: var(--hyv-surface-bg);
  color: var(--hyv-surface-text);
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  padding: 24px 32px 60px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  z-index: 10;
}

@media (max-width: 959px) {
  .hyv-fleet-hub {
    padding: 16px 14px 48px 14px;
  }

  .hyv-fleet-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hyv-fleet-title-group h1 {
    font-size: 17px;
    flex-wrap: wrap;
  }
}

/* Header & Top Bar */
.hyv-fleet-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 18px;
}

.hyv-fleet-title-group h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.5px;
}

.hyv-fleet-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  background: rgba(67, 106, 60, 0.35);
  border: 1px solid #9fa68b;
  border-radius: 20px;
  color: #8ce47e;
}

.hyv-fleet-title-group p {
  margin: 4px 0 0 0;
  font-size: 13px;
  color: #9ab396;
}

.hyv-fleet-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* View Mode Switcher */
.hyv-fleet-view-switch {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  gap: 4px;
}

.hyv-view-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: #a2bca0;
  padding: 7px 14px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hyv-view-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.hyv-view-btn.active {
  background: linear-gradient(135deg, #5a5f4d 0%, #383b2f 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(67, 106, 60, 0.5);
  border: 1px solid rgba(140, 228, 126, 0.3);
}

/* Mode Classic toggle */
.hyv-btn-toggle-classic {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #c7d8c5;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.hyv-btn-toggle-classic:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* KPI Macro Banner */
.hyv-fleet-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.hyv-kpi-card {
  background: linear-gradient(160deg, rgba(35, 60, 30, 0.45) 0%, rgba(14, 25, 14, 0.75) 100%);
  border: 1px solid rgba(130, 195, 120, 0.2);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.hyv-kpi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(140, 228, 126, 0.45);
}

.hyv-kpi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hyv-kpi-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #9bb797;
}

.hyv-kpi-icon {
  font-size: 18px;
  opacity: 0.85;
}

.hyv-kpi-value {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.hyv-kpi-value span {
  font-size: 14px;
  font-weight: 500;
  color: #a2c79e;
  margin-left: 4px;
}

.hyv-kpi-sub {
  font-size: 11.5px;
  color: #7d9e79;
  display: flex;
  align-items: center;
  gap: 4px;
}

.hyv-kpi-sub.positive {
  color: #6ee760;
}

/* Filter & Search Bar */
.hyv-fleet-filters-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(0, 0, 0, 0.25);
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.hyv-search-box {
  position: relative;
  flex: 1;
  min-width: 260px;
  max-width: 480px;
}

.hyv-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #7f9f7c;
  pointer-events: none;
}

.hyv-search-input {
  width: 100%;
  background: rgba(14, 26, 14, 0.85);
  border: 1px solid rgba(130, 195, 120, 0.25);
  border-radius: 8px;
  padding: 9px 12px 9px 36px;
  color: #ffffff;
  font-size: 13px;
  outline: none;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.hyv-search-input:focus {
  border-color: #9fa68b;
  box-shadow: 0 0 14px rgba(159, 166, 139, 0.3);
  background: rgba(20, 36, 20, 0.95);
}

.hyv-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hyv-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #a4bea2;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.hyv-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.hyv-chip.active {
  background: rgba(67, 106, 60, 0.6);
  border-color: #9fa68b;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(67, 106, 60, 0.4);
}

/* Cards Grid */
.hyv-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 18px;
}

.hyv-site-card {
  background: linear-gradient(165deg, rgba(32, 54, 28, 0.5) 0%, rgba(14, 25, 14, 0.85) 100%);
  border: 1px solid rgba(130, 195, 120, 0.22);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
}

.hyv-site-card:hover {
  transform: translateY(-4px);
  border-color: rgba(140, 228, 126, 0.5);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65), 0 0 24px rgba(67, 106, 60, 0.35);
}

.hyv-site-card-offline {
  border-color: rgba(239, 68, 68, 0.28);
  background: linear-gradient(165deg, rgba(28, 28, 32, 0.55) 0%, rgba(12, 14, 16, 0.9) 100%);
}

.hyv-site-card-offline:hover {
  border-color: rgba(248, 113, 113, 0.45);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}

.hyv-offline-banner {
  font-size: 11px;
  font-weight: 600;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 8px;
  padding: 6px 10px;
  line-height: 1.35;
}

.hyv-no-data {
  color: #64748b !important;
  font-weight: 600;
}

.hyv-power-triad-muted .hyv-triad-val {
  color: #64748b !important;
}

.hyv-sparkline-offline {
  opacity: 0.65;
}

.hyv-table-row-offline {
  background: rgba(15, 18, 20, 0.45);
}

.hyv-table-offline-hint {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 3px;
  font-weight: 500;
}

/* Card Header */
.hyv-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.hyv-card-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hyv-card-title {
  font-size: 16.5px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
}

.hyv-card-title:hover {
  color: #8ce47e;
}

.hyv-card-sub {
  font-size: 12px;
  color: #92b08f;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hyv-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  background: #50e338;
  box-shadow: 0 0 10px #50e338;
  animation: pulseGlow 2s infinite ease-in-out;
}

.hyv-status-dot.alert {
  background: #ffc107;
  box-shadow: 0 0 10px #ffc107;
}

@keyframes pulseGlow {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hyv-card-type-tag {
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #b7d1b5;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Power Triad (Solar, BESS, Load) */
.hyv-power-triad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: rgba(0, 0, 0, 0.3);
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.hyv-triad-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
}

.hyv-triad-label {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  color: #8dae8a;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.hyv-triad-val {
  font-size: 14.5px;
  font-weight: 800;
  color: #ffffff;
}

.hyv-triad-val.solar { color: #f7d048; }
.hyv-triad-val.bess { color: #6be35b; }
.hyv-triad-val.load { color: #ffffff; }

.hyv-triad-extra {
  font-size: 10.5px;
  color: #7b9c78;
}

/* Sparkline & Health Bar */
.hyv-card-sparkline-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hyv-sparkline-label {
  font-size: 10.5px;
  color: #7e9c7b;
  display: flex;
  justify-content: space-between;
}

.hyv-sparkline-svg {
  width: 100%;
  height: 44px;
  overflow: visible;
}

.hyv-card-metrics-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: #92b08f;
  padding: 6px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Card Actions */
.hyv-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
}

.hyv-btn-scada {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #5a5f4d 0%, #383b2f 100%);
  color: #ffffff;
  border: 1px solid rgba(130, 195, 120, 0.4);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 3px 10px rgba(67, 106, 60, 0.4);
}

.hyv-btn-scada:hover {
  background: linear-gradient(135deg, #4f7d46 0%, #355c2f 100%);
  box-shadow: 0 5px 16px rgba(67, 106, 60, 0.6);
  transform: translateY(-1px);
  color: #ffffff;
}

/* TB/Material tiñe <a> de azul-primary: forzar blanco en tarjetas y SCADA */
#hyvision-fleet-hub a.hyv-card-title,
#hyvision-fleet-hub a.hyv-card-title:link,
#hyvision-fleet-hub a.hyv-card-title:visited,
#hyvision-fleet-hub a.hyv-btn-scada,
#hyvision-fleet-hub a.hyv-btn-scada:link,
#hyvision-fleet-hub a.hyv-btn-scada:visited,
#hyvision-fleet-hub a.hyv-btn-scada span,
#hyvision-fleet-hub .hyv-scada-table a.hyv-btn-scada,
#hyvision-fleet-hub .hyv-scada-table td a {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
}

#hyvision-fleet-hub a.hyv-card-title:hover {
  color: #8ce47e !important;
  -webkit-text-fill-color: #8ce47e;
}

.hyv-btn-report {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #d1ded0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hyv-btn-report:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

/* ============================================================
   Enhanced SCADA Map View (Latin America / Country Drilldown)
   ============================================================ */
.hyv-map-container-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hyv-map-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: rgba(14, 25, 14, 0.6);
  border: 1px solid rgba(130, 195, 120, 0.2);
  border-radius: 10px;
  padding: 10px 16px;
}

.hyv-map-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hyv-map-header-title h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.hyv-map-header-title span {
  font-size: 12px;
  color: #8dae8a;
}

.hyv-map-nav-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.35);
  padding: 4px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hyv-map-tab-btn {
  background: transparent;
  border: none;
  color: #92b08f;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hyv-map-tab-btn.active {
  background: linear-gradient(135deg, #5a5f4d 0%, #383b2f 100%);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(67, 106, 60, 0.5);
  border: 1px solid rgba(130, 195, 120, 0.4);
}

.hyv-map-tab-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

.hyv-map-wrapper {
  position: relative;
  width: 100%;
  height: 540px;
  background: radial-gradient(circle at 50% 50%, #122412 0%, #081108 100%);
  border-radius: 12px;
  border: 1px solid rgba(130, 195, 120, 0.25);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
}

.hyv-map-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Landmasses styling */
.hyv-land-neighbor {
  fill: #0d1a0d;
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 0.9;
}

.hyv-land-active {
  fill: #162f16;
  stroke: #9fa68b;
  stroke-width: 1.5;
  filter: drop-shadow(0 0 10px rgba(159, 166, 139, 0.3));
  transition: all 0.3s ease;
}

.hyv-island-active {
  fill: #1d3d1d;
  stroke: #8ce47e;
  stroke-width: 1.2;
}

.hyv-graticule {
  stroke: rgba(255, 255, 255, 0.035);
  stroke-width: 1;
  stroke-dasharray: 4, 4;
}

/* Markers styling */
.hyv-map-pin {
  cursor: pointer;
}

.hyv-pin-core {
  transition: r 0.2s ease, stroke 0.2s ease;
}

.hyv-map-pin:hover .hyv-pin-core,
.hyv-map-pin.selected .hyv-pin-core {
  r: 6.5px;
  stroke: #f7d048;
  stroke-width: 2px;
  filter: drop-shadow(0 0 8px #f7d048);
}

.hyv-map-pin:hover .hyv-pin-label,
.hyv-map-pin.selected .hyv-pin-label {
  fill: #f7d048;
  font-size: 10.5px;
}

.hyv-pin-pulse {
  animation: markerPulse 2.2s infinite ease-out;
  transform-origin: center;
}

@keyframes markerPulse {
  0% { r: 6px; opacity: 0.85; }
  70% { r: 18px; opacity: 0.0; }
  100% { r: 20px; opacity: 0; }
}

.hyv-pin-label {
  font-size: 9.5px;
  font-weight: 700;
  fill: #ffffff;
  paint-order: stroke;
  stroke: rgba(7, 13, 7, 0.92);
  stroke-width: 3px;
  stroke-linejoin: round;
  pointer-events: none;
  font-family: 'Roboto', -apple-system, sans-serif;
}

/* Floating SCADA Telemetry Card */
.hyv-map-float-card {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(14, 25, 14, 0.95);
  border: 1px solid #9fa68b;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.85), 0 0 20px rgba(67, 106, 60, 0.4);
  backdrop-filter: blur(12px);
  width: 310px;
  box-sizing: border-box;
  z-index: 100;
  animation: cardFadeIn 0.25s ease;
}

@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.hyv-float-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.hyv-float-title {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
}

.hyv-float-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(159, 166, 139, 0.18);
  color: #8ce47e;
  border: 1px solid rgba(159, 166, 139, 0.3);
}

.hyv-float-sub {
  font-size: 11.5px;
  color: #92b08f;
  margin-bottom: 10px;
}

.hyv-float-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: rgba(0, 0, 0, 0.35);
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 11.5px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.hyv-float-scada-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  background: linear-gradient(135deg, #5a5f4d 0%, #383b2f 100%);
  color: #ffffff;
  border: 1px solid rgba(130, 195, 120, 0.5);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  box-sizing: border-box;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(67, 106, 60, 0.4);
}

.hyv-float-scada-btn:hover {
  background: linear-gradient(135deg, #4f7d46 0%, #355c2f 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(67, 106, 60, 0.6);
  color: #ffffff;
}

/* SCADA Table View */
.hyv-table-wrapper {
  width: 100%;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(130, 195, 120, 0.2);
  background: rgba(14, 25, 14, 0.6);
}

.hyv-scada-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.hyv-scada-table th {
  background: rgba(25, 45, 23, 0.85);
  color: #a4c4a1;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.8px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(130, 195, 120, 0.25);
}

.hyv-scada-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #dbe7da;
}

.hyv-scada-table tbody tr {
  transition: background 0.15s ease;
}

.hyv-scada-table tbody tr:hover {
  background: rgba(67, 106, 60, 0.2);
}

.hyv-btn-delete {
  background: rgba(220, 53, 69, 0.15);
  border: 1px solid rgba(220, 53, 69, 0.35);
  color: #ff6b77;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hyv-btn-delete:hover {
  background: rgba(220, 53, 69, 0.35);
  border-color: #ff4757;
  color: #ffffff;
  transform: scale(1.05);
}


.hyv-progress-bg {
  flex: 1;
  height: 7px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.hyv-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #5a5f4d 0%, #9fa68b 100%);
  border-radius: 4px;
}

/* ============================================================
   Native ThingsBoard Widgets Harmonization (Obsidian Emerald)
   Misma paleta que .hyv-fleet-hub / Sistemas de energía
   ============================================================ */

/* Canvas del tablero (Abrir SCADA): anula el gris #eee por defecto de ThingsBoard */
html.hyvision-route-dashboard mat-sidenav-content,
html.hyvision-route-dashboard .mat-drawer-content,
html.hyvision-route-dashboard .tb-main-content,
html.hyvision-route-dashboard .mat-app-background {
  background: var(--hyv-surface-bg) !important;
  color: var(--hyv-surface-text) !important;
}

div.tb-dashboard-page.mat-content,
.tb-dashboard-page,
.tb-dashboard-container,
.tb-dashboard-content,
tb-dashboard-page,
tb-dashboard {
  background: var(--hyv-surface-bg) !important;
  background-color: var(--hyv-surface-solid) !important;
  color: var(--hyv-surface-text) !important;
}

html.hyvision-route-dashboard #gridster-background,
html.hyvision-route-dashboard .tb-dashboard-content gridster,
html.hyvision-route-dashboard .tb-dashboard-content .gridster-item {
  background: transparent !important;
  background-color: transparent !important;
}

/* Widgets: fondo claro del config TB → transparente; conservar borde superior de acento */
html.hyvision-route-dashboard div.tb-widget {
  background: transparent !important;
  background-color: transparent !important;
  border-radius: 14px;
  box-sizing: border-box;
}

/* Tarjetas SCADA internas — franja superior (respaldo si TB cachea CSS viejo) */
html.hyvision-route-dashboard .solar-card-container,
html.hyvision-route-dashboard .pbd-card-container {
  border-top: 3.5px solid #f7d048 !important;
}

html.hyvision-route-dashboard .bess-card-container,
html.hyvision-route-dashboard .bess-dyn-card,
html.hyvision-route-dashboard .bess-rack-card,
html.hyvision-route-dashboard .alarm-card-container,
html.hyvision-route-dashboard .state-card-container,
html.hyvision-route-dashboard .balance-card-container,
html.hyvision-route-dashboard .general-card-container,
html.hyvision-route-dashboard .balance-planta-container {
  border-top: 3.5px solid #64B856 !important;
}

html.hyvision-route-dashboard .load-card-container,
html.hyvision-route-dashboard .carga-card-container {
  border-top: 3.5px solid #ffffff !important;
}

html.hyvision-route-dashboard .dg-card-container,
html.hyvision-route-dashboard .dg-pwr-card,
html.hyvision-route-dashboard .dg-sync-card {
  border-top: 3.5px solid #64748b !important;
}

html.hyvision-route-dashboard .pcs-card-container:not(.reactive):not(.thermal) {
  border-top: 3.5px solid #8ce47e !important;
}

html.hyvision-route-dashboard .pcs-card-container.reactive {
  border-top: 3.5px solid #c4b5fd !important;
}

html.hyvision-route-dashboard .pcs-card-container.thermal,
html.hyvision-route-dashboard .trend-card-container.therm {
  border-top: 3.5px solid #f97316 !important;
}

html.hyvision-route-dashboard .trend-card-container.elec {
  border-top: 3.5px solid #8ce47e !important;
}

html.hyvision-route-dashboard div.tb-widget:has([class*="-card-container"]),
html.hyvision-route-dashboard div.tb-widget:has(.scada-view-container),
html.hyvision-route-dashboard div.tb-widget:has(.bess-rack-card),
html.hyvision-route-dashboard div.tb-widget:has(.trend-card-container),
html.hyvision-route-dashboard div.tb-widget:has(.pcs-card-container) {
  border: none !important;
  border-top: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

html.hyvision-route-dashboard div.tb-widget.mat-elevation-z4:not(:has([class*="-card-container"])) {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4) !important;
}

html.hyvision-route-dashboard div.tb-widget .title,
html.hyvision-route-dashboard div.tb-widget .tb-widget-title .title {
  color: #f1f5f9 !important;
}

html.hyvision-route-dashboard tb-timewindow,
html.hyvision-route-dashboard .tb-widget-title tb-timewindow {
  color: var(--hyv-text-muted) !important;
}

html.hyvision-route-dashboard tb-dashboard-toolbar .mat-toolbar,
html.hyvision-route-dashboard tb-dashboard-toolbar .mat-fab-toolbar-wrapper {
  background: transparent !important;
}

html.hyvision-route-dashboard .tb-breadcrumb,
html.hyvision-route-dashboard .tb-breadcrumb-item,
html.hyvision-route-dashboard .tb-breadcrumb-item a {
  color: var(--hyv-text-muted) !important;
}

html.hyvision-route-dashboard .tb-breadcrumb-item a:hover {
  color: var(--hyv-accent-soft) !important;
}

html.hyvision-route-dashboard tb-dashboard-page a:not(.mat-mdc-button):not(.mat-mdc-icon-button) {
  color: #ffffff !important;
}

html.hyvision-route-dashboard tb-dashboard-page a:not(.mat-mdc-button):not(.mat-mdc-icon-button):hover {
  color: var(--hyv-accent-soft) !important;
}

/* Sinóptico animado — overrides (TB cachea widgetType por sesión) */
html.hyvision-route-dashboard .scada-view-container {
  background: var(--hyv-card-bg) !important;
  border: var(--hyv-card-border) !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45) !important;
}

html.hyvision-route-dashboard .scada-view-container .scada-badge.offgrid {
  color: #8ce47e !important;
  border-color: #9fa68b !important;
  background: rgba(67, 106, 60, 0.35) !important;
}

html.hyvision-route-dashboard .scada-view-container .scada-badge.ongrid {
  color: #6be35b !important;
  border-color: rgba(130, 195, 120, 0.55) !important;
  background: rgba(67, 106, 60, 0.28) !important;
}

html.hyvision-route-dashboard .scada-view-container .ac-busbar {
  stroke: #64B856 !important;
  filter: drop-shadow(0 0 10px rgba(100, 184, 86, 0.55)) !important;
}

html.hyvision-route-dashboard .scada-view-container .flow-solar {
  stroke: #f7d048 !important;
}

html.hyvision-route-dashboard .scada-view-container .flow-bess-charging {
  stroke: #64B856 !important;
}

html.hyvision-route-dashboard .scada-view-container .flow-bess-discharging {
  stroke: #f7d048 !important;
}

html.hyvision-route-dashboard .scada-view-container .flow-pcs,
html.hyvision-route-dashboard .scada-view-container .flow-grid {
  stroke: #8ce47e !important;
}

html.hyvision-route-dashboard .scada-view-container .flow-load {
  stroke: #ffffff !important;
}

html.hyvision-route-dashboard .scada-view-container .flow-dg-running {
  stroke: #f7d048 !important;
}

html.hyvision-route-dashboard .scada-view-container .scada-node-box {
  fill: rgba(14, 25, 14, 0.88) !important;
  stroke: rgba(130, 195, 120, 0.28) !important;
}

html.hyvision-route-dashboard .scada-view-container .n-header {
  fill: #92b08f !important;
}

html.hyvision-route-dashboard .scada-view-container .scada-footer-bar {
  color: #92b08f !important;
  border-top-color: rgba(130, 195, 120, 0.12) !important;
}

/* Native Timeseries Table */
.tb-table-widget,
.tb-timeseries-table,
tb-timeseries-table-widget {
  background: transparent !important;
}

.tb-table-widget .mat-mdc-table,
.tb-timeseries-table .mat-mdc-table,
table.mat-table {
  background: transparent !important;
}

.tb-table-widget .mat-mdc-header-row,
.tb-timeseries-table .mat-mdc-header-row,
tr.mat-header-row {
  background: rgba(18, 34, 20, 0.9) !important;
  border-bottom: 1px solid rgba(159, 166, 139, 0.25) !important;
}

.tb-table-widget .mat-mdc-header-cell,
.tb-timeseries-table .mat-mdc-header-cell,
th.mat-header-cell {
  color: #a4c4a1 !important;
  font-weight: 700 !important;
  font-size: 11.5px !important;
  letter-spacing: 0.6px !important;
}

.tb-table-widget .mat-mdc-cell,
.tb-timeseries-table .mat-mdc-cell,
td.mat-cell {
  color: #cbd5e1 !important;
  font-size: 12.5px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
}

.tb-table-widget .mat-mdc-row:hover,
.tb-timeseries-table .mat-mdc-row:hover,
tr.mat-row:hover {
  background: rgba(159, 166, 139, 0.08) !important;
}

/* Native Paginator */
.mat-mdc-paginator,
.mat-paginator {
  background: transparent !important;
  color: #94a3b8 !important;
  border-top: 1px solid rgba(159, 166, 139, 0.15) !important;
}

.mat-mdc-paginator .mat-mdc-select-value,
.mat-paginator .mat-select-value {
  color: #cbd5e1 !important;
}

.mat-mdc-paginator-range-label,
.mat-paginator-range-label {
  color: #94a3b8 !important;
}

.mat-mdc-paginator-navigation-next,
.mat-mdc-paginator-navigation-previous,
.mat-mdc-paginator-navigation-first,
.mat-mdc-paginator-navigation-last {
  color: #a4c4a1 !important;
}

/* Native Range & Timeseries Charts */
.tb-range-chart,
.tb-flot-chart,
.echarts-container {
  background: transparent !important;
}

/* Widget Title Bar Harmonization */
tb-dashboard-widget .tb-widget-title,
tb-dashboard-widget .tb-widget-title-text {
  color: #f1f5f9 !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
}

tb-dashboard-widget mat-card {
  background: transparent !important;
}


/* Dynamic Multi-Site Health & Telemetry Status */
.hyv-status-dot.offline {
  background: #ef4444 !important;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.7) !important;
  animation: none !important;
}
.hyv-card-type-tag.online {
  background: rgba(34, 197, 94, 0.15) !important;
  color: #4ade80 !important;
  border-color: rgba(34, 197, 94, 0.4) !important;
}
.hyv-card-type-tag.offline {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #f87171 !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
}
.hyv-kpi-sub.warning {
  color: #f59e0b !important;
}
.hyv-kpi-sub.danger {
  color: #ef4444 !important;
}
