﻿/* assets/style.css */

:root {
  --header-height: 56px;
  /* Height of main header nav */
  --subnav-height: 50px;
  /* Height of sub nav in analysis bias tab */
  --logo-header-height: 45px;
  /* Height of logo in header menu */
  --tb-shell-divider-color: #ccc;
}

html,
body,
.dash-app {
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: #222;
  margin-top: 0px;
  margin-bottom: 0.5rem;
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: 1.6rem;
  color: #0059ff;
}

h2 {
  font-size: 1.5rem;
  color: #0059ff;
}

h3 {
  font-size: 1.2rem;
  color: #0059ff;
}

.justify-text { text-align: justify; }

/* Splash screen - Custom loader of the Valotra app */
#custom-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #ffffff;
  transition: opacity 0.3s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.loader-logo {
  display: block;
  width: 252px;
  box-sizing: border-box;
  padding: 22px 24px;
  object-fit: contain;
  margin-bottom: 24px;
}

body[data-show-logo="false"] .logoHeader,
body[data-show-logo="false"] .loader-logo {
  display: none;
}

.loader-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e1e1e1;
  border-top-color: #0059ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.loader-text {
  margin-top: 18px;
  font-size: 1.1rem;
  color: #0059ff;
  letter-spacing: 0.5px;
}

/* --- WebKit (Chrome, Safari) --- */
.reportBlockInner::-webkit-scrollbar {
  width: 8px;  /* šířka lišty */
}

.reportBlockInner::-webkit-scrollbar-track {
  background: transparent;  /* průhledné pozadí celého tracku */
}

.reportBlockInner::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.3);  /* jen trochu viditelný thumb */
  border-radius: 4px;
}

/* --- Firefox --- */
.reportBlockInner {
  scrollbar-width: thin;                /* tenký scrollbar */
  scrollbar-color: rgba(0,0,0,0.3) transparent;  
  /* první hodnota = thumb, druhá = track */
}

/* Main Figure */
.mainFigure {
  padding: 0px 0px 0px 0px;
  margin: 0 auto;
}

/* App header with menu, logo and other elements */
.headerApp {
  position: relative;
  display: flex;
  align-items: center;
  background-color: #ffffff;
  padding: 0px 0px 0px 0px;
  margin: 0px 0px 0px 0px;
  height: var(--header-height);
  border-bottom: 1px solid var(--tb-shell-divider-color);
}

.headerApp.headerApp--with-subnav {
  border-bottom: none;
}

.logoHeader {
  display: block;
  align-self: center;
  height: var(--header-height);
  width: auto;
  box-sizing: border-box;
  padding: 12px 20px 12px 20px;
  object-fit: contain;
  object-position: center left;
  vertical-align: middle;
  flex: 0 0 auto;
}

.mainDashboardContent {
  display: flex;
  padding: 0px 0px 0px 0px;
  margin: 0px 0px 0px 0px;
}

/* Header horizontal navigation */
.navButtons {
  height: var(--header-height);
  display: flex;
  position: relative;
  background-image: linear-gradient(
    to bottom,
    transparent calc(100% - 1px),
    var(--tb-shell-divider-color) calc(100% - 1px)
  );
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding: 0px 0px 0px 0px;
  margin: 0px 0px 0px 0px;
  background-color: #ffffff;
  font-size: 1rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  justify-content: flex-start;
  /* Align buttons containers to the left */
}

.headerApp.headerApp--with-subnav .navButtons {
  background-image: none;
}

.navButton {
  text-decoration: none;
  font-size: 1rem;
  color: #343a40;
  background: none;
  display: flex;
  align-items: center;
  border: none;
  outline: none;
  cursor: pointer;
  transition: all .2s;
  line-height: var(--header-height);
  height: 100%;
  padding: 0px 14px 0px 14px;
  justify-content: center;
  box-sizing: border-box;
  position: relative;
  /* Text to center position */
}

.navButtonWrap {
  position: relative;
  display: flex;
  height: 100%;
  flex: 0 0 auto;
}

.navButton__label {
  display: inline-flex;
  align-items: center;
}

.navButton::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0;
  opacity: 0;
  background-color: #0059ff;
  transition: height 0.2s ease, opacity 0.2s ease;
  pointer-events: none;
}

.navButton:hover {
  color: #343A40;
  background-color: #e1ebf5 !important;
}
.navButton:hover::after,
.navButton.active::after {
  height: 4px;
  opacity: 1;
}

.headerFlyoutPanel {
  position: absolute;
  top: calc(100% - 1px);
  left: -10px;
  z-index: 40;
  width: 420px;
  padding-top: 14px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    visibility 0.16s ease;
}

.headerFlyoutPanel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 18px;
}

.headerFlyoutPanel--wide {
  width: 640px;
}

.navButtonWrap--hasFlyout:hover .headerFlyoutPanel,
.navButtonWrap--hasFlyout:focus-within .headerFlyoutPanel,
.navButtonWrap--hasFlyout.tbFlyout--open .headerFlyoutPanel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.navButtonWrap--flyout-suppressed:hover .headerFlyoutPanel,
.navButtonWrap--flyout-suppressed:focus-within .headerFlyoutPanel,
.navButtonWrap--hasFlyout.tbFlyout--suppressed:hover .headerFlyoutPanel,
.navButtonWrap--hasFlyout.tbFlyout--suppressed:focus-within .headerFlyoutPanel,
.navButtonWrap--hasFlyout.tbFlyout--suppressed.tbFlyout--open .headerFlyoutPanel {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
}

.headerFlyoutSurface {
  display: grid;
  position: relative;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  padding: 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.headerFlyoutSurface::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 34px;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-top: 1px solid #d1d5db;
  border-left: 1px solid #d1d5db;
  transform: rotate(45deg);
}

.headerFlyoutGroup {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #dce4f2;
  border-radius: 8px;
  background: #fbfcff;
  box-shadow: none;
}

.headerFlyoutGroup__title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #5b6789;
}

.headerFlyoutGroup__description {
  font-size: 0.8rem;
  line-height: 1.4;
  color: #667085;
}

.headerFlyoutGroup__items {
  display: grid;
  gap: 8px;
}

