/* Inputs (/data). Sizes are Flutter's logical pixels, from data_screen.dart
   and its tabs/widgets; colors are the shell tokens. The dialog shell, the
   buttons and the snackbar here (.inp-dlg, .inp-d*, .inp-snack) are also the
   Conectores panel's (connectors.css adds its own pieces). */

.inp-host { padding: 0 !important; display: flex; overflow: clip !important; }
.inp { flex: 1; min-width: 0; display: flex; }
.inp-main { flex: 1; min-width: 0; padding: 24px; display: flex; flex-direction: column; }
.inp-tabs { display: contents; }
.inp-tab { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.inp-tab[style*="display: none"] { flex: 0; }
.inp-scroll { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; display: flex; flex-direction: column; }
.inp-scroll > * { flex: none; }
.inp-ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.inp-right { display: flex; justify-content: flex-end; }

/* ── top bar: DataTabBar + the Conectores button ──────────────────────── */
.inp-actions { display: flex; align-items: center; gap: 8px; }
.inp-tabbar { display: flex; padding: 3px; border-radius: 8px; background: var(--surface-light); border: 1px solid var(--border); }
.inp-tabbar button {
  height: 32px; padding: 0 16px; border-radius: 6px; border: 1px solid transparent; font-size: 13px; font-weight: 400;
  color: var(--muted); letter-spacing: .1px; transition: background-color 200ms var(--ease-out-cubic), color 120ms linear;
}
.inp-tabbar button.is-on { background: var(--card); border-color: color-mix(in srgb, var(--border) 50%, transparent); color: var(--text); font-weight: 500; }
.inp-cnx-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 8px;
  background: var(--primary); color: #fff; font-size: 13px; font-weight: 500; letter-spacing: .1px;
}
.inp-cnx-btn:hover { background: color-mix(in srgb, var(--primary) 92%, #fff); }

/* ── DataTypeCard ─────────────────────────────────────────────────────── */
.inp-card { margin: 4px; padding: 15px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; }
.inp-card.is-flat { margin: 0; padding: 16px; border: 0; background: none; border-radius: 0; }
.inp-card + .inp-card { margin-top: 20px; }
.inp-card-head { display: flex; align-items: center; }
.inp-state { color: var(--muted); display: grid; flex: none; }
.inp-state.is-on { color: var(--success); }
.inp-card-text { flex: 1; min-width: 0; margin-left: 12px; }
.inp-card-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; letter-spacing: .15px; line-height: 1.5; }
.inp-card-desc { margin-top: 4px; font-size: 12px; line-height: 1.33; letter-spacing: .4px; color: var(--text-2); }
.inp-card-acts { display: flex; align-items: center; gap: 8px; flex: none; padding-right: 8px; }
.inp-card-acts > input { display: none; }
.inp-check { color: var(--success); display: grid; }
.inp-chip { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; padding: 2px 6px; border-radius: 4px; line-height: 1.43; letter-spacing: .25px; white-space: nowrap; flex: none; }
.inp-req, .inp-opt { font-size: 11px; font-weight: 500; padding: 4px 10px; border-radius: 12px; }
.inp-req { color: var(--primary); background: color-mix(in srgb, var(--primary) 15%, transparent); }
.inp-opt { color: var(--muted); background: color-mix(in srgb, var(--muted) 15%, transparent); }
.inp-chip.is-warn { color: var(--warning); background: color-mix(in srgb, var(--warning) 15%, transparent); }
.inp-chip.is-sheets, .inp-chip.is-ok { color: var(--success); background: color-mix(in srgb, var(--success) 15%, transparent); }
.inp-chip.is-sheets { color: var(--secondary); background: color-mix(in srgb, var(--secondary) 15%, transparent); }
.inp-chip.is-raw { color: var(--muted); background: color-mix(in srgb, var(--muted) 15%, transparent); }
.inp-chip.is-pri { color: var(--primary); background: color-mix(in srgb, var(--primary) 15%, transparent); }

/* IconActionButton: a 4px pad around a 20px icon, radius 4 */
.inp-iab { display: grid; place-items: center; padding: 4px; border-radius: 4px; color: var(--text-2); position: relative; }
.inp-iab:hover { background: var(--hover); }
.inp-iab:disabled { color: var(--muted); cursor: default; background: none; }
.inp-ib28 { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--muted); flex: none; position: relative; }
.inp-ib28:hover { background: var(--hover); }
.inp-ib40 { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--muted); flex: none; }
.inp-ib40:hover { background: var(--hover); }
.inp-busy .inp-spin { display: none; }
.inp-busy.htmx-request > .ic { display: none; }
.inp-busy.htmx-request .inp-spin { display: block; }

