:root {
  --st-green: #42c91f;
  --st-green-dark: #168c20;
  --st-green-soft: #e9fbe7;
  --tblr-primary: #26c91f;
  --tblr-primary-rgb: 38, 201, 31;
  --tblr-primary-fg: #ffffff;
  --tblr-primary-lt: #e9fbe7;
  --tblr-link-color: #168c20;
  --tblr-link-hover-color: #0f7a22;
}

[data-bs-theme="dark"] {
  --tblr-primary: #42c91f;
  --tblr-primary-rgb: 66, 201, 31;
  --tblr-primary-fg: #ffffff;
  --tblr-primary-lt: rgba(66, 201, 31, 0.14);
  --tblr-link-color: #63dc4a;
  --tblr-link-hover-color: #7ee868;
}

.btn-primary {
  --tblr-btn-bg: var(--st-green-dark);
  --tblr-btn-border-color: var(--st-green-dark);
  --tblr-btn-hover-bg: #11791f;
  --tblr-btn-hover-border-color: #11791f;
  --tblr-btn-active-bg: #0f6f1c;
  --tblr-btn-active-border-color: #0f6f1c;
  --tblr-btn-disabled-bg: var(--st-green-dark);
  --tblr-btn-disabled-border-color: var(--st-green-dark);
  --tblr-btn-color: #ffffff;
  --tblr-btn-hover-color: #ffffff;
  --tblr-btn-active-color: #ffffff;
}

.btn-outline-primary {
  --tblr-btn-color: var(--st-green-dark);
  --tblr-btn-border-color: var(--st-green-dark);
  --tblr-btn-hover-bg: var(--st-green-dark);
  --tblr-btn-hover-border-color: var(--st-green-dark);
  --tblr-btn-active-bg: #0f6f1c;
  --tblr-btn-active-border-color: #0f6f1c;
  --tblr-btn-hover-color: #ffffff;
  --tblr-btn-active-color: #ffffff;
}

.btn-outline-success {
  --tblr-btn-color: var(--st-green-dark);
  --tblr-btn-border-color: var(--st-green-dark);
  --tblr-btn-hover-bg: var(--st-green-dark);
  --tblr-btn-hover-border-color: var(--st-green-dark);
  --tblr-btn-active-bg: #0f6f1c;
  --tblr-btn-active-border-color: #0f6f1c;
  --tblr-btn-hover-color: #ffffff;
  --tblr-btn-active-color: #ffffff;
}

