.pestanas.swct-pestanas {
  margin: 4px 0 8px;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

.swct-pestanas .boton-pestana-container {
  flex-wrap: nowrap;
  background: transparent;
}

.swct-pestanas .boton-pestana {
  padding: 8px 12px;
  border-right: 0;
  font-size: 0.9rem;
}

.swct-pestanas .boton-pestana.active {
  background: transparent;
}

.swct-pestanas .pestana-contenido {
  display: none;
}

.swct-pestanas .pestana-contenido.active {
  display: block;
  padding: 8px 0 0;
}

.swct-control-superior {
  flex: 1 1 0%;
  width: 100%;
  max-width: none;
  min-width: 0;
}

.swct-control-superior-combo,
.swct-control-superior-combo-main {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.swct-control-superior-combo {
  height: 42px;
}

.swct-control-superior-combo-main {
  height: 36px;
}

.swct-control-superior-takt {
  flex: 1 1 0%;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin-right: 0;
}

.swct-control-superior-input {
  height: 36px;
  min-height: 36px;
}

.swct-filtros-tiempo {
  overflow: visible;
}

.swct-filtro-tiempo {
  flex: 0 1 220px;
  width: 220px;
  max-width: 100%;
  min-width: 170px;
}

.swct-filtro-tiempo > div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.swct-filtro-tiempo-input {
  box-sizing: border-box;
  height: 42px;
  min-height: 42px;
  padding: 0 0.75rem;
  color: #181f3a;
  border: 2px solid #181f3a;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08);
}

.swct-filtro-tiempo-input:focus {
  outline: 2px solid rgb(147 197 253);
  outline-offset: 1px;
}

.swct-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(250px, 0.8fr);
  align-items: stretch;
  min-height: 0;
}

.swct-layout.swct-controls-collapsed {
  grid-template-columns: minmax(0, 1fr);
}

.swct-controls-collapsed > .swct-controls-panel {
  display: none;
}

.swct-chart-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.swct-chart-heading > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  min-width: 0;
}

.swct-chart-heading h1,
.swct-chart-heading p {
  margin-bottom: 0;
}

.swct-toggle-controls {
  white-space: nowrap;
}

.swct-chart-panel,
.swct-controls-panel {
  min-width: 0;
  box-sizing: border-box;
}

.swct-chart-panel {
  min-height: 0;
}

.swct-controls-panel {
  align-self: stretch;
  height: auto;
  min-height: 0;
  padding: 1rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.1);
  justify-content: flex-start;
  gap: 1.5rem;
}

.swct-controls-panel > div {
  width: 100%;
  max-width: none;
}

.swct-controls-panel [id$="_comboSujetos"] {
  width: 100%;
}

.swct-controls-panel [id$="_checksClasif"] {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.swct-controls-panel [id$="_herramientas"] {
  flex-direction: column;
  align-items: stretch;
}

.swct-controls-panel [id$="_herramientas"] > * {
  width: 100%;
}

.swct-grafica {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.swct-grafica-contenedor {
  position: relative;
  width: 100%;
  min-height: 0;
  overflow: auto !important;
  overscroll-behavior: contain;
  touch-action: pan-x pan-y;
}

.swct-grafica-canvas {
  position: relative;
  width: 100%;
  min-width: 100%;
  min-height: 350px;
  box-sizing: border-box;
  flex: none;
}

@media (max-width: 900px) {
  .swct-layout {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .swct-chart-panel {
    min-height: 0;
  }

  .swct-controls-panel {
    position: static;
  }

  .swct-controls-panel [id$="_checksClasif"] {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .swct-controls-panel [id$="_herramientas"] {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .swct-controls-panel [id$="_herramientas"] > * {
    width: auto;
  }
}

body.modo-oscuro .swct-pestanas .boton-pestana.active {
  background: transparent;
}

body.modo-oscuro .swct-controls-panel {
  color: #f3f4f6;
  background: #1f2937;
  border-color: #4b5563;
}

body.modo-oscuro .swct-toggle-controls {
  color: #f3f4f6;
  background: #1f2937;
  border-color: #64748b;
}

body.modo-oscuro .swct-filtro-tiempo-input {
  color: #f3f4f6;
  background: #1f2937;
  border-color: #94a3b8;
}

body.modo-oscuro .swct-filtro-tiempo label {
  color: #e5e7eb;
}