.headerFlyoutLink {
  width: 100%;
  min-height: 52px;
  border: 1px solid #d6d9e6;
  border-radius: 6px;
  padding: 10px 12px;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
  color: #1d2a44;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    color 0.16s ease;
}

.headerFlyoutLink__title {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
}

.headerFlyoutLink__description {
  font-size: 0.76rem;
  line-height: 1.35;
  color: #5b6789;
}

.headerFlyoutLink:hover,
.headerFlyoutLink:focus-visible {
  outline: none;
  border-color: #b8c4ff;
  background: #f8fbff;
  box-shadow: none;
}

.headerFlyoutLink:hover .headerFlyoutLink__description,
.headerFlyoutLink:focus-visible .headerFlyoutLink__description {
  color: #475467;
}

/* Journaling: Timeframe sliding menu */
.journaling-tf-menu {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 34px; /* match tool button height */
}

/* Hover bridge to avoid flicker when moving from button to menu */
.journaling-tf-menu::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 0;
  width: 12px; /* small transparent bridge */
  height: 100%;
  background: transparent;
  z-index: 5; /* below options (10), above background */
}

.journaling-tf-menu__current {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  line-height: 1;
  padding: 0;
  border-radius: 4px;
  border: 1px solid #d1d5db; /* gray */
  background: #ffffff; /* white */
  color: #111827;
  cursor: pointer;
}

.journaling-tf-menu__current:hover {
  border-color: #0059ff; /* company blue */
}

.journaling-tf-menu__options {
  position: absolute;
  left: calc(100% - 1px); /* snug to button, slight overlap */
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  padding: 8px;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: max-width 160ms ease, opacity 160ms ease;
  z-index: 4300; /* ensure above chart layers and pickers */
  margin-left: 5px;
}

/* Flip to open left when needed */
.journaling-tf-menu.is-flip .journaling-tf-menu__options {
  left: auto;
  right: calc(100% - 1px);
}

.journaling-tf-menu:hover .journaling-tf-menu__options,
.journaling-tf-menu.is-open .journaling-tf-menu__options {
  max-width: 520px; /* enough for all buttons in a row */
  opacity: 1;
  pointer-events: auto;
}

.journaling-tf-btn {
  font-size: 0.8rem;
  min-width: 40px;
  min-height: 30px;
  line-height: 1;
  padding: 6px 8px;
  border-radius: 4px;
  border: 1px solid #d1d5db; /* gray */
  background: #ffffff; /* white */
  color: #111827;
  cursor: pointer;
}

/* Journaling: tool buttons default hover border like timeframe toggle */
#journaling-trade-reset-view,
#journaling-trade-toggle-markers,
#journaling-trade-toggle-sltp,
#journaling-trade-toggle-volume {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  max-width: 34px !important;
  max-height: 34px !important;
  padding: 0 !important;
  border-radius: 4px;
  border-width: 1px !important;
  background: #ffffff;
  box-shadow: none !important;
  box-sizing: border-box !important;
  transform: none !important;
  transition: none !important;
  line-height: 0 !important;
  flex: 0 0 34px !important;
}

#journaling-trade-reset-view { border: 1px solid #d1d5db; }
#journaling-trade-toggle-markers:not(.is-active),
#journaling-trade-toggle-sltp:not(.is-active),
#journaling-trade-toggle-volume:not(.is-active) { border: 1px solid #d1d5db !important; }

#journaling-trade-reset-view:hover,
#journaling-trade-toggle-markers:not(.is-active):hover,
#journaling-trade-toggle-sltp:not(.is-active):hover,
#journaling-trade-toggle-volume:not(.is-active):hover {
  border-color: #0059ff !important; /* company blue */
}

/* Ensure inner icon doesn't affect layout */
#journaling-trade-reset-view img,
#journaling-trade-toggle-markers img,
#journaling-trade-toggle-sltp img,
#journaling-trade-toggle-volume img {
  width: 18px !important;
  height: 18px !important;
  display: block;
}

.journaling-tf-btn:hover {
  border-color: #0059ff; /* company blue */
}

.navButton.active {
  color: #343A40;
  background-color: #e1ebf5 !important;
}

/* Sub-navigation of Analysis Bias tab */
.subnavAnalysisBiasButtons {
  display: flex;
  padding: 0px 0px 0px 0px;
  margin: 0px 0px 0px 0px;
  background-color: #F6F6F6;
  border-top: 1px solid var(--tb-shell-divider-color);
  border-bottom: 1px solid var(--tb-shell-divider-color);
  height: 50px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  justify-content: flex-start;
  box-sizing: border-box;
  /* Align buttons containers to the left */
}

.subnavAnalysisBiasButtons.dashboard-subnav {
  align-items: center;
  padding: 0 12px;
  overflow: visible;
}

.subnavAnalysisBiasButtons.analysis-bias-picker-subnav {
  align-items: center;
  padding: 0 12px;
  overflow: visible;
}

.subnavAnalysisBiasButtons.research-subnav {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0;
  overflow: visible;
}

.research-subnav-primary,
.research-subnav-context,
.research-subnav-context-group {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.research-subnav-primary {
  flex: 0 0 auto;
  gap: 0;
}

.subnavFlyoutWrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
  flex: 0 0 auto;
}

.subnavFlyoutPanel {
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  z-index: 58;
  min-width: 238px;
  padding-top: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(5px);
  transition:
    opacity 0.14s ease,
    transform 0.14s ease,
    visibility 0.14s ease;
}

.subnavFlyoutWrap:first-child .subnavFlyoutPanel {
  left: 12px;
}

.subnavFlyoutWrap:hover .subnavFlyoutPanel,
.subnavFlyoutWrap:focus-within .subnavFlyoutPanel,
.subnavFlyoutWrap.tbFlyout--open .subnavFlyoutPanel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.subnavFlyoutWrap.tbFlyout--suppressed:hover .subnavFlyoutPanel,
.subnavFlyoutWrap.tbFlyout--suppressed:focus-within .subnavFlyoutPanel,
.subnavFlyoutWrap.tbFlyout--suppressed.tbFlyout--open .subnavFlyoutPanel {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(5px);
}