/* the "Ver datos" CTA: primary at 10%, 34 tall */
.inp-view { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 8px; color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, transparent); font-size: 12px; font-weight: 600; letter-spacing: .1px; }
.inp-view:hover { background: color-mix(in srgb, var(--primary) 16%, transparent); }
.inp-menu-wrap .inp-view { gap: 6px; padding-right: 6px; }
.inp-menu-wrap .inp-view > .ic:last-child { margin-left: -6px; }
.inp-menu-wrap { position: relative; }
.inp-menu { position: absolute; right: 0; top: calc(100% + 2px); z-index: 30; min-width: 160px; padding: 8px 0; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--menu-shadow); }
.inp-menu-item { display: flex; align-items: center; height: 48px; padding: 0 12px; font-size: 14px; color: var(--text); }
.inp-menu-item:hover { background: var(--hover); }

.inp-divider { height: 1px; background: var(--border); margin: 19.5px 0 7.5px; }

/* FileListItem and its lineage */
.inp-row { display: flex; align-items: center; }
.inp-row-main { flex: 1; min-width: 0; }
.inp-row-tag { margin-right: 8px; }
.inp-bar { flex: none; width: 3px; height: 40px; border-radius: 2px; margin: 0 8px 0 4px; }
.inp-bar.is-warn { background: color-mix(in srgb, var(--warning) 40%, transparent); }
.inp-bar.is-ok { background: color-mix(in srgb, var(--success) 40%, transparent); }
.inp-bar.is-pri { background: color-mix(in srgb, var(--primary) 40%, transparent); }
.inp-link { display: flex; align-items: center; gap: 6px; padding-left: 5px; height: 16px; }
.inp-link > span { width: 2px; height: 16px; }
.inp-link.is-ok > span { background: color-mix(in srgb, var(--success) 30%, transparent); }
.inp-link.is-ok .ic { color: color-mix(in srgb, var(--success) 50%, transparent); }
.inp-link.is-pri > span { background: color-mix(in srgb, var(--primary) 30%, transparent); }
.inp-link.is-pri .ic { color: color-mix(in srgb, var(--primary) 50%, transparent); }
.inp-file { display: flex; align-items: center; padding: 8px 0; }
.inp-file.is-dim { opacity: .6; }
.inp-file-ic { flex: none; width: 36px; height: 36px; border-radius: 8px; background: var(--surface-light); display: grid; place-items: center; color: var(--text-2); }
.inp-file-ic.is-sheets { color: var(--secondary); }
.inp-file-text { flex: 1; min-width: 0; margin-left: 12px; }
.inp-file-name { display: flex; align-items: baseline; gap: 8px; font-size: 14px; line-height: 1.43; }
.inp-file-sheet { font-size: 12px; color: var(--muted); letter-spacing: .4px; flex: none; }
.inp-file-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 1.33; letter-spacing: .4px; color: var(--muted); }
.inp-file-acts { display: flex; align-items: center; flex: none; }

/* the materialised hierarchy step */
.inp-mat { display: flex; align-items: center; padding: 6px 0; }
.inp-mat-ic { flex: none; display: grid; padding: 6px; border-radius: 6px; color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, transparent); }
.inp-mat-text { flex: 1; min-width: 0; margin-left: 10px; display: flex; flex-direction: column; }
.inp-mat-t { font-size: 13px; font-weight: 500; }
.inp-mat-s { font-size: 11px; color: var(--muted); }
.inp-mat-l { font-size: 10px; color: var(--muted); padding-top: 2px; }

/* the Stock por fuente link */
.inp-sbs { display: flex; align-items: center; padding: 11px 15px; margin-top: 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); }
.inp-sbs:hover { background-image: linear-gradient(var(--hover), var(--hover)); }
.inp-sbs + .inp-card { margin-top: 20px; }
.inp-sbs-ic { display: grid; color: var(--text-2); }
.inp-sbs-text { flex: 1; min-width: 0; margin-left: 10px; display: flex; flex-direction: column; gap: 2px; }
.inp-sbs-text b { font-size: 14px; font-weight: 600; }
.inp-sbs-text small { font-size: 12px; color: var(--text-2); }
.inp-sbs-go { display: grid; color: var(--muted); }

