.section {
  background: #fff;
  border-radius: 14px;
  padding: 1.35rem 1.5rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  margin-bottom: 1.25rem;
}

.view-loading {
  min-height: 240px;
  display: grid;
  place-items: center;
  gap: 0.75rem;
}

.spinner {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 3px solid rgba(0, 86, 142, 0.18);
  border-top-color: rgba(0, 86, 142, 0.85);
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.section-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.section-header h2 {
  margin: 0;
  color: #00568e;
  font-size: 1.35rem;
}

.subsection-title {
  margin: 1.25rem 0 0.5rem;
  font-size: 1rem;
  color: #333;
}

.lead {
  font-size: 1.05rem;
  line-height: 1.5;
}

.muted {
  color: #5c6570;
  font-size: 0.92rem;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  background: #e8f4fc;
  color: #00568e;
}

.badge-soft {
  background: #eef2f7;
  color: #333;
}

.badge-ok {
  background: #e6f4ea;
  color: #1b5e20;
}

.badge-warn {
  background: #fff3e0;
  color: #e65100;
}

.badge-info {
  background: #e8eaf6;
  color: #3949ab;
}

.grid-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.stat-card {
  background: #f8fafc;
  border: 1px solid #e5e8ec;
  border-radius: 10px;
  padding: 0.85rem 1rem;
}

.stat-label {
  font-size: 0.78rem;
  color: #5c6570;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: #00568e;
}

.code-block {
  background: #0f172a;
  color: #e2e8f0;
  padding: 1rem;
  border-radius: 10px;
  overflow: auto;
  font-size: 0.82rem;
  line-height: 1.45;
}

/* CI/CD job log: caja acotada + scroll interno (no ocupa toda la ventana) */
.section--cicd-joblog {
  min-width: 0;
}

.cicd-joblog-scroll {
  margin-top: 0.75rem;
  min-height: 200px;
  max-height: min(58vh, 560px);
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0f172a;
}

.cicd-joblog-scroll .cicd-joblog-pre.code-block {
  margin: 0;
  max-height: none;
  overflow: visible;
  border-radius: 12px;
  border: none;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  word-break: break-word;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid #e5e8ec;
  border-radius: 10px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.table th,
.table td {
  padding: 0.55rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid #eef1f5;
}

.table th {
  background: #f8fafc;
  font-weight: 600;
  color: #00568e;
}

.table tr:last-child td {
  border-bottom: none;
}

code.small {
  font-size: 0.78rem;
}

.topology-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
}

.topology-grid > .cicd-overview-card {
  min-width: 0;
  overflow: visible;
}

.card-block {
  border: 1px solid #e5e8ec;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  background: #fafbfc;
}

.card-block h4 {
  margin: 0 0 0.5rem;
  color: #00568e;
}

.list-plain {
  margin: 0;
  padding-left: 1.1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
}

/* Gana sobre display de .btn; sin esto, [hidden] no oculta (p. ej. "Siguiente" en el último paso del wizard). */
.btn[hidden] {
  display: none !important;
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
}

.btn-primary {
  background: #00568e;
  color: #fff;
  border-color: #00568e;
}

.btn-primary:hover {
  background: #0066a3;
}

.btn-secondary {
  background: #fff;
  color: #00568e;
  border-color: #00568e;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-ghost:hover {
  background: #fff;
  color: #00568e;
}

/* En modales (fondo claro): ghost debe leerse sin hover */
.nomad-dialog .btn-ghost {
  background: #fff;
  color: #0c2744;
  border-color: rgba(12, 39, 68, 0.28);
}

.nomad-dialog .btn-ghost:hover {
  background: #e8eef5;
  color: #0c2744;
  border-color: #0c2744;
}

.nomad-dialog .btn-secondary {
  background: #fff;
  color: #0c2744;
  border-color: rgba(12, 39, 68, 0.35);
}

.nomad-dialog .btn-secondary:hover {
  background: #e8eef5;
  border-color: #0c2744;
}

.nomad-dialog .btn-primary {
  background: #0c2744;
  border-color: #0c2744;
}

.nomad-dialog .btn-primary:hover {
  background: #0a3a5c;
  border-color: #0a3a5c;
}

/* Botón Expressive para GitLab (visible en fondos claros) */
.btn-gitlab {
  border-width: 0;
  border-color: transparent;
  box-shadow: none;
  border-radius: 999px;
  text-transform: none;
  letter-spacing: 0.01em;
  background: #fc6d26;
  color: #fff;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.btn-gitlab:hover {
  background: #ff7a3a;
}

.btn-gitlab:active {
  background: #f25c17;
}

.btn-gitlab:focus-visible {
  outline: 2px solid rgba(252, 109, 38, 0.65);
  outline-offset: 2px;
}

/* Acciones en tabla Admin → Usuarios (Material: ámbar edición, rojo eliminar) */
.user-actions-cell {
  white-space: nowrap;
  vertical-align: middle;
}

.user-table-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

/* Planos tipo Material Expressive: sólidos, sin sombra ni degradado, píldora muy redondeada */
.btn-edit-user,
.btn-del-user {
  border-width: 0;
  border-color: transparent;
  box-shadow: none;
  border-radius: 999px;
  text-transform: none;
  letter-spacing: 0.01em;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.btn-edit-user:hover,
.btn-edit-user:active,
.btn-del-user:hover,
.btn-del-user:active {
  box-shadow: none;
}

.btn-edit-user {
  background: #ff9800;
  color: rgba(0, 0, 0, 0.87);
}

.btn-edit-user:hover {
  background: #ffa726;
}

.btn-edit-user:active {
  background: #fb8c00;
}

.btn-edit-user:focus-visible {
  outline: 2px solid #e65100;
  outline-offset: 2px;
}

.btn-del-user {
  background: #e53935;
  color: #fff;
}

.btn-del-user:hover {
  background: #ef5350;
}

.btn-del-user:active {
  background: #c62828;
}

.btn-del-user:focus-visible {
  outline: 2px solid #b71c1c;
  outline-offset: 2px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
  max-width: 640px;
}

.form-grid--wide {
  max-width: none;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 1100px) {
  .form-grid--wide {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.form-group-span {
  grid-column: 1 / -1;
}

.form-actions {
  grid-column: 1 / -1;
}

@media (max-width: 600px) {
  .form-grid,
  .form-grid--wide {
    grid-template-columns: 1fr;
  }
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.alert-err {
  background: #ffebee;
  color: #b00020;
  border: 1px solid #ffcdd2;
}

.alert-warn {
  background: #fff8e1;
  color: #6d4c00;
  border: 1px solid #ffe082;
}

.hidden {
  display: none !important;
}

.login-screen {
  min-height: 100vh;
  padding: 0;
  margin: 0;
  background: #eef1f5;
}

.login-split {
  display: flex;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
}

.login-split-brand {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: linear-gradient(165deg, #062a4a 0%, #0a3a5c 42%, #0c2744 100%);
  color: #fff;
}

.login-split-brand-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  max-width: 24rem;
}

.login-brand-mark {
  width: clamp(4.5rem, 12vw, 5.5rem);
  height: auto;
  border-radius: 18px;
  opacity: 0.98;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.login-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: center;
}

.login-brand-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.login-brand-slogan {
  display: block;
  max-width: 20rem;
  font-size: clamp(0.92rem, 2vw, 1.05rem);
  font-weight: 500;
  line-height: 1.4;
  opacity: 0.9;
  letter-spacing: 0.01em;
}

.login-brand-expansion {
  display: block;
  max-width: 20rem;
  font-size: clamp(0.65rem, 1.55vw, 0.78rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.35;
  opacity: 0.82;
  letter-spacing: 0.01em;
}

.login-brand-sys {
  margin-top: 0.15rem;
  font-size: clamp(0.85rem, 2vw, 1rem);
  font-weight: 600;
  opacity: 0.8;
  letter-spacing: 0.01em;
  text-transform: none;
  max-width: 18rem;
  line-height: 1.35;
}

.login-split-panel {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  background: #eef1f5;
}

.login-panel-inner,
.login-panel-card {
  width: 100%;
  max-width: 26rem;
}

/* Contenedor de inputs estilo Insular */
.login-panel-card {
  background: #ffffff;
  border-radius: 24px;
  padding: clamp(1.6rem, 3.5vw, 2.25rem);
  box-shadow: 0 12px 40px rgba(12, 39, 68, 0.1), 0 2px 8px rgba(12, 39, 68, 0.04);
}

.login-panel-heading {
  margin: 0 0 0.4rem;
  font-size: clamp(1.45rem, 3.5vw, 1.75rem);
  font-weight: 700;
  color: #0c2744;
}

.login-panel-lead {
  margin: 0 0 1.65rem;
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.45;
}

.login-panel-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.login-field {
  margin-bottom: 1.1rem;
}

.login-field-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.35rem;
}

.login-field-label-row .login-field-label {
  margin: 0;
}

.login-field-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0c2744;
  margin: 0 0 0.35rem;
}

.login-forgot-link {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  color: #0a3a5c;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.login-forgot-link:hover {
  text-decoration: underline;
}

.login-field-input {
  width: 100%;
  padding: 0.75rem 0.85rem;
  font-size: 0.95rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-family: inherit;
  color: #0f172a;
  background: #f4f6f9;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.login-field-input:focus {
  outline: none;
  border-color: #0a3a5c;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(10, 58, 92, 0.12);
}

.login-field-input::placeholder {
  color: #94a3b8;
}

.login-password-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  background: #f4f6f9;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.login-password-row:focus-within {
  border-color: #0a3a5c;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(10, 58, 92, 0.12);
}

.login-field-input--password {
  border: none;
  border-radius: 0;
  flex: 1;
  min-width: 0;
  background: transparent;
}

.login-field-input--password:focus {
  box-shadow: none;
  background: transparent;
}

.login-password-toggle {
  flex-shrink: 0;
  width: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-left: 1px solid #e5e7eb;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.login-password-toggle:hover {
  color: #0c2744;
}

.login-err {
  min-height: 1.25rem;
  color: #b00020;
  font-size: 0.88rem;
  margin: 0 0 0.75rem;
}

.login-submit {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.85rem 1rem;
  font-size: 0.98rem;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  background: #0c2744;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease;
}

.login-submit:hover {
  background: #0a3a5c;
}

.login-submit:active {
  transform: scale(0.99);
}

.login-foot-link {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.88rem;
}

.login-foot-link a {
  color: #0a3a5c;
  font-weight: 600;
  text-decoration: none;
}

.login-foot-link a:hover {
  text-decoration: underline;
}

@media (max-width: 840px) {
  .login-split {
    flex-direction: column;
  }

  .login-split-brand {
    flex: 0 0 auto;
    min-height: 34vh;
    padding: 2rem 1.25rem;
  }

  .login-split-panel {
    flex: 1 1 auto;
    padding: 1.5rem 1.25rem 2.5rem;
  }
}

.badge-tonal {
  background: rgba(0, 86, 142, 0.1);
  color: #00426d;
  border: 1px solid rgba(0, 86, 142, 0.18);
}

.btn-elevated {
  box-shadow: 0 2px 8px rgba(0, 44, 74, 0.14);
}

.btn-elevated:hover {
  box-shadow: 0 4px 16px rgba(0, 44, 74, 0.2);
}

.m3-surface {
  border-radius: 16px;
  background: linear-gradient(165deg, #ffffff 0%, #f4f7fb 100%);
  border: 1px solid rgba(0, 44, 74, 0.08);
  box-shadow: 0 2px 12px rgba(0, 44, 74, 0.06);
}

.stat-card-expressive {
  background: linear-gradient(165deg, #ffffff 0%, #f1f5f9 100%);
  border: 1px solid rgba(0, 44, 74, 0.07);
  box-shadow: 0 2px 10px rgba(0, 44, 74, 0.05);
  border-radius: 14px;
}

.panel-pad {
  padding: 1.1rem 1.25rem;
  margin-bottom: 1rem;
}

.overview-leader {
  margin: 0.35rem 0 1rem;
}

.overview-charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.chart-panel {
  padding: 0.75rem 0.75rem 0.25rem;
  min-height: 260px;
}

.chart-panel canvas {
  max-height: 260px !important;
}

/* Jira sprint dashboard */
.jp-dashboard {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.jp-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
}

.jp-dashboard-grid.jp-dashboard-tables {
  grid-template-columns: minmax(280px, 1fr) minmax(0, 2fr);
}

.jp-panel-wide {
  grid-column: span 1;
}

@media (min-width: 1100px) {
  .jp-dashboard-grid:has(.jp-panel-wide):first-of-type {
    grid-template-columns: 1.4fr 1fr;
  }
}

.jp-chart-h {
  height: 280px;
  position: relative;
}

.jp-health-panel {
  margin-bottom: 0;
}

.jp-health-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.jp-health-bar {
  display: flex;
  height: 14px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 44, 74, 0.08);
}

.jp-health-seg {
  display: block;
  min-width: 2px;
  transition: width 0.3s ease;
}

.jp-health-done,
.jp-dot.jp-health-done {
  background: #212121;
}

.jp-health-progress,
.jp-dot.jp-health-progress {
  background: #f9a825;
}

.jp-health-todo,
.jp-dot.jp-health-todo {
  background: #00897b;
}

.jp-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 0.35rem;
  vertical-align: middle;
}

.jp-health-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 0.5rem;
  font-size: 0.88rem;
}

.jp-health-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.jp-health-stats > div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.jp-table td.num,
.jp-table th:nth-child(n + 3) {
  text-align: right;
}

.jp-table code {
  font-size: 0.82rem;
}

#view-outlet .jp-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  width: 100%;
}

#view-outlet a.jp-metric-card,
#view-outlet .jp-metric-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 44, 74, 0.12);
  background: linear-gradient(145deg, #fff 0%, #f4f8fb 100%);
  box-shadow: 0 4px 18px rgba(0, 44, 74, 0.08);
  text-decoration: none;
  color: #1a1a1a;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
  min-height: 148px;
  box-sizing: border-box;
}

.jp-metric-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 86, 142, 0.35);
  box-shadow: 0 10px 28px rgba(0, 86, 142, 0.12);
}

