:root {
  --sp-radius: 18px;
  --sp-card-border: rgba(255, 255, 255, 0.12);
  --sp-card-shadow: 0 16px 40px rgba(5, 11, 26, 0.35);
  --sp-nav-border: rgba(255, 255, 255, 0.08);
  --sp-muted: rgba(255, 255, 255, 0.7);
  --sp-text: #e2e8f0;
  --sp-primary: #38bdf8;
  --sp-primary-600: #0ea5e9;
  --sp-accent: #818cf8;
  --sp-bg: #050b1a;
  --sp-card: rgba(10, 22, 46, 0.62);
  --sp-card-soft: rgba(15, 23, 42, 0.5);
}

html[data-bs-theme="light"] {
  --sp-muted: #52607a;
  --sp-text: #0f172a;
  --sp-primary: #2563eb;
  --sp-primary-600: #1d4ed8;
  --sp-accent: #06b6d4;
  --sp-bg: #f8fafc;
  --sp-card: rgba(255, 255, 255, 0.82);
  --sp-card-soft: rgba(255, 255, 255, 0.92);
  --sp-card-border: rgba(15, 23, 42, 0.08);
  --sp-card-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
  --sp-nav-border: rgba(15, 23, 42, 0.08);
}

body {
  background:
    radial-gradient(900px circle at 20% 10%, rgba(56, 189, 248, 0.22), transparent 55%),
    radial-gradient(700px circle at 80% 25%, rgba(99, 102, 241, 0.18), transparent 55%),
    radial-gradient(900px circle at 55% 85%, rgba(34, 197, 94, 0.1), transparent 60%),
    var(--sp-bg);
  color: var(--sp-text);
  font-family: "Manrope", "Segoe UI", "Helvetica Neue", sans-serif;
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Fraunces", "Times New Roman", serif;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
}

.htmx-indicator {
  opacity: 0;
  transition: opacity 0.15s ease-in-out;
}

.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
  opacity: 1;
}

.sp-nav {
  background: rgba(8, 16, 33, 0.72);
  backdrop-filter: blur(14px);
  border: 1px solid var(--sp-nav-border);
  border-radius: 999px;
  padding: 0.65rem 1.25rem;
}

html[data-bs-theme="light"] .sp-nav {
  background: rgba(255, 255, 255, 0.75);
}

.sp-nav .navbar-brand {
  color: var(--sp-text);
}

.sp-nav .nav-link {
  color: var(--sp-muted);
}

.sp-nav .nav-link:hover,
.sp-nav .nav-link:focus {
  color: var(--sp-text);
}

.sp-nav .form-select {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--sp-card-border);
  color: var(--sp-text);
}

html[data-bs-theme="light"] .sp-nav .form-select {
  background: rgba(255, 255, 255, 0.9);
  color: var(--sp-text);
}

.sp-public-nav-language-form {
  margin: 0;
}

.sp-public-nav-language-select {
  min-width: 7.25rem;
}

.sp-public-nav-mobile-controls {
  margin-left: auto;
}

.sp-pill {
  border-radius: 999px;
}

.btn-primary {
  background-color: var(--sp-primary);
  border-color: var(--sp-primary);
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
}

.btn-primary:hover {
  background-color: var(--sp-primary-600);
  border-color: var(--sp-primary-600);
}

.btn-outline-primary {
  border-color: var(--sp-primary);
  color: var(--sp-primary);
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
}

.sp-icon-btn {
  padding: 0.25rem 0.55rem;
  line-height: 1;
  font-size: 0.85rem;
  border-radius: 999px;
}

.btn-outline-danger {
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
}

.btn-outline-dark {
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
}

.btn-lg {
  padding: 0.95rem 2.1rem;
  font-size: 1.05rem;
}

.sp-hero {
  padding: 3.5rem 0 2rem;
}

.sp-hero-divider {
  height: 1px;
  background: rgba(148, 163, 184, 0.2);
  margin-top: 2.5rem;
}

.sp-section {
  padding: 3.5rem 0;
}