/* ── Parámetros de Decisión ───────────────────────────────────────────── */
.inp-dp { background: var(--card); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 16px; }
.inp-dp.is-on { border-color: var(--success); }
.inp-dp-head { padding: 20px; }
.inp-dp-row { display: flex; align-items: center; gap: 12px; }
.inp-dp-title { flex: 1; font-size: 18px; font-weight: 600; line-height: 1.33; }
.inp-dp-sub { margin: 8px 0 0; font-size: 13px; line-height: 1.4; color: var(--text-2); }
.inp-dp-div { height: 1px; background: var(--border); }
.inp-obtn {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 24px 0 16px; border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font-size: 14px; font-weight: 500; letter-spacing: .1px;
}
.inp-obtn:hover { background: var(--hover); }
.inp-obtn:disabled { color: color-mix(in srgb, var(--text) 38%, transparent); border-color: color-mix(in srgb, var(--text) 12%, transparent); }
.inp-legacy { display: flex; align-items: center; gap: 6px; width: 100%; padding: 8px 4px; border-radius: 8px; color: var(--text-2); text-align: left; }
.inp-legacy:hover { background: var(--hover); }
.inp-legacy-text { flex: 1; display: flex; flex-direction: column; }
.inp-legacy-text b { font-size: 13px; font-weight: 600; letter-spacing: .5px; }
.inp-legacy-text small { font-size: 12px; color: color-mix(in srgb, var(--text-2) 80%, transparent); }
.inp-legacy-list { padding-top: 12px; }
.inp-legacy-list .inp-card { margin-bottom: 12px; }
.inp-legacy-list .inp-card + .inp-card { margin-top: 4px; }