.jp-metric-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.jp-metric-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #002c4a;
}

.jp-metric-card__arrow {
  font-size: 1.25rem;
  color: #00568e;
  opacity: 0.7;
}

.jp-metric-card__desc {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(0, 44, 74, 0.65);
}

.jp-metric-card__stat {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #00568e;
}

.jp-metric-card__preview {
  position: relative;
  height: 96px;
  max-height: 96px;
  margin-top: auto;
  overflow: hidden;
}

.jp-metric-card__preview--burndown {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: auto;
  max-height: none;
  gap: 0.35rem;
  padding-top: 0.25rem;
}

.jp-metric-card__preview--burndown canvas {
  flex: 0 0 auto;
  width: 72px !important;
  height: 72px !important;
  max-width: 72px !important;
  max-height: 72px !important;
}

.jp-burndown-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.85rem;
  font-size: 0.7rem;
  line-height: 1.2;
  color: rgba(0, 44, 74, 0.75);
  font-weight: 500;
}

.jp-burndown-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.jp-legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.jp-legend-done {
  background: #212121;
}

.jp-legend-remaining {
  background: #00897b;
}

.jp-metric-card__preview canvas {
  display: block;
  max-height: 96px !important;
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
}

.jp-issue-key-cell {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.jp-issue-badge {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: help;
}

.jp-issue-badge--subtask {
  background: rgba(106, 27, 154, 0.12);
  color: #6a1b9a;
  border: 1px solid rgba(106, 27, 154, 0.25);
}

button.jp-issue-badge {
  font: inherit;
  cursor: help;
  appearance: none;
  -webkit-appearance: none;
}

.jp-parent-tip--open {
  box-shadow: 0 0 0 2px rgba(106, 27, 154, 0.35);
}

.jp-parent-popover {
  position: fixed;
  z-index: 10050;
  min-width: 12rem;
  max-width: min(32rem, calc(100vw - 16px));
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: #1a2a3a;
  color: #fff;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.22);
  pointer-events: none;
}

.jp-parent-popover__label {
  margin: 0 0 0.25rem;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.72);
}

