/* ====================================================================
   Solinfes Analítica - Power BI Embedded Design System
   Brand Palette: Azul Primario #2D87DC | Naranja Secundario #DC822D
   ==================================================================== */

:root {
  /* Solinfes Brand Colors */
  --primary: #2d87dc;
  --primary-hover: #1f72bd;
  --primary-active: #185d9c;
  --primary-light: rgba(45, 135, 220, 0.12);
  --primary-subtle: #f0f7fe;
  
  --secondary: #dc822d;
  --secondary-hover: #bf6f22;
  --secondary-active: #a65e19;
  --secondary-light: rgba(220, 130, 45, 0.12);
  --secondary-subtle: #fdf5ed;
  
  --accent: #dc822d;
  --accent-light: #fef0e3;
  --accent-gradient: linear-gradient(135deg, #2d87dc 0%, #1f72bd 100%);
  --brand-gradient: linear-gradient(135deg, #2d87dc 0%, #dc822d 100%);
  
  --dark-bg: #0b1a30;
  --dark-surface: #0f2442;
  --body-bg: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-color: #e2e8f0;
  --border-focus: #2d87dc;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.04);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.05);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--body-bg);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Navbar */
.navbar {
  background: linear-gradient(135deg, #2d87dc 0%, #1e70bd 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0.65rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 14px rgba(45, 135, 220, 0.25);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.navbar-logo {
  height: 38px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  display: block;
}

.brand-icon-wrapper {
  width: 38px;
  height: 38px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.brand-title {
  color: #ffffff;
}

.brand-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #dc822d;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 0.35rem;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Enlaces y botones incrustados en el Navbar */
.nav-link-embedded {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: #ffffff;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: var(--transition);
  border: 1px solid transparent;
}

.nav-link-embedded:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.15);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.18);
  font-size: 0.875rem;
  color: #ffffff;
}

.nav-user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
}

.admin-badge {
  background: #dc822d;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Botón incrustado en barra de navegación */
.btn-admin-link {
  background: rgba(0, 0, 0, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  font-size: 0.825rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.18);
}

.btn-admin-link:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.btn-admin-link:active {
  background: rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-logout {
  color: #ffffff;
  font-size: 0.85rem;
  font-family: inherit;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: var(--transition);
}

.btn-logout:hover {
  color: #ffffff;
  background: rgba(239, 68, 68, 0.35);
  border-color: rgba(239, 68, 68, 0.5);
}

.btn-logout:active {
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Main Container */
.main-wrapper {
  flex: 1;
  padding: 2rem;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

/* Hero Section (Cuadro de Saludo Luminoso y Corporativo #2D87DC) */
.hero-section {
  background: linear-gradient(135deg, #2d87dc 0%, #1a6bb5 65%, #145694 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2.25rem 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(45, 135, 220, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-section::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(220, 130, 45, 0.32) 0%, rgba(255, 255, 255, 0.12) 45%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.hero-subtitle {
  color: #e0f2fe;
  font-size: 1.05rem;
  max-width: 600px;
  margin-bottom: 1.5rem;
}

/* ====================================================================
   Botones Incrustados en los Elementos (Embedded Buttons)
   ==================================================================== */

/* Buscador con Botón Incrustado Directamente en el Elemento */
.search-box-embedded {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-md);
  padding: 4px 6px 4px 14px;
  gap: 0.5rem;
  transition: var(--transition);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
  max-width: 650px;
}

.search-box-embedded:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45, 135, 220, 0.25), inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

.search-embedded-icon {
  color: #64748b;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.search-input-embedded {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 0.65rem 0.5rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-main);
  min-width: 0;
}

.btn-search-embedded {
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary-hover);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: var(--transition);
  flex-shrink: 0;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

.btn-search-embedded:hover {
  background: var(--primary-hover);
  color: #fff;
}

.btn-search-embedded:active {
  background: var(--primary-active);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
}

.btn-clear-embedded {
  color: #94a3b8;
  padding: 0.4rem 0.55rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-clear-embedded:hover {
  color: #475569;
  background: #f1f5f9;
}

/* Compatibilidad con barra de búsqueda estándar incrustada */
.search-bar-container {
  display: flex;
  gap: 0.75rem;
  max-width: 650px;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
}

.search-input-wrapper i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 1.1rem;
}

.search-input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.8rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
  color: var(--text-main);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.search-input:focus {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45, 135, 220, 0.25), inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

.btn-search {
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary-hover);
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

.btn-search:hover {
  background: var(--primary-hover);
}

.btn-search:active {
  background: var(--primary-active);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
}

/* Category Filters (incrustadas en la barra) */
.category-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  margin-bottom: 1.75rem;
  scrollbar-width: thin;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.1rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: var(--transition);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.category-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-subtle);
}

.category-pill.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* Grid of Reports */
.reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1.5rem;
}

.report-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.report-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.report-card.featured {
  border-top: 3.5px solid var(--secondary);
}

.report-card-header {
  padding: 1.25rem 1.25rem 0.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.report-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  border: 1px solid rgba(45, 135, 220, 0.18);
  box-shadow: inset 0 1px 2px rgba(45, 135, 220, 0.08);
}

.report-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.badge-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.badge-workspace {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.badge-featured {
  background: var(--secondary-subtle);
  color: var(--secondary);
  border: 1px solid rgba(220, 130, 45, 0.35);
}

.report-card-body {
  padding: 0.75rem 1.25rem 1.25rem;
  flex: 1;
}

.report-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.report-card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.report-card-footer {
  padding: 1rem 1.25rem;
  background: #fafbfc;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Botón incrustado en el footer de la tarjeta */
.btn-open-report {
  background: rgba(45, 135, 220, 0.08);
  color: var(--primary);
  border: 1px solid rgba(45, 135, 220, 0.25);
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: var(--transition);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.7);
}

.btn-open-report:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12);
}