/* ── Salud de datos ───────────────────────────────────────────────────── */
.inp-health { overflow: hidden; }
.inp-dh { display: flex; flex-direction: column; gap: 16px; }
.inp-dh-center { flex: 1; display: grid; place-items: center; }
.inp-dh-muted { font-size: 13px; color: var(--muted); }
.inp-dh-why { max-width: 420px; margin: 0; text-align: center; line-height: 1.5; }
.inp-dh-verdict { padding: 17px; border-radius: 12px; border: 1px solid; }
.inp-dh-verdict.is-low { --c: var(--success); }
.inp-dh-verdict.is-medium { --c: var(--warning); }
.inp-dh-verdict.is-high { --c: var(--error); }
.inp-dh-verdict { background: color-mix(in srgb, var(--c) 7%, transparent); border-color: color-mix(in srgb, var(--c) 30%, transparent); }
.inp-dh-vrow { display: flex; align-items: center; }
.inp-dh-vt { flex: 1; font-size: 17px; font-weight: 700; color: var(--c); }
.inp-dh-file { font-size: 12px; color: var(--muted); }
.inp-dh-stats { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 12px; }
.inp-dh-stat { display: flex; flex-direction: column; }
.inp-dh-stat small { font-size: 10.5px; letter-spacing: .5px; color: var(--muted); }
.inp-dh-stat b { margin-top: 2px; font-size: 20px; font-weight: 700; }
.inp-dh-stat em { font-style: normal; font-size: 11px; color: var(--muted); }
.inp-dh-gate { margin: 12px 0 0; font-size: 11.5px; line-height: 1.45; color: var(--muted); }
.inp-dh-card { padding: 17px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; }
.inp-dh-ct { font-size: 11px; letter-spacing: .6px; font-weight: 600; color: var(--muted); }
.inp-dh-cs { margin-top: 6px; font-size: 12px; line-height: 1.45; color: var(--text-2); }
.inp-dh-cb { margin-top: 12px; }
.inp-dh-row { display: flex; align-items: center; padding: 6px 0; font-size: 12.5px; }
.inp-dh-row > span { min-width: 0; flex-basis: 0; }
.inp-dh-id { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inp-dh-v { color: var(--text-2); }
.inp-dh-m { font-size: 11.5px; color: var(--muted); text-align: right; }
.inp-dh-more { padding-top: 8px; font-size: 11.5px; color: var(--muted); }
.inp-dh-clean, .inp-dh-issue { display: flex; align-items: flex-start; gap: 9px; padding: 6px 0; font-size: 12.5px; color: var(--text-2); }
.inp-dh-clean { align-items: center; }
.inp-dh-clean .ic { color: var(--success); }
.inp-dh-issue { padding: 4px 0; line-height: 1.45; }
.inp-dh-issue .ic { color: var(--error); margin-top: 2px; }
.inp-dh-col { display: flex; align-items: center; padding: 4px 0; font-size: 12.5px; }
.inp-dh-col span { flex: 1; }
.inp-dh-col b { font-weight: 400; color: var(--muted); }
.inp-dh-col b.is-some { font-weight: 600; color: var(--text-2); }

/* ── Canales (channels_views.py) ──────────────────────────────────────── */
.inp-ch { display: flex; flex-direction: column; gap: 16px; }
.inp-ch-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.inp-ch-tbl th { padding: 6px 8px; font-size: 11px; font-weight: 600; letter-spacing: .4px; color: var(--muted); text-align: right; border-bottom: 1px solid var(--border); }
.inp-ch-tbl td { padding: 8px; text-align: right; color: var(--text-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.inp-ch-tbl th:first-child, .inp-ch-tbl td.inp-ch-name { text-align: left; }
.inp-ch-name b { font-weight: 600; color: var(--text); }
.inp-ch-tbl small, .inp-ch-none { color: var(--muted); }
.inp-ch-act { width: 1%; }
.inp-ch-l { display: none; }
.inp-ch-del { height: 32px; gap: 4px; padding: 0 10px; font-size: 12.5px; }
.inp-ch-sum { padding-top: 10px; font-size: 11.5px; color: var(--muted); }
.inp-ch-confirm { border-color: color-mix(in srgb, var(--error) 35%, var(--border)); }
.inp-ch-ct { font-size: 16px; font-weight: 700; }
.inp-ch-sub { margin: 14px 0 4px; font-size: 11px; font-weight: 600; letter-spacing: .5px; color: var(--muted); }
.inp-ch-warn { margin: 12px 0 0; font-size: 12.5px; color: var(--error); }
.inp-ch-form { margin-top: 14px; }
.inp-ch-stock { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; font-size: 12.5px; line-height: 1.45; color: var(--text-2); cursor: pointer; }
.inp-ch-stock input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--error); }
.inp-ch-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.inp-cm-form + .inp-cm-form, .inp-cm-more { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }
.inp-cm-head { margin-bottom: 8px; }
.inp-cm-title { font-size: 13.5px; font-weight: 600; font-family: var(--mono, monospace); }
.inp-cm-name { display: flex; flex-direction: column; gap: 4px; max-width: 280px; font-size: 11.5px; color: var(--muted); }
.inp-cm-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 24px; }
.inp-cm-row { display: flex; align-items: center; gap: 12px; min-height: 40px; font-size: 12.5px; }
.inp-cm-ch { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inp-cm-ch small { color: var(--muted); }
.inp-cm-row input, .inp-cm-name input { width: 150px; height: 34px; padding: 0 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); font: inherit; }
.inp-cm-name input { width: 100%; }
.inp-cm-more summary { cursor: pointer; font-size: 12.5px; color: var(--primary); min-height: 32px; }
@media (max-width: 720px) {
  .inp-cm-rows { grid-template-columns: 1fr; }
  .inp-cm-row { flex-direction: column; align-items: stretch; gap: 4px; }
  .inp-cm-row input, .inp-cm-name input { width: 100%; min-height: 44px; font-size: 16px; }
  .inp-cm-more summary { min-height: 44px; display: flex; align-items: center; }
  .inp-ch-tbl thead { display: none; }
  .inp-ch-tbl, .inp-ch-tbl tbody, .inp-ch-tbl tr, .inp-ch-tbl td { display: block; width: auto; }
  .inp-ch-tbl tr { padding: 10px 0; border-bottom: 1px solid var(--border); }
  .inp-ch-tbl td { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding: 3px 0; border: 0; white-space: normal; }
  .inp-ch-tbl .inp-ch-l { display: inline; margin-right: auto; color: var(--muted); }
  .inp-ch-tbl td.inp-ch-name { font-size: 14px; }
  .inp-ch-act { padding-top: 8px; }
  .inp-ch-del, .inp-ch-acts .btn { min-height: 44px; }
  .inp-ch-del { width: 100%; justify-content: center; }
  .inp-ch-acts { flex-direction: column-reverse; }
}

/* ── The right-hand slot (AnimatedSize + AnimatedSwitcher) ────────────── */
.inp-side { flex: none; width: 0; overflow: hidden; transition: width 280ms var(--ease-out-cubic); }
.inp-side.is-open { width: clamp(320px, calc(30vw / var(--zoom)), 420px); }
.inp-side-in { width: clamp(320px, calc(30vw / var(--zoom)), 420px); height: 100%; }
.inp-panel { height: 100%; display: flex; flex-direction: column; background: var(--bg); border-left: 1px solid var(--border); animation: inpslide 280ms var(--ease-out-cubic) both; }
@keyframes inpslide { from { opacity: 0; transform: translateX(15%); } }
.inp-panel-wait { flex: 1; display: grid; place-items: center; }
.inp-ph { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); min-height: 65px; }
.inp-ph-ic.is-pri, .is-pri.ic { color: var(--primary); }
.inp-ph-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.inp-ph-text b { font-size: 14px; font-weight: 600; }
.inp-ph-text small { font-size: 11px; color: var(--muted); }
.inp-pb { flex: 1; min-height: 0; overflow-y: auto; padding: 16px; scrollbar-width: thin; }