.subnavFlyoutPanel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
}

.subnavFlyoutPanel__title,
.subnavFlyoutPanel__items {
  position: relative;
  background: #ffffff;
  border-left: 1px solid #d8dfea;
  border-right: 1px solid #d8dfea;
}

.subnavFlyoutPanel__title {
  padding: 10px 12px 7px;
  border-top: 1px solid #d8dfea;
  border-radius: 7px 7px 0 0;
  color: #5b6789;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.subnavFlyoutPanel__items {
  display: grid;
  gap: 2px;
  padding: 4px 6px 6px;
  border-bottom: 1px solid #d8dfea;
  border-radius: 0 0 7px 7px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.subnavFlyoutLink {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 8px 9px;
  background: #ffffff;
  color: #1f2a45;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  transition:
    border-color 0.14s ease,
    background 0.14s ease,
    color 0.14s ease;
}

.subnavFlyoutLink:hover,
.subnavFlyoutLink:focus-visible {
  outline: none;
  border-color: #b8c4ff;
  background: #f8fbff;
}

.subnavFlyoutLink__title {
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.2;
}

.subnavFlyoutLink__description {
  color: #667085;
  font-size: 0.74rem;
  line-height: 1.3;
}

.research-subnav-context {
  flex: 1 1 auto;
  justify-content: flex-start;
  min-width: 0;
  margin-left: 0;
  overflow: hidden;
}

.research-subnav-context-group {
  gap: 8px;
  min-width: 0;
  flex-wrap: nowrap;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.research-subnav-context-group .tb-subnav-actions {
  margin-left: 8px;
}

.research-subnav-context-group .subnavAnalysisBiasButton {
  height: 34px;
  min-height: 34px;
  padding: 0 18px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #ffffff;
  color: #2b364f;
  font-size: 0.9rem;
  font-weight: 400;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: none;
  transition: all 0.2s ease;
}

.research-subnav-context-group .subnavAnalysisBiasButton::after {
  content: "";
  position: absolute;
  left: 0;
  right: auto;
  top: 0;
  bottom: 0;
  height: 100%;
  width: 4px;
  opacity: 1;
  background-color: transparent;
  transition: background-color 0.2s ease;
}

.research-subnav-context-group .subnavAnalysisBiasButton:hover {
  color: #2b364f;
  border-color: #0059ff;
  background: #ffffff !important;
  box-shadow: none;
}

.research-subnav-context-group .subnavAnalysisBiasButton:hover::after {
  height: 100%;
  background-color: #0059ff;
}

.research-subnav-context-group .subnavAnalysisBiasButton.active,
.research-subnav-context-group .subnavAnalysisBiasButton.subnavAnalysisBiasButtonActive {
  color: #1f2a45;
  border-color: #0059ff;
  background: #ffffff !important;
  box-shadow: none;
}

.research-subnav-context-group .subnavAnalysisBiasButton.active::after,
.research-subnav-context-group .subnavAnalysisBiasButton.subnavAnalysisBiasButtonActive::after {
  height: 100%;
  background-color: #007BFF;
}

.research-subnav-context-group .tb-icon-btn {
  min-width: 36px;
  width: 36px;
  padding: 0;
}

.research-subnav-divider {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 34px;
  margin: 0 18px 0 10px;
  flex: 0 0 20px;
}

.research-subnav-divider__line,
.research-subnav-divider__node {
  display: none;
}

.research-subnav-divider__line {
  display: block;
  width: 1px;
  height: 22px;
  background: #d8e0ec;
}

.research-subnav-actions {
  flex: 0 0 auto;
  margin-left: auto;
  padding-right: 12px;
}

.analysis-bias-picker-subnav__picker {
  display: inline-flex;
  align-items: center;
  min-height: 100%;
}

.analysis-bias-picker-subnav__picker .instrument-picker__trigger {
  min-width: 320px;
}

.dashboard-subnav-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 100%;
  height: 100%;
  margin-left: auto;
  position: relative;
  overflow: visible;
}

.dashboard-color-switch-shell {
  --dashboard-switch-tl: #0059ff;
  --dashboard-switch-tr: #4ae9dd;
  --dashboard-switch-br: #232323;
  --dashboard-switch-bl: #ffffff;
  --dashboard-panel-surface: linear-gradient(168deg, #ffffff 0%, #f4f8ff 100%);
  --dashboard-panel-border: #d9e2f0;
  --dashboard-panel-shadow: 0 14px 30px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(15, 23, 42, 0.06);
  position: relative;
  width: 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  height: 100%;
}

.dashboard-color-switch-slider-wrap {
  width: 72px;
  padding: 4px 2px;
  box-sizing: border-box;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #cfd8e6;
  box-shadow: none;
}

.dashboard-color-switch-slider {
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
}

.dashboard-color-switch-slider .rc-slider {
  margin: 0;
  height: 24px;
  padding: 0 !important;
  box-sizing: border-box;
}

#dashboard-color-switch-slider.rc-slider,
#dashboard-color-switch-slider .rc-slider {
  width: calc(100% - 24px);
  margin: 0 auto;
  padding: 0 !important;
}

.dashboard-color-switch-slider.rc-slider-with-marks,
.dashboard-color-switch-slider .rc-slider.rc-slider-with-marks,
#dashboard-color-switch-slider.rc-slider-with-marks,
#dashboard-color-switch-slider .rc-slider.rc-slider-with-marks {
  margin-bottom: 0 !important;
}

.dashboard-color-switch-slider .rc-slider-rail {
  display: none;
}

.dashboard-color-switch-slider .rc-slider-track {
  display: none;
}

.dashboard-color-switch-slider .rc-slider-step {
  top: 0;
  height: 100%;
}

.dashboard-color-switch-slider .rc-slider-dot {
  width: 6px;
  height: 6px;
  margin-left: 0;
  top: 50%;
  bottom: auto;
  transform: translate(-50%, -50%);
  border: none;
  background: rgba(112, 123, 140, 0.58);
  box-shadow: none;
}

.dashboard-color-switch-slider .rc-slider-dot-active {
  background: rgba(89, 102, 123, 0.8);
}