.btn-open-report:active {
  background: var(--primary-active);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
}

/* ====================================================================
   Viewer Page Layout (Pantalla Completa y Barra Superior Única)
   ==================================================================== */
.viewer-page-body {
  height: 100vh;
  min-height: 100vh;
  overflow: hidden !important;
  display: flex;
  flex-direction: column;
}

.viewer-main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  overflow: hidden;
}

.viewer-topbar {
  background: linear-gradient(135deg, #2d87dc 0%, #1e70bd 100%);
  color: #fff;
  padding: 0.45rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  min-height: 52px;
  height: 52px;
  flex-shrink: 0;
  z-index: 50;
  box-shadow: 0 4px 14px rgba(45, 135, 220, 0.25);
}

.viewer-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.btn-back-catalog {
  background: rgba(0, 0, 0, 0.16);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.825rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
  white-space: nowrap;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-back-catalog:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-back-catalog:active {
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.viewer-brand-compact {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.viewer-logo {
  height: 28px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}

.brand-icon-mini {
  width: 26px;
  height: 26px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.8rem;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.brand-name-mini {
  font-weight: 700;
  font-size: 0.9rem;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.viewer-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.viewer-title-group {
  min-width: 0;
}

.viewer-title-group h1 {
  font-size: 0.96rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.viewer-title-group h1 i {
  color: #ffffff;
  font-size: 1.05rem;
}

.viewer-meta {
  font-size: 0.72rem;
  color: #e0f2fe;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.viewer-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Toolbar de Herramientas Incrustada en el Menú */
.viewer-toolbar-embedded {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 3px;
  gap: 3px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.btn-viewer-tool {
  background: transparent;
  color: #ffffff;
  border: none;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  font-size: 0.825rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-viewer-tool:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.btn-viewer-tool:active {
  background: rgba(0, 0, 0, 0.2);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}

.viewer-user-mini {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(0, 0, 0, 0.16);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.18);
  font-size: 0.8rem;
  color: #ffffff;
}

.nav-user-avatar-mini {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}

.viewer-user-text {
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
  color: #ffffff;
}

.btn-viewer-logout {
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.18);
  color: #ffffff;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: var(--transition);
}

.btn-viewer-logout:hover {
  color: #ffffff;
  background: rgba(239, 68, 68, 0.35);
  border-color: rgba(239, 68, 68, 0.5);
}

/* Grupo de Botones Incrustados */
.btn-group-embedded {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 3px;
  gap: 3px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-group-embedded .btn-embedded-item {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  font-size: 0.825rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
  text-decoration: none;
}

.btn-group-embedded .btn-embedded-item:hover {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn-group-embedded .btn-embedded-item.primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

.btn-group-embedded .btn-embedded-item.primary:hover {
  background: var(--primary-hover);
  color: #ffffff;
}

/* Password visibility toggle */
.password-input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-container .password-input-field {
  padding-right: 2.8rem;
}

.btn-toggle-password {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 0.35rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: var(--transition);
}

.btn-toggle-password:hover {
  color: var(--primary);
  background: rgba(45, 135, 220, 0.1);
}

/* Container Power BI - Ocupa todo el espacio de la pantalla */
.report-embed-container-wrapper {
  position: relative;
  width: 100%;
  height: calc(100vh - 52px);
  background: #f8fafc;
  overflow: hidden;
  flex: 1;
}

#reportContainer {
  width: 100%;
  height: 100%;
  border: none;
}

#reportContainer iframe {
  border: none !important;
  width: 100% !important;
  height: 100% !important;
}

.embed-loader-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 10;
  transition: opacity 0.3s ease;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e2e8f0;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-color);
  max-width: 600px;
  margin: 2rem auto;
}

.empty-state i {
  font-size: 3.5rem;
  color: #94a3b8;
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Error banner */
.diagnostic-alert {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #9f1239;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.diagnostic-alert h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.diagnostic-alert code {
  background: #ffe4e6;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
}

/* Footer Claro y Limpio */
.portal-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 1.5rem 2rem;
  text-align: center;
  font-size: 0.85rem;
  margin-top: auto;
}

@media (max-width: 768px) {
  .navbar {
    padding: 0.75rem 1rem;
  }
  .main-wrapper {
    padding: 1rem;
  }
  .hero-section {
    padding: 1.5rem;
  }
  .hero-title {
    font-size: 1.5rem;
  }
  .search-bar-container {
    flex-direction: column;
  }
  .reports-grid {
    grid-template-columns: 1fr;
  }
}