.jp-parent-popover__key {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
}

.jp-parent-popover__key code {
  background: rgba(255, 255, 255, 0.12);
  color: #b3e5fc;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.jp-parent-popover__summary {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.45;
  word-break: break-word;
}

.jp-completed-table-wrap {
  overflow: visible;
}

.jp-issue-badge--task {
  background: rgba(0, 86, 142, 0.08);
  color: #00568e;
  border: 1px solid rgba(0, 86, 142, 0.2);
}

.jp-row-subtask td {
  background: rgba(106, 27, 154, 0.03);
}

.jp-health-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0.25rem 0 0.5rem;
}

.jp-health-state {
  margin-left: 0.5rem;
  vertical-align: middle;
  text-transform: capitalize;
}

.jp-detail-top {
  margin-bottom: 1.25rem;
}

.jp-detail-title {
  margin: 0.65rem 0 0;
  font-size: 1.35rem;
  color: #00568e;
}

.jp-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 86, 142, 0.35);
  background: #fff;
  color: #00568e;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 44, 74, 0.06);
}

.jp-back:hover {
  background: #e8f4fc;
  border-color: #00568e;
  color: #002c4a;
}

.jp-detail-sub {
  margin: 0 0 1rem;
}

.jp-detail-chart {
  margin-bottom: 1rem;
}

.jp-chart-h--tall {
  height: 360px;
}

.jp-detail-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.jp-detail-stats > div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.jp-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.jp-completed-filters {
  margin-bottom: 0;
}

.table-expressive {
  border-radius: 14px;
  border-color: rgba(0, 44, 74, 0.08);
}

.me-bar-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.me-bar-row {
  display: grid;
  grid-template-columns: minmax(0, 120px) 1fr auto;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
}

.me-bar-label {
  font-weight: 600;
  color: #2c3e50;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.me-bar-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(0, 44, 74, 0.08);
  overflow: hidden;
}

.me-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #00568e, #00a3c4);
  box-shadow: 0 0 12px rgba(0, 163, 196, 0.35);
  transition: width 0.35s ease;
}

.me-bar-val {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #00568e;
  min-width: 2rem;
  text-align: right;
}

.link-inline {
  color: #00568e;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 86, 142, 0.25);
}

.link-inline:hover {
  border-bottom-color: #00568e;
}

.job-link code {
  color: inherit;
}

.topo-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.topo-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
}

.alloc-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.cluster-strip {
  margin-bottom: 1rem;
}

.cluster-strip-title {
  font-weight: 700;
  color: #00568e;
  margin-bottom: 0.5rem;
}

