﻿@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --ss-midnight: #031D4F;
  --ss-cyan: #12D8FF;
  --ss-electric: #2D7DFF;
  --ss-violet: #6C5CFF;
  --ss-cloud: #FFFFFF;
  --ss-ice: #F7F9FC;
  --ss-slate: #667085;
  --ss-graphite: #1E293B;
  --ss-deep: var(--ss-midnight);
  --ss-teal: var(--ss-cyan);
  --ss-green: #18B26B;
  --ss-orange: var(--ss-violet);
  --ss-purple: var(--ss-violet);
  --ss-neutral: #D8E0EB;
  --ss-light: var(--ss-ice);
  --ss-body: var(--ss-cloud);
  --ss-shadow: 0 20px 45px rgba(3, 29, 79, 0.14);
  --ss-page-gradient:
    radial-gradient(circle at 12% 10%, rgba(108, 92, 255, 0.12), transparent 34%),
    radial-gradient(circle at 88% 8%, rgba(18, 216, 255, 0.14), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f7f9fc 56%, #edf3fa 100%);
  --ss-brand-gradient:
    radial-gradient(circle at 18% 18%, rgba(108, 92, 255, 0.26), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(18, 216, 255, 0.22), transparent 30%),
    linear-gradient(160deg, #031D4F 0%, #07265A 54%, #06193D 100%);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  color: var(--ss-slate);
  background:
    radial-gradient(circle at 12% 0%, rgba(108, 92, 255, 0.08), transparent 28%),
    radial-gradient(circle at 88% 0%, rgba(18, 216, 255, 0.1), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #f7f9fc 58%, #edf3fa 100%);
  min-height: 100vh;
}

p,
label,
button,
a,
input,
select,
textarea {
  font-family: inherit;
}

.ss-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ss-page-gradient);
}

.ss-header-stack {
  position: sticky;
  top: 0;
  z-index: 30;
}

.ss-topbar {
  position: relative;
  background:
    radial-gradient(circle at 15% -10%, rgba(108, 92, 255, 0.28), transparent 30%),
    radial-gradient(circle at 86% -10%, rgba(18, 216, 255, 0.16), transparent 24%),
    linear-gradient(180deg, #031D4F 0%, #062346 100%);
  padding: 0.8rem 1.25rem 0.3rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "brand actions"
    "nav nav";
  column-gap: 1rem;
  row-gap: 0.35rem;
  align-items: center;
  border-bottom: 1px solid rgba(18, 216, 255, 0.18);
  box-shadow: 0 10px 28px rgba(3, 29, 79, 0.18);
  z-index: 2;
}

.ss-brand {
  grid-area: brand;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-self: start;
  align-self: center;
  grid-row: 1 / span 2;
  position: relative;
  z-index: 3;
}

.ss-logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ss-logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ss-brand-name {
  display: flex;
  align-items: baseline;
  gap: 0.02em;
  font-size: 1.72rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.ss-brand-name-primary {
  color: #ffffff;
}

.ss-brand-name-accent {
  color: var(--ss-teal);
}

.ss-tagline {
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(247, 249, 252, 0.78);
}

.ss-topbar-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  justify-self: end;
  align-self: start;
  gap: 0.75rem;
}

.ss-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(18, 216, 255, 0.2);
  backdrop-filter: blur(10px);
}

.ss-search-scope {
  border: none;
  background: transparent;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(247, 249, 252, 0.92);
  padding: 0.2rem 0.4rem;
  outline: none;
}

.ss-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: #ffffff;
  border-radius: 999px;
  padding-left: 0.5rem;
  box-shadow: 0 8px 20px rgba(3, 29, 79, 0.12);
}

.ss-search-input {
  border: none;
  outline: none;
  font-size: 0.85rem;
  padding: 0.3rem 0.4rem;
  min-width: 160px;
  background: transparent;
}

.ss-search-icon {
  border: none;
  background: transparent;
  border-radius: 999px;
  padding: 0.25rem 0.45rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--ss-midnight);
}

.ss-search-icon:hover {
  background: rgba(18, 216, 255, 0.14);
  color: var(--ss-electric);
}

.ss-cta,
.ss-outline {
  border-radius: 999px;
  padding: 0.55rem 1.4rem;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.ss-cta {
  background: linear-gradient(90deg, var(--ss-violet) 0%, var(--ss-cyan) 100%);
  color: white;
  box-shadow: 0 10px 24px rgba(108, 92, 255, 0.26);
}

.ss-cta:hover,
.ss-outline:hover {
  transform: translateY(-1px);
}

.ss-outline {
  border-color: rgba(18, 216, 255, 0.75);
  color: var(--ss-cyan);
  background: rgba(255, 255, 255, 0.04);
}

.ss-user-menu {
  position: relative;
}

.ss-user-trigger {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ss-user-trigger:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(3, 29, 79, 0.24);
  background: rgba(255, 255, 255, 0.14);
}

.ss-user-trigger svg {
  width: 20px;
  height: 20px;
}

.ss-user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  min-width: 220px;
  background: #ffffff;
  border: 1px solid rgba(3, 29, 79, 0.12);
  border-radius: 0.9rem;
  box-shadow: 0 18px 45px rgba(3, 29, 79, 0.18);
  padding: 0.55rem;
  z-index: 30;
}