.sp-glass {
  background: var(--sp-card);
  border: 1px solid var(--sp-card-border);
  border-radius: var(--sp-radius);
  box-shadow: var(--sp-card-shadow);
  backdrop-filter: blur(12px);
}

.sp-card-grid .card {
  height: 100%;
}

.sp-card-soft {
  background: var(--sp-card-soft);
}

.sp-card-emphasis-warning {
  border: 1px solid rgba(245, 158, 11, 0.45);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.15), var(--sp-card-shadow);
}

.sp-kpi {
  border-radius: 16px;
  padding: 1.5rem;
  background: var(--sp-card);
  border: 1px solid var(--sp-card-border);
  box-shadow: var(--sp-card-shadow);
}

.sp-kpi .sp-kpi-value {
  font-size: 2rem;
  font-weight: 700;
}

.sp-badge {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.sp-badge-nowrap {
  white-space: nowrap;
}

.sp-ellipsis-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-owner-stack {
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  max-width: 100%;
}

.sp-owner-name {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 16ch;
}

.sp-badge-compact {
  font-size: 0.75rem;
  padding: 0.18rem 0.55rem;
  line-height: 1.1;
}

.sp-evidence-badge {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.sp-status-success {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.sp-status-warning {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.sp-status-danger {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.sp-status-info {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.sp-status-neutral {
  background: rgba(100, 116, 139, 0.2);
  color: #94a3b8;
}

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

.sp-section-divider {
  border: 0;
  border-top: 1px solid var(--sp-card-border);
  margin: 1.25rem 0;
}

.sp-preset-group {
  border-top: 1px solid var(--sp-card-border);
  margin-top: 1rem;
  padding-top: 1rem;
}

.sp-preset-group:first-of-type {
  margin-top: 0;
}

.sp-preset-group-active {
  border-color: rgba(56, 189, 248, 0.45);
}

.sp-feature-icon {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sp-primary);
  font-weight: 700;
  border: 1px solid var(--sp-card-border);
  z-index: 1;
}

.sp-feature-icon::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 16px;
  background: radial-gradient(
      circle at 30% 30%,
      rgba(56, 189, 248, 0.55),
      transparent 60%
    ),
    radial-gradient(
      circle at 70% 70%,
      rgba(129, 140, 248, 0.4),
      transparent 60%
    );
  filter: blur(10px);
  opacity: 0.85;
  z-index: -1;
}

.sp-feature-icon:focus-visible {
  outline: 2px solid var(--sp-primary);
  outline-offset: 3px;
}

.sp-feature-icon button,
.sp-feature-icon[role="button"] {
  cursor: pointer;
}

.sp-logos span {
  color: var(--sp-muted);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sp-footer {
  border-top: 1px solid var(--sp-nav-border);
  margin-top: 3rem;
}

.table thead th {
  font-weight: 600;
  color: var(--sp-text);
}

.form-control,
.form-select {
  border-radius: 0.85rem;
  border: 1px solid var(--sp-card-border);
  background: var(--sp-card-soft);
  color: var(--sp-text);
}

.form-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 2.5rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--sp-muted) 50%),
    linear-gradient(135deg, var(--sp-muted) 50%, transparent 50%),
    linear-gradient(to right, var(--sp-card-soft), var(--sp-card-soft));
  background-position:
    calc(100% - 1.05rem) 55%,
    calc(100% - 0.85rem) 55%,
    0 0;
  background-size: 6px 6px, 6px 6px, 100% 100%;
  background-repeat: no-repeat;
}

.form-select option {
  background: var(--sp-card);
  color: var(--sp-text);
}

.sp-placeholder-italic::placeholder {
  color: var(--sp-muted);
  font-style: italic;
  opacity: 0.85;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--sp-primary);
  box-shadow: 0 0 0 0.2rem rgba(56, 189, 248, 0.2);
}

.alert {
  border-radius: 1rem;
}

.sp-page-header {
  background: var(--sp-card);
  border: 1px solid var(--sp-card-border);
  border-radius: 1rem;
  padding: 1.5rem;
}

.sp-empty-state {
  border: 1px dashed var(--sp-card-border);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  color: var(--sp-muted);
}

.sp-table-wrap {
  overflow-x: auto;
}

.sp-agents-table {
  overflow-x: visible;
}

.sp-agents-table .table {
  width: 100%;
  table-layout: fixed;
}

.sp-agents-table .sp-col-info {
  width: 52%;
}

.sp-agents-table .sp-col-status {
  width: 11%;
}

.sp-agents-table .sp-col-last-seen {
  width: 17%;
}

.sp-agents-table .sp-col-token {
  width: 8%;
}

.sp-agents-table .sp-col-action {
  width: 12%;
}

.sp-agents-table .btn {
  white-space: nowrap;
}

.sp-agents-table .sp-agent-token-btn {
  padding: 0.35rem 0.8rem;
  font-size: 0.95rem;
  line-height: 1.2;
}

.sp-settings-form-btn {
  width: auto;
  min-width: 15rem;
  padding: 0.45rem 1rem;
  font-size: 0.95rem;
  line-height: 1.2;
}

.sp-token-confirm-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.1rem;
  padding: 0.32rem 0.85rem;
  font-size: 0.9rem;
  line-height: 1.1;
  text-align: center;
}