.dc-topo-section {
  margin-bottom: 1.5rem;
}

.dc-topo-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.65rem 1rem;
}

.dc-topo-summary-title {
  font-weight: 700;
  color: #00568e;
  margin-bottom: 0.65rem;
}

.dc-big {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a2330;
}

.node-topo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  margin-top: 0.85rem;
}

.node-topo-card {
  padding: 1rem 1.1rem;
}

.node-topo-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.node-topo-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: #1a2330;
}

.node-topo-meta {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.node-topo-bars {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.res-bar-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.res-bar-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 700;
  font-size: 0.8rem;
  color: #00568e;
}

.res-bar-track {
  display: flex;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(0, 44, 74, 0.08);
  border: 1px solid rgba(0, 44, 74, 0.06);
}

.res-bar-reserved {
  display: flex;
  height: 100%;
  min-width: 0;
  /* Contraste sutil sobre el track para que "Libre" sea evidente */
  box-shadow: inset 0 0 0 1px rgba(0, 44, 74, 0.08);
}

.alloc-seg {
  height: 100%;
  /* Evita que segmentos pequeños ocupen un % artificial alto */
  min-width: 1px;
  transition: width 0.25s ease;
  box-sizing: border-box;
}

a.alloc-seg {
  display: block;
  color: inherit;
  text-decoration: none;
  outline-offset: 1px;
}

a.alloc-seg:focus-visible {
  outline: 2px solid #00568e;
  z-index: 1;
}

.alloc-seg--run {
  background: linear-gradient(180deg, #2e7d32, #1b5e20);
}

.alloc-seg--start {
  background: repeating-linear-gradient(
    -45deg,
    #ffb300,
    #ffb300 4px,
    #ffe082 4px,
    #ffe082 8px
  );
}

.alloc-seg--bad {
  background: linear-gradient(180deg, #c62828, #8e0000);
}

.alloc-seg--other {
  background: linear-gradient(180deg, #546e7a, #37474f);
}

.alloc-seg--free {
  background: rgba(255, 255, 255, 0.65);
}

.node-topo-alloc-list {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
}

.log-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: flex-end;
  margin-top: 0.35rem;
}

.log-task-select,
.log-type-select {
  min-width: 200px;
  margin-bottom: 0;
}

.log-viewport {
  position: relative;
  margin-top: 0.75rem;
}

.log-viewport .log-live,
.log-viewport .log-grid-out {
  margin-top: 0;
}

.log-viewport .log-fs-btn--overlay {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  z-index: 3;
  opacity: 0.92;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.log-viewport:fullscreen,
.log-viewport.log-viewport--fs-fallback {
  display: flex;
  flex-direction: column;
  background: #0f172a;
  margin-top: 0;
  border-radius: 0;
}

.log-viewport.log-viewport--fs-fallback {
  position: fixed;
  inset: 0;
  z-index: 10000;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
}

.log-viewport:fullscreen .log-live,
.log-viewport:fullscreen .log-grid-out,
.log-viewport.log-viewport--fs-fallback .log-live,
.log-viewport.log-viewport--fs-fallback .log-grid-out {
  flex: 1;
  min-height: 0;
  max-height: none;
  height: auto;
  border-radius: 0;
}

.log-grid-cell:fullscreen,
.log-grid-cell.log-grid-cell--fs-fallback {
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  padding: 0.75rem 1rem;
  border-radius: 0;
  z-index: 10000;
}

.log-grid-cell.log-grid-cell--fs-fallback {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-width: none;
  overflow: hidden;
}

.log-grid-cell:fullscreen .log-grid-out,
.log-grid-cell.log-grid-cell--fs-fallback .log-grid-out {
  flex: 1;
  min-height: 0;
  max-height: none;
  font-size: 0.82rem;
  line-height: 1.45;
}

.log-grid-shell:fullscreen,
.log-grid-shell.log-grid-shell--fs-fallback {
  background: #eef2f7;
  padding: 1rem;
  overflow: auto;
  box-sizing: border-box;
}

.log-grid-shell.log-grid-shell--fs-fallback {
  position: fixed;
  inset: 0;
  z-index: 10000;
  width: 100vw;
  height: 100vh;
}

.log-grid-shell:fullscreen .log-grid,
.log-grid-shell.log-grid-shell--fs-fallback .log-grid {
  min-height: min(100%, 100vh);
}

.log-grid-shell:fullscreen .log-grid-out,
.log-grid-shell.log-grid-shell--fs-fallback .log-grid-out {
  max-height: min(42vh, 480px);
}

body.log-fullscreen-active {
  overflow: hidden;
}

.log-fs-btn .log-fs-btn__label {
  margin-left: 0.35rem;
}

.log-fs-btn--icon-only .log-fs-btn__label {
  display: none;
}

.log-fs-btn--icon-only {
  padding: 0.35rem 0.45rem;
  line-height: 0;
}

.log-live {
  margin-top: 1rem;
  padding: 1rem;
  min-height: 280px;
  max-height: min(70vh, 720px);
  overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.45;
  word-break: break-word;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ansi-log .log-line {
  white-space: pre-wrap;
  margin: 0;
  padding: 0.08rem 0;
}

.log-mode-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0.85rem 0 0.35rem;
  padding: 0.2rem;
  background: rgba(0, 44, 74, 0.06);
  border-radius: 999px;
}

.log-tab {
  border: none;
  background: transparent;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  color: #5c6570;
}

.log-tab--active {
  background: #fff;
  color: #00568e;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.log-mode-panel.hidden {
  display: none;
}

.hist-dt {
  min-width: 11rem;
}

.hist-limit {
  width: 5.25rem;
}

.log-history-filters {
  align-items: flex-end;
}

.log-hist-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.35rem 0;
}

.log-hist-ts {
  font-size: 0.72rem;
  margin-right: 0.35rem;
}

.log-hist-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.log-hist-tag--out {
  color: #86efac;
}

.log-hist-tag--err {
  color: #fca5a5;
}

.topo-live-bar {
  margin: 0 0 0.75rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.tenant-ret-input {
  width: 5.5rem;
  max-width: 100%;
}

td.alloc-id-cell {
  max-width: 12rem;
  vertical-align: middle;
}

.alloc-id-wrap {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
  cursor: help;
}

.alloc-usage-slot {
  margin-top: 0.25rem;
}

.alloc-usage-live {
  color: #1565c0;
  font-weight: 600;
  font-size: 0.82rem;
}

.log-grid-toolbar {
  margin-bottom: 1rem;
}

.log-grid-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.65rem 1rem;
}

.grid-dim-input {
  width: 4.5rem;
}

.log-grid-shell {
  min-height: 200px;
}

.log-grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-cols, 2), minmax(0, 1fr));
  gap: 0.75rem;
}