.btn-primary:focus,
.btn-primary:focus-visible,
.btn-outline-primary:focus,
.btn-outline-primary:focus-visible,
.btn-outline-success:focus,
.btn-outline-success:focus-visible {
  box-shadow: 0 0 0 0.25rem rgba(38, 201, 31, 0.24);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active,
.btn-outline-success:hover,
.btn-outline-success:focus,
.btn-outline-success:active,
.btn-outline-success.active {
  color: #ffffff !important;
  background-color: var(--st-green-dark) !important;
  border-color: var(--st-green-dark) !important;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.page,
.page-wrapper,
.page-body {
  min-width: 0;
  max-width: 100%;
}

.container-xl {
  min-width: 0;
}

.navbar-brand-image {
  width: 138px;
  height: auto;
  max-height: none;
}

.theme-logo-dark {
  display: none;
}

[data-bs-theme="dark"] .theme-logo-light {
  display: none;
}

[data-bs-theme="dark"] .theme-logo-dark {
  display: inline-block;
}

.navbar .nav-item.active > .nav-link {
  color: var(--tblr-primary);
}

.admin-responsive-table thead th:not(.w-1):not(:empty) {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.admin-responsive-table thead th:not(.w-1):not(:empty)::after {
  content: "↕";
  display: inline-block;
  margin-left: 0.35rem;
  color: var(--tblr-secondary);
  font-size: 0.75em;
  opacity: 0.55;
}

.admin-responsive-table thead th.admin-sort-asc::after {
  content: "↑";
  color: var(--tblr-primary);
  opacity: 1;
}

.admin-responsive-table thead th.admin-sort-desc::after {
  content: "↓";
  color: var(--tblr-primary);
  opacity: 1;
}

.admin-actions .dropdown-toggle {
  min-width: 6.25rem;
}

.admin-actions .dropdown-menu {
  min-width: 11rem;
}

.admin-actions-menu-detached {
  position: fixed !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 1080;
  margin: 0 !important;
  transform: none !important;
}

.plan-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.55rem;
  padding: 0.16rem 0.48rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.plan-tag-flex {
  border-style: dashed;
}

.plan-tag-starter {
  color: #8a4f16;
  background: #f5c371;
  border-color: #a97c42;
}

.plan-tag-pro {
  color: #53606d;
  background: #eeeff1;
  border-color: #b9c2cc;
}

.plan-tag-scale {
  color: #8d711a;
  background: #ffdc1f;
  border-color: #bfa230;
}

.plan-tag-default {
  color: var(--tblr-secondary);
  background: var(--tblr-bg-surface-secondary);
  border-color: var(--tblr-border-color);
}

.nav-link.active,
.nav-tabs .nav-link.active,
.navbar .nav-link.active,
.navbar .nav-item.active > .nav-link,
.dropdown-item.active,
.dropdown-item:active,
[data-switch-context].active {
  color: var(--st-green-dark) !important;
}

.nav-tabs .nav-link.active,
.navbar .nav-item.active > .nav-link {
  border-color: var(--st-green-dark) !important;
}

[data-bs-theme="dark"] .nav-link.active,
[data-bs-theme="dark"] .nav-tabs .nav-link.active,
[data-bs-theme="dark"] .navbar .nav-link.active,
[data-bs-theme="dark"] .navbar .nav-item.active > .nav-link,
[data-bs-theme="dark"] .dropdown-item.active,
[data-bs-theme="dark"] .dropdown-item:active,
[data-bs-theme="dark"] [data-switch-context].active {
  color: var(--st-green) !important;
}

[data-bs-theme="dark"] .navbar .nav-link,
[data-bs-theme="dark"] .navbar .dropdown-item {
  color: #d8e0ea;
}

.navbar .header-icon-link,
.navbar .header-icon-link.btn-link {
  color: var(--tblr-secondary) !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

.navbar .admin-lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 38px;
  padding: 0 0.75rem !important;
  border: 1px solid var(--tblr-border-color) !important;
  border-radius: 10px;
  background: var(--tblr-bg-surface) !important;
  color: var(--tblr-body-color) !important;
}

.navbar .admin-lang-toggle:hover,
.navbar .admin-lang-toggle:focus,
.navbar .admin-lang-toggle:active,
.navbar .admin-lang-toggle.show,
.navbar .admin-lang-toggle[aria-expanded="true"] {
  border-color: rgba(47, 179, 68, 0.45) !important;
  color: var(--st-green-dark) !important;
  background: var(--tblr-bg-surface) !important;
}

.admin-lang-chevron {
  font-size: 0.9rem;
  transition: transform 0.18s ease;
}

.admin-lang-toggle[aria-expanded="true"] .admin-lang-chevron {
  transform: rotate(180deg);
}

.admin-lang-menu {
  min-width: 7rem;
}

.admin-lang-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
}

.admin-flag {
  width: 22px;
  height: 15px;
  display: inline-block;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
}

.flag-us {
  background: repeating-linear-gradient(to bottom, #b22234 0 1.15px, #fff 1.15px 2.3px);
}

.flag-us::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 9px;
  height: 8px;
  background: #3c3b6e;
}

.flag-br {
  background: #229e45;
}

.flag-br::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 2px;
  width: 16px;
  height: 11px;
  background: #f7df3e;
  transform: rotate(35deg);
}

.flag-br::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  width: 7px;
  height: 7px;
  background: #002776;
  border-radius: 50%;
}