.sp-agent-info-cell {
  font-size: 0.9rem;
}

.sp-agent-info-line + .sp-agent-info-line {
  margin-top: 0.2rem;
}

.sp-agent-info-label {
  color: var(--sp-muted);
  margin-right: 0.35rem;
}

.sp-agents-table-global .sp-col-hostname {
  width: 34%;
}

.sp-agents-table-global .sp-col-location {
  width: 26%;
}

.sp-agents-table-global .sp-col-status {
  width: 20%;
}

.sp-agents-table-global .sp-col-token {
  width: 20%;
}

.sp-incident-table-wrap {
  overflow-x: visible;
}

.sp-incidents-main {
  max-width: 1780px;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}

.sp-incident-overview-table {
  width: 100%;
  table-layout: fixed;
}

.sp-incident-overview-table th,
.sp-incident-overview-table td {
  vertical-align: top;
}

.sp-incident-overview-table .sp-col-owner {
  width: 11%;
}

.sp-incident-overview-table .sp-col-service {
  width: 27%;
}

.sp-incident-overview-table .sp-col-status {
  width: 8%;
}

.sp-incident-overview-table .sp-col-evidence {
  width: 9%;
}

.sp-incident-overview-table .sp-col-time-window {
  width: 16%;
}

.sp-incident-overview-table .sp-col-duration {
  width: 8%;
}

.sp-incident-overview-table .sp-col-classification {
  width: 8%;
}

.sp-incident-overview-table .sp-col-severity {
  width: 7%;
}

.sp-incident-overview-table .sp-col-source {
  width: 6%;
}

.sp-incident-overview-table .sp-col-status,
.sp-incident-overview-table .sp-col-evidence,
.sp-incident-overview-table .sp-col-duration,
.sp-incident-overview-table .sp-col-classification,
.sp-incident-overview-table .sp-col-severity,
.sp-incident-overview-table .sp-col-source {
  white-space: nowrap;
}

.sp-incident-overview-table .sp-col-status,
.sp-incident-overview-table .sp-col-evidence,
.sp-incident-overview-table .sp-col-duration,
.sp-incident-overview-table .sp-col-classification,
.sp-incident-overview-table .sp-col-severity,
.sp-incident-overview-table .sp-col-source {
  text-align: center;
}

.sp-incident-overview-table .sp-col-owner .sp-owner-name {
  max-width: 13ch;
}

.sp-history-table-wrap {
  overflow-x: visible;
}

.sp-insights-table-wrap {
  overflow-x: visible;
}

.sp-insights-overview-table {
  width: 100%;
  table-layout: fixed;
}

.sp-insights-overview-table th,
.sp-insights-overview-table td {
  vertical-align: top;
}

.sp-insights-overview-table .sp-col-owner {
  width: 12%;
}

