#content:has(.saturation-learning-layout) {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--header-height));
  min-height: 0;
  overflow: hidden;
  padding-bottom: 0;
}

#content:has(.saturation-learning-layout) > #divApplication.saturation-learning-layout {
  flex: 1 1 auto;
  min-height: 0;
  height: auto !important;
}

.saturation-learning-layout {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  align-items: stretch;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  width: 100%;
}

.saturation-learning-side {
  display: grid;
  grid-template-columns: minmax(300px, max-content) 0.5rem minmax(180px, max-content);
  grid-template-rows: minmax(0, 1fr);
  align-items: stretch;
  min-height: 0;
  min-width: 0;
  overflow-x: auto;
  overflow-y: auto;
  background: var(--white-1000, #fff);
  border-right: 1px solid var(--gray-100, #dee2e6);
}

.saturation-learning-side .saturation-learning-params {
  --params-col-scale: 1.2;
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  min-width: 300px;
  max-width: 360px;
  margin-left: 0;
  margin-right: 0;
  padding-left: calc(0.25rem * var(--params-col-scale));
  padding-right: calc(0.25rem * var(--params-col-scale));
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 0;
  overflow: auto;
}

.saturation-learning-side .saturation-learning-params .table {
  width: 100%;
  table-layout: auto;
}

.saturation-learning-side .saturation-learning-params td[colspan="4"],
.saturation-learning-side .saturation-learning-params td[colspan="5"] {
  width: auto;
  white-space: nowrap;
  padding-left: calc(0.5rem * var(--params-col-scale));
  padding-right: calc(0.5rem * var(--params-col-scale));
}

.saturation-learning-side .saturation-learning-params td[colspan="1"] {
  width: 1%;
  max-width: 2.75rem;
  min-width: 1.75rem;
  white-space: nowrap;
  text-align: center;
  padding-left: 0.2rem;
  padding-right: 0.2rem;
}

.saturation-learning-side .resizer {
  grid-column: 2;
  grid-row: 1;
  align-self: stretch;
}

.saturation-learning-side .saturation-learning-tbls {
  grid-column: 3;
  grid-row: 1;
  width: auto !important;
  max-width: none !important;
  min-width: 180px;
  height: auto !important;
  overflow: visible !important;
}

.saturation-learning-charts {
  grid-column: 2;
  grid-row: 1;
  min-height: 0;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background: #f8f9fa;
  -webkit-overflow-scrolling: touch;
}

.saturation-learning-charts-inner {
  min-height: min-content;
  padding-bottom: 0.5rem;
}

.saturation-learning-layout .saturation-learning-params.ct-size-params {
  max-width: 360px;
}

.saturation-learning-layout .carousel-unit-project {
  min-width: 180px !important;
  width: auto !important;
}

.saturation-learning-layout .carousel-unit-project tbody > tr:first-child .d-flex {
  justify-content: center !important;
}

.saturation-learning-layout .carousel-unit-project .span-saturation {
  flex: 1 1 auto;
  width: 100%;
  text-align: center;
}

.saturation-learning-layout .saturation-learning-tbls > .d-flex {
  flex: 0 0 auto;
  min-width: 180px;
}

.ct-learning-chart-card .card-body {
  overflow: visible;
}

.ct-learning-top-pair .col-md-6 {
  display: flex;
}

.ct-learning-square-card {
  width: 100%;
}

.ct-learning-square-card .card-body {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ct-learning-vdraw-card .card-body {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.ct-learning-square-chart {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}

.ct-learning-vdraw-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.ct-learning-vdraw-chart {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 360px;
}

.ct-learning-tp-slider {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 4.5rem;
  user-select: none;
}

.ct-learning-tp-slider__body {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  height: 220px;
}

.ct-learning-tp-slider__scale {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  padding: 2px 0;
  font-size: var(--ct-learning-axis-font-size, 12px);
  line-height: 1;
  color: #6c757d;
  min-width: 1.75rem;
  font-family: inherit;
}

.ct-learning-tp-slider__track-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  min-width: 2rem;
}

.ct-learning-tp-slider__track-col {
  display: flex;
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  justify-content: center;
}

.ct-learning-tp-slider__track {
  position: relative;
  width: 28px;
  height: 100%;
  border-radius: 999px;
  background: #e9ecef;
  cursor: pointer;
  touch-action: none;
}

.ct-learning-tp-slider__fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 50%;
  border-radius: 999px;
  background: linear-gradient(180deg, #5cd67a 0%, #39d353 100%);
  pointer-events: none;
}

.ct-learning-tp-slider__thumb {
  position: absolute;
  left: 50%;
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff 0%, #f1f3f5 55%, #dee2e6 100%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
  transform: translateX(-50%);
  cursor: grab;
  touch-action: none;
}

.ct-learning-tp-slider__thumb::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: #f8f9fa;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
}

.ct-learning-tp-slider__thumb:active {
  cursor: grabbing;
}

.ct-learning-tp-slider__caption {
  margin: 0 0 0.35rem;
  font-size: var(--ct-learning-axis-font-size, 12px);
  color: #6c757d;
  font-family: inherit;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.ct-learning-tp-slider__value {
  margin: 0.35rem 0 0;
  font-size: var(--ct-learning-axis-font-size, 12px);
  font-weight: 400;
  line-height: 1;
  color: #6c757d;
  font-family: inherit;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 420px) {
  .ct-learning-vdraw-panel {
    flex-direction: column;
    gap: 0.75rem;
  }

  .ct-learning-tp-slider__body {
    height: 180px;
  }
}

.ct-learning-vdraw,
.ct-learning-mdraw {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  user-select: none;
}

.ct-learning-vdraw-labels {
  pointer-events: none;
}

.ct-learning-vdraw-labels text,
.ct-learning-vdraw-tag {
  font-family: inherit;
}

.ct-learning-vdraw--dragging .ct-learning-vdraw-vector {
  filter: drop-shadow(0 0 3px rgba(13, 110, 253, 0.45));
}

.ct-learning-vdraw-active-ring {
  pointer-events: none;
}

.ct-learning-vdraw-vector-ghost {
  pointer-events: none;
}

.ct-learning-idraw {
  display: block;
  width: 100%;
  height: 420px;
  min-height: 420px;
  max-height: none;
  touch-action: none;
  user-select: none;
}

.ct-learning-mdraw-grid,
.ct-learning-mdraw-data,
.ct-learning-mdraw-labels {
  pointer-events: none;
}

.ct-learning-handle {
  cursor: grab;
  pointer-events: all;
}

.ct-learning-handle:active {
  cursor: grabbing;
}

.ct-learning-handle-dot {
  pointer-events: none;
}

.ct-learning-mdraw .ct-learning-handle[data-handle="slope"] {
  cursor: ns-resize;
}

.ct-learning-idraw-card .card-body {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.ct-learning-idraw-zoom-hint {
  min-width: 1.75rem;
  font-weight: 600;
  line-height: 1;
}

.ct-learning-idraw-legend {
  pointer-events: none;
}

.ct-learning-idraw-legend-hit {
  cursor: pointer;
  pointer-events: all;
}

.ct-learning-idraw-legend-item {
  pointer-events: none;
}

.ct-learning-idraw-series .btn.active {
  font-weight: 600;
}

.saturation-learning-layout .divLogs {
  display: none;
}

.saturation-learning-result-readonly .tbl-input-saturation {
  background-color: #f8f9fa;
}

.ct-learning-mdraw-labels text,
.ct-learning-idraw-grid text,
.ct-learning-idraw-legend text {
  font-family: inherit;
}

.ct-learning-transfer-wrap {
  display: inline-flex;
  flex: 0 0 auto;
}

.ct-learning-transfer-menu {
  position: fixed;
  z-index: 1080;
  min-width: 11rem;
  max-width: 18rem;
  padding: 0.25rem 0;
  border: 1px solid var(--gray-100, #dee2e6);
  border-radius: 0.25rem;
  background: var(--white-1000, #fff);
  box-shadow: 0 0.35rem 0.85rem rgba(0, 0, 0, 0.12);
}

.ct-learning-transfer-menu__item {
  display: block;
  width: 100%;
  padding: 0.35rem 0.75rem;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ct-learning-transfer-menu__item:hover,
.ct-learning-transfer-menu__item:focus {
  background: var(--blue-50, #e7f1ff);
  outline: none;
}

.saturation-learning-layout .carousel-unit-project tbody > tr:first-child .ct-learning-transfer-wrap {
  margin-left: 0.15rem;
}
