@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  /* Official Palette */
  --iseg-black: #1A1A1A;
  --iseg-charcoal: #2A2A2A;
  --iseg-gray: #4A4A4A;
  --iseg-silver: #A3A3A3;
  --iseg-light-gray: #E5E7EB;
  --iseg-white: #FFFFFF;

  /* Brand Accents */
  --iseg-teal-dark: #00403a;
  --iseg-teal: #065F56;
  --iseg-mint: #2bd5c4;
  --iseg-mint-soft: #d5f7f3;
  --iseg-mint-glow: rgba(43, 213, 196, 0.22);

  /* Neutrals & UI */
  --bg: #F8FAFC;
  --card: #FFFFFF;
  --card-border: #E2E8F0;
  --card-border-hover: #CBD5E1;
  --muted: #64748B;
  --text: #0F172A;
  --text-secondary: #475467;
  --text-light: rgba(255, 255, 255, 0.78);

  /* Satisfaction Scale (ISEG Oficial) */
  --muy-satisfecho: #00A86B;
  --muy-satisfecho-bg: #E6F8F2;
  --satisfecho: #2BD5C4;
  --satisfecho-bg: #E0FAF7;
  --reg-satisfecho: #E6A817;
  --reg-satisfecho-bg: #FEF9EC;
  --insatisfecho: #E07B39;
  --insatisfecho-bg: #FDF2E9;
  --muy-insatisfecho: #D63B3B;
  --muy-insatisfecho-bg: #FDEAEA;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 28px rgba(0, 64, 58, 0.12);

  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  --trans: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* ==================== TOP NAVBAR ==================== */
.navbar {
  background: var(--iseg-black);
  height: 68px;
  position: sticky;
  top: 0;
  z-index: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.nav-container {
  max-width: 1400px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.logo-wrapper {
  background: #FFFFFF;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.brand-logo-img {
  height: 24px;
  width: auto;
  object-fit: contain;
  display: block;
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-title {
  color: #FFFFFF;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-title span {
  color: var(--iseg-mint);
}

.brand-subtitle {
  color: var(--iseg-silver);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.nav-badges {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge-corp {
  background: rgba(43, 213, 196, 0.12);
  color: var(--iseg-mint);
  border: 1px solid rgba(43, 213, 196, 0.3);
  font-weight: 700;
  font-size: 11px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-year {
  background: var(--iseg-mint);
  color: var(--iseg-black);
  font-weight: 800;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

/* ==================== NAVIGATION TABS ==================== */
/* Fix: overflow-y: hidden completely eliminates the vertical scrollbar glitch */
.nav-tabs-wrapper {
  background: var(--iseg-charcoal);
  border-bottom: 2px solid var(--iseg-teal-dark);
  position: sticky;
  top: 68px;
  z-index: 400;
  overflow: hidden !important;
}

.tabs {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden !important;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tabs::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.tab-btn {
  padding: 13px 20px;
  color: var(--iseg-silver);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  background: transparent;
  border: none;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: 0;
  letter-spacing: -0.01em;
  transition: var(--trans);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.04);
}

.tab-btn.active {
  color: var(--iseg-mint);
  border-bottom-color: var(--iseg-mint);
  background: rgba(43, 213, 196, 0.06);
}

.tab-badge {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
}

.tab-btn.active .tab-badge {
  background: var(--iseg-mint);
  color: var(--iseg-black);
}

/* ==================== MAIN VIEWPORT ==================== */
.main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px 24px;
}

.panel {
  display: none;
  animation: fadeIn 0.25s ease-out;
}

.panel.active {
  display: block;
}

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

/* ==================== HERO BANNER ==================== */
.hero {
  background: linear-gradient(135deg, var(--iseg-teal-dark) 0%, #084942 50%, #162422 100%);
  border-radius: var(--radius-lg);
  padding: 30px 36px;
  color: #FFFFFF;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(43, 213, 196, 0.22);
}

.hero::after {
  content: '';
  position: absolute;
  right: -50px;
  top: -50px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 213, 196, 0.15) 0%, rgba(43, 213, 196, 0) 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1px 1.4fr 1px 1.15fr;
  gap: 28px;
  position: relative;
  z-index: 1;
}

.hero-divider {
  background: rgba(255, 255, 255, 0.12);
}

.hero-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--iseg-mint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.hero-value {
  font-family: 'Outfit', sans-serif;
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 8px;
}

.hero-progress-bar {
  background: rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-pill);
  height: 8px;
  margin-top: 10px;
  overflow: hidden;
}

.hero-progress-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--iseg-mint) 0%, #46eedd 100%);
  box-shadow: 0 0 8px rgba(43, 213, 196, 0.5);
}

.pills-container {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.kpi-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
}

.pill-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ==================== SECTION TITLE ==================== */
.section-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 28px 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--card-border);
}

/* ==================== SCALE LEGEND ==================== */
.scale-legend {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.scale-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #FFFFFF;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: var(--shadow-xs);
  color: var(--text);
}

.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ==================== GRIDS ==================== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

/* ==================== CARDS ==================== */
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-xs);
  transition: var(--trans);
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--card-border-hover);
  transform: translateY(-2px);
}