.sp-insights-overview-table .sp-col-service {
  width: 34%;
}

.sp-insights-overview-table .sp-col-risk {
  width: 10%;
}

.sp-insights-overview-table .sp-col-duration {
  width: 11%;
}

.sp-insights-overview-table .sp-col-count {
  width: 9%;
}

.sp-insights-overview-table .sp-col-ongoing {
  width: 10%;
}

.sp-insights-overview-table .sp-col-last {
  width: 14%;
}

.sp-insights-overview-table .sp-col-risk,
.sp-insights-overview-table .sp-col-duration,
.sp-insights-overview-table .sp-col-count,
.sp-insights-overview-table .sp-col-ongoing,
.sp-insights-overview-table .sp-col-last {
  white-space: nowrap;
  text-align: center;
}

.sp-history-overview-table {
  width: 100%;
  table-layout: fixed;
}

.sp-history-overview-table th,
.sp-history-overview-table td {
  vertical-align: top;
}

.sp-history-overview-table .sp-col-owner {
  width: 11%;
}

.sp-history-overview-table .sp-col-service {
  width: 28%;
}

.sp-history-overview-table .sp-col-sla {
  width: 18%;
}

.sp-history-overview-table .sp-col-incidents-breakdown {
  width: 11%;
}

.sp-history-overview-table .sp-col-duration {
  width: 10%;
}

.sp-history-overview-table .sp-col-compliance {
  width: 9%;
}

.sp-history-overview-table .sp-col-state {
  width: 9%;
}

.sp-history-overview-table .sp-col-last {
  width: 14%;
}

.sp-history-overview-table .sp-col-incidents-breakdown,
.sp-history-overview-table .sp-col-duration,
.sp-history-overview-table .sp-col-compliance,
.sp-history-overview-table .sp-col-state,
.sp-history-overview-table .sp-col-last {
  white-space: nowrap;
}

.sp-history-overview-table th.sp-col-incidents-breakdown {
  white-space: normal;
  line-height: 1.2;
}

.sp-history-overview-table .sp-col-incidents-breakdown,
.sp-history-overview-table .sp-col-duration,
.sp-history-overview-table .sp-col-compliance {
  text-align: center;
}

.sp-wrap-2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.sp-break-anywhere {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.sp-min-w-0 {
  min-width: 0;
}

.sp-radar-wrap {
  width: min(100%, 520px);
  margin: 0 auto;
  position: relative;
}

.sp-radar-tooltip {
  position: absolute;
  z-index: 2;
  max-width: 280px;
  padding: 0.6rem 0.75rem;
  border-radius: 0.85rem;
  border: 1px solid var(--sp-card-border);
  background: rgba(8, 16, 33, 0.9);
  color: var(--sp-text);
  font-size: 0.85rem;
  line-height: 1.3;
  opacity: 0;
  transform: translate(-50%, -60%);
  pointer-events: none;
  transition: opacity 0.12s ease;
}

.sp-radar-tooltip.show {
  opacity: 1;
}

.sp-radar-tooltip-title {
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.sp-radar-tooltip-line {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.sp-radar-tooltip-notes {
  color: var(--sp-muted);
  font-size: 0.8rem;
  white-space: pre-wrap;
}

.sp-radar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.sp-compare-metric {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.sp-compare-bar {
  width: 140px;
  min-width: 140px;
  flex: 0 0 140px;
  height: 10px;
  border-radius: 6px;
  border: 1px solid var(--sp-card-border);
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.08) 0,
      rgba(255, 255, 255, 0.08) 1px,
      transparent 1px,
      transparent 10px
    ),
    var(--sp-card-soft);
  overflow: hidden;
}

.sp-compare-bar-fill {
  display: block;
  height: 100%;
  border-radius: 6px;
  background-image:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.25) 0,
      rgba(255, 255, 255, 0.25) 1px,
      transparent 1px,
      transparent 10px
    );
}

.sp-score-100 {
  background-color: #22c55e;
}

.sp-score-80 {
  background-color: #38bdf8;
}