.dashboard-color-switch-slider .rc-slider-handle {
  width: 24px;
  height: 24px;
  top: 50% !important;
  margin-top: 0 !important;
  margin-left: 0 !important;
  transform: translate(-50%, -50%) !important;
  border-radius: 999px;
  border: 1px solid #ccd6e5;
  box-shadow: 0 3px 8px rgba(12, 22, 36, 0.2);
  background:
    linear-gradient(to right, var(--dashboard-switch-tl) 0 50%, var(--dashboard-switch-tr) 50% 100%) top / 100% 50% no-repeat,
    linear-gradient(to right, var(--dashboard-switch-bl) 0 50%, var(--dashboard-switch-br) 50% 100%) bottom / 100% 50% no-repeat;
  overflow: hidden;
  cursor: grab;
}

.dashboard-color-switch-slider .rc-slider-handle::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.44);
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.16s ease;
}

.dashboard-color-switch-slider .rc-slider-handle:active {
  cursor: grabbing;
}

.dashboard-color-switch-slider .rc-slider-handle:hover,
.dashboard-color-switch-slider .rc-slider-handle:focus,
.dashboard-color-switch-slider .rc-slider-handle:focus-visible {
  border-color: #b8c7dc;
  box-shadow: 0 4px 10px rgba(12, 22, 36, 0.26);
}

.dashboard-color-switch-slider .rc-slider-handle:hover::after,
.dashboard-color-switch-slider .rc-slider-handle:focus::after,
.dashboard-color-switch-slider .rc-slider-handle:focus-visible::after,
.dashboard-color-switch-slider .rc-slider-handle:active::after,
.dashboard-color-switch-shell--panel-open .dashboard-color-switch-slider .rc-slider-handle::after {
  opacity: 0;
}

.dashboard-color-custom-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: -2px;
  z-index: 1200;
  width: min(92vw, 704px);
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(208px, 1fr));
  gap: 12px;
  padding: 0 14px;
  max-height: 0;
  opacity: 0;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--dashboard-panel-surface);
  box-shadow: none;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.18s ease, transform 0.2s ease, max-height 0.2s ease, padding 0.18s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-color-custom-panel::before {
  content: "";
  position: absolute;
  top: -8px;
  right: 28px;
  width: 14px;
  height: 14px;
  background: #f8faff;
  border-top: 1px solid var(--dashboard-panel-border);
  border-left: 1px solid var(--dashboard-panel-border);
  transform: translateY(4px) rotate(45deg);
  opacity: 0;
  transition: opacity 0.16s ease, transform 0.2s ease;
}

.dashboard-color-custom-panel--open {
  max-height: 560px;
  opacity: 1;
  pointer-events: auto;
  overflow: visible;
  transform: translateY(0) scale(1);
  padding: 14px;
  border-color: var(--dashboard-panel-border);
  box-shadow: var(--dashboard-panel-shadow);
}

.dashboard-color-custom-panel--open::before {
  opacity: 1;
  transform: translateY(0) rotate(45deg);
}

.dashboard-color-picker-item {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #dce4f2;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, transform 0.18s ease;
}

.dashboard-color-picker-item:hover,
.dashboard-color-picker-item:focus-within {
  background: #ffffff;
  border-color: #b8caf1;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.dashboard-color-picker-title {
  font-size: 0.72rem;
  line-height: 1;
  color: #344054;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.dashboard-color-picker-control {
  width: 100%;
  min-width: 0;
}

.dashboard-color-picker-control .mantine-ColorPicker-root {
  gap: 6px;
  width: 100%;
  min-width: 0;
}

.dashboard-color-picker-control .mantine-ColorPicker-wrapper {
  width: 100%;
  min-width: 0;
}

.dashboard-color-picker-control .mantine-ColorPicker-saturation {
  width: 100% !important;
  border-radius: 9px;
  border: 1px solid #d9e2f0;
  overflow: hidden;
  box-shadow: inset 0 1px 1px rgba(15, 23, 42, 0.05);
}

.dashboard-color-picker-control .mantine-ColorPicker-slider {
  width: 100% !important;
  border-radius: 999px;
  border: 1px solid #d9e2f0;
  background: #e9f0fb;
}

.dashboard-color-picker-control .mantine-ColorPicker-preview {
  border: 1px solid #d9e2f0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.dashboard-color-picker-control .mantine-ColorPicker-thumb {
  border: 1px solid rgba(27, 52, 105, 0.24) !important;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px rgba(0, 89, 255, 0.24) !important;
}

@media (max-width: 900px) {
  .dashboard-color-switch-shell {
    width: min(70vw, 72px);
  }

  .dashboard-color-switch-slider-wrap {
    width: min(70vw, 72px);
  }

  .dashboard-color-custom-panel {
    width: min(94vw, 620px);
  }
}

@media (max-width: 620px) {
  .dashboard-color-custom-panel {
    width: min(94vw, 360px);
    grid-template-columns: 1fr;
  }
}

.subnavAnalysisBiasButton {
  background: none;
  border: none;
  font-size: 0.9rem;
  padding: 0 15px;
  /* The subnav shell owns the 1px top/bottom dividers, so the interactive
     buttons must fit inside the content box instead of covering those lines. */
  height: calc(var(--subnav-height) - 2px);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s;
  outline: none;
  box-sizing: border-box;
  position: relative;
}
.subnavAnalysisBiasButton::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 0;
  opacity: 0;
  background-color: #0059ff;
  transition: height 0.2s ease, opacity 0.2s ease;
  pointer-events: none;
}

.subnavAnalysisBiasButton:hover {
  color: #343A40;
  background-color: #e1ebf5 !important;
  outline: none;
}
.subnavAnalysisBiasButton:hover::after,
.subnavAnalysisBiasButton.active::after {
  height: 4px;
  opacity: 1;
}

.subnavAnalysisBiasButton.active {
  color: #343A40;
  background-color: #e1ebf5 !important;
}