.log-grid-cell {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 0.5rem 0.65rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 44, 74, 0.08);
}

.log-grid-cell-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}

.log-grid-cell-head .log-fs-btn {
  flex: 0 0 auto;
  align-self: center;
}

.log-grid-cell-head-idblock {
  flex: 1 1 120px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  align-items: flex-start;
}

.log-grid-cell-id {
  font-family: ui-monospace, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: #00568e;
  min-width: 0;
  max-width: 100%;
}

.log-grid-cell-node {
  font-size: 0.72rem;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.log-grid-cell .field-select {
  min-width: 0;
  flex: 1 1 120px;
  font-size: 0.8rem;
  padding: 0.35rem 0.5rem;
}

.log-grid-out {
  flex: 1;
  min-height: 160px;
  max-height: 320px;
  overflow: auto;
  font-family: ui-monospace, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  line-height: 1.35;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 10px;
  padding: 0.35rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.section--log-grid {
  max-width: 100%;
}

.nomad-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
}

.nomad-dialog {
  border: none;
  border-radius: 14px;
  padding: 1.35rem 1.5rem;
  max-width: 38rem;
  width: calc(100vw - 2rem);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.nomad-dialog--wide {
  max-width: 44rem;
}

.tenant-wizard-head {
  margin-bottom: 1rem;
}

.tenant-wizard-head h3 {
  margin: 0 0 0.35rem;
}

.tenant-wizard-progress {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #00568e;
}

.tenant-wizard-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tenant-wizard-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: rgba(0, 86, 142, 0.2);
  border: none;
  padding: 0;
  cursor: default;
}

.tenant-wizard-dot.is-done {
  background: #00568e;
}

.tenant-wizard-dot.is-active {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(0, 86, 142, 0.45);
  background: #00568e;
}

.tenant-wizard-form {
  margin: 0;
}

.tenant-wizard-step {
  display: none;
  margin-bottom: 0.25rem;
}

.tenant-wizard-step.is-active {
  display: block;
}

.tenant-wizard-step.form-grid {
  max-width: none;
}

.nomad-dialog h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: #0c2744;
}

.nomad-dialog .field-label {
  color: #0a3a5c;
}

.nomad-dialog .dialog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}

.jc-curl-help {
  margin-top: 0.45rem;
  border: 1px solid rgba(0, 86, 142, 0.15);
  border-radius: 10px;
  background: rgba(0, 86, 142, 0.04);
  padding: 0.35rem 0.55rem 0.55rem;
}

.jc-curl-help__toggle {
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  color: #00568e;
  list-style: none;
  user-select: none;
}

.jc-curl-help__toggle::-webkit-details-marker {
  display: none;
}

.jc-curl-help__toggle::before {
  content: '▸ ';
  display: inline-block;
  transition: transform 0.15s ease;
}

.jc-curl-help[open] .jc-curl-help__toggle::before {
  transform: rotate(90deg);
}

.jc-curl-help__body {
  margin-top: 0.45rem;
}

.jc-curl-help__code {
  font-size: 0.72rem;
  margin: 0.25rem 0 0.35rem;
  max-height: 11rem;
  overflow: auto;
}

.jc-curl-help .btn-sm {
  margin-right: 0.35rem;
  margin-bottom: 0.15rem;
}

.nomad-dialog textarea.field-input {
  width: 100%;
  min-height: 9rem;
  font-family: ui-monospace, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85rem;
  resize: vertical;
}

/* —— Inicio tipo panel (acciones rápidas) —— */
.section--dash {
  max-width: 100%;
}

.dash-hero {
  margin-bottom: 1.35rem;
}

.dash-hero-title {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  color: #00568e;
}

.dash-hero-lead {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.55;
  color: #3d4a54;
  max-width: 52rem;
}

/* Sin tenant: invitar a abrir el Centro de Comando (misma página / rutas integración) */
.tenant-required {
  margin: 0.5rem auto 2rem;
  max-width: 38rem;
  padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.25rem, 3vw, 2rem);
  text-align: center;
  background: linear-gradient(165deg, #ffffff 0%, #f4f8fc 55%, #eef4f9 100%);
  border: 1px solid rgba(0, 86, 142, 0.16);
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(10, 39, 68, 0.08);
}

.tenant-required__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5.5rem;
  height: 5.5rem;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  background: rgba(0, 86, 142, 0.08);
  color: #00568e;
}

.tenant-required__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.2rem, 2.8vw, 1.45rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #0c2744;
  line-height: 1.25;
}

.tenant-required__lead {
  margin: 0 auto 0.85rem;
  max-width: 32rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: #334155;
}

.tenant-required__cue {
  margin: 0 auto;
  max-width: 34rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #1e293b;
}

.tenant-required__aside {
  margin: 1.35rem 0 0;
  font-size: 0.82rem;
}

.tenant-required__arrow {
  display: inline-block;
  margin-left: 0.2rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #00568e;
}

.dash-hint-stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0 0 1.15rem;
}

.dash-hint {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 86, 142, 0.22);
  background: rgba(0, 86, 142, 0.06);
  color: #1e293b;
  font-size: 0.92rem;
  line-height: 1.45;
}

.dash-hint--telegram {
  border-color: rgba(0, 137, 123, 0.28);
  background: rgba(0, 137, 123, 0.07);
}

.dash-hint__body {
  flex: 1;
  min-width: 0;
}

.dash-hint__body a {
  font-weight: 600;
  color: #00568e;
}

.dash-hint__close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin: -0.2rem -0.15rem -0.2rem 0;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.dash-hint__close:hover {
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
}

.dash-section-label {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #7a8796;
}

.qa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.qa-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(0, 44, 74, 0.08);
  background: linear-gradient(165deg, #ffffff 0%, #f6f8fb 100%);
  box-shadow: 0 2px 10px rgba(0, 44, 74, 0.05);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.qa-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 44, 74, 0.1);
  border-color: rgba(0, 86, 142, 0.2);
}