.sp-score-50 {
  background-color: #f59e0b;
}

.sp-score-30 {
  background-color: #f97316;
}

.sp-score-10 {
  background-color: #ef4444;
}

.sp-score-0 {
  background-color: #64748b;
}

.sp-donut {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  position: relative;
  border: 1px solid var(--sp-card-border);
  box-shadow: var(--sp-card-shadow);
}

.sp-donut::after {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: var(--sp-card);
  border: 1px solid var(--sp-card-border);
}

.sp-color-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.sp-mini-stack {
  width: 160px;
  height: 10px;
  border-radius: 999px;
  background: var(--sp-card-soft);
  border: 1px solid var(--sp-card-border);
  overflow: hidden;
  display: flex;
}

.sp-mini-seg {
  height: 100%;
  display: block;
}

.sp-chart-horizontal {
  height: 140px;
}


tr.sp-row-link {
  cursor: pointer;
}

tr.sp-row-link:hover {
  background: var(--sp-card-soft);
}

.sp-sla-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  display: inline-block;
  border: 1px solid var(--sp-card-border);
}

.sp-sla-ok {
  background: #22c55e;
}

.sp-sla-risk {
  background: #f59e0b;
}

.sp-sla-breach {
  background: #ef4444;
}

.sp-sla-unknown {
  background: #64748b;
}

.assessment-drilldown-row td {
  border-top: 0;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.supplier-question-row .chevron {
  transition: transform 0.2s ease;
}

.supplier-question-row[aria-expanded="true"] .chevron {
  transform: rotate(90deg);
}

.sp-table-compact .table td,
.sp-table-compact .table th {
  padding: 0.35rem 0.5rem;
  font-size: 0.875rem;
}

.sp-table-sticky thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--sp-card-soft);
}

.sp-chart {
  height: 160px;
}

.sp-chart-with-axis {
  display: flex;
  align-items: stretch;
  gap: 0.45rem;
}

.sp-chart-y-axis {
  width: 3.6rem;
  min-width: 3.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 0.1rem;
  padding-bottom: 1.35rem;
  font-size: 0.68rem;
  line-height: 1;
}

.sp-chart-y-label {
  white-space: nowrap;
}

.sp-chart-axis-meta {
  margin-top: 0.15rem;
  margin-left: 4.05rem;
  font-size: 0.68rem;
}

.sp-chart-bars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8px, 1fr));
  gap: 6px;
  align-items: end;
  height: 100%;
}

.sp-history-trends .sp-chart-bars {
  grid-template-columns: repeat(var(--sp-chart-bars-count, 12), minmax(0, 1fr));
}

.sp-chart-group {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  height: 100%;
  min-width: 0;
}

.sp-chart-bar {
  border-radius: 6px;
  min-height: 2px;
}

.sp-chart-ok {
  background: rgba(34, 197, 94, 0.75);
}

.sp-chart-fail {
  background: rgba(248, 113, 113, 0.85);
}

.sp-chart-undetermined {
  background: rgba(245, 158, 11, 0.65);
}

.sp-chart-gap {
  background: rgba(148, 163, 184, 0.45);
}

.sp-chart-action {
  cursor: pointer;
}

.sp-chart-delay {
  background: rgba(56, 189, 248, 0.7);
}

.sp-chart-with-axis .sp-chart {
  flex: 1;
  min-width: 0;
}

.sp-chart-x-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.1;
  font-size: 0.68rem;
  min-height: 2.05rem;
}

.sp-chart-x-label-top {
  display: block;
}

.sp-chart-x-label-bottom {
  display: block;
  font-size: 0.62rem;
  opacity: 0.82;
}

.sp-chart-x-label-empty {
  visibility: hidden;
}

.sp-app-shell {
  display: flex;
  min-height: 100vh;
  gap: 1.5rem;
  padding: 1.5rem;
}

.sp-app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sp-sidebar {
  width: 260px;
  border-radius: var(--sp-radius);
  border: 1px solid var(--sp-card-border);
  overflow: hidden;
}

