.bolt-console {
  overflow: hidden;
  background: linear-gradient(145deg, rgba(7, 20, 37, .98), rgba(10, 31, 54, .96));
}

.bolt-console-head,
.bolt-import-toolbar,
.bolt-metrics,
.bolt-record-detail header,
.bolt-record-detail dl div {
  display: flex;
  align-items: center;
}

.bolt-console-head {
  justify-content: space-between;
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, .6);
}

.bolt-console-head h3,
.bolt-console-head p { margin: 0; }
.bolt-console-head h3 { font-size: 14px; }
.bolt-console-head p { color: var(--muted); font-size: 11px; }

.bolt-test-badge,
.bolt-status {
  padding: 2px 6px;
  border: 1px solid #e7ad38;
  border-radius: 999px;
  color: #ffd986;
  font-size: 9px;
  font-weight: 900;
}

.bolt-import-toolbar {
  gap: 6px;
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, .28);
}

.bolt-import-toolbar label {
  display: grid;
  gap: 2px;
  color: #9db6d8;
  font-size: 9px;
  font-weight: 800;
}

.bolt-import-toolbar input {
  min-height: 26px;
  padding: 2px 6px;
  border: 1px solid #314c70;
  border-radius: 5px;
  background: #0b1728;
  color: #eef6ff;
}

.bolt-file-field { flex: 1; min-width: 230px; }
.bolt-metrics { display: grid; grid-template-columns: repeat(9, minmax(72px, 1fr)); gap: 1px; background: rgba(255, 255, 255, .48); }
.bolt-metric { justify-content: space-between; gap: 4px; padding: 5px 7px; background: #0b1b30; }
.bolt-metric span { color: #9db6d8; font-size: 9px; }
.bolt-metric strong { font-size: 13px; }
.bolt-metric.ok strong { color: #63e6a6; }
.bolt-metric.warning strong { color: #ffd166; }
.bolt-metric.danger strong { color: #ff808b; }
.bolt-metric.pending strong { color: #79b8ff; }

.bolt-master-detail { display: grid; grid-template-columns: minmax(0, 2fr) minmax(250px, .8fr); min-height: 180px; }
.bolt-record-list { overflow: auto; max-height: 260px; border-right: 1px solid rgba(255, 255, 255, .55); }
.bolt-record-list tr.selected td { background: rgba(39, 113, 212, .34); color: #fff; }
.bolt-status { border-color: #3d6d9f; color: #a9d0ff; }
.bolt-status.status-conciliada { border-color: #25a76c; color: #63e6a6; }
.bolt-status.status-revisar { border-color: #d79b27; color: #ffd166; }
.bolt-status.status-no_ok,
.bolt-status.status-no_conciliada { border-color: #c34550; color: #ff808b; }

.bolt-record-detail { padding: 7px; background: rgba(4, 12, 24, .7); }
.bolt-record-detail header { justify-content: space-between; gap: 6px; padding-bottom: 5px; border-bottom: 1px solid #29415f; }
.bolt-record-detail dl { margin: 4px 0 8px; }
.bolt-record-detail dl div { align-items: flex-start; justify-content: space-between; gap: 8px; padding: 3px 0; border-bottom: 1px solid rgba(61, 91, 126, .35); }
.bolt-record-detail dt { color: #8ea7cc; font-size: 9px; font-weight: 800; }
.bolt-record-detail dd { margin: 0; color: #e9f3ff; font-size: 10px; text-align: right; }

@media (max-width: 1100px) {
  .bolt-metrics { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 760px) {
  .bolt-import-toolbar { align-items: stretch; flex-direction: column; }
  .bolt-master-detail { grid-template-columns: 1fr; }
  .bolt-record-list { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .55); }
  .bolt-metrics { grid-template-columns: repeat(3, 1fr); }
}