.ss-user-name {
  font-size: 0.86rem;
  color: var(--ss-midnight);
  font-weight: 600;
  padding: 0.45rem 0.6rem 0.55rem;
  border-bottom: 1px solid rgba(3, 29, 79, 0.08);
  margin-bottom: 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ss-user-signout {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  font-size: 0.9rem;
  color: var(--ss-slate);
  padding: 0.45rem 0.6rem;
  border-radius: 0.55rem;
  cursor: pointer;
}

.ss-user-signout:hover {
  background: rgba(18, 216, 255, 0.08);
  color: var(--ss-electric);
}

.ss-hamburger {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--ss-light);
  display: grid;
  place-items: center;
  position: relative;
  cursor: pointer;
  transition: background 0.2s ease;
}

.ss-hamburger span {
  width: 18px;
  height: 2px;
  background: var(--ss-slate);
  display: block;
  margin: 2px 0;
  transition: transform 0.3s ease;
}

.ss-menu {
  background: var(--ss-body);
  border-bottom: 1px solid rgba(3, 29, 79, 0.08);
  transition: max-height 0.3s ease;
  overflow: hidden;
  max-height: 0;
}

.ss-menu-open {
  max-height: 480px;
}

.ss-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem 1.5rem 1.25rem;
}

.ss-menu-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ss-menu-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ss-midnight);
}

.ss-menu-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ss-graphite);
  padding: 0.45rem 0.2rem;
  text-decoration: none;
  border-radius: 0.5rem;
}

.ss-menu-link.active {
  color: var(--ss-midnight);
  background: rgba(18, 216, 255, 0.1);
}

.ss-menu-link:hover {
  color: var(--ss-electric);
}

.ss-nav {
  grid-area: nav;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  background: transparent;
  border-bottom: none;
  margin-top: 0;
  padding: 0 0 0.2rem;
  position: relative;
  z-index: 1;
}

.ss-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
}

@media (max-width: 1440px) {
  .ss-nav {
    justify-content: flex-end;
  }

  .ss-nav-list {
    justify-content: flex-end;
  }
}

.ss-nav-item {
  position: relative;
}

.ss-nav-trigger {
  border: none;
  background: none;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: rgba(247, 249, 252, 0.92);
  padding: 0.45rem 0 0.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.ss-arrow {
  transition: transform 0.3s ease;
  display: inline-flex;
}

.ss-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 10px);
  width: 220px;
  background: #fff;
  border-radius: 0.9rem;
  box-shadow: 0 20px 45px rgba(3, 29, 79, 0.18);
  padding: 1rem 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  min-width: 200px;
}

.ss-dropdown-open,
.ss-nav-item:hover .ss-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.ss-nav-item:hover .ss-arrow {
  transform: rotateX(180deg);
}

.ss-dropdown-link {
  display: block;
  padding: 0.45rem 1rem;
  color: var(--ss-graphite);
  font-weight: 500;
  text-decoration: none;
  border-radius: 0.65rem;
}

.ss-dropdown-link:hover {
  background: rgba(18, 216, 255, 0.1);
  color: var(--ss-midnight);
}

.ss-menu-note {
  font-size: 0.9rem;
  color: #6a7280;
  padding-top: 0.35rem;
}
.ss-content {
  flex: 1;
  padding: 2rem clamp(1rem, 4vw, 3rem) 2.5rem;
}

.ss-content-inner {
  background: #fff;
  border-radius: 2rem;
  padding: 2.5rem;
  box-shadow: var(--ss-shadow);
  min-height: calc(100vh - 10rem);
}

.ss-content-builder {
  padding: 0;
  display: flex;
  min-height: 0;
}

.ss-content-inner-builder {
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  background: transparent;
  min-height: 0;
  display: flex;
  flex: 1;
}

.ss-content-embed {
  padding: 0.5rem;
}

.ss-content-inner-embed {
  border-radius: 0.75rem;
  padding: 0.75rem;
  min-height: 0;
}

.ss-report-builder-page {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.ss-report-builder-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(3, 29, 79, 0.12);
  background: #ffffff;
}

.ss-report-builder-title {
  margin: 0;
  color: var(--ss-deep);
  font-size: 1.3rem;
  font-weight: 700;
}

.ss-report-builder-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.ss-report-builder-surface {
  flex: 1;
  min-height: 0;
  display: flex;
  background: #ffffff;
}

#open-report-builder-designer {
  position: relative;
  width: 100%;
  height: calc(100vh - 11rem);
  min-height: 760px;
  flex: 1;
}

.ss-report-run-shell {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.ss-report-viewer-host {
  border: 1px solid rgba(3, 29, 79, 0.12);
  border-radius: 0.85rem;
  overflow: hidden;
  background: #ffffff;
  min-height: 680px;
  height: calc(100vh - 260px);
}

@media (max-width: 1023px) {
  #open-report-builder-designer {
    height: calc(100vh - 12.5rem);
    min-height: 620px;
  }

  .ss-report-viewer-host {
    min-height: 560px;
    height: calc(100vh - 230px);
  }
}

.ss-auth-loading {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--ss-page-gradient);
  color: var(--ss-deep);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
}

.ss-auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 2.8vw, 2.5rem);
  background: var(--ss-page-gradient);
}

.ss-auth-card {
  width: min(100%, 960px);
  display: grid;
  grid-template-columns: minmax(270px, 1fr) minmax(360px, 1.06fr);
  border-radius: 1.35rem;
  overflow: hidden;
  border: 1px solid rgba(3, 29, 79, 0.07);
  box-shadow: 0 10px 34px rgba(3, 29, 79, 0.12), 0 26px 56px rgba(3, 29, 79, 0.16);
  background: #ffffff;
}