/* ==================== DIMENSION CARD ==================== */
.dim-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dim-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  min-height: 30px;
  line-height: 1.35;
}

.dim-score {
  font-family: 'Outfit', sans-serif;
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.dim-progress-track {
  background: #E2E8F0;
  border-radius: var(--radius-pill);
  height: 6px;
  margin: 12px 0 10px;
  overflow: hidden;
}

.dim-progress-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  transition: width 0.6s ease;
}

.dim-status-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  align-self: flex-start;
  letter-spacing: -0.01em;
}

/* ==================== FILTER BAR ==================== */
.filter-bar {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 22px;
  box-shadow: var(--shadow-xs);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 200px;
  flex: 1;
}

.filter-group label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.filter-group select {
  padding: 10px 36px 10px 14px;
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23334155' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  appearance: none;
  cursor: pointer;
  transition: var(--trans);
}

.filter-group select:focus {
  outline: none;
  border-color: var(--iseg-mint);
  box-shadow: 0 0 0 3px var(--iseg-mint-glow);
}

.filter-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ==================== BUTTONS ==================== */
.btn {
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--trans);
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--iseg-black);
  color: #FFFFFF;
  border: 1.5px solid var(--iseg-black);
}

.btn-primary:hover {
  background: var(--iseg-teal-dark);
  border-color: var(--iseg-teal-dark);
  box-shadow: var(--shadow-sm);
}

.btn-accent {
  background: var(--iseg-mint);
  color: var(--iseg-black);
  border: 1.5px solid var(--iseg-mint);
}

.btn-accent:hover {
  background: #23c5b5;
  border-color: #23c5b5;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--card-border);
  color: var(--text-secondary);
}

.btn-outline:hover {
  border-color: var(--iseg-black);
  color: var(--iseg-black);
  background: #F1F5F9;
}

