html,
body {
  height: 100%;
  margin: 0;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.embed-wrapper {
  flex: 1;
  min-height: 0;
  display: flex;
}

.embed-frame {
  flex: 1;
  min-height: 0;
}

#superset-embed iframe {
  width: 100% !important;
  height: 100% !important;
}

.main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.main {
  width: 100%;
  max-width: none;
}


.tabs {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
  flex: 0 0 auto;
}

.tab {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  transition: color .15s, background .15s, border-color .15s;
}

.tab:hover {
  color: var(--color-text);
  background: var(--color-surface-2);
}

.tab--active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}


.embed-wrapper {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
}

.embed-frame {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
}

#superset-embed iframe {
  display: block;
  width: 100% !important;
  height: 100% !important;
  border: none;
}


.embed-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  color: var(--color-text-muted);
  font-size: 14px;
  background: var(--color-surface);
  z-index: 10;
  transition: opacity .3s;
}

.embed-placeholder.hidden {
  opacity: 0;
  pointer-events: none;
}