.qa-card-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.qa-card-icon svg {
  display: block;
}

.qa-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.qa-card-title {
  font-weight: 700;
  font-size: 1rem;
  color: #1a2330;
}

.qa-card-desc {
  font-size: 0.82rem;
  color: #5c6570;
  line-height: 1.35;
}

.qa-card--blue .qa-card-icon {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
}
.qa-card--teal .qa-card-icon {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
}
.qa-card--violet .qa-card-icon {
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
}
.qa-card--amber .qa-card-icon {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}
.qa-card--slate .qa-card-icon {
  background: linear-gradient(135deg, #475569 0%, #334155 100%);
}
.qa-card--rose .qa-card-icon {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
}
.qa-card--indigo .qa-card-icon {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
}

.dash-meta {
  margin-top: 0.5rem;
}

/* —— Access / nginx logs sobre consola oscura —— */
.ansi-log .log-ip,
.log-grid-out .log-ip {
  color: #7dd3fc;
  font-weight: 600;
}

.ansi-log .log-ts,
.log-grid-out .log-ts {
  color: #c4b5fd;
}

.ansi-log .log-req-q,
.log-grid-out .log-req-q {
  color: #94a3b8;
}

.ansi-log .log-meth,
.log-grid-out .log-meth {
  color: #fde047;
  font-weight: 700;
}

.ansi-log .log-path,
.log-grid-out .log-path {
  color: #a5b4fc;
}

.ansi-log .log-proto,
.log-grid-out .log-proto {
  color: #94a3b8;
  font-size: 0.95em;
}

.ansi-log .log-bytes,
.log-grid-out .log-bytes {
  color: #cbd5e1;
}

.ansi-log .log-st-2,
.log-grid-out .log-st-2 {
  color: #86efac;
  font-weight: 700;
}

.ansi-log .log-st-3,
.log-grid-out .log-st-3 {
  color: #7dd3fc;
  font-weight: 700;
}

.ansi-log .log-st-4,
.log-grid-out .log-st-4 {
  color: #fcd34d;
  font-weight: 700;
}

.ansi-log .log-st-5,
.log-grid-out .log-st-5 {
  color: #fca5a5;
  font-weight: 700;
}

.ansi-log .log-st-0,
.log-grid-out .log-st-0 {
  color: #e2e8f0;
  font-weight: 600;
}

.ansi-log .log-line-plain,
.log-grid-out .log-line-plain {
  color: #e2e8f0;
}

.ansi-log .log-line-sql,
.log-grid-out .log-line-sql {
  color: #94a3b8;
}

.ansi-log .log-nest-prefix,
.log-grid-out .log-nest-prefix {
  color: #4ade80;
}

.ansi-log .log-nest-ctx,
.log-grid-out .log-nest-ctx {
  color: #fbbf24;
  font-weight: 600;
}

.ansi-log .log-nest-msg,
.log-grid-out .log-nest-msg {
  color: #e2e8f0;
}

.ansi-log .log-nest-level--debug,
.log-grid-out .log-nest-level--debug {
  color: #d8b4fe;
  font-weight: 700;
}

.ansi-log .log-nest-level--log,
.log-grid-out .log-nest-level--log {
  color: #4ade80;
  font-weight: 700;
}

.ansi-log .log-nest-level--verbose,
.log-grid-out .log-nest-level--verbose {
  color: #94a3b8;
  font-weight: 600;
}

.ansi-log .log-nest-level--warn,
.log-grid-out .log-nest-level--warn {
  color: #fbbf24;
  font-weight: 700;
}

.ansi-log .log-nest-level--error,
.log-grid-out .log-nest-level--error {
  color: #f87171;
  font-weight: 700;
}

/* Admin tenants — tarjetas por integración */
.tenant-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.tenant-config-card {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(0, 44, 74, 0.08);
}

.tenant-config-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #e8edf3;
}

.tenant-config-card-title {
  margin: 0;
  font-size: 1rem;
  color: #00568e;
}

.tenant-config-card-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tenant-config-block-title {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

.field-check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  cursor: pointer;
}

/* Traefik explorer */
.traefik-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.tab-link {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  color: #334155;
  border: 1px solid rgba(0, 44, 74, 0.1);
  background: #fff;
}

.tab-link:hover {
  border-color: rgba(0, 86, 142, 0.25);
  color: #00568e;
}

.tab-link.active {
  background: #00568e;
  color: #fff;
  border-color: #00568e;
}

@keyframes fridayPulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.02); opacity: 0.86; }
  100% { transform: scale(1); opacity: 1; }
}

.friday-pulse {
  animation: fridayPulse 1.2s ease-in-out infinite;
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

/* CI/CD: stages en fila usando todo el ancho disponible */
.section--cicd-pipeline {
  width: 100%;
  max-width: 100%;
}

.cicd-pipeline-stages-host {
  width: 100%;
  min-width: 0;
}

.cicd-stages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1rem;
  width: 100%;
  align-items: start;
}

.cicd-stage-card {
  min-width: 0;
}

.cicd-stage-table-wrap {
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.cicd-stage-table {
  width: 100%;
  min-width: 520px;
  table-layout: auto;
}

.cicd-stage-table .cicd-job-cell {
  word-break: break-word;
  overflow-wrap: anywhere;
  max-width: 36rem;
}

.cicd-stage-table .cicd-dur-cell {
  white-space: nowrap;
}

.cicd-stage-table .cicd-status-cell {
  white-space: nowrap;
}

/* CI/CD overview: título en bloque; badges en fila inferior (misma idea que pipeline detail) */
.cicd-overview-card-head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  min-width: 0;
}

.cicd-overview-card-title {
  min-width: 0;
}

.cicd-overview-card-title h4 {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.cicd-overview-card-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-start;
  min-width: 0;
}

.pipeline-status-badge.badge,
span.badge.pipeline-status-badge {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  max-width: max-content;
  padding: 0.28rem 0.65rem;
  line-height: 1.15;
}

/* CI/CD pipeline: jobs list sin scroll horizontal */
.cicd-jobs-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.cicd-job-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(0, 44, 74, 0.08);
  border-radius: 12px;
  background: #fff;
  min-width: 0;
}

.cicd-job-main {
  min-width: 0;
  flex: 1;
}