.subnavAnalysisBiasButton.tb-subnav-compound {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.tb-subnav-compound__label {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  line-height: 1;
}

.tb-subnav-compound__close {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 0;
  color: currentColor;
  opacity: 0.72;
  font-size: 0;
  line-height: 0;
  text-align: center;
}

.tb-subnav-compound__close::before,
.tb-subnav-compound__close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.75px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
}

.tb-subnav-compound__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.tb-subnav-compound__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.subnavAnalysisBiasButton:hover .tb-subnav-compound__close,
.subnavAnalysisBiasButton.active .tb-subnav-compound__close,
.subnavAnalysisBiasButton.subnavAnalysisBiasButtonActive .tb-subnav-compound__close {
  opacity: 1;
}

.tb-subnav-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-right: 0;
}

.tb-icon-btn {
  padding: 0 10px;
  min-width: 40px;
  border-bottom: 0px solid #ccc;
  background-clip: padding-box;
}

.tb-icon-btn::after {
  display: none;
}

.tb-icon-btn__icon {
  width: 22px;
  height: 22px;
  display: block;
}

.analysis-date-picker-icon {
  height: 18px;
  width: 18px;
  margin-left: 10px !important;
}

.analysis-date-picker-input {
  height: 34px !important;
  min-height: 34px;
  line-height: 34px;
  padding-right: 17px;
  padding-left: 45px;
}

.analysis-date-picker-input:hover {
  border: 1px solid #0059ff;
  box-shadow: 0px 0px 0px rgba(0,0,0,.06);
}

.analysis-date-picker-input:active {
  border: 1px solid #0059ff;
  box-shadow: 0px 0px 0px rgba(0,0,0,.06);
}

/* Panel for main content of with subnav navigation */
.panelContent {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--header-height) - var(--subnav-height));
}

/* Two Column content */
.analysisBiasTwoColumn {
  position: relative;
  /* This container will be anchor for children with absolute property */
  flex: 1 1 auto;
  /* "Take what you can get in width or height, but feel free to shrink if there's not enough room." */
  min-height: 0;
  /* When there is a scrolling container, the container can be smaller than contant */
  display: flex;
  overflow: hidden;
}

/* Two Column content - Left Column */
.analysisBiasTwoColumn .leftColumn {
  flex: 0 0 500px;
  /*  grow | shrink | basis  */
  width: 500px;
  /* Back up for old web browser */
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 25px;
}

/* Two Column content - Left Column - IFrame */
.analysisBiasTwoColumn .leftColumn iframe {
  border: none;
  display: flex;
  flex: 1 1 auto;
}

/* Two Column content - Right Column */
.analysisBiasTwoColumn .rightColumn {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
}

/* Header of Analysis Bias Tab */
.analysisBiasHeaderRow {
  display: flex;
  align-items: center;
  /* Elements will be in vertical central position */
  padding: 7px 25px;
  /* Padding top and bottom = 0px, right and left = 25px */
  border-bottom: 1px solid #ccc;
  background: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 0.9rem;
}

.headerLeftLabel {
  flex: 1 1 auto;
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
  /* No wrap, text must be in one row */
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 10px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

.headerRightControls {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  /* Elements will be in vertical central position */
  gap: 12px;
  /* Space between elements */
}

/* Separator and label of Header row */
.headerSeparator {
  display: flex;
  align-items: center;
  height: 100%;
}

.verticalDivider {
  width: 1px;
  height: 24px;
  background-color: #ccc;
}

.headerSeparatorLabel {
  font-size: 0.85rem;
  color: #000000;
  white-space: nowrap;
  align-items: center;
  line-height: 1;
}

/* Control buttons in Header */
.headControlBtn,
.headControlBtnNoBlueElement,
.headerRightControls .DateInput_input,
.headerRightControls .Select-control {
  height: 34px;
  font-size: 0.85rem;
  border-radius: 4px;
}

.headControlBtn {
  display: flex;
  flex: 1 1 auto;
  align-items: center; /* Elements will be in vertical central position */
  height: 34px;
  padding: 0px 18px; /* Padding top and bottom = 0px, right and left = 18px */
  font-size: 0.85rem;
  border: 1px solid #ccc;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.headControlBtn.active {
  border: 1px solid #0059ff;
}

.headControlBtn.active::after {
  background-color: #007BFF;
}

.headControlBtn:hover {
  background: #ffffff;
  border: 1px solid #0059ff;
}

.headControlBtn::after {
  /* Lower border highlighted by pseudo-element */
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 100%;
  width: 4px;
  background-color: transparent;
  /* Default hidden */
  transition: background-color 0.2s ease;
}

.headControlBtn:hover::after {
  /* When mouse hover, the pseudo-element will be colored */
  background-color: #0059ff;
}

.headControlBtnNoBlueElement {
  display: flex;
  flex: 1 1 auto;
  align-items: center; /* Elements will be in vertical central position */
  height: 34px;
  padding: 0px 0px; /* Padding top and bottom = 0px, right and left = 0px */
  font-size: 0.85rem;
  border: 1px solid #ccc;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.headControlBtnNoBlueElement.active {
  border: 1px solid #0059ff;
}

.headControlBtnNoBlueElement.active::after {
  background-color: #007BFF;
}

.headControlBtnNoBlueElement:hover {
  background: #ffffff;
  border: 1px solid #0059ff;
}

.btnIconTitleRow {
  height: 24px;
  width: 24px;
  vertical-align: sub; 
  display: inline-block;
  cursor: pointer;
}

.infoIcon { 
  cursor: pointer; 
  margin-left: 10px;
}

.btnIconHeaderRow {
  height: 16px;
  width: 16px;
  margin-right: 8px;
}

.headControlBtnNoBlueElement .btnIconHeaderRow {
  height: 20px;
  width: 20px;
  margin-left: 8px;
}

.squareViewBtn .btnIconHeaderRow {
  margin: 0;
  /* remove the 8 px right margin      */
}

/* Slide switch for Charts button */
#chartsViewMenu {
  display: flex;
  /* stay in the flex row                */
  overflow: hidden;
  /* clip children while shrinking       */
  gap: 0;

  max-width: 0;
  /* ← this removes the layout gap       */
  margin-left: 0;

  opacity: 0;
  pointer-events: none;

  transition: max-width 0.45s ease,
    /* smooth width animation       */
    margin-left 0.45s ease,
    opacity 0.45s ease;
}