.ss-auth-brand-panel {
  position: relative;
  padding: 2.8rem clamp(1.8rem, 3vw, 2.6rem);
  background: var(--ss-brand-gradient);
  color: #F7F9FC;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.2rem;
}

.ss-auth-brand-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: repeating-linear-gradient(
    130deg,
    rgba(255, 255, 255, 0.26),
    rgba(255, 255, 255, 0.26) 1px,
    transparent 1px,
    transparent 24px
  );
}

.ss-auth-brand-lockup {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ss-auth-full-logo {
  width: min(100%, 390px);
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.24));
}

.ss-auth-brand-logo {
  width: 76px;
  height: 76px;
  border-radius: 1rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
}

.ss-auth-brand-name {
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: 1.52rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #ffffff;
}

.ss-auth-brand-tagline {
  margin-top: 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(205, 232, 255, 0.94);
}

.ss-auth-brand-copy {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 36ch;
  line-height: 1.55;
  color: rgba(234, 243, 255, 0.94);
}

.ss-auth-form-panel {
  padding: clamp(2rem, 3vw, 2.9rem) clamp(1.45rem, 3vw, 2.6rem);
  background: linear-gradient(180deg, #ffffff 0%, #F7F9FC 100%);
}

.ss-auth-header {
  margin-bottom: 1.3rem;
}

.ss-auth-title {
  font-size: 1.62rem;
  font-weight: 700;
  color: var(--ss-midnight);
  letter-spacing: 0.01em;
}

.ss-auth-subtitle {
  margin-top: 0.35rem;
  font-size: 0.94rem;
  color: var(--ss-slate);
  opacity: 0.88;
}

.ss-auth-field {
  margin-bottom: 1rem;
}

.ss-auth-label {
  display: inline-block;
  font-size: 0.89rem;
  font-weight: 600;
  margin-bottom: 0.42rem;
  color: #1E293B;
}

.ss-auth-input-wrap {
  position: relative;
}

.ss-auth-field-icon {
  position: absolute;
  left: 0.84rem;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: #667085;
  pointer-events: none;
}

.ss-auth-field-icon svg,
.ss-auth-password-toggle svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.ss-auth-input {
  border: 1px solid rgba(3, 29, 79, 0.16);
  background: #ffffff;
  border-radius: 0.62rem;
  padding: 0.67rem 0.78rem 0.67rem 2.45rem;
  color: var(--ss-graphite);
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ss-auth-input:focus {
  border-color: #2D7DFF;
  box-shadow:
    0 0 0 3px rgba(18, 216, 255, 0.16),
    0 0 0 5px rgba(108, 92, 255, 0.08);
}

.ss-auth-input-password {
  padding-right: 2.55rem;
}

.ss-auth-password-toggle {
  position: absolute;
  right: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #667085;
  width: 25px;
  height: 25px;
  border-radius: 0.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.ss-auth-password-toggle:hover {
  color: var(--ss-midnight);
  background: rgba(3, 29, 79, 0.08);
}

.ss-auth-submit {
  margin-top: 0.6rem;
  border: none;
  border-radius: 0.6rem;
  padding: 0.74rem 1.2rem;
  font-weight: 600;
  background: linear-gradient(90deg, #6C5CFF 0%, #12D8FF 100%);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(108, 92, 255, 0.24);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.ss-auth-submit:hover {
  background: linear-gradient(90deg, #5F50FF 0%, #10CDEE 100%);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(108, 92, 255, 0.28);
}

@media (max-width: 960px) {
  .ss-auth-card {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  .ss-auth-brand-panel {
    padding: 1.8rem 1.6rem 1.6rem;
  }

  .ss-auth-brand-copy {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .ss-auth-shell {
    padding: 0.8rem;
  }

  .ss-auth-full-logo {
    width: min(100%, 320px);
  }
}

@media (min-width: 1024px) {
  .ss-nav {
    max-height: none;
  }

  .ss-menu {
    max-height: none;
  }

  .ss-hamburger {
    display: none;
  }
}

@media (max-width: 768px) {
  .ss-content-inner {
    border-radius: 1.5rem;
    padding: 1.75rem;
  }

  .ss-content-builder {
    padding: 0;
  }

  .ss-content-inner-builder {
    border-radius: 0;
    padding: 0;
  }

  .ss-menu-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}

.form-control,
.btn,
.table {
  border-radius: 0.65rem;
}

.table thead th {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.table tbody tr:hover {
  background: rgba(18, 216, 255, 0.08);
}

.ss-customer-table td.ss-name-cell {
  display: flex;
  align-items: center;
}

.ss-customer-table .ss-name-link {
  color: #233348;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.18s ease;
}

.ss-customer-table .ss-name-link:hover {
  color: #2D7DFF;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ss-customer-table .ss-edit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
  color: #2D7DFF;
  background: #e6f7ff;
  border-radius: 6px;
  padding: 3px 5px;
  margin-left: 6px;
  text-decoration: none;
  flex-shrink: 0;
}

.ss-customer-table .ss-edit-btn:hover {
  background: #2D7DFF;
  color: #ffffff;
}

.ss-customer-table tbody tr:hover > td {
  background-color: #edf7ff;
}

.ss-customer-table tbody tr:hover .ss-edit-btn {
  opacity: 1;
}

.ss-smart-table .ss-smart-link-cell {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
}

.ss-smart-table .ss-smart-link {
  color: #233348;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.18s ease;
}

.ss-smart-table .ss-smart-link:hover {
  color: #2D7DFF;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ss-smart-table .ss-backlog-count-link {
  display: inline-flex;
  min-width: 2rem;
  justify-content: center;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(45, 125, 255, 0.35);
  color: #0b5f87;
  background: #EEF9FF;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.ss-smart-table .ss-backlog-count-link:hover {
  color: #ffffff;
  background: #2D7DFF;
  border-color: #2D7DFF;
}

.ss-smart-table .ss-smart-edit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
  color: #2D7DFF;
  background: #e6f7ff;
  border-radius: 6px;
  padding: 3px 5px;
  margin-left: 6px;
  text-decoration: none;
  flex-shrink: 0;
}

.ss-smart-table .ss-smart-edit-btn:hover {
  background: #2D7DFF;
  color: #ffffff;
}

.ss-smart-table tbody tr:hover > td,
.ss-smart-table tbody tr:focus-within > td {
  background-color: #edf7ff;
}

.ss-smart-table tbody tr:hover .ss-smart-edit-btn,
.ss-smart-table tbody tr:focus-within .ss-smart-edit-btn {
  opacity: 1;
}

.ss-smart-title-trailing {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.ss-help-modal-trigger {
  width: 1.15rem;
  height: 1.15rem;
  border: 1px solid rgba(3, 29, 79, 0.28);
  border-radius: 999px;
  background: #ffffff;
  color: #1E293B;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(3, 29, 79, 0.12);
  transform: translateY(-1px);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.ss-help-modal-trigger:hover {
  background: #EEF9FF;
  border-color: rgba(45, 125, 255, 0.65);
  color: #2D7DFF;
  box-shadow: 0 3px 8px rgba(45, 125, 255, 0.18);
}

.ss-help-modal-trigger:focus-visible {
  outline: 2px solid #2D7DFF;
  outline-offset: 2px;
}

.ss-help-modal-shell {
  position: fixed;
  inset: 0;
  z-index: 2650;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2rem);
  background: rgba(8, 18, 32, 0.58);
  backdrop-filter: blur(3px);
}

.ss-help-modal-dialog {
  width: min(620px, 94vw);
  max-height: min(84vh, 720px);
  display: flex;
  flex-direction: column;
  overflow: auto;
  border-radius: 1rem;
  border: 1px solid rgba(3, 29, 79, 0.14);
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.ss-help-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem 0.95rem;
  border-bottom: 1px solid rgba(3, 29, 79, 0.1);
  background: linear-gradient(180deg, #ffffff 0%, #F7F9FC 100%);
}

.ss-help-modal-label {
  margin-bottom: 0.2rem;
  color: #2D7DFF;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.ss-help-modal-title {
  margin: 0;
  color: #031D4F;
  font-size: 1.18rem;
  font-weight: 750;
  line-height: 1.25;
}

.ss-help-modal-close {
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(3, 29, 79, 0.12);
  border-radius: 999px;
  background: #ffffff;
  color: #667085;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.ss-help-modal-close:hover {
  background: #F1FBFF;
  color: #031D4F;
}

.ss-help-modal-body {
  padding: 1.2rem 1.25rem 1.25rem;
  color: #1E293B;
  font-size: 0.98rem;
  line-height: 1.55;
}

.ss-smart-settings-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 1050;
}

.ss-smart-settings-modal-wrap {
  position: fixed;
  inset: 0;
  z-index: 1060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.ss-smart-settings-modal {
  width: min(900px, 96vw);
  max-height: 88vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ss-smart-settings-modal .card-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background-color: #ffffff;
  flex-shrink: 0;
}

.ss-smart-settings-modal .card-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.ss-smart-view-name-input {
  min-width: 240px;
  max-width: 360px;
}

.ss-smart-view-select {
  min-width: 240px;
  max-width: 360px;
}

.ss-smart-view-picker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.3rem 0.55rem 0.3rem 0.7rem;
  border: 1px solid rgba(3, 29, 79, 0.12);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
  box-shadow: 0 1px 2px rgba(3, 29, 79, 0.08);
}

.ss-smart-view-picker-label {
  margin: 0;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #4a6079;
  user-select: none;
}

.ss-smart-view-select-header {
  min-width: 240px;
  max-width: 420px;
  border-radius: 999px;
  border-color: rgba(3, 29, 79, 0.18);
  background-color: #ffffff;
  font-weight: 500;
  color: #031D4F;
}

.ss-smart-view-select-header:focus {
  border-color: rgba(13, 110, 253, 0.55);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

@media (max-width: 576px) {
  .ss-smart-view-picker {
    width: 100%;
    justify-content: space-between;
  }

  .ss-smart-view-select-header {
    min-width: 0;
    width: 100%;
    max-width: none;
  }
}

.ss-smart-settings-column-row {
  border: 1px solid rgba(3, 29, 79, 0.08);
  border-radius: 8px;
  padding: 0.4rem 0.55rem;
  background: #ffffff;
}

.ss-scriban-editor-shell {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  overflow: visible;
}

.ss-scriban-editor-grid {
  display: flex;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(3, 29, 79, 0.16);
  border-radius: 0.85rem;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.ss-scriban-editor-gutter {
  margin: 0;
  padding: 0.85rem 0.55rem 0.85rem 0.8rem;
  background: linear-gradient(180deg, #f3f7fc 0%, #eef4fb 100%);
  color: #8a97ad;
  border-right: 1px solid rgba(3, 29, 79, 0.08);
  text-align: right;
  user-select: none;
  overflow: hidden;
  font-family: Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.92rem;
  line-height: 1.55;
  white-space: pre;
  tab-size: 4;
}

.ss-scriban-editor-code {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.ss-scriban-editor-highlights,
.ss-scriban-editor-input {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0.85rem 0.9rem;
  font-family: Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.92rem;
  line-height: 1.55;
  tab-size: 4;
  -moz-tab-size: 4;
  white-space: pre;
  overflow: auto;
}

.ss-scriban-editor-highlights {
  pointer-events: none;
  color: #1E293B;
  background: transparent;
}

.ss-scriban-editor-input {
  border: 0;
  resize: none;
  outline: none;
  background: transparent;
  color: transparent;
  caret-color: #031D4F;
}

.ss-scriban-editor-input::selection {
  background: rgba(18, 216, 255, 0.24);
}

.ss-scriban-editor-input::-moz-selection {
  background: rgba(18, 216, 255, 0.24);
}

.ss-scriban-editor-placeholder {
  color: #94a3b8;
  font-style: italic;
}

.ss-scriban-editor-measure {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0.85rem 0.9rem;
  border: 0;
  box-sizing: border-box;
  font-family: Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.92rem;
  line-height: 1.55;
  tab-size: 4;
  -moz-tab-size: 4;
  white-space: pre;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
}

.ss-scriban-editor-delimiter {
  color: #6C5CFF;
  font-weight: 700;
}

.ss-scriban-editor-keyword {
  color: #0b5f87;
  font-weight: 700;
}

.ss-scriban-editor-variable {
  color: #6C5CFF;
  font-weight: 700;
}

.ss-scriban-editor-variable-path {
  color: #0e7490;
  font-weight: 700;
}

.ss-scriban-editor-string {
  color: #1b7f4f;
}

.ss-scriban-editor-number {
  color: #b54708;
}

.ss-scriban-editor-function {
  color: #7c3aed;
}

.ss-scriban-editor-literal {
  color: #b42318;
}

.ss-scriban-editor-operator {
  color: #667085;
}

.ss-scriban-editor-punctuation {
  color: #475467;
}

.ss-scriban-editor-identifier {
  color: #1E293B;
}

.ss-scriban-editor-suggestions {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 30;
  min-width: 18rem;
  max-width: min(34rem, calc(100% - 1rem));
  box-sizing: border-box;
  border: 1px solid rgba(3, 29, 79, 0.14);
  border-radius: 0.85rem;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(3, 29, 79, 0.12);
  overflow: hidden;
}

.ss-scriban-editor-suggestions-header {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid rgba(3, 29, 79, 0.08);
  font-size: 0.82rem;
  font-weight: 600;
  color: #031D4F;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
}

.ss-scriban-editor-suggestions-hint {
  color: #667085;
  font-weight: 500;
}

.ss-scriban-editor-suggestions-list {
  display: grid;
  gap: 0.3rem;
  padding: 0.55rem;
  max-height: 14rem;
  overflow: auto;
}

.ss-scriban-editor-suggestion-item {
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  background: #f9fbff;
  color: #1E293B;
  border-radius: 0.7rem;
  padding: 0.55rem 0.7rem;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.ss-scriban-editor-suggestion-item:hover,
.ss-scriban-editor-suggestion-item:focus {
  background: #eef8ff;
  border-color: rgba(45, 125, 255, 0.3);
  transform: translateY(-1px);
}

.ss-scriban-editor-suggestion-item-selected {
  background: #2D7DFF;
  color: #ffffff;
  border-color: #2D7DFF;
  box-shadow: 0 8px 18px rgba(45, 125, 255, 0.22);
}

.ss-scriban-editor-suggestion-item-selected .ss-scriban-editor-suggestion-detail {
  color: rgba(255, 255, 255, 0.86);
}

.ss-scriban-editor-suggestion-label {
  font-weight: 600;
  font-family: Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9rem;
}

.ss-scriban-editor-suggestion-detail {
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: #667085;
}

.ss-scriban-editor-fallback {
  display: block;
  width: 100%;
  font-family: Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.92rem;
  line-height: 1.55;
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(3, 29, 79, 0.16);
  border-radius: 0.8rem;
  color: #1E293B;
  background: #ffffff;
  resize: vertical;
}

.ss-scriban-editor-fallback:focus {
  border-color: rgba(45, 125, 255, 0.55);
  box-shadow: 0 0 0 0.18rem rgba(18, 216, 255, 0.18);
  outline: none;
}

.ss-code-validation-alert {
  border-width: 1px;
}

.ss-code-validation-message {
  white-space: pre-wrap;
}

.ss-code-validation-snippet {
  border: 1px solid rgba(220, 53, 69, 0.22);
  border-radius: 0.8rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.55);
}

.ss-code-validation-snippet-header {
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid rgba(220, 53, 69, 0.16);
  background: rgba(220, 53, 69, 0.08);
  color: #842029;
  font-size: 0.84rem;
  font-weight: 700;
}

.ss-code-validation-line {
  display: flex;
  align-items: stretch;
  font-family: Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9rem;
  line-height: 1.5;
}

.ss-code-validation-line + .ss-code-validation-line {
  border-top: 1px solid rgba(220, 53, 69, 0.08);
}

.ss-code-validation-line-number {
  flex: 0 0 4rem;
  padding: 0.35rem 0.65rem 0.35rem 0.5rem;
  border-right: 1px solid rgba(220, 53, 69, 0.08);
  text-align: right;
  user-select: none;
  color: #8a97ad;
  background: rgba(248, 249, 250, 0.84);
}

.ss-code-validation-line-text {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.35rem 0.75rem;
  white-space: pre;
  overflow-x: auto;
}

.ss-code-validation-line-error .ss-code-validation-line-number {
  color: #842029;
  background: rgba(220, 53, 69, 0.12);
}

.ss-code-validation-line-error .ss-code-validation-line-text {
  color: #842029;
  background: rgba(220, 53, 69, 0.12);
}

/* Autocomplete highlight */
.list-group-item-action.active {
  background-color: var(--ss-deep);
  color: #ffffff;
}

.list-group-item-action.active .small,
.list-group-item-action.active .text-muted {
  color: #e5e7f0 !important;
}

/* Dashboard widgets */
.ss-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.ss-dashboard-widget {
  border: 1px solid rgba(3, 29, 79, 0.1);
  border-radius: 0.9rem;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(3, 29, 79, 0.08);
  padding: 0.85rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ss-dashboard-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.ss-dashboard-widget-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
  color: var(--ss-deep);
}

.ss-kpi-value {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 750;
  color: var(--ss-deep);
  line-height: 1;
}

.ss-widget-builder-preview-sticky {
  position: sticky;
  top: 1rem;
}

@media (min-width: 700px) and (max-width: 1100px) {
  .ss-dashboard-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 1199px) {
  .ss-widget-builder-preview-sticky {
    position: static;
  }
}

/* Dashboard charts */
.ss-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 1.25rem;
  height: 180px;
}

.ss-chart-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.ss-chart-bar-fill {
  width: 18px;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, var(--ss-teal), var(--ss-purple));
  box-shadow: 0 10px 20px rgba(3, 29, 79, 0.18);
  transition: transform 0.15s ease;
}

.ss-chart-bar-fill:hover {
  transform: translateY(-3px);
}

.ss-chart-bar-label {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6a7280;
}

.ss-chart-bar-value {
  font-size: 0.85rem;
  color: var(--ss-slate);
}

.ss-chart-bar-horizontal {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(3, 29, 79, 0.06);
  overflow: hidden;
}

.ss-chart-bar-horizontal-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ss-green), var(--ss-teal));
}

.ss-chart-columns {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  min-height: 190px;
  padding: 0.45rem 0.2rem 0;
  overflow-x: auto;
}

.ss-chart-column-item {
  min-width: 70px;
  flex: 1 0 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.ss-chart-column-value {
  font-size: 0.78rem;
  color: var(--ss-slate);
  white-space: nowrap;
}

.ss-chart-column-bar-wrap {
  width: 100%;
  max-width: 42px;
  height: 120px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border-radius: 8px;
  padding: 2px;
  background: rgba(3, 29, 79, 0.06);
}

.ss-chart-column-bar {
  width: 100%;
  min-height: 2px;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--ss-teal), var(--ss-green));
}

.ss-chart-column-label {
  font-size: 0.74rem;
  line-height: 1.1;
  text-align: center;
  color: #6a7280;
  word-break: break-word;
}

.ss-widget-viz-fill {
  display: flex;
  flex: 1 1 auto;
  min-height: 160px;
  min-width: 0;
}

.ss-widget-chart-fill {
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
}

.ss-widget-viz-fill .ss-line-chart-telerik {
  height: 100%;
}

.ss-line-chart-telerik {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(3, 29, 79, 0.08);
  background: linear-gradient(180deg, rgba(6, 78, 59, 0.08), rgba(6, 78, 59, 0.01));
  padding: 0.35rem 0.25rem 0.2rem;
}

.ss-line-chart-telerik .k-chart-surface {
  border-radius: 8px;
}

.ss-line-chart-telerik .k-axis-label {
  fill: #6a7280;
  font-size: 0.72rem;
}

.ss-report-preview-frame {
  width: 100%;
  min-height: 320px;
  border: 1px solid rgba(3, 29, 79, 0.12);
  border-radius: 10px;
  background: #fff;
}

.ss-chart-stack {
  display: flex;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(3, 29, 79, 0.06);
}

.ss-chart-stack-pos {
  background: var(--ss-orange);
}

.ss-chart-stack-neg {
  background: rgba(3, 29, 79, 0.1);
}

.bg-teal-subtle {
  background: rgba(18, 216, 255, 0.08);
}

.text-teal {
  color: var(--ss-teal);
}

a,
.btn-link {
  color: var(--ss-electric);
}

a:hover,
.btn-link:hover {
  color: var(--ss-violet);
}

.btn-primary {
  border: none;
  color: #ffffff;
  background: linear-gradient(90deg, var(--ss-violet) 0%, var(--ss-cyan) 100%);
  box-shadow: 0 12px 24px rgba(108, 92, 255, 0.22);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.show > .btn-primary.dropdown-toggle {
  color: #ffffff;
  background: linear-gradient(90deg, #5F50FF 0%, #10CDEE 100%);
  border-color: transparent;
  box-shadow: 0 14px 28px rgba(108, 92, 255, 0.28);
}

.btn-outline-primary {
  color: var(--ss-electric);
  border-color: var(--ss-electric);
  background: transparent;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active,
.show > .btn-outline-primary.dropdown-toggle {
  color: var(--ss-midnight);
  border-color: var(--ss-electric);
  background: rgba(45, 125, 255, 0.08);
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus,
.form-select:focus {
  box-shadow:
    0 0 0 0.1rem rgba(255, 255, 255, 0.9),
    0 0 0 0.25rem rgba(18, 216, 255, 0.32);
}

@media (max-width: 1023px) {
  .ss-brand-name {
    font-size: 1.46rem;
  }

  .ss-tagline {
    font-size: 0.84rem;
  }

  .ss-topbar {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "actions"
      "nav";
    row-gap: 0.45rem;
  }

  .ss-brand {
    grid-row: auto;
  }

  .ss-line-chart-telerik .k-axis-label {
    font-size: 0.68rem;
  }

  .ss-topbar-actions {
    justify-self: stretch;
  }

  .ss-nav {
    margin-top: 0;
    padding: 0;
  }

  .ss-nav-list {
    flex-direction: column;
    gap: 0;
  }

  .ss-nav-item {
    width: 100%;
    border-top: 1px solid rgba(3, 29, 79, 0.08);
  }

  .ss-nav-trigger {
    justify-content: space-between;
    width: 100%;
    padding: 0.9rem 1.25rem;
  }

  .ss-dashboard-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

.ss-shipment-items {
  border-radius: 0.9rem;
  border: 1px solid rgba(3, 29, 79, 0.08);
  background: #f9fafc;
  padding: 0.85rem 1rem 1rem;
}

.ss-shipment-items-total {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ss-shipment-items-table tbody tr:hover {
  background-color: rgba(18, 216, 255, 0.04);
}

.ss-item-icon {
  font-size: 1.1rem;
}

.ss-item-qty-icon {
  background: rgba(3, 29, 79, 0.04);
  border-color: rgba(3, 29, 79, 0.08);
}

.ss-item-remove {
  font-size: 0.78rem;
}

.ss-page-header h1 {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--ss-deep);
}

.ss-status-pill {
  background: rgba(18, 216, 255, 0.08);
  color: var(--ss-teal);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.ss-shipment-card {
  border-radius: 1.2rem;
  border: 1px solid rgba(3, 29, 79, 0.06);
}

.ss-container-grid {
  display: block;
  padding: 0.5rem;
  border-radius: 0.75rem;
  border: 1px solid #6b7280; /* darker grey */
  background: #ffffff;
  max-width: 100%;
  overflow-x: auto;
}

.ss-container-grid-row {
  display: flex;
}

.ss-container-grid-cell {
  min-width: calc(-7.2px + 7.5vw);
  min-height: 60px;
  border: 1px solid #c7c9e0;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 4px 6px;
  gap: 2px;
  margin: 2px;
  box-sizing: border-box;
  font-size: 0.7rem;
  color: var(--ss-slate);
  background: #f8f9fa;
}

.ss-container-grid-pos {
  font-size: 10px;
  font-weight: 600;
  color: #7b83a6;
  padding: 0 4px;
  display: inline-block;
  line-height: 1.5;
  width: fit-content;
}

.ss-container-grid-item {
  font-size: 13px;
  font-weight: 700;
  color: #2d3a8c;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ss-container-grid-cell-filled {
  background: #eef1ff;
}

.ss-container-grid-cell-next {
  background: #fff8e6;
  box-shadow: inset 0 0 0 2px #fbbf24;
}

.ss-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 0;
}

.ss-timeline::after {
  content: "";
  position: absolute;
  width: 2px;
  background: rgba(3, 29, 79, 0.15);
  top: 0.5rem;
  bottom: 0.5rem;
  left: 50%;
  margin-left: -1px;
}

.ss-timeline-container {
  padding: 0.5rem 1rem;
  position: relative;
  width: 50%;
}

.ss-timeline-container-left {
  left: 0;
  text-align: right;
}

.ss-timeline-container-right {
  left: 50%;
}

.ss-timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ss-teal);
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 2px rgba(3, 29, 79, 0.2);
  position: absolute;
  top: 0.7rem;
  z-index: 1;
}

.ss-timeline-container-left .ss-timeline-dot {
  left: 100%;
  transform: translateX(-50%);
}

.ss-timeline-container-right .ss-timeline-dot {
  left: 0;
  transform: translateX(-50%);
}

.ss-timeline-dot-disposed {
  background: var(--ss-orange);
}

.ss-timeline-content {
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  background: #ffffff;
  border: 1px solid rgba(3, 29, 79, 0.08);
  display: inline-block;
  max-width: 90%;
}

.ss-timeline-container-left .ss-timeline-content {
  margin-right: 2.75rem;
}

.ss-timeline-container-right .ss-timeline-content {
  margin-left: 2.75rem;
}

@media (max-width: 768px) {
  .ss-timeline::after {
    left: 16px;
  }

  .ss-timeline-container,
  .ss-timeline-container-left,
  .ss-timeline-container-right {
    width: 100%;
    left: 0;
    text-align: left;
  }

  .ss-timeline-dot {
    left: 16px;
    transform: translateX(0);
  }

  .ss-timeline-content {
    margin-left: 2.5rem !important;
    margin-right: 0 !important;
  }
}

#components-reconnect-modal {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background:
    radial-gradient(circle at 20% 20%, rgba(18, 216, 255, 0.22), transparent 42%),
    radial-gradient(circle at 80% 0%, rgba(3, 29, 79, 0.22), transparent 38%),
    linear-gradient(160deg, rgba(3, 20, 38, 0.86), rgba(7, 34, 64, 0.9));
  backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}

#components-reconnect-modal.components-reconnect-show,
#components-reconnect-modal.components-reconnect-retrying,
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.ss-reconnect-card {
  width: min(96vw, 520px);
  border-radius: 1.5rem;
  padding: 2rem 2rem 1.8rem;
  background: linear-gradient(180deg, #ffffff 0%, #F7F9FC 100%);
  border: 1px solid rgba(3, 29, 79, 0.12);
  box-shadow: 0 28px 80px rgba(3, 29, 79, 0.26);
  text-align: center;
}

.ss-reconnect-brand {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
}

.ss-reconnect-logo {
  width: 62px;
  height: 62px;
}

.ss-reconnect-title {
  color: var(--ss-deep);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  text-transform: none;
}

.ss-reconnect-subtitle {
  color: #667085;
  font-size: 0.9rem;
}

.ss-reconnect-loader {
  width: 96px;
  height: 96px;
  margin: 1.4rem auto 1.1rem;
  position: relative;
  display: grid;
  place-items: center;
}

.ss-reconnect-loader-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 5px solid rgba(3, 29, 79, 0.14);
  border-top-color: var(--ss-teal);
  border-right-color: var(--ss-violet);
  animation: ss-reconnect-spin 0.9s linear infinite;
}

.ss-reconnect-loader-core {
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(18, 216, 255, 0.54), rgba(108, 92, 255, 0.1));
  animation: ss-reconnect-pulse 1.35s ease-in-out infinite;
}

.ss-reconnect-state {
  display: none;
  margin: 0;
  color: var(--ss-graphite);
  font-weight: 500;
}

#components-reconnect-modal.components-reconnect-show .ss-reconnect-state-show,
#components-reconnect-modal.components-reconnect-retrying .ss-reconnect-state-retrying,
#components-reconnect-modal.components-reconnect-failed .ss-reconnect-state-failed,
#components-reconnect-modal.components-reconnect-rejected .ss-reconnect-state-rejected {
  display: block;
}

#components-reconnect-modal.components-reconnect-failed .ss-reconnect-loader-ring,
#components-reconnect-modal.components-reconnect-rejected .ss-reconnect-loader-ring {
  border-top-color: var(--ss-violet);
  border-right-color: var(--ss-electric);
  animation-duration: 2.4s;
}

.ss-reconnect-actions {
  display: none;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

#components-reconnect-modal.components-reconnect-failed .ss-reconnect-actions,
#components-reconnect-modal.components-reconnect-rejected .ss-reconnect-actions {
  display: flex;
}

.ss-reconnect-btn {
  min-width: 150px;
  border-radius: 999px;
  font-weight: 600;
}

.ss-reconnect-btn-reload {
  border-color: var(--ss-electric);
  color: var(--ss-electric);
}

.ss-reconnect-btn-reload:hover {
  background: rgba(45, 125, 255, 0.1);
  color: var(--ss-electric);
}

@keyframes ss-reconnect-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes ss-reconnect-pulse {
  0% {
    transform: scale(0.92);
    opacity: 0.65;
  }

  50% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(0.92);
    opacity: 0.65;
  }
}

.ss-snackbar {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 2400;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.01em;
  animation: ss-snackbar-in 0.2s ease-out;
}

.ss-snackbar-success {
  background: linear-gradient(135deg, #1d9f6e, #2bb673);
}

.ss-snackbar-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.22);
}

@keyframes ss-snackbar-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#ss-error-modal {
  position: fixed;
  inset: 0;
  z-index: 2700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  background: rgba(8, 18, 32, 0.72);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}

#ss-error-modal.ss-show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.ss-error-card {
  width: min(96vw, 860px);
  max-height: min(90vh, 820px);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  border-radius: 1rem;
  background: #ffffff;
  border: 1px solid rgba(3, 29, 79, 0.16);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.34);
  padding: 1rem;
}