/* ==================== ALERTS ==================== */
.alert-box {
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-info {
  background: var(--iseg-mint-soft);
  border-left: 4px solid var(--iseg-mint);
  color: var(--iseg-teal-dark);
}

/* ==================== RESULTS HEADER ==================== */
.result-header {
  background: linear-gradient(135deg, var(--iseg-black) 0%, var(--iseg-charcoal) 100%);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.result-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.result-meta {
  font-size: 13px;
  color: var(--iseg-silver);
  margin-top: 4px;
}

.result-kpi-block {
  text-align: right;
}

.result-kpi-val {
  font-family: 'Outfit', sans-serif;
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
}

.result-kpi-lbl {
  font-size: 11px;
  color: var(--iseg-silver);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ==================== QUESTIONS DETAIL ==================== */
.question-group {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 16px;
}

.question-group-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--iseg-teal-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.pq-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #F1F5F9;
  font-size: 13px;
}

.pq-row:last-child {
  border-bottom: none;
}

.pq-label {
  flex: 1;
  color: var(--text);
  font-weight: 500;
}

.pq-bar-track {
  width: 140px;
  background: #E2E8F0;
  border-radius: var(--radius-pill);
  height: 8px;
  overflow: hidden;
}

.pq-bar-fill {
  height: 100%;
  border-radius: var(--radius-pill);
}

.pq-val {
  width: 50px;
  text-align: right;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
}

/* ==================== COMPARISON CARDS ==================== */
.cmp-card {
  padding: 22px;
}

.cmp-zone-header {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cmp-total-score {
  font-family: 'Outfit', sans-serif;
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 4px;
}

.cmp-row {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid #F1F5F9;
  font-size: 13px;
}

.cmp-row:last-child {
  border-bottom: none;
}

/* ==================== eNPS SECTION ==================== */
.enps-box {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 28px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.enps-main {
  min-width: 160px;
}

.enps-score {
  font-family: 'Outfit', sans-serif;
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
}

.enps-bars {
  flex: 1;
  min-width: 220px;
}

.enps-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 13px;
}

.enps-bar-label {
  width: 100px;
  font-weight: 600;
}

.enps-bar-track {
  flex: 1;
  background: #E2E8F0;
  border-radius: var(--radius-pill);
  height: 10px;
  overflow: hidden;
}

.enps-bar-fill {
  height: 100%;
  border-radius: var(--radius-pill);
}

.enps-bar-pct {
  width: 46px;
  text-align: right;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
}

/* ==================== DEMOGRAPHICS ==================== */
.demog-stat-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 13px;
}

.demog-stat-lbl {
  width: 120px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demog-stat-track {
  flex: 1;
  background: #E2E8F0;
  border-radius: var(--radius-pill);
  height: 8px;
  overflow: hidden;
}

.demog-stat-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--iseg-teal-dark);
}

.demog-stat-val {
  width: 65px;
  text-align: right;
  font-weight: 700;
  font-size: 12px;
}

/* ==================== TABLES ==================== */
.table-wrapper {
  overflow-x: auto;
  margin-bottom: 22px;
  background: #FFFFFF;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
}

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

.data-table th {
  background: var(--iseg-black);
  color: #FFFFFF;
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.data-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--card-border);
}

.data-table tr:hover td {
  background: #F8FAFC;
}

.data-table tr:last-child td {
  border-bottom: none;
}

/* ==================== PARTICIPATION ==================== */
.part-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.part-card {
  background: #FFFFFF;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  box-shadow: var(--shadow-xs);
}

.part-card-dep {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.part-card-num {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--iseg-teal-dark);
}

.part-card-sub {
  font-size: 11px;
  color: var(--muted);
}

/* ==================== ACTION BANNER ==================== */
.action-banner {
  background: #FFFFFF;
  border: 1.5px solid var(--iseg-mint);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  flex-wrap: wrap;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}

.action-banner-info {
  font-size: 13px;
  color: var(--text-secondary);
}

.action-banner-info strong {
  color: var(--text);
}

/* ==================== PRINT MODAL OVERLAY ==================== */
#print-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  padding: 30px 20px;
  overflow-y: auto;
}

.print-sheet {
  background: #FFFFFF;
  max-width: 820px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  padding: 36px 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.print-toolbar {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* ==================== RESPONSIVENESS ==================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .hero-divider {
    display: none;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .main {
    padding: 16px;
  }
  .nav-container {
    padding: 0 16px;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-group {
    min-width: 100%;
  }
  .filter-actions {
    justify-content: stretch;
  }
  .filter-actions .btn {
    flex: 1;
  }
  .brand-subtitle, .badge-corp {
    display: none;
  }
  .hero-value {
    font-size: 38px;
  }
  .result-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .result-kpi-block {
    text-align: left;
  }
}

/* ==================== PRINT STYLES FOR PDF ==================== */
/* Ensures ONLY the executive report modal is printed with full colors and zero glitch */
@media print {
  @page {
    margin: 12mm 14mm;
    size: A4 portrait;
  }

  /* HIDE ALL OTHER ELEMENTS ON THE PAGE */
  body > *:not(#print-overlay),
  .navbar,
  .nav-tabs-wrapper,
  .main,
  .panel,
  .filter-bar,
  .action-banner,
  .scale-legend,
  .print-toolbar {
    display: none !important;
  }

  html, body {
    background: #FFFFFF !important;
    color: #000000 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: auto !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  #print-overlay {
    display: block !important;
    position: static !important;
    inset: auto !important;
    background: #FFFFFF !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    overflow: visible !important;
  }

  .print-sheet {
    display: block !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .page-break-avoid {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}