.cicd-job-name {
  font-weight: 700;
  color: #0f172a;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.2;
}

.cicd-job-meta {
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cicd-job-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.table-dense th,
.table-dense td {
  padding: 0.35rem 0.5rem;
  font-size: 0.78rem;
}

/* Tablas: mantener links con color Friday (no morado visited) */
.table a,
.table a:visited {
  color: #00568e;
  text-decoration: none;
}

.table a:hover {
  text-decoration: underline;
}

.traefik-json {
  max-height: 360px;
}

.traefik-out {
  margin-top: 0.5rem;
}

.traefik-live-hint {
  margin-bottom: 0.75rem;
}

.traefik-live-status {
  margin: 0 0 0.5rem;
}

.traefik-svc-table .traefik-backends-cell {
  max-width: 28rem;
  line-height: 1.45;
}

.traefik-pill {
  display: inline-block;
  margin: 0.1rem 0.25rem 0.1rem 0;
  padding: 0.12rem 0.4rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.traefik-pill--up {
  color: #0f5132;
  background: #d1e7dd;
  border-color: #badbcc;
}

.traefik-pill--down {
  color: #842029;
  background: #f8d7da;
  border-color: #f5c2c7;
}

/* —— Precios de Exchanges —— */
.ep-page .section-header {
  margin-bottom: 0.75rem;
}

.ep-tabs {
  margin-bottom: 1rem;
}

.ep-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.ep-pair-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.ep-pair-filters .form-group {
  margin: 0;
  min-width: 7rem;
}

.ep-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-left: auto;
}

.es-filters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 0.75rem 1rem;
  align-items: end;
  flex: 1 1 100%;
}

.es-filters .form-group {
  margin: 0;
}

.es-filters__actions {
  display: flex;
  align-items: flex-end;
}

.es-detail-dl {
  display: grid;
  grid-template-columns: minmax(5rem, auto) 1fr;
  gap: 0.35rem 1rem;
  margin: 0;
}

.es-detail-dl dt {
  margin: 0;
  font-weight: 600;
  color: var(--muted-fg, #64748b);
}

.es-detail-dl dd {
  margin: 0;
}

.es-detail-sub {
  margin: 1rem 0 0.5rem;
  font-size: 0.95rem;
}

.es-events {
  margin: 0;
  padding-left: 1.25rem;
}

.es-events li {
  margin-bottom: 0.35rem;
}

.es-preview-host {
  margin-top: 0.35rem;
}

.es-preview-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.es-preview-tab.active {
  box-shadow: inset 0 0 0 1px var(--accent, #2563eb);
}

.es-preview-frame {
  display: block;
  width: 100%;
  min-height: 420px;
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: 8px;
  background: #fff;
}

.es-preview-text {
  margin: 0;
  padding: 0.75rem 1rem;
  max-height: 420px;
  overflow: auto;
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: 8px;
  background: var(--surface-2, #f8fafc);
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.85rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.es-stats-toolbar__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.es-stats-filters {
  flex: 1 1 16rem;
}

.es-stats-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.es-stats-period {
  margin: 0 0 0.75rem;
}

.es-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.es-stat-card {
  padding: 1rem 1.05rem;
  border-radius: 14px;
  border: 1px solid rgba(0, 44, 74, 0.1);
  background: linear-gradient(165deg, #fff 0%, #f6fafc 100%);
  box-shadow: 0 2px 10px rgba(0, 44, 74, 0.05);
}

.es-stat-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.es-stat-card__label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5c6570;
}

.es-stat-card__rate {
  font-size: 0.82rem;
  font-weight: 600;
  color: #00568e;
}

.es-stat-card__count {
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.1;
  color: #002c4a;
  margin-bottom: 0.55rem;
}

.es-stat-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(0, 44, 74, 0.08);
  overflow: hidden;
}

.es-stat-bar__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #00568e;
}

.es-stat-card--ok .es-stat-bar__fill { background: #0d9488; }
.es-stat-card--ok .es-stat-card__rate { color: #0d9488; }
.es-stat-card--blue .es-stat-bar__fill { background: #2563eb; }
.es-stat-card--blue .es-stat-card__rate { color: #2563eb; }
.es-stat-card--violet .es-stat-bar__fill { background: #7c3aed; }
.es-stat-card--violet .es-stat-card__rate { color: #7c3aed; }
.es-stat-card--warn .es-stat-bar__fill { background: #d97706; }
.es-stat-card--warn .es-stat-card__rate { color: #d97706; }
.es-stat-card--rose .es-stat-bar__fill { background: #e11d48; }
.es-stat-card--rose .es-stat-card__rate { color: #e11d48; }

.es-stats-summary__title {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  color: #00568e;
}

.es-stats-summary__dl {
  display: grid;
  grid-template-columns: minmax(8rem, auto) 1fr;
  gap: 0.4rem 1rem;
  margin: 0;
}

.es-stats-summary__dl dt {
  margin: 0;
  color: #5c6570;
  font-size: 0.88rem;
}

.es-stats-summary__dl dd {
  margin: 0;
  color: #002c4a;
}

.es-stats-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 8rem;
}

.es-live-status-wrap {
  display: inline-flex;
  margin-left: 0;
}

.es-toolbar-meta__live {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin-left: 0.35rem;
  vertical-align: middle;
}

.es-realtime-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #0d9488;
  background: rgba(13, 148, 136, 0.08);
  border: 1px solid rgba(13, 148, 136, 0.22);
  cursor: help;
  line-height: 1.2;
}

.es-realtime-badge:focus-visible {
  outline: 2px solid rgba(13, 148, 136, 0.45);
  outline-offset: 2px;
}

.es-live-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: #0d9488;
}

.es-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0d9488;
  box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.45);
  animation: es-live-pulse 2s ease-out infinite;
}

@keyframes es-live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.45); }
  70% { box-shadow: 0 0 0 6px rgba(13, 148, 136, 0); }
  100% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0); }
}

.ep-status-line {
  flex: 1 1 100%;
  margin: 0;
}

.ep-health-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}

.ep-health {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.ep-health--ok {
  background: #d1e7dd;
  color: #0f5132;
}

.ep-health--warn {
  background: #fff3cd;
  color: #664d03;
}

.ep-global-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.ep-stat-card {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(0, 44, 74, 0.1);
}

.ep-stat-card__title {
  margin: 0 0 0.5rem;
  font-weight: 600;
  color: #00568e;
  font-size: 0.92rem;
}

.ep-stat-grid {
  display: grid;
  gap: 0.45rem;
}

.ep-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.ep-exchange-card {
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 44, 74, 0.1);
  background: linear-gradient(160deg, #fff 0%, #f6fafc 100%);
  box-shadow: 0 4px 16px rgba(0, 44, 74, 0.06);
}

.ep-exchange-card__head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.ep-exchange-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 4px;
  border: 1px solid rgba(0, 44, 74, 0.08);
}

.ep-exchange-logo--ph {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00568e;
  font-size: 1rem;
}

.ep-exchange-card__name {
  margin: 0;
  font-size: 1rem;
  color: #002c4a;
}

.ep-exchange-card__date {
  margin: 0.15rem 0 0;
}

.ep-price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.ep-price-label {
  display: block;
  font-size: 0.72rem;
  color: rgba(0, 44, 74, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.ep-price-buy {
  color: #00568e;
  font-size: 1.15rem;
}

.ep-price-sale {
  color: #00897b;
  font-size: 1.15rem;
}

.ep-spread {
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
}

.ep-spread-pos {
  color: #2e7d32;
}

.ep-spread-neg {
  color: #c62828;
}

.ep-chart-wrap {
  min-height: 340px;
  border-radius: 14px;
}

.ep-chart-wrap canvas {
  width: 100% !important;
  height: 320px !important;
}

.ep-live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.ep-live-card {
  padding: 1.25rem;
  border-radius: 16px;
  text-align: center;
}

.ep-live-card__label {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(0, 44, 74, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ep-live-card__value {
  margin: 0.35rem 0 0;
  font-size: 2rem;
  font-weight: 700;
}

.ep-live-ask {
  color: #00568e;
}

.ep-live-bid {
  color: #00897b;
}

.ep-live-card--meta {
  text-align: left;
}

.alloc-filters {
  margin-bottom: 1rem;
}

.alloc-filters__grid {
  align-items: end;
}

.alloc-filters__search {
  min-width: min(100%, 280px);
}

.alloc-filters__check {
  display: flex;
  align-items: flex-end;
}

.alloc-filters__check-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.9rem;
  cursor: pointer;
  user-select: none;
}

.alloc-filters__summary {
  margin: 0.75rem 0 0;
}

.alloc-filters__summary strong {
  color: var(--text, #1a1a1a);
}

/* —— SSL Insight —— */
.si-page .section-header {
  margin-bottom: 0.75rem;
}

.si-tabs {
  margin-bottom: 1rem;
}

.si-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.si-panel-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.si-health-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.si-health--ok {
  color: #0f5132;
  background: #d1e7dd;
  border: 1px solid #badbcc;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

.si-health--warn {
  color: #664d03;
  background: #fff3cd;
  border: 1px solid #ffecb5;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

.si-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 0.75rem;
}

.si-stat-card {
  padding: 1rem;
}

.si-stat-card__title {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  color: var(--muted-fg, #64748b);
}

.si-stat-card__value {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
}

.si-section__title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.si-status {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.8rem;
  text-transform: lowercase;
}

.si-status--ok {
  background: #d1e7dd;
  color: #0f5132;
}

.si-status--warn {
  background: #fff3cd;
  color: #664d03;
}

.si-status--err {
  background: #f8d7da;
  color: #842029;
}

.si-onboarding-steps {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.si-onboarding-steps li {
  margin-bottom: 0.35rem;
}

.field--inline {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0;
}

.btn-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--color-primary, #00568e);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.hidden {
  display: none;
}

.modal-card {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  max-height: 90vh;
  overflow: auto;
}

.waf-alert-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.waf-filter-select {
  min-width: 12rem;
  max-width: 26rem;
}

#waf-f-host.waf-filter-select {
  min-width: 18rem;
}

.waf-table-card {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  border: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.08));
}

.waf-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.waf-data-table thead th {
  text-align: left;
  padding: 0.65rem 0.85rem;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted, #5f6368);
  background: var(--surface-2, rgba(0, 0, 0, 0.03));
  border-bottom: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.08));
}

.waf-data-table tbody td {
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.06));
  vertical-align: middle;
}