.flag-es {
  background: linear-gradient(to bottom, #aa151b 0 25%, #f1bf00 25% 75%, #aa151b 75% 100%);
}

.navbar .header-icon-link:hover,
.navbar .header-icon-link:focus,
.navbar .header-icon-link:active,
.navbar .header-icon-link.show,
.navbar .header-icon-link[aria-expanded="true"] {
  color: var(--st-green-dark) !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

[data-bs-theme="dark"] .navbar .header-icon-link,
[data-bs-theme="dark"] .navbar .header-icon-link.btn-link {
  color: #d8e0ea !important;
}

[data-bs-theme="dark"] .navbar .header-icon-link:hover,
[data-bs-theme="dark"] .navbar .header-icon-link:focus,
[data-bs-theme="dark"] .navbar .header-icon-link:active,
[data-bs-theme="dark"] .navbar .header-icon-link.show,
[data-bs-theme="dark"] .navbar .header-icon-link[aria-expanded="true"] {
  color: var(--st-green) !important;
}

[data-bs-theme="dark"] .navbar .nav-link:hover,
[data-bs-theme="dark"] .navbar .nav-link:focus,
[data-bs-theme="dark"] .navbar .dropdown-item:hover,
[data-bs-theme="dark"] .navbar .dropdown-item:focus {
  color: #ffffff;
}

[data-bs-theme="dark"] .navbar .nav-item.active > .nav-link,
[data-bs-theme="dark"] .navbar .dropdown-item.active {
  color: var(--st-green);
}

[data-bs-theme="dark"] #currentUserRole,
[data-bs-theme="dark"] .navbar .text-secondary {
  color: #aebdcc !important;
}

.status-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.4rem;
  border-radius: 50%;
}

.status-active,
.status-processed {
  background: var(--st-green);
}

.status-inactive,
.status-revoked,
.status-blocked {
  background: #d63939;
}

.status-draft {
  background: #f59f00;
}

.runtime-upload-box {
  border: 1px dashed var(--tblr-border-color);
  border-radius: var(--tblr-border-radius);
  padding: 1rem;
  background: var(--tblr-bg-surface-secondary);
}

.permission-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--tblr-border-color);
  border-radius: 999px;
  padding: 0.25rem 0.625rem;
  background: var(--tblr-bg-surface);
  color: var(--tblr-secondary);
  font-size: 0.75rem;
  font-weight: 600;
}

.code-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.code-tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border: 1px solid rgba(32, 107, 196, 0.22);
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  background: rgba(32, 107, 196, 0.06);
  color: var(--tblr-primary);
  font-family: var(--tblr-font-monospace);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

[data-bs-theme="dark"] .code-tag {
  border-color: rgba(116, 185, 255, 0.28);
  background: rgba(116, 185, 255, 0.1);
  color: #9dccff;
}

.view-json {
  max-height: 420px;
  overflow: auto;
  color: #182433;
  background: #f6f8fb;
  border: 1px solid var(--tblr-border-color);
}

.admin-toolbar {
  gap: 0.75rem;
}

.admin-toolbar .input-icon {
  min-width: 0;
}

.admin-toolbar-search {
  min-width: 260px;
}

.admin-actions {
  flex-wrap: nowrap;
}

.admin-actions .btn {
  white-space: nowrap;
}

.page-title,
.card-title,
.h1,
.h2,
.h3,
.form-label,
.table td,
.table th {
  overflow-wrap: anywhere;
}

.table-responsive {
  max-width: 100%;
}

.access-role-col {
  min-width: 9rem;
}

.access-users-col {
  width: 4rem;
}

.access-permissions-col {
  min-width: 0 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word;
}

.table td,
.table th {
  vertical-align: middle;
}

