/* Beluga: a tela "Seeder" (gerador de dados de teste). Só variáveis do tema (beluga.css): nenhuma cor escrita aqui. */

.sd { display: grid; gap: 16px; }
.sd-hint { color: var(--muted); font-size: 13px; }
.sd-center { justify-content: center; }

/* menu de modelos no cabeçalho */
.sd-models > summary { width: auto; height: 38px; padding: 0 14px; gap: 8px; display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--text); font-weight: 600; font-size: 14px; }
.sd-models > summary:hover, .sd-models[open] > summary { border-color: var(--accent-line); background: var(--raised); }

/* ajustes */
.sd-settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; align-items: start; }
.sd-more { grid-column: 1 / -1; }
.sd-more__body { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; padding: 10px 0 4px; align-items: start; }
.sd-settings .input-group .btn { white-space: nowrap; }

/* tabelas à esquerda, colunas à direita */
.sd-layout { display: grid; grid-template-columns: minmax(250px, 330px) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 960px) { .sd-layout { grid-template-columns: minmax(0, 1fr); } }
.sd-tables { display: grid; gap: 12px; position: sticky; top: 76px; }
@media (max-width: 960px) { .sd-tables { position: static; } }
.sd-tables__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sd-tables__head h3, .sd-main__head h3 { font-size: 16px; overflow-wrap: anywhere; }
.sdt { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 60vh; overflow: auto; }
.sdt__item { display: grid; grid-template-columns: auto minmax(0, 1fr) 92px; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.sdt__item[aria-current='true'] { border-color: var(--accent-ink); background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent-ink); }
.sdt__check { display: grid; place-items: center; min-width: 30px; min-height: 38px; cursor: pointer; }
.sdt__check input { width: 18px; height: 18px; accent-color: var(--accent-ink); cursor: pointer; }
.sdt__name { display: grid; gap: 1px; min-width: 0; min-height: 38px; padding: 2px 4px; border: 0; background: none; text-align: left; cursor: pointer; border-radius: 8px; }
.sdt__name:hover { background: var(--raised); }
.sdt__name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sdt__name small { color: var(--muted); font-size: 12px; }
.sdt__item .input--num { width: 100%; min-height: 34px; padding: 4px 8px; }

/* a tabela escolhida */
.sd-main { display: grid; gap: 14px; min-width: 0; }
.sd-main__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.sd-rows { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sd-rows__label { font-weight: 600; font-size: 13px; margin-right: 4px; }
.sd-chipbtn { min-height: 34px; padding: 4px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; font-size: 13px; cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.sd-chipbtn:hover { background: var(--raised); border-color: var(--accent-line); }
.sd-chipbtn[aria-pressed='true'] { background: var(--accent-soft); border-color: var(--accent-ink); color: var(--accent-ink); font-weight: 700; }

/* colunas */
.sdcols { display: grid; }
.sdc { display: grid; grid-template-columns: minmax(150px, 0.9fr) minmax(210px, 1.1fr) minmax(0, 1fr); grid-template-areas: 'name gen ex' 'params params params' 'why why why'; gap: 8px 16px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sdc:last-child { border-bottom: 0; }
.sdc--off { opacity: 0.8; }
.sdc__name { grid-area: name; display: grid; gap: 4px; min-width: 0; align-content: start; }
.sdc__name strong { overflow-wrap: anywhere; }
.sdc__type { color: var(--muted); font-size: 12px; }
.sdc__chips { display: flex; flex-wrap: wrap; gap: 4px; }
.sdc__chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.sdc__gen { grid-area: gen; display: grid; gap: 4px; justify-items: start; min-width: 0; }
.sdc__gen .select { max-width: 100%; }
.sdc__locked { grid-area: gen; grid-column: 2 / -1; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.sdc__params { grid-area: params; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: end; }
.sdc__params:empty { display: none; }
.sdc__ex { grid-area: ex; display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; align-content: start; }
.sdc__sample { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 2px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--sunken); font-size: 12.5px; }
.sdc__why { grid-area: why; color: var(--muted); font-size: 12.5px; margin: 0; }
.sdc__why:empty { display: none; }
.sdp { display: grid; gap: 4px; min-width: 130px; font-size: 12.5px; color: var(--muted); }
.sdp--check { display: flex; align-items: center; gap: 8px; min-height: 38px; }
.sdp--check input { width: 18px; height: 18px; accent-color: var(--accent-ink); }
.sdp--wide { flex: 1 1 100%; }
.sdp .input--num { width: 9em; }
.sdp textarea.input { font-family: var(--mono); font-size: 13px; resize: vertical; }
@media (max-width: 720px) {
	.sdc { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'name' 'gen' 'ex' 'params' 'why'; }
	.sdc__locked { grid-column: 1; }
}

/* prévia */
.sd-preview { display: grid; gap: 10px; padding-top: 6px; border-top: 1px solid var(--line); }
.sd-preview__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px; padding-top: 12px; }
.sd-preview__head h4 { margin: 0; font-size: 15px; }
.sd-tablewrap { max-height: 340px; }
.sd-tablewrap .tbl td { max-width: 28ch; }
.sd-probe:empty { display: none; }

/* resumo e botão de gerar (sempre à vista) */
.sd-bar { position: sticky; bottom: 12px; z-index: 6; display: grid; gap: 10px; border-color: var(--accent-line); box-shadow: var(--shadow); }
@media (max-width: 860px) { .sd-bar { bottom: 74px; } }
.sd-bar__warn:empty { display: none; }
.sd-bar__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; }
.sd-bar__sum { display: grid; gap: 2px; min-width: 0; flex: 1 1 260px; }
.sd-bar__line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; }
.sd-bar__total { font-size: 17px; }
.sd-bar__meta { color: var(--muted); font-size: 13px; }
@media (max-width: 560px) { .sd-bar__list { display: none; } .sd-go { width: 100%; } }
.sd-bar__list { color: var(--muted); overflow-wrap: anywhere; }
.sd-go { min-height: 44px; padding: 10px 22px; font-size: 15px; }
.sd-go:disabled { opacity: 0.45; }

/* andamento */
.sd-run { position: sticky; bottom: 12px; z-index: 6; display: grid; gap: 12px; border-color: var(--accent-line); box-shadow: var(--shadow); }
@media (max-width: 860px) { .sd-run { bottom: 74px; } }
.sd-body[inert] { opacity: 0.55; }
.sd-run__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sd-meter { height: 14px; border-radius: 999px; background: var(--sunken); border: 1px solid var(--line); overflow: hidden; }
.sd-meter i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--accent-ink); background-image: repeating-linear-gradient(135deg, transparent 0 10px, color-mix(in srgb, var(--on-accent) 22%, transparent) 10px 20px); background-size: 28px 28px; animation: sd-stripes 1s linear infinite; transition: width 0.2s linear; }
@keyframes sd-stripes { to { background-position: 28px 0; } }

/* resultado */
.sd-result { display: grid; gap: 12px; border-color: var(--accent-line); }
.sd-result__head { display: flex; align-items: flex-start; gap: 12px; }
.sd-result__head > div { flex: 1; min-width: 0; }
.sd-result__head > .bi { color: var(--accent-ink); margin-top: 3px; }
.sd-result__head h3 { font-size: 18px; }
.sd-result__sum { color: var(--muted); }
.sd-result__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.sd-result__list li { overflow-wrap: anywhere; }

.sd .muted { color: var(--muted); }