#chartsViewMenu.visible {
  max-width: 126px;
  /* 3 × 34 px + border overlap    */
  margin-left: 6px;
  /* gap only when menu is open    */
  opacity: 1;
  pointer-events: auto;
}

.squareViewBtn {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 34px;
  width: 34px;
  /* Square  */
  padding: 0;
  border: 1px solid #ccc;
  /* Same style as .headControlBtn  */
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  border-radius: 0;
  /* Square corners */
}

.squareViewBtn:first-child {
  /* Rounded edges for the outermost buttons → block looks like one pill */
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

.squareViewBtn:last-child {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

.squareViewBtn:not(:first-child) {
  margin-left: -1px;
  /* Overlap one pixel */
}

.squareViewBtn:hover {
  border-color: #0059ff;
  z-index: 1;
}

.squareViewBtn.active {
  border-color: #0059ff;
  z-index: 2;
}

.chartsControlGroup {
  /* Wrapper behaves like *one* item in main flex row                  */
  display: flex;
  align-items: center;
  /* zarovná menší menu k výšce tlačítka        */
  gap: 0;
  /* žádná vnitřní mezera (řešíme ručně)        */
}

/* Date Picker in Header of Analysis Bias Tab */
.headerRightControls .DateInput_input {
  background-color: #ffffff;
  height: 34px;
  font-size: 0.85rem;
  border-radius: 4px;
}

.DateInput_input:hover {
  background-color: #ffffff;
  border: 1px solid #0059ff;
  cursor: pointer;
}

.DateInput_input:focus {
  background-color: #ffffff;
  border: 1px solid #0059ff;
  cursor: pointer;
}

.CalendarDay__selected,
.CalendarDay__selected:active,
.CalendarDay__selected:hover {
  background: #0059ff;
  border: 1px double #0059ff;
  color: white;
}

.DayPickerKeyboardShortcuts_show__bottomRight::before {
  border-right: 33px solid #0059ff !important;
}

.DateInput_input__focused {
  border-bottom: 2px solid #0059ff !important;
}

.SingleDatePicker_picker,
.SingleDatePicker_picker__portal {
  /* Safety for portal variant too */
  z-index: 300 !important;
  /* Any number > 200 is fine */
}

/* Session selector in Header of Analysis Bias Tab */
.headerRightControls .Select {
  min-width: 120px;
  flex: 0 0 auto;
}

.headerRightControls .Select-control {
  height: 34px;
  font-size: 0.85rem;
  border-radius: 4px;
}

.headerRightControls .Select-control:hover {
  background-color: #ffffff;
  border: 1px solid #0059ff;
  cursor: pointer;
}


.headerSessionDropdown .Select-control,
.headerSessionDropdown.has-value.Select--single > .Select-control {
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  line-height: 34px !important;
  box-sizing: border-box;
  padding: 0px 0px 0px 7px !important;
  display: flex;
  align-items: center;
}

.headerSessionDropdown .Select-arrow-zone,
.headerSessionDropdown .Select-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.headerSessionDropdown .Select-placeholder,
.headerSessionDropdown .Select-value {
  display: flex;
  align-items: center;
  line-height: 34px !important;
}

.headerSessionDropdown .Select-value-label {
  line-height: 34px !important;
  display: block;
  padding-left: 24px;
}

.headerSessionDropdown .Select-input,
.headerSessionDropdown .Select-input > input {
  height: 34px !important;
  line-height: 34px !important;
  padding: 0 !important;
  margin: 0;
  display: flex;
  align-items: center;
}

/* Overlay panels in Analysis Bias Tab */
.panelOverlay {
  position: absolute;
  inset: 0px;
  /* Inner padding in accordance with .analysisBiasTwoColumn - Analysis Bias Two Column */
  background: #ffffff;
  border-radius: 12px;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;

  padding-top: 10px;
  padding-left: 10px;
  padding-right: 10px;
  padding-bottom: 10px;
}

.panelPulseOverlay {
  position: absolute;
  inset: 0px;
  /* Inner padding in accordance with .analysisBiasTwoColumn - Analysis Bias Two Column */
  background: #ffffff;
  border-radius: 12px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.panelOverlay2x2Grid {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
}

.panelOverlay1x1Grid {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  gap: 10px;
}

.panelOverlay1x2Grid {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  /* Single row */
  gap: 10px;
}

.panelOverlayFrame {
  width: 100%;
  height: 100%;
  border: none;
  background: #ffffff;
  border-radius: 0px;
  align-items: center;

  padding-top: 0px;
  padding-left: 0px;
  padding-right: 0px;
  padding-bottom: 0px;
}

/* ───────── Slide‑out report sidebar + toggle ───────── */
.reportSidebar, .pulseSidebar{
  flex: 0 0 260px;
  width: 260px;
  background:#ffffff;
  border-left: 1px solid #ccc;
  box-shadow:-2px 0 6px rgba(0,0,0,.06);
  display: flex; 
  flex-direction:column;
  overflow-y: auto;
  transition: transform .55s ease;
  z-index: 10;
  margin-left: 10px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}
.reportSidebar.hidden, .pulseSidebar.hidden {
  /* completely collapse flex space */
  flex: 0 0 0 !important;
  width: 0 !important;
  transform: translateX(100%);
  padding: 0;
  border: none;
  margin: 0;
}

/* text & odkazy */
.reportSidebar h3, .pulseSidebar h3{
  margin:20px 0 10px 20px;
  font-size:.95rem; 
  font-weight:600; 
  color:#222;
}
.reportSidebar ul, .pulseSidebar ul{
  list-style: none;

  margin-top: 50px;
  margin-left: 0px;
  margin-right: 0px;
  margin-bottom: 0px;

  padding-top: 0px;
  padding-left: 10px;
  padding-right: 10px;
  padding-bottom: 0px;
}

.reportSidebar li, .pulseSidebar li{
  padding: 10px 15px; 

  margin-top: 5px;
  margin-left: 0px;
  margin-right: 0px;
  margin-bottom: 0px;

  font-size: .88rem;
  color: #000000; 
  border: 1px solid #ccc;
  cursor: pointer;
  border-radius: 4px;
  transition: background .15s, padding-left .15s;
}

.reportSidebar li:hover, .pulseSidebar li:hover{
  background:#ffffff;
  border: 1px solid #0059ff;
  cursor: pointer;
  position: relative;
}
.reportSidebar li.active, .pulseSidebar li.active{
  background-color: #ffffff;
  border: 1px solid #0059ff;
  position: relative;       
}
.reportSidebar li.active::before, .pulseSidebar li.active::before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: #0074d9;
}
.reportSidebar li:hover::before, .pulseSidebar li:hover::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: #0059ff;
}

/* přepínač panelu */
.sidebarToggleBtn{
  position: absolute; 
  z-index: 10;
  top: 12px; 
  right: -44px;
  width: 34px; 
  height: 34px; 
  border: 1px solid #ccc;
  border-radius: 4px;
  background:#ffffff url("/assets/images/bars-solid.svg") center/16px no-repeat;
  cursor: pointer; 
  transition: transform .55s ease;
  transform: translateX(-260px);
}

.sidebarToggleBtn.closed {
  /* when sidebar is closed, reset position */
  transform: translateX(0);
  right: 19px;
}

.sidebarToggleBtn:hover {
  background-color: #ffffff;
  border: 1px solid #0059ff;
  cursor: pointer;
}

/* --- separator pod nadpisy --- */
.sidebar-separator {
  border: none;
  border-top: 1px solid #d0d0d0;
  margin: 18px 12px;
}

/* --- dvě nová tlačítka --- */
.sidebar-btn {
  display: block;
  margin: 0px 10px 10px 10px;
  padding: 10px 10px;
  background: #f5f5f5;
  border: none;
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
  color: #000000;
}
.sidebar-btn:hover {
  background: #e1ebf5;
}

/* --- overlay (celoplošný panel) --- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

.overlay-bg{
  position: absolute;
  inset: 0;
  background: transparent;
  cursor: pointer;
}

.overlay-content {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  max-width: 700px;
  width: 90%;
  background: #ffffff;
  border-radius: 4px;
  padding: 24px 32px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  overflow-y: auto;
  max-height: 80vh;
}

.overlay-content--wide {
  max-width: 1050px;
  width: 96%;
  height: 80vh;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.overlay-content p { text-align: justify; }

.overlay-content ul {
  list-style-position: inside; /* už jen pro hezčí odsazení, není nutné */
  margin: 0;
  padding: 0;
  text-align: justify;
}
.overlay-content ul li {
  margin-bottom: 12px;  /* můžete nastavovat libovolnou výšku mezery */
  line-height: 1.4;     /* můžete také jemně doladit řádkování textu */
}