.table th:not(.admin-wrap-col),
.table td:not(.admin-wrap-col) {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

.admin-wrap-col {
  min-width: 22rem;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

.dashboard-summary-card {
  min-height: 7.25rem;
}

.dashboard-summary-card .card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.row-cards > [class*="col-"] {
  display: flex;
  flex-direction: column;
}

.row-cards > [class*="col-"] > .card {
  flex: 1 1 auto;
  width: 100%;
}

.metric-card {
  min-height: 6.85rem;
}

.metric-card .card-body {
  display: flex;
  flex-direction: column;
}

.metric-card .text-secondary:last-child {
  margin-top: auto;
}

.dashboard-equal-card {
  min-height: 12.5rem;
}

.dashboard-result-filters {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.dashboard-result-filters .form-select {
  width: 13.5rem;
  min-width: 13.5rem;
  font-size: 0.8125rem;
}

.dashboard-result-filters .form-select[data-dashboard-results-config] {
  width: 18rem;
  min-width: 18rem;
}

.config-row-dragging {
  opacity: 0.55;
}

[data-config-reorder-list] tr[draggable="true"] {
  cursor: grab;
}


.login-screen {
  display: grid;
  min-height: 100vh;
  place-items: center;
  background: var(--tblr-bg-surface-secondary);
}

.login-logo {
  width: 250px;
  height: auto;
}

.login-screen a,
.login-screen .btn-link {
  color: var(--st-green) !important;
  text-decoration-color: rgba(66, 201, 31, 0.45);
}

.login-screen a:hover,
.login-screen a:focus,
.login-screen .btn-link:hover,
.login-screen .btn-link:focus {
  color: #7ee868 !important;
  text-decoration-color: currentColor;
}

.login-screen .btn-link,
.login-screen .btn-link:hover,
.login-screen .btn-link:focus,
.login-screen .btn-link:active {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

.admin-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(2px);
  pointer-events: auto;
}

.admin-loading-overlay.d-none {
  display: none !important;
}

.admin-loading-card {
  display: grid;
  min-width: 220px;
  gap: 0.75rem;
  justify-items: center;
  padding: 1.5rem;
  border: 1px solid var(--tblr-border-color);
  border-radius: var(--tblr-border-radius-lg);
  background: var(--tblr-bg-surface);
  box-shadow: var(--tblr-shadow-lg);
  text-align: center;
}

.btn-loading {
  pointer-events: none;
}

.dashboard-illustration {
  position: relative;
  width: 205px;
  height: 156px;
  overflow: hidden;
  border-radius: 0.5rem;
  background:
    radial-gradient(circle at 50% 35%, rgba(38, 201, 31, 0.09), transparent 34%),
    linear-gradient(180deg, #f7fafd 0%, #eef4fb 100%);
}

.dashboard-illustration .check {
  position: absolute;
  top: 34px;
  left: 77px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: var(--tblr-primary);
  box-shadow: 0 10px 24px rgba(38, 201, 31, 0.24);
  font-size: 1.7rem;
}

.dashboard-illustration .person,
.dashboard-illustration .scope {
  position: absolute;
  display: block;
}

.dashboard-illustration .person::before,
.dashboard-illustration .person::after {
  position: absolute;
  display: block;
  content: "";
}

.dashboard-illustration .person-left {
  bottom: 26px;
  left: 36px;
  width: 18px;
  height: 52px;
  border-radius: 14px 14px 4px 4px;
  background: #f59f00;
  transform: rotate(-28deg);
}

.dashboard-illustration .person-left::before {
  top: -18px;
  left: 2px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #232e3c;
}

.dashboard-illustration .person-right {
  right: 52px;
  bottom: 23px;
  width: 20px;
  height: 54px;
  border-radius: 14px 14px 4px 4px;
  background: var(--tblr-primary);
  transform: rotate(22deg);
}

.dashboard-illustration .person-right::before {
  top: -16px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #232e3c;
}

.dashboard-illustration .scope {
  right: 20px;
  bottom: 23px;
  width: 34px;
  height: 74px;
  border-radius: 8px;
  background: linear-gradient(180deg, #dfe7ef, #aebdcc);
  transform: rotate(-12deg);
}

.sparkline,
.mini-chart,
.traffic-chart,
.location-map {
  overflow: hidden;
  border-radius: var(--tblr-border-radius);
}

.sparkline-line {
  height: 66px;
  background:
    linear-gradient(155deg, transparent 0 16%, rgba(38, 201, 31, 0.95) 16% 19%, transparent 19% 28%, rgba(38, 201, 31, 0.95) 28% 31%, transparent 31% 43%, rgba(38, 201, 31, 0.95) 43% 46%, transparent 46% 58%, rgba(38, 201, 31, 0.95) 58% 61%, transparent 61% 74%, rgba(38, 201, 31, 0.95) 74% 77%, transparent 77%),
    repeating-linear-gradient(90deg, transparent 0 28px, rgba(98, 105, 118, 0.26) 28px 30px, transparent 30px 44px);
  background-color: #f7fafd;
}

.gauge-wrap {
  display: flex;
  justify-content: center;
}

.gauge {
  position: relative;
  display: grid;
  width: 148px;
  height: 82px;
  place-items: end center;
  color: var(--tblr-body-color);
  font-size: 1.5rem;
}

.gauge::before {
  position: absolute;
  inset: 0;
  content: "";
  border-radius: 148px 148px 0 0;
  background: conic-gradient(from 270deg at 50% 100%, var(--tblr-primary) 0 140deg, #e9edf2 140deg 180deg, transparent 180deg);
  mask: radial-gradient(circle at 50% 100%, transparent 0 51px, #000 52px);
}

.gauge span {
  position: relative;
  margin-bottom: 0.45rem;
}

.mini-chart {
  height: 34px;
  margin-top: 0.75rem;
  background:
    linear-gradient(160deg, transparent 0 13%, rgba(38, 201, 31, 0.9) 13% 18%, transparent 18% 32%, rgba(38, 201, 31, 0.9) 32% 36%, transparent 36% 51%, rgba(38, 201, 31, 0.9) 51% 56%, transparent 56% 70%, rgba(38, 201, 31, 0.9) 70% 74%, transparent 74%),
    linear-gradient(180deg, rgba(38, 201, 31, 0.12), rgba(38, 201, 31, 0.02));
}

.traffic-chart {
  display: flex;
  align-items: end;
  height: 236px;
  gap: 0.42rem;
  padding: 1rem 0.5rem 0;
  background:
    repeating-linear-gradient(0deg, transparent 0 39px, #eef2f6 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 104px, #eef2f6 104px 105px);
}

.traffic-chart span {
  position: relative;
  flex: 1;
  min-width: 6px;
  border-radius: 3px 3px 0 0;
  background: var(--tblr-primary);
}

.dashboard-bars span small {
  position: absolute;
  right: 50%;
  bottom: -1.35rem;
  transform: translateX(50%);
  color: var(--tblr-secondary);
  font-size: 0.7rem;
  white-space: nowrap;
}

.traffic-chart span:nth-child(3n) {
  background: #7ee868;
}

.traffic-chart span:nth-child(5n) {
  background: var(--st-green);
}

.backtest-chart-wrap {
  position: relative;
  width: 100%;
  overflow-x: auto;
}

.backtest-chart {
  width: 100%;
  min-width: 620px;
  height: auto;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--tblr-secondary);
  font-size: 0.875rem;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.chart-legend-line {
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: #8a98a8;
}

.chart-legend-equity {
  height: 3px;
  background: var(--st-green);
}

.chart-axis {
  stroke: var(--tblr-border-color);
  stroke-width: 1;
}

.chart-grid-line {
  stroke: var(--tblr-border-color);
  stroke-width: 1;
  opacity: 0.45;
}

.chart-label {
  fill: var(--tblr-secondary);
  font-size: 13px;
}

.chart-scale-label {
  fill: var(--tblr-secondary);
  font-size: 12px;
}

.chart-value-label {
  fill: var(--tblr-body-color);
  font-size: 13px;
  font-weight: 700;
}

.chart-dd-label {
  fill: #8a98a8;
  font-size: 12px;
  font-weight: 700;
}

.chart-equity-area {
  fill: rgba(47, 179, 68, 0.12);
}

.chart-equity-line {
  stroke: var(--st-green);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-equity-dot {
  fill: var(--st-green);
  stroke: var(--tblr-bg-surface);
  stroke-width: 2;
}

.chart-dd-line {
  stroke: #8a98a8;
  stroke-width: 2;
  opacity: 0.76;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-dd-dot {
  fill: #8a98a8;
  stroke: var(--tblr-bg-surface);
  stroke-width: 2;
}

.chart-hover-zone {
  fill: transparent;
  cursor: crosshair;
}

.chart-guide-line {
  opacity: 0;
  stroke: var(--tblr-secondary);
  stroke-width: 1;
  stroke-dasharray: 4 4;
  transition: opacity 0.16s ease;
}

.chart-active-dot {
  opacity: 0;
  fill: var(--st-green);
  stroke: var(--tblr-bg-surface);
  stroke-width: 3;
  filter: drop-shadow(0 4px 10px rgba(47, 179, 68, 0.28));
  transition: opacity 0.16s ease;
}

.chart-floating-tooltip {
  position: absolute;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  width: 218px;
  padding: 0.75rem;
  border: 1px solid var(--tblr-border-color);
  border-radius: 8px;
  background: var(--tblr-bg-surface);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
  color: var(--tblr-body-color);
  font-size: 12px;
  transition: opacity 0.16s ease;
}

.chart-hover-point:hover .chart-guide-line,
.chart-hover-point:focus .chart-guide-line,
.chart-hover-point:hover .chart-active-dot,
.chart-hover-point:focus .chart-active-dot {
  opacity: 1;
}

.chart-floating-tooltip.is-visible {
  opacity: 1;
}

.chart-tooltip-title {
  margin-bottom: 0.45rem;
  font-weight: 700;
}

.chart-tooltip-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  line-height: 1.55;
}

.chart-tooltip-row span {
  color: var(--tblr-secondary);
}

.setup-steps {
  display: grid;
  gap: 1rem;
}

.setup-step {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 0.85rem;
  position: relative;
}

.setup-step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 2.25rem;
  bottom: -1rem;
  left: 1.125rem;
  width: 1px;
  background: var(--tblr-border-color);
}

.setup-step-marker {
  position: relative;
  z-index: 1;
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 50%;
  background: var(--tblr-primary-lt);
  color: var(--tblr-primary);
  font-weight: 700;
}

.setup-step-title {
  font-size: 1rem;
}

.setup-step-list {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
}

.setup-step-list li + li {
  margin-top: 0.25rem;
}

.risk-param-note {
  margin-left: 0.25rem;
  color: var(--tblr-secondary);
  font-size: 0.72rem;
  line-height: 1;
  white-space: nowrap;
}

.location-map {
  position: relative;
  height: 236px;
  background:
    radial-gradient(circle at 30% 44%, rgba(38, 201, 31, 0.18), transparent 25%),
    radial-gradient(circle at 66% 36%, rgba(38, 201, 31, 0.2), transparent 28%),
    #f7fafd;
}

.map-shape {
  position: absolute;
  border-radius: 45% 55% 40% 60%;
  background: #42c91f;
}

.map-shape-1 {
  top: 54px;
  left: 40px;
  width: 112px;
  height: 68px;
  transform: rotate(-12deg);
}

.map-shape-2 {
  top: 76px;
  right: 42px;
  width: 156px;
  height: 74px;
  transform: rotate(9deg);
}

.map-shape-3 {
  right: 118px;
  bottom: 44px;
  width: 84px;
  height: 50px;
  transform: rotate(-18deg);
}

@media (max-width: 767.98px) {
  .container-xl {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .navbar > .container-xl {
    min-height: 4rem;
  }

  .navbar-brand-image {
    width: 124px;
  }

  .navbar-collapse,
  .navbar-collapse .navbar,
  .navbar-collapse .container-xl,
  #adminNav {
    max-width: 100%;
    overflow-x: hidden;
  }

  #adminNav {
    width: 100%;
    padding: 0.5rem 0;
  }

  #adminNav .nav-item {
    width: 100%;
  }

  #adminNav .nav-link {
    border-radius: 0.5rem;
    padding: 0.65rem 0.75rem;
  }

  .page-body {
    padding-top: 1rem;
  }

  .page-header {
    margin: 0 0 1.5rem;
  }

  .page-header .row {
    row-gap: 0.75rem;
  }

  .page-header .col-auto {
    width: 100%;
    margin-left: 0 !important;
  }

  .page-header .btn-list,
  .card-footer .btn-list {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .page-header .btn,
  .card-footer .btn {
    width: 100%;
    justify-content: center;
  }

  .page-title {
    font-size: 1.35rem;
    line-height: 1.22;
  }

  .page-pretitle,
  .subheader {
    font-size: 0.68rem;
    letter-spacing: 0.03em;
  }

  .text-secondary {
    font-size: 0.9rem;
  }

  .admin-toolbar {
    display: grid !important;
    grid-template-columns: 1fr;
    align-items: stretch !important;
    gap: 0.5rem;
  }

  .page-header + .admin-toolbar {
    margin-top: 0.75rem;
  }

  .page-header + .card,
  .page-header + .row,
  .page-header + form {
    margin-top: 0.75rem;
  }

  .admin-toolbar .input-icon {
    width: 100%;
    min-width: 0 !important;
  }

  .admin-toolbar .form-select,
  .admin-toolbar .btn {
    width: 100% !important;
  }

  .card {
    border-radius: 0.5rem;
  }

  .card-body,
  .card-footer,
  .card-header {
    padding: 1rem;
  }

  .card-header {
    align-items: stretch;
    flex-direction: column;
    gap: 0.75rem;
  }

  .card-actions,
  .card-actions .btn {
    width: 100%;
  }

  .dashboard-result-filters {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .dashboard-result-filters .form-select,
  .dashboard-result-filters .form-select[data-dashboard-results-config] {
    flex: 1 1 13.5rem;
    width: auto;
    min-width: 0;
  }

  .row-cards {
    --tblr-gutter-y: 0.75rem;
  }

  .input-group {
    align-items: stretch;
    flex-direction: column;
  }

  .input-group > .form-control,
  .input-group > .btn {
    width: 100%;
    border-radius: var(--tblr-border-radius) !important;
  }

  .input-group > .btn {
    margin-top: 0.5rem;
  }

  .table-responsive {
    overflow: visible;
    padding: 0.5rem;
  }

  .admin-responsive-table,
  .admin-responsive-table thead,
  .admin-responsive-table tbody,
  .admin-responsive-table tr,
  .admin-responsive-table td {
    display: block;
    width: 100%;
  }

  .admin-responsive-table {
    border-collapse: separate;
    border-spacing: 0;
  }

  .admin-responsive-table thead,
  .admin-responsive-table thead tr,
  .admin-responsive-table thead th {
    display: none;
  }

  .admin-responsive-table tbody {
    display: grid;
    gap: 0.75rem;
    padding: 0;
  }

  .admin-responsive-table tbody tr {
    margin: 0;
    padding: 0.75rem 0.65rem;
    border: 0;
    border-radius: 0.5rem;
    background: var(--tblr-bg-surface);
    box-shadow: inset 0 0 0 1px var(--tblr-border-color);
  }

  .admin-responsive-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .admin-responsive-table tbody td {
    display: grid;
    grid-template-columns: minmax(6.75rem, 36%) minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
    padding: 0.35rem 0 !important;
    border: 0;
    white-space: normal;
    word-break: break-word;
  }

  .admin-responsive-table tbody td,
  .admin-responsive-table tbody td:first-child,
  .admin-responsive-table tbody td:not(.admin-wrap-col),
  .admin-responsive-table tbody td.admin-wrap-col {
    min-width: 0;
    white-space: normal;
  }

  .admin-responsive-table tbody td:first-child {
    padding-top: 0 !important;
    padding-left: 0 !important;
  }

  .admin-responsive-table tbody td:last-child {
    padding-bottom: 0 !important;
  }

  .admin-responsive-table tbody td::before {
    content: attr(data-label);
    color: var(--tblr-secondary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
  }

  .admin-responsive-table tbody td[data-label=""],
  .admin-responsive-table tbody td:not([data-label]) {
    grid-template-columns: 1fr;
  }

  .admin-responsive-table tbody td[data-label=""]::before,
  .admin-responsive-table tbody td:not([data-label])::before {
    content: none;
  }

  .admin-responsive-table tbody td[data-label="Actions"] {
    grid-template-columns: 1fr;
    padding-top: 0.75rem;
  }

  .admin-responsive-table tbody td[data-label="Actions"]::before {
    content: none;
  }

  .admin-responsive-table .admin-actions,
  .admin-responsive-table .btn-list {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .admin-responsive-table .btn,
  .admin-responsive-table .form-select,
  .admin-responsive-table .form-control {
    width: 100%;
  }

  .admin-responsive-table .badge {
    width: max-content;
    max-width: 100%;
  }

  .font-monospace {
    white-space: normal;
    word-break: break-word;
  }

  .dropdown-menu {
    max-width: calc(100vw - 2rem);
  }

  .view-json {
    max-height: 320px;
    font-size: 0.78rem;
  }

  .modal-dialog {
    margin-right: 0.75rem;
    margin-left: 0.75rem;
  }

  .modal-footer .row {
    row-gap: 0.5rem;
  }

  .dashboard-illustration {
    width: 100%;
    max-width: 205px;
    margin: 0 auto;
  }

  .traffic-chart,
  .location-map {
    height: 180px;
  }

  .setup-step {
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: 0.75rem;
  }

  .setup-step-marker {
    width: 2rem;
    height: 2rem;
  }

  .setup-step:not(:last-child)::before {
    top: 2rem;
    left: 1rem;
  }
}

@media (max-width: 575.98px) {
  .container-xl {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  .navbar-brand-image {
    width: 116px;
  }

  .login-logo {
    width: 150px;
  }

  .card-body,
  .card-footer,
  .card-header {
    padding: 0.875rem;
  }

  .admin-responsive-table tbody {
    padding: 0;
  }

  .admin-responsive-table tbody tr {
    padding: 0.65rem;
  }

  .admin-responsive-table tbody td {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .admin-responsive-table tbody td::before {
    font-size: 0.68rem;
  }

  .h2,
  .card .h2 {
    font-size: 1.2rem;
  }

.btn {
  white-space: normal;
}
}

.portal-faq-item summary {
  cursor: pointer;
  list-style: none;
}

.portal-faq-item summary::-webkit-details-marker {
  display: none;
}

.portal-faq-item summary .ti-chevron-down {
  transition: transform 0.16s ease;
}

.portal-faq-item[open] summary .ti-chevron-down {
  transform: rotate(180deg);
}