.ss-error-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.ss-error-title {
  margin: 0;
  font-size: 1.15rem;
  color: #8f1d1d;
  font-weight: 700;
}

.ss-error-summary {
  margin: 0.3rem 0 0;
  color: #1E293B;
  font-size: 0.92rem;
}

.ss-error-close {
  border-radius: 0.55rem;
}

.ss-error-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  font-size: 0.82rem;
  color: #667085;
}

.ss-error-details {
  margin: 0;
  min-height: 220px;
  max-height: 52vh;
  overflow: auto;
  border-radius: 0.65rem;
  border: 1px solid rgba(3, 29, 79, 0.12);
  background: #f5f7fa;
  padding: 0.75rem;
  color: #1E293B;
  font-size: 0.82rem;
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: Consolas, "Courier New", monospace;
}

.ss-error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

body.ss-error-open {
  overflow: hidden;
}

body.ss-error-open #blazor-error-ui {
  display: none !important;
}

@media (max-width: 700px) {
  .ss-error-card {
    border-radius: 0.85rem;
    padding: 0.85rem;
  }

  .ss-error-header {
    flex-direction: column;
    align-items: stretch;
  }

  .ss-error-actions {
    justify-content: stretch;
  }

  .ss-error-actions .btn {
    width: 100%;
  }
}