/* křížek vpravo nahoře */
.overlay-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 18px; height: 18px;
  cursor: pointer;
}
.overlay-head {
  margin-top: 0;          /* h2 bez horního odsazení */
}

/* --- Pulse panel (pravé menu a obsah) --- */
.pulseContentInner {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 12px 38px 24px 38px;
  background: #fff;
}
.pulseContentInner::-webkit-scrollbar {
  width: 8px;
}
.pulseContentInner::-webkit-scrollbar-track {
  background: transparent;  /* průhledné pozadí celého tracku */
}
.pulseContentInner::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.3);  /* jen trochu viditelný thumb */
  border-radius: 4px;
}
.pulseContentInner {
  scrollbar-width: thin; 
  scrollbar-color: rgba(0,0,0,0.3) transparent;  
}

.pulseMainFlex {
  display: flex;
  flex-direction: row;
  height: 100%;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

.cotDatePicker input, .cotDatePicker .DateInput_input {
  height: 34px !important;
  font-size: 0.85rem !important;
  padding: 2px 8px !important;
  border-radius: 4px !important;
  text-align: left;
}

.cotDatePicker {
  min-width: 105px;
  z-index: 101;
}

/* Moderní styl pro COT tabulku */
.appTable {
  width: 90%;
  margin-top: 18px;
  margin-bottom: 15px;
  margin-right: auto;
  margin-left: auto;
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff;
  box-shadow: 0 3px 16px 0 rgba(27,43,92,0.04), 0 1.5px 5px 0 rgba(80,113,187,0.05);
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.18s;
}
.appTable:hover {
  box-shadow: 0 6px 28px 0 rgba(27,43,92,0.09), 0 2.5px 12px 0 rgba(80,113,187,0.09);
}
.appTable th, .appTable td {
  padding: 11px 14px;
  border: none;
  font-size: 0.88rem;
}

/*
.appTable th {
  background: linear-gradient(90deg, #e8efff 0%, #f3f8ff 100%);
  color: #1746a0;
  font-weight: 600;
  text-align: left;
  border-bottom: 2px solid #c7d2e5;
  position: relative;
  font-size: 1.06rem;
  letter-spacing: 0.01em;
}
  */

.appTable th {
  background: #ffffff;
  color: #0059ff;
  font-weight: 500;
  text-align: center;
  border-bottom: 1px solid #ccc;
  position: relative;
  letter-spacing: 0.01em;
}

/* ——— 1)   Gradient & animace POUZE na řádek <tr> ——— */
/*
.appTable thead tr {
  background: linear-gradient(60deg,
    #833ab4  0%,
    #5851db 20%,
    #0059ff 40%,
    #42a5f5 100%
  );
  background-size: 100% 100%;          
  animation: gradientShift 8s ease infinite;
  color: #ffffff;                      
}
.appTable thead th {
  background: transparent !important;  
  border-bottom: 2px solid #c7d2e5;    
}
*/

.appTable th .info-icon {
  margin-left: 5px;
  color: #49a1e2;
  cursor: pointer;
  font-size: 1.05em;
  vertical-align: middle;
  transition: color 0.15s;
}
.appTable th .info-icon:hover { 
  color: #003fa7;
}

.appTable tbody tr {
  transition: background 0.18s;
}
.appTable tbody tr:hover {
  background: #f6f6f6;
}
.appTable td.numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.appTable td.pos {
  color: #18a45c;
  font-weight: 600;
}
.appTable td.neg {
  color: #c82b2b;
  font-weight: 600;
}
.appTable td {
  color: #263452;
  border-top: 1px solid #eceef6;
  vertical-align: middle;
}
.appTable tr:last-child td {
  border-bottom: none;
}
.appTable td:first-child,
.appTable th:first-child {
  border-top-left-radius: 6px;
}
.appTable td:last-child,
.appTable th:last-child {
  border-top-right-radius: 6px;
}
@media (max-width: 600px) {
  .appTable th, .appTable td {
    padding: 8px 6px;
    font-size: 0.86rem;
  }
  .appTable {
    width: 100%;
    margin: 12px 0;
  }
}

.chartBlock {
  border: 0px solid #ebebeb;
  margin: 0px 0px 0px 0px;
  padding: 0px 0px 0px 0px;
  border-radius: 0px;
  background: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}
.chartTitle {
  font-weight: 400;
  margin-bottom: 0px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1.2rem;
  color: #0059ff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}


.cotSummary {
  margin-top: 15px;
  padding: 20px 70px;
  border: 0px solid #e1e1e1;
  background: #ffffff;
  border-radius: 6px;
  font-style: normal;
  color: #333;
}

.pulseSectionTitle { 
  display: flex;
  align-items: center;
  font-weight: 500;
  margin: 0px 0px 0px 0px;
  font-size: 1.55rem; 
  color: #0059ff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}
.pulseSection { margin-bottom: 10px; }


/* ───────── Re-usable třída pro tlačítka / nadpisy ───────── */
.igGradient {
  background: linear-gradient(60deg,
  #833ab4  0%,
  #5851db 20%,
  #0059ff 40%,
  #42a5f5 100%
  );
  font-size: 1.7rem; 
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  background-size: 100% 100%;
  animation: gradientShift 8s ease infinite;
  -webkit-background-clip: text;       /* Safari / Chrome */
  -webkit-text-fill-color: transparent;
          background-clip: text;       /* Firefox */
          color: transparent;
}

/* ──────────────────────────────────────────────────────────────
   ÚZKÉ VIEWPORTY  (telefon / tablet na výšku)  ≤ 768 px
   ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

  /* 0. Globálně: nikde žádný horizontální scroll */
  html,
  body {
    overflow-x: hidden;
  }

  /* ——— 1. Logo — favicon místo širokého loga ——— */
  .logoHeader {
    content: url("/assets/images/favicon-white-background.png");
    width: 32px;
    height: 32px;
    padding: 0 9px 0 12px;
    border-right: 1px solid #ccc;
  }

  .headerFlyoutPanel {
    display: none !important;
  }

  /* ——— 2. Tlačítka Report / Seasonality / Charts ——— */
  .headControlBtn {
    width: 34px;
    padding: 0;
    font-size: 0;
    /* skryje text */
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .headControlBtn .btnIconHeaderRow {
    margin: 0;
  }

  /*  už žádný modrý pseudo‑pruh u zúžených ikon */
  .headControlBtn::after {
    display: none !important;
  }

  /* ——— 3. “Report select:” text pryč ——— */
  .headerSeparatorLabel {
    display: none;
  }

  /* ——— 4. Zúžit DatePicker a Session‑dropdown ——— */
  .headerRightControls .DateInput_input {
    padding: 0 6px;
  }

  /* ——— 5. Dvou‑sloupcové rozvržení → pod sebe ——— */
  .analysisBiasTwoColumn {
    flex-direction: column;
    overflow-x: hidden;
    /* jistota, že se neuvolí vodorovně */
    overflow-y: auto;
  }

  /* pravý sloupec = celý zbytek šířky */
  .analysisBiasTwoColumn .rightColumn {
    width: 100%;
    flex: 0 0 auto;
    min-height: 0;
  }

  /* levý sloupec – graf/info */
  .analysisBiasTwoColumn .leftColumn {
    max-height: 205px;
    /* můžeš doladit */
    width: 93%;
    flex: 0 0 auto;
    min-height: 0;
  }

  /* TradingView iframe — pevný poměr stran */
  .analysisBiasTwoColumn .leftColumn iframe {
    flex: none;
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  /* kdyby byl v iframe ještě druhý element, skryj ho */
  .analysisBiasTwoColumn .leftColumn iframe:nth-of-type(2) {
    display: none;
  }

  /* 1) Zúžit wrapper samotného DatePickeru (využíváme id dcc komponenty) */
  #ndxDatePicker {
    flex: 0 0 auto;
    /* aby nesáhnul přes flex */
    width: 50px !important;
    min-width: 0;
    /* ať se může smrsknout */
  }

  /* 2) Uvnitř něj zbytek inputu rovnou na 100% šířky wrapperu */
  #ndxDatePicker .DateInput_input {
    width: 100% !important;
    box-sizing: border-box;
    opacity: 0 !important;
  }

  #ndxDatePicker .DateInput {
    position: relative;
  }

  /* 3) Ať se tlačítko otvírání kalendáře hezky vleze */
  #ndxDatePicker .SingleDatePickerInput_calendarIcon {
    right: 4px;
    /* případně dolaď podle potřeby */
  }

  #ndxDatePicker .DateInput::after {
    content: "Date";
    position: absolute;
    text-align: center;
    left: 13px;
    top: 49%;
    transform: translateY(-50%);
    pointer-events: none;
    /* aby kliknutí prošlo do inputu */
    color: #000;
    /* případně doladíš barvu */
  }
}

/* ──────────────────────────────────────────────────────────────
     Jemné doladění pro ≤ 1024 px (tablet landscape)
     ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .headerRightControls {
    gap: 8px;
  }

  .headerFlyoutPanel,
  .headerFlyoutPanel--wide {
    width: min(420px, calc(100vw - 24px));
  }
}


.analysis-date-picker-left-section {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  justify-content: flex-start !important;
}

.analysis-date-picker-day[data-selected] {
  background-color: #0059ff;
  color: #ffffff;
}

.analysis-date-picker-day[data-selected]:hover {
  background-color: #0059ff;
  color: #ffffff;
}