.sp-sidebar .offcanvas-body {
  padding: 1.25rem;
}

.sp-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  color: var(--sp-text);
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease;
}

.sp-sidebar-toggle {
  padding: 0.2rem 0.45rem;
  font-size: 0.75rem;
}

.sp-sidebar-link:hover {
  background: rgba(56, 189, 248, 0.12);
  color: var(--sp-text);
}

.sp-sidebar-link.active {
  background: rgba(56, 189, 248, 0.2);
  color: var(--sp-text);
}

.sp-sidebar-link.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.sp-sidebar-label {
  flex: 1;
  font-size: 0.95rem;
}

.sp-sidebar-badge {
  font-size: 0.75rem;
}

.sp-topbar {
  border-radius: var(--sp-radius);
  position: relative;
  z-index: 1035;
}

.sp-topbar .dropdown-menu {
  z-index: 1080;
}

.sp-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding-top: 0;
  padding-bottom: 0;
  line-height: 1;
}

.sp-topbar .form-select {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--sp-card-border);
  color: var(--sp-text);
}

html[data-bs-theme="light"] .sp-topbar .form-select {
  background: rgba(255, 255, 255, 0.9);
  color: var(--sp-text);
}

body[data-sidebar="collapsed"] .sp-sidebar {
  width: 88px;
}

body[data-sidebar="collapsed"] .sp-sidebar-label,
body[data-sidebar="collapsed"] .sp-sidebar-badge {
  display: none;
}

body[data-sidebar="collapsed"] .sp-sidebar-link {
  justify-content: center;
}

@media (max-width: 991.98px) {
  .sp-nav {
    border-radius: 1.25rem;
  }

  .sp-nav .navbar-collapse {
    width: 100%;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--sp-nav-border);
  }

  .sp-public-nav-actions {
    width: 100%;
    margin-top: 0.5rem;
    padding-top: 0.2rem;
  }

  .sp-public-nav-actions > * {
    width: 100%;
  }

  .sp-public-nav-action {
    background: transparent;
    border: 0;
    border-radius: 0;
    color: var(--sp-muted);
    justify-content: flex-start;
    padding: 0.5rem 0;
    text-align: left;
    width: 100%;
  }

  .sp-public-nav-action:hover,
  .sp-public-nav-action:focus {
    background: transparent;
    border: 0;
    color: var(--sp-text);
  }

  .sp-public-nav-action.disabled {
    opacity: 0.7;
  }

  .sp-public-nav-mobile-controls .navbar-toggler {
    margin-left: 0;
  }

  .sp-public-nav-mobile-controls .sp-public-nav-language-select {
    min-width: 6.4rem;
  }

  .sp-app-shell {
    padding: 1rem;
  }

  .sp-sidebar {
    width: 100%;
    border-radius: 0;
  }
}

@media (max-width: 767.98px) {
  .sp-incidents-main {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }

  .sp-incident-table-wrap {
    overflow-x: auto;
  }

  .sp-incident-overview-table {
    min-width: 1200px;
  }

  .sp-history-table-wrap {
    overflow-x: auto;
  }

  .sp-history-overview-table {
    min-width: 980px;
  }

  .sp-insights-table-wrap {
    overflow-x: auto;
  }

  .sp-insights-overview-table {
    min-width: 1020px;
  }
}

.sp-detail-panel {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease;
}

.sp-detail-panel.show {
  max-height: 300px;
  opacity: 1;
}

.sp-icon-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}

.sp-icon-wrap::before {
  content: "";
  position: absolute;
  inset: -28px;
  background:
    radial-gradient(circle at 30% 30%, var(--sp-glow-a), transparent 70%),
    radial-gradient(circle at 70% 40%, var(--sp-glow-b), transparent 72%);
  border-radius: 999px;
  pointer-events: none;
}

.sp-hidden-row {
  display: none;
}

.sp-icon {
  position: relative;
  z-index: 1;
  font-size: 1.4rem;
  color: currentColor;
  opacity: 0.95;
}