/* Configurar jerarquía */
.inp-hc-lbl { font-size: 11px; font-weight: 600; letter-spacing: .5px; color: var(--text-2); }
.inp-hc-lbl.is-ic { display: flex; align-items: center; gap: 6px; }
.inp-hc-lbl.is-gap { margin-top: 16px; }
.inp-hc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.inp-hc-chip, .inp-pv-chip { padding: 3px 8px; border-radius: 4px; border: 1px solid var(--border); background: var(--surface); font-size: 11px; color: var(--text-2); }
.inp-hc-freq { margin-top: 12px; padding: 11px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); }
.inp-hc-hint { margin: 6px 0 0; font-size: 11px; color: var(--muted); }
.inp-hc-freqs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.inp-hc-fc { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface-light); font-size: 12px; color: var(--text-2); }
.inp-hc-fc.is-on { background: var(--primary); color: #fff; border-color: var(--primary); }
.inp-hc-note { margin: 8px 0 0; font-size: 10px; font-style: italic; color: var(--muted); }
.inp-hc-err p { margin: 0 0 6px; font-size: 12px; color: var(--text-2); }
.inp-hc-err p.is-err { font-size: 13px; color: var(--error); }
.inp-hc-busy { padding: 32px 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.inp-hc-busy p { margin: 8px 0 0; font-size: 12px; color: var(--text-2); }
.inp-hc-busy small { font-size: 11px; color: var(--muted); }
.inp-hc-ok { padding: 8px 0; }
.inp-hc-okbox { display: flex; gap: 10px; padding: 13px; border-radius: 10px; background: color-mix(in srgb, var(--success) 10%, transparent); border: 1px solid color-mix(in srgb, var(--success) 30%, transparent); }
.inp-hc-okbox > .ic { color: var(--success); }
.inp-hc-okbox b { font-size: 14px; font-weight: 600; }
.inp-hc-okbox p { margin: 2px 0 0; font-size: 12px; color: var(--text-2); }
.inp-hc-okbox small { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }
.inp-hc-okbox em { display: block; margin-top: 6px; font-size: 11px; color: var(--muted); }
.inp-hc-ok .inp-right { margin-top: 14px; }
.inp-te { margin-top: 12px; padding: 15px; border-radius: 12px; border: 1px solid var(--border); background: var(--card); }
.inp-te-head { display: flex; align-items: center; gap: 8px; }
.inp-te-head b { font-size: 15px; font-weight: 600; }
.inp-te-sub { margin: 4px 0 14px; font-size: 12px; color: var(--text-2); }
.inp-te .inp-hc-lbl { margin-bottom: 6px; }
.inp-lv { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; padding: 7px 9px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); }
.inp-lv b { font-size: 13px; font-weight: 600; flex: none; }
.inp-lv-gb { flex: 1; font-size: 12px; color: var(--text-2); }
.inp-lv-kind { flex: none; padding: 2px 6px; border-radius: 4px; font-size: 10px; font-weight: 600; }
.inp-lv-kind.is-agg { color: var(--primary); background: color-mix(in srgb, var(--primary) 15%, transparent); }
.inp-lv-kind.is-bottom { color: var(--success); background: color-mix(in srgb, var(--success) 15%, transparent); }
.inp-lv-kind.is-side { color: var(--warning); background: color-mix(in srgb, var(--warning) 15%, transparent); }
.inp-te-add { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; padding: 6px 8px; border-radius: 6px; color: var(--primary); font-size: 12px; }
.inp-te-add:hover { background: color-mix(in srgb, var(--primary) 8%, transparent); }
.inp-te-none { margin: 0; font-size: 12px; color: var(--muted); }
.inp-te-err { margin: 14px 0 8px; font-size: 12px; color: var(--error); }
.inp-te .inp-right { margin-top: 14px; }
.inp-fbtn { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 16px; border-radius: 8px; background: var(--primary); color: #fff; font-size: 14px; font-weight: 500; }
.inp-fbtn.is-ic { padding: 0 14px; }
.inp-fbtn:disabled { background: color-mix(in srgb, var(--surface-light) 50%, transparent); color: color-mix(in srgb, var(--text) 38%, transparent); cursor: default; }
.inp-tbtn { height: 36px; padding: 0 16px; border-radius: 20px; color: var(--primary); font-size: 14px; font-weight: 500; }
.inp-tbtn:hover { background: color-mix(in srgb, var(--primary) 8%, transparent); }

/* ── Dialogs (Flutter's Dialog / AlertDialog) ─────────────────────────── */
.inp-dlg { position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: center; padding: 24px 40px; }
.inp-dlg-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .54); opacity: 0; transition: opacity 150ms linear; }
.inp-dlg-box {
  position: relative; width: var(--w, 560px); max-width: 100%; max-height: calc(100dvh / var(--zoom) - 48px); display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 11px 15px -7px rgba(0, 0, 0, .2), 0 24px 38px 3px rgba(0, 0, 0, .14);
  opacity: 0; transform: scale(.98); transition: opacity 150ms linear, transform 150ms var(--ease-out-cubic);
}
.inp-dlg.is-open .inp-dlg-scrim, .inp-dlg.is-open .inp-dlg-box { opacity: 1; transform: none; }
.inp-dlg-t { margin: 0; padding: 24px 24px 16px; font-size: 16px; font-weight: 600; letter-spacing: 0; }
.inp-dlg-body { padding: 0 24px; overflow-y: auto; }
.inp-dlg-acts { display: flex; justify-content: flex-end; gap: 8px; padding: 24px; }
.inp-alert { width: auto; min-width: 280px; max-width: 560px; }
.inp-alert-b { padding: 0 24px; font-size: 14px; line-height: 1.43; color: var(--text-2); white-space: pre-line; }
.inp-dbtn { height: 36px; padding: 0 16px; border-radius: 20px; font-size: 14px; font-weight: 500; letter-spacing: .1px; color: var(--primary); }
.inp-dbtn:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.inp-dbtn.is-danger { color: var(--error); }
.inp-dbtn.is-muted { color: var(--text-2); }
.inp-dfill { height: 32px; padding: 0 24px; border-radius: 8px; background: var(--primary); color: #fff; font-size: 14px; font-weight: 500; letter-spacing: .1px; }
.inp-dfill.is-danger { background: var(--error); border-radius: 20px; }
.inp-dfill:disabled { background: color-mix(in srgb, var(--text) 12%, transparent); color: color-mix(in srgb, var(--text) 38%, transparent); cursor: default; }

/* the level dialog's controls */
.inp-uf { display: flex; flex-direction: column; border-bottom: 1px solid var(--muted); padding: 6px 0 4px; font-size: 12px; color: var(--text-2); }
.inp-uf:focus-within { border-bottom: 2px solid var(--primary); padding-bottom: 3px; color: var(--primary); }
.inp-uf input { border: 0; outline: none; background: none; font-size: 16px; padding: 4px 0; color: var(--text); }
.inp-uf.is-off { opacity: .6; }
.inp-uf-help { margin: 4px 0 0; font-size: 11px; color: var(--warning); }
.inp-lvd-l { margin: 14px 0 4px; font-size: 12px; color: var(--text-2); }
.inp-lvd-chips { display: flex; flex-wrap: wrap; gap: 6px 6px; }
.inp-fchip { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 12px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); font-size: 12px; color: var(--text); }
.inp-fchip.is-on { background: color-mix(in srgb, var(--primary) 16%, var(--surface)); }
.inp-uselect { width: 100%; height: 48px; border: 0; border-bottom: 1px solid var(--muted); background: none; font-size: 16px; color: var(--text); outline: none; }
.inp-uselect option { background: var(--surface); }
.inp-cbx { display: flex; align-items: flex-start; gap: 16px; margin-top: 14px; cursor: pointer; }
.inp-cbx input { display: none; }
.inp-cbx-box { flex: none; width: 18px; height: 18px; margin: 3px; border-radius: 2px; border: 1.5px solid var(--muted); display: grid; place-items: center; color: transparent; }
.inp-cbx input:checked + .inp-cbx-box { background: var(--primary); border-color: var(--primary); color: #fff; }
.inp-cbx-text { display: flex; flex-direction: column; }
.inp-cbx-text b { font-size: 13px; font-weight: 400; }
.inp-cbx-text small { font-size: 11px; color: var(--muted); }

/* the expanded.parquet preview */
.inp-pv { padding: 20px; background: var(--bg); max-height: min(700px, calc(100dvh / var(--zoom) - 64px)); }
.inp-pv-head { display: flex; align-items: center; gap: 10px; }
.inp-pv-ic { display: grid; color: var(--primary); }
.inp-pv-title { flex: 1; display: flex; flex-direction: column; }
.inp-pv-title b { font-size: 16px; font-weight: 600; }
.inp-pv-title small { font-size: 12px; color: var(--text-2); }
.inp-pv-div { height: 1px; background: var(--border); margin: 7.5px 0 15.5px; }
.inp-pv-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.inp-pv-note { margin: 6px 0 12px; font-size: 11px; color: var(--muted); }
.inp-pv-err { margin: 24px 0; font-size: 12px; color: var(--error); }
.inp-pv-table { flex: 1; min-height: 0; overflow: auto; }
.inp-pv-table table { border-collapse: collapse; font-size: 12px; white-space: nowrap; }
.inp-pv-table th { height: 56px; padding: 0 24px; text-align: left; font-weight: 600; background: var(--surface); position: sticky; top: 0; }
.inp-pv-table th:first-child, .inp-pv-table td:first-child { padding-left: 24px; }
.inp-pv-table td { height: 48px; padding: 0 24px; border-top: 1px solid var(--border); }

/* ── Snackbar (bottom of the window, one at a time) ───────────────────── */
.inp-toasts { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-toast); display: flex; flex-direction: column; pointer-events: none; }
.inp-snack {
  pointer-events: auto; min-height: 48px; display: flex; align-items: center; padding: 14px 16px; font-size: 14px;
  background: var(--surface); color: var(--text); box-shadow: 0 3px 5px -1px rgba(0, 0, 0, .2), 0 6px 10px 0 rgba(0, 0, 0, .14), 0 1px 18px 0 rgba(0, 0, 0, .12);
  animation: inpsnackin 250ms var(--ease-out-cubic) both;
}
.inp-snack.is-success { background: var(--success); }
.inp-snack.is-error { background: var(--error); }
.inp-snack.is-warning { background: var(--warning); }
.inp-snack.is-out { animation: inpsnackout 200ms linear both; }
@keyframes inpsnackin { from { transform: translateY(100%); } }
@keyframes inpsnackout { to { opacity: 0; } }