.waf-data-table tbody tr:hover {
  background: rgba(0, 86, 142, 0.04);
}

.waf-data-table tbody tr:last-child td {
  border-bottom: none;
}

.waf-rank {
  color: var(--text-muted, #5f6368);
  width: 2rem;
  font-variant-numeric: tabular-nums;
}

.waf-muted-cell {
  color: var(--text-muted, #5f6368);
}

.waf-num--warn {
  color: #e65100;
  font-weight: 600;
}

.waf-num--err {
  color: #b00020;
  font-weight: 600;
}

.waf-status--4xx {
  color: #e65100;
  font-weight: 600;
}

.waf-status--5xx {
  color: #b00020;
  font-weight: 600;
}

.waf-path-col {
  max-width: 420px;
}

.waf-path-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
}

.waf-path-code {
  font-size: 0.8rem;
  background: rgba(0, 86, 142, 0.06);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  word-break: break-all;
}

.waf-path-lens {
  flex-shrink: 0;
  opacity: 0.45;
  font-size: 0.95rem;
  line-height: 1;
  cursor: help;
  transition: opacity 0.15s;
}

.waf-path-wrap:hover .waf-path-lens {
  opacity: 1;
  color: var(--primary, #00568e);
}

.waf-path-tooltip {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 20;
  min-width: 200px;
  max-width: min(560px, 90vw);
  padding: 0.5rem 0.65rem;
  background: #1e293b;
  color: #f8fafc;
  font-size: 0.75rem;
  line-height: 1.35;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  word-break: break-all;
  pointer-events: none;
}

.waf-path-wrap:hover .waf-path-tooltip {
  display: block;
}

.waf-pie-card {
  cursor: default;
}

.waf-error-modal-card {
  max-width: 720px;
  width: 94%;
  max-height: 85vh;
  overflow: auto;
}

.waf-ip-tag-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.3;
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.waf-ip-tag-btn.btn-secondary {
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
}

.waf-tag-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.waf-tag-swatch {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
}

.waf-tag-swatch.active {
  border-color: var(--text-primary, #1a1a1a);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
}