/* CircularProgressIndicator: a 2px ring, primary by default */
.inp-spin { display: inline-block; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--primary); border-right-color: transparent; animation: inpspin 900ms linear infinite; flex: none; }
.inp-spin.is-14 { width: 14px; height: 14px; }
.inp-spin.is-20 { width: 20px; height: 20px; }
.inp-spin.is-36 { width: 36px; height: 36px; border-width: 4px; }
.inp-upspin { margin: 4px; }
.inp-iab .inp-spin, .inp-ib28 .inp-spin { width: 20px; height: 20px; }
.inp-ib28 .inp-spin.is-14 { width: 14px; height: 14px; }
@keyframes inpspin { to { transform: rotate(360deg); } }

/* ── A file's full-screen table (data_file_table_screen.dart) ─────────────
   Columns as _table lays them out: the first 28% of the card, kept within
   130–280px and frozen; the rest share what is left, never under 120px, and
   scroll sideways under a frozen header. */
.inp-tbl-host { padding: 0 !important; display: flex; overflow: clip !important; }
.content:has(.inp-tbl) > .fab-wrap { display: none; }
.inp-tbl { flex: 1; min-width: 0; padding: 16px 24px 24px; display: flex; flex-direction: column; }
/* The breadcrumb and the search live in the shell's top bar (table.html). */
.inp-tbl-bar .tb-title-col { min-width: 0; flex: 1; overflow: hidden; }
.inp-tbl-bar .tb-sub { margin-top: 2px; }
.inp-crumbs { flex: 1; min-width: 0; display: flex; align-items: center; margin-left: -10px; }
.inp-crumb { padding: 6px 10px; border-radius: 8px; font-size: 18px; font-weight: 400; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; line-height: 1.33; }
.inp-crumb.is-root { font-weight: 700; color: var(--text); flex: none; }
.inp-crumb.is-current { color: var(--text); }
a.inp-crumb:hover { background: var(--hover); }
.inp-crumb-sep { display: grid; padding: 0 2px; color: var(--muted); flex: none; }
.inp-tbl-q { flex: none; width: 300px; height: 38px; display: flex; align-items: center; border-radius: 8px; background: var(--surface-light); border: 1px solid var(--border); color: var(--muted); }
.inp-tbl-q:focus-within { border-color: var(--primary); }
.inp-tbl-q > .ic { margin: 0 12px 0 11px; flex: none; }
.inp-tbl-q input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: inherit; font-size: 13px; color: var(--text); }
.inp-tbl-q input::placeholder { color: var(--muted); }
.inp-tbl-qx { display: grid; place-items: center; width: 40px; height: 36px; color: var(--muted); flex: none; }
.inp-tbl-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.inp-tbl-card { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: 10px; overflow: clip; }
.inp-tbl-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; font-size: 14px; color: var(--text); text-align: center; }
.inp-tbl-center p { margin: 0; }
.inp-tbl-center.is-error { color: var(--error); }
.inp-tbl-shimmer { padding: 18px; display: flex; flex-direction: column; gap: 16px; }
.inp-tbl-shrow { display: flex; gap: 18px; }
.inp-tbl-shrow:first-child { margin-bottom: 2px; }
.inp-tbl-shrow > i { flex: 1; border-radius: 4px; }
.inp-tbl-scroll {
  flex: 1; min-height: 0; overflow: auto; scrollbar-width: thin; container-type: inline-size;
  --fw: clamp(130px, 28cqw, 280px); --rw: max(120px, calc((100cqw - var(--fw)) / max(1, var(--n))));
}
.inp-tbl-scroll table { border-collapse: separate; border-spacing: 0; table-layout: fixed; width: calc(var(--fw) + var(--n) * var(--rw)); font-size: 12px; }
.inp-tbl-scroll col { width: var(--rw); }
.inp-tbl-scroll col.is-first { width: var(--fw); }
.inp-tbl-scroll th, .inp-tbl-scroll td {
  height: 38px; padding: 0 14px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: var(--card); border-bottom: 1px solid color-mix(in srgb, var(--border) 50%, transparent); color: var(--text);
}
.inp-tbl-scroll td.is-none { font-style: italic; color: var(--muted); }
.inp-tbl-scroll th { height: 42px; padding: 0; position: sticky; top: 0; z-index: 1; background: var(--surface-light); font-weight: 600; color: var(--text-2); }
.inp-tbl-scroll th.is-sorted { color: var(--text); }
.inp-tbl-scroll th button { width: 100%; height: 100%; padding: 0 14px; display: flex; align-items: center; font: inherit; color: inherit; text-align: left; }
.inp-tbl-scroll th button:hover { background: var(--hover); }
.inp-tbl-scroll th button span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.inp-tbl-scroll th:first-child, .inp-tbl-scroll td:first-child { position: sticky; left: 0; z-index: 1; }
.inp-tbl-scroll th:first-child { z-index: 2; }
.inp-pager { flex: none; display: flex; align-items: center; margin-top: 12px; height: 40px; font-size: 12px; }
.inp-pager-range { color: var(--text-2); margin-right: 16px; }
.inp-pager-label { color: var(--muted); }
.inp-pager-size { position: relative; display: flex; align-items: center; margin-left: 8px; color: var(--muted); }
.inp-pager-size select { appearance: none; border: 0; background: none; font: inherit; font-size: 12px; color: var(--text); padding: 4px 26px 4px 0; cursor: pointer; outline: 0; }
.inp-pager-size select option { background: var(--card); }
.inp-pager-size > .ic { position: absolute; right: 0; pointer-events: none; }
.inp-sp { flex: 1; }
.inp-pager-ib { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--text-2); }
.inp-pager-ib:hover:not(:disabled) { background: var(--hover); }
.inp-pager-ib:disabled { color: color-mix(in srgb, var(--text) 38%, transparent); cursor: default; }
/* HierarchyScreen(embedded: true) (_hier_embed.html), inside Ciclo S&OP's Baseline panel */
.inp-embed { height: 100%; display: flex; flex-direction: column; }
.inp-embed-pick { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.inp-embed-k { font-size: 11px; font-weight: 600; letter-spacing: .6px; color: var(--muted); }
.inp-embed-help { max-width: 620px; margin: 6px 0 14px; font-size: 12.5px; line-height: 1.45; color: var(--text-2); }
.inp-embed-row { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 720px; padding: 13px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--card); text-align: left; }
.inp-embed-row + .inp-embed-row { margin-top: 8px; }
.inp-embed-row:hover { background-image: linear-gradient(var(--hover), var(--hover)); }
.inp-embed-ic { color: var(--muted); }
.inp-embed-name { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inp-embed-done { display: inline-flex; align-items: center; gap: 5px; margin-right: 10px; font-size: 11.5px; color: var(--muted); }
.inp-embed-ed { flex: 1; min-height: 0; display: flex; flex-direction: column; max-width: 900px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--bg); }
.inp-embed-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; color: var(--muted); }
.inp-embed-empty b { font-size: 15px; font-weight: 600; color: var(--text); }
.inp-embed-empty p { max-width: 420px; margin: 0 0 8px; font-size: 12.5px; line-height: 1.45; }

@media (max-width: 720px) {
  .inp-tbl { padding: 12px 16px 16px; }
  .inp-tbl-q { width: 100%; }
  .inp-tbl-bar { flex-wrap: wrap; }
  .inp-tbl-bar .tb-actions { flex: 1 1 100%; }
}

/* A direct upload's job while a worker reads it (inputs/_ingest.html). */
.inp-ingests:empty { display: none; }
.inp-ingests { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.inp-ingest { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; color: var(--muted); font-size: 14px; }
