body.spa-lite-shell {
  overflow-x: hidden;
  --spa-select-height: 2.625rem;
  --spa-select-radius: .75rem;
  --spa-select-font-size: .9rem;
  --spa-select-padding-x: .85rem;
  --spa-select-arrow-space: 2.35rem;
}

body.spa-lite-shell .form-select,
body.spa-lite-shell .choices[data-type*="select-one"] .choices__inner {
  min-height: var(--spa-select-height);
  height: var(--spa-select-height);
  border-radius: var(--spa-select-radius);
  font-size: var(--spa-select-font-size);
  line-height: 1.2;
}

body.spa-lite-shell .form-select {
  padding-top: 0;
  padding-bottom: 0;
  padding-left: var(--spa-select-padding-x);
  padding-right: var(--spa-select-arrow-space);
  border-color: color-mix(in srgb, var(--primary-color) 10%, var(--border-color));
  background-color: var(--input-bg);
  color: var(--text-main);
}

body.spa-lite-shell .choices {
  width: 100%;
  margin-bottom: 0;
}

body.spa-lite-shell .choices[data-type*="select-one"] .choices__inner {
  display: flex;
  align-items: center;
  padding: 0 var(--spa-select-arrow-space) 0 var(--spa-select-padding-x);
  border-color: color-mix(in srgb, var(--primary-color) 10%, var(--border-color)) !important;
  background: var(--input-bg) !important;
  color: var(--text-main);
}

body.spa-lite-shell .choices[data-type*="select-one"] .choices__list--single {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0;
}

body.spa-lite-shell .choices__list--single .choices__item {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.spa-lite-shell .choices[data-type*="select-one"]::after {
  right: .95rem;
  margin-top: 0;
  transform: translateY(-50%);
  border-color: var(--text-muted) transparent transparent;
}

body.spa-lite-shell .choices[data-type*="select-one"].is-open::after {
  margin-top: 0;
  transform: translateY(-50%) rotate(180deg);
  border-color: var(--text-muted) transparent transparent;
}

body.spa-lite-shell .choices__input {
  background: var(--input-bg);
  color: var(--text-main);
  font-size: var(--spa-select-font-size);
}

body.spa-lite-shell #app-view {
  min-height: calc(100vh - 8rem);
}

body.spa-lite-shell #spa-global-modal-root,
body.spa-lite-shell #spa-global-toast-root {
  position: relative;
  z-index: 1250;
}

body.spa-lite-shell #spa-page-commandbar {
  display: flex;
  justify-content: stretch;
  margin: -.2rem 0 1rem;
}

body.spa-lite-shell #spa-page-commandbar[hidden] {
  display: none !important;
}

body.spa-lite-shell.master-data-page #spa-page-commandbar {
  display: none !important;
}

body.spa-lite-shell .spa-commandbar-shell {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .55rem;
  padding: .8rem .9rem;
  border-radius: 1rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 12%, var(--border-color));
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary-color) 4%, var(--bg-surface)) 0%, color-mix(in srgb, var(--bg-surface) 98%, transparent) 100%);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

body.spa-lite-shell .spa-commandbar-shell .btn,
body.spa-lite-shell .spa-commandbar-shell a.btn {
  border-radius: .25rem;
  white-space: nowrap;
  min-height: 2.5rem;
  padding-inline: 1rem;
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .01em;
}

body.spa-lite-shell .spa-commandbar-shell .btn i,
body.spa-lite-shell .spa-commandbar-shell a.btn i {
  opacity: .92;
}

body.spa-lite-shell #spa-route-statusbar[hidden] {
  display: none !important;
}

body.spa-lite-shell .spa-route-status-shell {
  margin-bottom: 1rem;
}

body.spa-lite-shell .spa-route-status-shell .spa-shell-state-card {
  border-radius: .95rem;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

body.spa-lite-shell .spa-shell-inline-status[hidden] {
  display: none !important;
}

body.spa-lite-shell .spa-shell-inline-status {
  margin: 0 0 .85rem;
}

body.spa-lite-shell .spa-shell-inline-status-shell .spa-shell-state-card {
  border-radius: .9rem;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

body.spa-lite-shell .spa-toast-root {
  z-index: 1260;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  pointer-events: none;
}

body.spa-lite-shell .spa-toast {
  min-width: 320px;
  max-width: 420px;
  border-radius: 1rem;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.24);
  backdrop-filter: blur(10px);
  color: #fff;
  pointer-events: auto;
  overflow: hidden;
}

body.spa-lite-shell .spa-toast .toast-body {
  padding: .9rem 1rem;
}

body.spa-lite-shell .spa-toast .btn-close {
  opacity: .9;
}

body.spa-lite-shell .spa-toast-content {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  line-height: 1.5;
  font-size: .9rem;
}

body.spa-lite-shell .spa-toast-content i {
  margin-top: .15rem;
}

body.spa-lite-shell .spa-toast-copy {
  min-width: 0;
}

body.spa-lite-shell .spa-toast-title {
  margin-bottom: .12rem;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .035em;
  line-height: 1.2;
  text-transform: uppercase;
}

body.spa-lite-shell .spa-toast-message {
  font-weight: 700;
}

body.spa-lite-shell .spa-toast-info,
body.spa-lite-shell .spa-toast-primary {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.96), rgba(29, 78, 216, 0.96));
}

body.spa-lite-shell .spa-toast-success {
  background: linear-gradient(180deg, rgba(22, 163, 74, 0.96), rgba(21, 128, 61, 0.96));
}

body.spa-lite-shell .spa-toast-warning {
  background: linear-gradient(180deg, rgba(217, 119, 6, 0.97), rgba(180, 83, 9, 0.97));
}

body.spa-lite-shell .spa-toast-danger {
  background: linear-gradient(180deg, rgba(220, 38, 38, 0.97), rgba(185, 28, 28, 0.97));
}

body.spa-lite-shell .spa-feedback-dialog {
  max-width: 560px;
}

body.spa-lite-shell .spa-shell-btn {
  border-radius: .25rem;
  min-height: 2.35rem;
  padding-inline: .95rem;
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: .01em;
  white-space: nowrap;
}

body.spa-lite-shell #spa-global-modal-root .modal-content,
body.spa-lite-shell .spa-feedback-modal .modal-content,
body.spa-lite-shell .spa-feedback-modal {
  border-radius: 1rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 12%, var(--border-color));
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg-surface) 99%, transparent), color-mix(in srgb, var(--primary-color) 2%, var(--bg-surface)));
  color: var(--text-main);
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.24);
  overflow: hidden;
}

body.spa-lite-shell #spa-global-modal-root .modal-header,
body.spa-lite-shell .spa-feedback-modal .modal-header {
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-bottom-color: color-mix(in srgb, var(--primary-color) 10%, var(--border-color));
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary-color) 5%, var(--bg-surface)), var(--bg-surface));
}

body.spa-lite-shell #spa-global-modal-root .modal-title,
body.spa-lite-shell .spa-feedback-modal .modal-title {
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -.01em;
}

body.spa-lite-shell .spa-feedback-kicker {
  margin-bottom: .16rem;
  color: var(--text-muted);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .045em;
  text-transform: uppercase;
}

body.spa-lite-shell #spa-global-modal-root .modal-body,
body.spa-lite-shell .spa-feedback-modal .modal-body {
  padding: 1rem 1.15rem 1.1rem;
}

body.spa-lite-shell #spa-global-modal-root .modal-footer,
body.spa-lite-shell .spa-feedback-modal .modal-footer {
  gap: .55rem;
  padding: .95rem 1.15rem 1.05rem;
  border-top-color: color-mix(in srgb, var(--primary-color) 10%, var(--border-color));
  background: color-mix(in srgb, var(--bg-surface) 97%, transparent);
}

body.spa-lite-shell .spa-feedback-body {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

body.spa-lite-shell .spa-feedback-icon {
  width: 48px;
  height: 48px;
  border-radius: .9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex: 0 0 auto;
  background: color-mix(in srgb, var(--primary-color) 10%, var(--bg-surface));
  color: var(--primary-color);
}

body.spa-lite-shell .spa-feedback-info,
body.spa-lite-shell .spa-feedback-primary {
  background: color-mix(in srgb, var(--primary-color) 10%, var(--bg-surface));
  color: var(--primary-color);
}

body.spa-lite-shell .spa-feedback-success {
  background: color-mix(in srgb, #16a34a 12%, var(--bg-surface));
  color: #16a34a;
}

body.spa-lite-shell .spa-feedback-warning {
  background: color-mix(in srgb, #d97706 12%, var(--bg-surface));
  color: #d97706;
}

body.spa-lite-shell .spa-feedback-danger {
  background: color-mix(in srgb, #dc2626 12%, var(--bg-surface));
  color: #dc2626;
}

body.spa-lite-shell .spa-feedback-copy {
  min-width: 0;
}

body.spa-lite-shell .spa-feedback-message {
  color: var(--text-main);
  font-size: .94rem;
  line-height: 1.6;
}

body.spa-lite-shell .spa-feedback-extra {
  margin-top: .7rem;
}

body.spa-lite-shell .topbar {
  z-index: 1106;
}

body.spa-lite-shell {
  --sidebar-width: 195px;
  --sidebar-collapsed-width: 60px;
}

body.spa-lite-shell .sidebar {
  z-index: 1105;
  isolation: isolate;
  font-size: .82rem;
}

body.spa-lite-shell .modal-backdrop {
  z-index: 1190;
}

body.spa-lite-shell .modal {
  z-index: 1200;
}

body.spa-lite-shell .main-content {
  position: relative;
  z-index: 1;
}

body.spa-lite-shell .sidebar-item-wrapper,
body.spa-lite-shell .sidebar-sub-menu,
body.spa-lite-shell .sidebar-sub-item {
  position: relative;
  z-index: 2;
}

body.spa-lite-shell .main-content > .container-fluid {
  max-width: 1720px;
  padding: 1.15rem 1.15rem 2rem;
}

body.spa-lite-shell .topbar {
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg-surface) 94%, transparent);
  gap: .9rem;
}

body.spa-lite-shell .topbar-left {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  overflow: visible;
}

body.spa-lite-shell .topbar-brand {
  flex: 0 0 auto;
}

body.spa-lite-shell .topbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .7rem;
  min-width: 0;
}

body.spa-lite-shell .spa-topbar-status-cluster,
body.spa-lite-shell .spa-topbar-action-cluster {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-width: 0;
}

body.spa-lite-shell .spa-topbar-status-cluster {
  flex: 1 1 auto;
  justify-content: flex-end;
  flex-wrap: wrap;
}

body.spa-lite-shell .spa-topbar-action-cluster {
  flex: 0 0 auto;
}

body.spa-lite-shell .ds-data-source-indicator {
  display: none !important;
}

body.spa-lite-shell .topbar-right .ds-auth-trigger {
  display: none !important;
}

body.spa-lite-shell .topbar .search-box {
  width: clamp(18rem, 30vw, 28rem);
  max-width: min(28rem, 42vw);
  min-width: 14rem;
  font-size: .92rem;
  color: var(--text-muted);
  background: color-mix(in srgb, var(--bg-main) 55%, var(--bg-surface));
}

body.spa-lite-shell .topbar .search-box[readonly] {
  cursor: default;
}

body.spa-lite-shell .topbar .search-box:focus {
  color: var(--text-main);
  background: var(--bg-surface);
  box-shadow: 0 0 0 .18rem color-mix(in srgb, var(--primary-color) 18%, transparent);
}

.spa-route-switcher {
  position: absolute;
  left: calc(100% - 420px);
  top: calc(100% + .65rem);
  z-index: 1300;
  width: min(420px, calc(100vw - 2rem));
  max-height: min(34rem, calc(100vh - var(--topbar-height) - 2rem));
  overflow-y: auto;
  padding: .45rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 14%, var(--border-color));
  border-radius: 1rem;
  background: color-mix(in srgb, var(--bg-surface) 98%, transparent);
  box-shadow: 0 22px 48px rgba(15, 23, 42, .18);
  backdrop-filter: blur(16px);
}

.spa-route-switcher[hidden] {
  display: none;
}

.spa-route-switcher-option {
  display: flex;
  align-items: center;
  gap: .72rem;
  width: 100%;
  padding: .72rem .78rem;
  border: 0;
  border-radius: .78rem;
  color: var(--text-main);
  background: transparent;
  text-align: left;
}

.spa-route-switcher-section {
  padding: .45rem .72rem .28rem;
  color: var(--text-muted);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.spa-route-switcher-section:not(:first-child) {
  margin-top: .2rem;
  border-top: 1px solid color-mix(in srgb, var(--primary-color) 8%, var(--border-color));
}

.spa-route-switcher-option:hover,
.spa-route-switcher-option.is-active {
  background: color-mix(in srgb, var(--primary-color) 10%, var(--bg-surface));
}

.spa-route-switcher-icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: .65rem;
  color: var(--primary-color);
  background: color-mix(in srgb, var(--primary-color) 10%, transparent);
}

.spa-route-switcher-copy {
  display: grid;
  gap: .08rem;
  min-width: 0;
}

.spa-route-switcher-title {
  color: var(--text-main);
  font-size: .88rem;
  font-weight: 800;
  line-height: 1.25;
}

.spa-route-switcher-meta,
.spa-route-switcher-empty {
  color: var(--text-muted);
  font-size: .76rem;
  font-weight: 700;
}

.spa-route-switcher-empty {
  padding: .85rem .9rem;
}

body.spa-lite-shell .sidebar-sub-menu .sidebar-sub-item {
  border-radius: .8rem;
  padding: .46rem .62rem .46rem 2.4rem;
  border-inline: 0 !important;
  font-size: .78rem;
  line-height: 1.2;
}

body.spa-lite-shell .sidebar-sub-group,
body.spa-lite-shell .sidebar-sub-group-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.spa-lite-shell .sidebar-sub-group {
  margin: .12rem 0 .28rem;
}

body.spa-lite-shell .sidebar-sub-group-label {
  display: flex;
  align-items: center;
  gap: .42rem;
  min-width: 0;
  padding: .44rem .62rem .3rem 1.1rem;
  color: var(--text-muted);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.1;
  text-transform: uppercase;
}

body.spa-lite-shell .sidebar-sub-group-label i {
  flex: 0 0 auto;
  width: .95rem;
  color: var(--primary-color);
  font-size: .76rem;
  text-align: center;
}

body.spa-lite-shell .sidebar-sub-group-label span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.spa-lite-shell .sidebar-sub-group .sidebar-sub-item {
  padding-left: 2.75rem;
}

body.spa-lite-shell .sidebar-sub-group.is-active .sidebar-sub-group-label {
  color: var(--primary-color);
}

body.spa-lite-shell .sidebar-nav-item {
  position: relative;
  padding: .58rem .68rem;
  border-radius: .68rem;
  font-size: .82rem;
  line-height: 1.2;
}

body.spa-lite-shell .sidebar .nav-item-left i {
  width: 1.15rem;
  margin-right: .5rem;
  font-size: .92rem;
}

body.spa-lite-shell .sidebar-item-wrapper {
  margin-inline: .45rem;
  margin-bottom: .35rem;
  border-radius: .72rem;
}

body.spa-lite-shell .sidebar-item-wrapper.sidebar-item-open {
  box-shadow: none;
}

body.spa-lite-shell .sidebar-sub-menu .sidebar-sub-item.active {
  border-right-color: transparent !important;
  background: color-mix(in srgb, var(--primary-color) 10%, var(--bg-surface));
  box-shadow: none;
}

body.spa-lite-shell .sidebar-item-wrapper.is-active-route > .sidebar-nav-item,
body.spa-lite-shell .sidebar-nav-item.is-current-section {
  color: var(--primary-color);
  background: color-mix(in srgb, var(--primary-color) 8%, var(--bg-surface));
  box-shadow: none;
}

body.spa-lite-shell .sidebar-item-wrapper.is-active-route > .sidebar-nav-item .nav-indicator,
body.spa-lite-shell .sidebar-nav-item.is-current-section .nav-indicator {
  color: var(--primary-color);
}

body.spa-lite-shell .sidebar-item-wrapper.is-active-route > .sidebar-nav-item::after {
  display: none;
}

.spa-page-shell {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.spa-page-placeholder {
  border-radius: 1rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 12%, var(--border-color));
  background: color-mix(in srgb, var(--bg-surface) 98%, transparent);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.07);
  padding: 1.25rem 1.35rem;
}

.spa-page-placeholder h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: .45rem;
}

.spa-page-placeholder p {
  margin: 0;
  color: var(--text-muted);
}

.spa-route-error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: .9rem;
}

.spa-route-error-actions .btn {
  border-radius: .25rem;
}

.spa-page-shell .spa-shell-state-card,
.spa-page-placeholder,
.spa-dashboard-empty {
  position: relative;
  border-radius: 1rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 12%, var(--border-color));
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--primary-color) 8%, transparent) 0%, transparent 38%),
    color-mix(in srgb, var(--bg-surface) 98%, transparent);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.07);
}

.spa-page-shell .spa-shell-state-card {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  padding: 1.1rem 1.15rem;
}

.spa-page-shell .spa-shell-state-card.is-compact {
  gap: .75rem;
  padding: .95rem 1rem;
  border-radius: .9rem;
}

.spa-page-shell .spa-shell-state-icon {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: .9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 1rem;
  color: var(--primary-color);
  background: color-mix(in srgb, var(--primary-color) 10%, var(--bg-surface));
}

.spa-page-shell .spa-shell-state-card.is-compact .spa-shell-state-icon {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: .8rem;
  font-size: .92rem;
}

.spa-page-shell .spa-shell-state-card.is-danger .spa-shell-state-icon {
  color: #dc2626;
  background: color-mix(in srgb, #dc2626 10%, var(--bg-surface));
}

.spa-page-shell .spa-shell-state-title {
  margin: 0 0 .25rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text-main);
}

.spa-page-shell .spa-shell-state-card.is-compact .spa-shell-state-title {
  font-size: .95rem;
}

.spa-page-shell .spa-shell-state-copy {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.58;
}

.spa-page-shell .spa-shell-state-meta {
  margin-top: .55rem;
  color: var(--text-muted);
  font-size: .82rem;
  line-height: 1.55;
}

.spa-page-shell .spa-shell-state-card.is-compact .spa-shell-state-meta {
  margin-top: .45rem;
  font-size: .79rem;
}

.spa-page-shell .spa-shell-loading-state {
  display: grid;
  gap: .6rem;
}

.spa-page-shell .spa-shell-loading-bar {
  height: .8rem;
  border-radius: 999px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--primary-color) 8%, var(--bg-surface)) 0%, color-mix(in srgb, var(--primary-color) 18%, var(--bg-surface)) 50%, color-mix(in srgb, var(--primary-color) 8%, var(--bg-surface)) 100%);
  background-size: 220% 100%;
  animation: spa-shell-shimmer 1.6s linear infinite;
}

.spa-page-shell .spa-shell-loading-bar.short {
  width: 45%;
}

@keyframes spa-shell-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -20% 0; }
}

.spa-data-health-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .28rem .55rem;
  border-radius: .5rem;
  font-size: .74rem;
  font-weight: 800;
  color: var(--primary-color);
  background: color-mix(in srgb, var(--primary-color) 10%, var(--bg-surface));
  border: 1px solid color-mix(in srgb, var(--primary-color) 16%, transparent);
  white-space: nowrap;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.spa-draft-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .28rem .6rem;
  border-radius: .5rem;
  font-size: .74rem;
  font-weight: 800;
  color: #d97706;
  background: color-mix(in srgb, #d97706 11%, var(--bg-surface));
  border: 1px solid color-mix(in srgb, #d97706 22%, transparent);
  white-space: nowrap;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.spa-draft-pill[hidden] {
  display: none !important;
}

.spa-draft-pill i {
  font-size: .72rem;
}

.spa-draft-pill.is-success {
  color: #16a34a;
  background: color-mix(in srgb, #16a34a 10%, var(--bg-surface));
  border-color: color-mix(in srgb, #16a34a 20%, transparent);
}

.spa-draft-pill.is-warning {
  color: #d97706;
  background: color-mix(in srgb, #d97706 11%, var(--bg-surface));
  border-color: color-mix(in srgb, #d97706 22%, transparent);
}

.spa-draft-pill.is-danger {
  color: #dc2626;
  background: color-mix(in srgb, #dc2626 10%, var(--bg-surface));
  border-color: color-mix(in srgb, #dc2626 22%, transparent);
}

.spa-data-health-pill i {
  font-size: .72rem;
}

.spa-data-health-pill.is-success {
  color: #16a34a;
  background: color-mix(in srgb, #16a34a 10%, var(--bg-surface));
  border-color: color-mix(in srgb, #16a34a 20%, transparent);
}

.spa-data-health-pill.is-warning {
  color: #d97706;
  background: color-mix(in srgb, #d97706 11%, var(--bg-surface));
  border-color: color-mix(in srgb, #d97706 22%, transparent);
}

.spa-data-health-pill.is-danger {
  color: #dc2626;
  background: color-mix(in srgb, #dc2626 10%, var(--bg-surface));
  border-color: color-mix(in srgb, #dc2626 22%, transparent);
}

.spa-data-health-pill.is-offline {
  color: #b45309;
  background: color-mix(in srgb, #f59e0b 12%, var(--bg-surface));
  border-color: color-mix(in srgb, #f59e0b 26%, transparent);
}

.spa-data-health-pill.is-loading {
  color: var(--primary-color);
  background: color-mix(in srgb, var(--primary-color) 12%, var(--bg-surface));
  border-color: color-mix(in srgb, var(--primary-color) 24%, transparent);
}

.spa-data-health-pill.is-loading i {
  animation: spa-health-spin 1s linear infinite;
}

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

.spa-shell-note {
  font-size: .82rem;
  color: var(--text-muted);
  max-width: 920px;
  line-height: 1.55;
}

.spa-page-shell > .ds-page-header {
  position: relative;
  padding: 1.05rem 1.15rem 1rem;
  border-radius: 1rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 12%, var(--border-color));
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary-color) 6%, var(--bg-surface)) 0%, color-mix(in srgb, var(--bg-surface) 99%, transparent) 100%);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.spa-page-shell > .ds-page-header::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary-color) 92%, white) 0%, color-mix(in srgb, var(--primary-color) 62%, transparent) 100%);
  opacity: .9;
}

.spa-page-shell > .ds-page-header .ds-page-header-meta {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  min-width: 0;
}

.spa-page-shell > .ds-page-header .page-title {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 800;
  color: var(--text-main);
}

.spa-page-shell > .ds-page-header .small.text-muted {
  margin-top: .05rem;
  font-size: .78rem;
  line-height: 1.55;
  color: var(--text-muted) !important;
}

.spa-page-shell .phoenix-card {
  position: relative;
  border-radius: 1rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 12%, var(--border-color));
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg-surface) 99%, transparent) 0%, color-mix(in srgb, var(--primary-color) 2%, var(--bg-surface)) 100%);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.spa-page-shell .phoenix-card:hover {
  border-color: color-mix(in srgb, var(--primary-color) 18%, var(--border-color));
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.1);
}

.spa-page-shell .card-header-custom {
  position: relative;
  padding: 1rem 1.2rem;
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary-color) 6%, var(--bg-surface)) 0%, var(--bg-surface) 100%);
  border-bottom: 1px solid color-mix(in srgb, var(--primary-color) 10%, var(--border-color));
}

.spa-page-shell .card-header-custom::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--primary-color) 88%, white) 0%, color-mix(in srgb, var(--primary-color) 12%, transparent) 72%, transparent 100%);
  opacity: .95;
}

.spa-page-shell .card-header-custom h5 {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin: 0;
  font-size: .98rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--text-main);
}

.spa-page-shell .card-body-custom {
  padding: 1rem 1.15rem 1.1rem;
}

.spa-page-shell .card-header-custom.ds-card-header-actionbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .85rem 1rem;
  flex-wrap: wrap;
}

.spa-page-shell .card-header-custom .text-muted,
.spa-page-shell .card-header-custom .small.text-muted {
  color: var(--text-muted) !important;
}

.spa-page-shell .ds-page-header-actions .btn,
.spa-page-shell .action-footer .btn,
.spa-page-shell .modal-footer .btn,
.spa-page-shell .card-header-custom .btn {
  border-radius: .25rem;
}

.spa-page-shell .modal-content {
  border-radius: 1rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 12%, var(--border-color));
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.22);
  overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg-surface) 99%, transparent) 0%, color-mix(in srgb, var(--primary-color) 2%, var(--bg-surface)) 100%);
}

.spa-page-shell .modal-header {
  padding: 1rem 1.15rem;
  border-bottom-color: color-mix(in srgb, var(--primary-color) 10%, var(--border-color));
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary-color) 5%, var(--bg-surface)), var(--bg-surface));
}

.spa-page-shell .modal-body {
  padding: 1rem 1.15rem 1.1rem;
}

.spa-page-shell .modal-footer {
  padding: .95rem 1.15rem 1.05rem;
  border-top-color: color-mix(in srgb, var(--primary-color) 10%, var(--border-color));
  background: color-mix(in srgb, var(--bg-surface) 97%, transparent);
}

.spa-page-shell .nav-tabs {
  margin-bottom: 0;
}

.spa-page-shell .nav-tabs .nav-link {
  font-weight: 800;
  padding: .8rem 1.05rem;
}

.spa-page-shell .spa-workspace-modal .modal-header {
  position: sticky;
  top: 0;
  z-index: 6;
}

.spa-page-shell .spa-workspace-modal .modal-footer {
  position: sticky;
  bottom: 0;
  z-index: 6;
}

.spa-page-shell .spa-workspace-body {
  padding-top: 1rem;
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary-color) 2%, var(--bg-surface)) 0%, color-mix(in srgb, var(--bg-surface) 99%, transparent) 100%);
}

.spa-page-shell .spa-workspace-dialog {
  max-width: min(1220px, calc(100vw - 2rem));
}

.spa-workspace-hero {
  display: flex;
  flex-direction: column;
  gap: .95rem;
  position: relative;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.spa-workspace-hero-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .9rem 1rem;
  align-items: flex-start;
}

.spa-workspace-hero-title {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.35;
}

.spa-workspace-hero-subtitle {
  color: var(--text-muted);
  font-size: .86rem;
  line-height: 1.5;
}

.spa-workspace-pill-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: .7rem;
}

.spa-workspace-pill {
  border: 1px solid color-mix(in srgb, var(--primary-color) 12%, var(--border-color));
  border-radius: .9rem;
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary-color) 5%, var(--bg-surface)) 0%, color-mix(in srgb, var(--bg-surface) 99%, transparent) 100%);
  padding: .72rem .82rem;
  min-width: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.spa-workspace-pill-label {
  display: block;
  color: var(--text-muted);
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: .35rem;
}

.spa-workspace-pill-value {
  display: block;
  color: var(--text-main);
  font-size: .92rem;
  font-weight: 800;
  line-height: 1.4;
}

.spa-shell-review-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .8rem 1rem;
  align-items: center;
  margin-top: 1rem;
  padding: .85rem 1rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 14%, var(--border-color));
  border-radius: 1rem;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--primary-color) 10%, transparent) 0%, transparent 30%),
    linear-gradient(180deg, color-mix(in srgb, var(--primary-color) 4%, var(--bg-surface)) 0%, color-mix(in srgb, var(--bg-surface) 99%, transparent) 100%);
}

.spa-shell-review-banner-main {
  min-width: 0;
}

.spa-shell-review-banner-title {
  font-size: .93rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.35;
}

.spa-shell-review-banner-meta {
  margin-top: .18rem;
  color: var(--text-muted);
  font-size: .76rem;
  font-weight: 700;
}

.spa-shell-review-banner-copy {
  grid-column: 1 / -1;
  color: var(--text-color);
  font-size: .84rem;
  line-height: 1.55;
}

.spa-shell-review-banner-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: .55rem;
}

.spa-shell-review-banner-actions .spa-shell-inline-status {
  min-width: min(360px, 100%);
  margin-left: auto;
}

.spa-shell-dashboard-handoff {
  margin: 0 0 1rem;
  border-color: color-mix(in srgb, var(--primary-color) 18%, var(--border-color));
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--primary-color) 12%, transparent) 0%, transparent 34%),
    linear-gradient(180deg, color-mix(in srgb, var(--primary-color) 5%, var(--bg-surface)) 0%, color-mix(in srgb, var(--bg-surface) 99%, transparent) 100%);
}

.spa-shell-review-desk {
  margin-top: 1rem;
}

.spa-shell-review-desk .card-body-custom {
  display: grid;
  gap: 1rem;
}

.spa-shell-review-desk-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
}

.spa-shell-review-desk-item {
  display: grid;
  gap: .2rem;
  padding: .75rem .85rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 10%, var(--border-color));
  border-radius: .8rem;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg-surface) 96%, transparent) 0%, color-mix(in srgb, var(--bg-surface) 100%, transparent) 100%);
}

.spa-shell-review-desk-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.spa-shell-review-desk-value {
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text-main);
}

.spa-shell-review-desk-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .6rem;
}

.spa-workspace-tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding: .35rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 12%, var(--border-color));
  border-radius: .95rem;
  background: color-mix(in srgb, var(--bg-surface) 97%, transparent);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.spa-page-shell .spa-workspace-tabs .nav-tabs {
  border-bottom: 0;
  gap: .4rem;
}

.spa-page-shell .spa-workspace-tabs .nav-link {
  border: 1px solid color-mix(in srgb, var(--primary-color) 12%, var(--border-color));
  border-radius: .25rem;
  color: var(--primary-color);
  background: transparent;
  padding: .62rem .95rem;
}

.spa-page-shell .spa-workspace-tabs .nav-link:hover,
.spa-page-shell .spa-workspace-tabs .nav-link:focus,
.spa-page-shell .spa-workspace-tabs .nav-link.active {
  color: #fff;
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.spa-page-shell .spa-workspace-footer {
  gap: .6rem;
}

.spa-page-shell .tabulator {
  border-radius: .9rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 10%, var(--border-color));
  background: color-mix(in srgb, var(--bg-surface) 99%, transparent) !important;
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.07);
}

.spa-page-shell .tabulator .tabulator-header {
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary-color) 4%, var(--bg-surface)), var(--bg-surface));
  border-bottom-color: color-mix(in srgb, var(--primary-color) 10%, var(--border-color));
}

.spa-page-shell .tabulator .tabulator-col {
  background: transparent;
}

.spa-page-shell .tabulator .tabulator-col .tabulator-col-title {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.spa-page-shell .tabulator .tabulator-row .tabulator-cell {
  padding-top: .6rem;
  padding-bottom: .6rem;
  font-size: .82rem;
  line-height: 1.42;
  transition: background-color .16s ease;
}

.spa-page-shell .tabulator .tabulator-row:hover {
  background: color-mix(in srgb, var(--primary-color) 4%, transparent);
}

.spa-page-shell .tabulator .tabulator-row.tabulator-selected {
  background: color-mix(in srgb, var(--primary-color) 7%, transparent);
}

.spa-page-shell .tabulator .tabulator-footer {
  border-top-color: color-mix(in srgb, var(--primary-color) 10%, var(--border-color));
  background: color-mix(in srgb, var(--bg-surface) 98%, transparent);
}

.spa-page-shell .tabulator .tabulator-footer .tabulator-paginator,
.spa-page-shell .tabulator .tabulator-footer .tabulator-footer-contents {
  color: var(--text-muted);
}

.spa-page-shell .tabulator .tabulator-footer .tabulator-page,
.spa-page-shell .tabulator .tabulator-footer select {
  border-radius: .55rem;
  border-color: color-mix(in srgb, var(--primary-color) 12%, var(--border-color));
  background: color-mix(in srgb, var(--bg-surface) 98%, transparent);
  color: var(--text-main);
  min-height: 2rem;
}

.spa-page-shell .tabulator .tabulator-footer .tabulator-page.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

.spa-page-shell .tabulator .tabulator-footer .tabulator-page:hover {
  background: color-mix(in srgb, var(--primary-color) 10%, var(--bg-surface));
}

.spa-page-shell .tabulator .btn.btn-sm {
  border-radius: .5rem;
  min-width: 2.05rem;
  padding: .26rem .48rem;
  font-size: .78rem;
}

.spa-page-shell .view-label {
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.spa-page-shell .view-value {
  color: var(--text-main);
  line-height: 1.45;
  word-break: break-word;
}

.spa-dashboard-kpis .phoenix-card,
.spa-funnel-summary .phoenix-card,
.spa-orders-summary .phoenix-card,
.spa-shell-summary .phoenix-card {
  min-height: 100%;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--primary-color) 10%, transparent) 0%, transparent 40%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg-surface) 99%, transparent) 0%, color-mix(in srgb, var(--primary-color) 2%, var(--bg-surface)) 100%);
}

.spa-dashboard-kpis .phoenix-card .card-body-custom,
.spa-funnel-summary .phoenix-card .card-body-custom,
.spa-orders-summary .phoenix-card .card-body-custom,
.spa-shell-summary .phoenix-card .card-body-custom {
  position: relative;
}

.spa-dashboard-kpis .phoenix-card .card-body-custom::after,
.spa-funnel-summary .phoenix-card .card-body-custom::after,
.spa-orders-summary .phoenix-card .card-body-custom::after,
.spa-shell-summary .phoenix-card .card-body-custom::after {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--primary-color) 88%, white) 0%, color-mix(in srgb, var(--primary-color) 14%, transparent) 72%, transparent 100%);
  opacity: .82;
}

.spa-dashboard-kpis .view-label,
.spa-funnel-summary .view-label,
.spa-orders-summary .view-label,
.spa-shell-summary .view-label {
  margin-bottom: .42rem;
}

.spa-dashboard-kpis .view-value,
.spa-funnel-summary .view-value,
.spa-orders-summary .view-value,
.spa-shell-summary .view-value {
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: -.02em;
}

.spa-dashboard-kpis .view-value.fw-bold,
.spa-funnel-summary .view-value.fw-bold,
.spa-orders-summary .view-value.fw-bold,
.spa-shell-summary .view-value.fw-bold {
  font-size: 1.12rem;
}

.spa-dashboard-insight {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--primary-color) 10%, transparent) 0%, transparent 42%),
    linear-gradient(180deg, color-mix(in srgb, var(--primary-color) 3%, var(--bg-surface)) 0%, color-mix(in srgb, var(--bg-surface) 98%, transparent) 100%);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
}

.spa-dashboard-insight::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary-color) 90%, white) 0%, color-mix(in srgb, var(--primary-color) 26%, transparent) 100%);
}

.spa-dashboard-insight-value {
  font-size: 1.08rem;
  letter-spacing: -.02em;
}

.spa-dashboard-insight-note {
  max-width: 42ch;
}

.spa-funnel-detail-grid > div,
.spa-orders-detail-grid > div {
  padding: .8rem .9rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 10%, var(--border-color));
  border-radius: .85rem;
  background: color-mix(in srgb, var(--bg-surface) 98%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

.spa-funnel-detail-grid > div .view-label,
.spa-orders-detail-grid > div .view-label {
  margin-bottom: .38rem;
}

.spa-funnel-detail-grid > div .view-value,
.spa-orders-detail-grid > div .view-value {
  font-weight: 700;
}

.spa-funnel-detail-grid > div[class*="span"],
.spa-orders-detail-grid > div[class*="span"] {
  min-height: 100%;
}

.spa-page-shell .spa-shell-presetbar {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-bottom: 1rem;
}

.spa-page-shell .spa-shell-presetbar .btn {
  border-radius: .25rem;
  min-height: 2.35rem;
  padding-inline: .9rem;
  font-size: .82rem;
  font-weight: 800;
}

.spa-page-shell .spa-shell-toolbar {
  display: grid;
  gap: .9rem;
  align-items: end;
}

.spa-page-shell .spa-shell-toolbar .form-label {
  margin-bottom: .42rem;
  color: var(--text-muted);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.spa-page-shell .spa-shell-toolbar-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
}

.spa-page-shell .spa-shell-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .95rem 1rem;
}

.spa-page-shell .spa-shell-detail-span {
  grid-column: 1 / -1;
}

.spa-page-shell .spa-shell-insights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.spa-page-shell .spa-shell-insight-card {
  min-height: 100%;
}

.spa-page-shell .spa-shell-drilldown {
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.spa-page-shell .spa-shell-drilldown:hover,
.spa-page-shell .spa-shell-drilldown:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.1);
  outline: none;
}

.spa-page-shell .spa-shell-section-row {
  align-items: stretch;
}

.spa-page-shell .spa-shell-section-card {
  min-height: 100%;
}

.spa-page-shell .spa-shell-section-card .card-body-custom {
  position: relative;
}

.spa-page-shell .spa-shell-section-card .card-body-custom::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--primary-color) 18%, transparent) 0%, transparent 100%);
  opacity: .95;
}

.spa-page-shell .spa-shell-workspace-panel .card-body-custom {
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary-color) 2%, var(--bg-surface)) 0%, color-mix(in srgb, var(--bg-surface) 99%, transparent) 100%);
}

.spa-page-shell .spa-shell-filter-card {
  position: relative;
}

.spa-page-shell .spa-shell-filter-card .card-header-custom {
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--primary-color) 8%, transparent) 0%, transparent 34%),
    linear-gradient(180deg, color-mix(in srgb, var(--primary-color) 6%, var(--bg-surface)) 0%, var(--bg-surface) 100%);
}

.spa-page-shell .spa-shell-activity-list {
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

.spa-page-shell .spa-shell-handoff-card {
  display: grid;
  gap: .9rem;
  padding: 1rem 1rem 1.05rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 12%, var(--border-color));
  border-radius: .95rem;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--primary-color) 8%, transparent) 0%, transparent 32%),
    linear-gradient(180deg, color-mix(in srgb, var(--primary-color) 6%, var(--bg-surface)) 0%, var(--bg-surface) 100%);
}

.spa-page-shell .spa-shell-handoff-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .85rem;
  align-items: flex-start;
}

.spa-page-shell .spa-shell-handoff-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  background: color-mix(in srgb, var(--primary-color) 14%, var(--bg-surface));
  border: 1px solid color-mix(in srgb, var(--primary-color) 18%, var(--border-color));
}

.spa-page-shell .spa-shell-handoff-content {
  min-width: 0;
  display: grid;
  gap: .2rem;
}

.spa-page-shell .spa-shell-handoff-title {
  font-weight: 800;
  color: var(--text-color);
}

.spa-page-shell .spa-shell-handoff-meta {
  font-size: .77rem;
  color: var(--text-muted);
}

.spa-page-shell .spa-shell-handoff-copy {
  font-size: .86rem;
  color: var(--text-color);
  white-space: pre-wrap;
}

.spa-page-shell .spa-shell-handoff-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.spa-page-shell .spa-shell-handoff-actions .btn {
  border-radius: .25rem;
  min-height: 2rem;
  padding-inline: .8rem;
  font-size: .78rem;
}

.spa-page-shell .spa-shell-shortcut-card .card-body-custom {
  display: grid;
  gap: .85rem;
}

.spa-page-shell .spa-shell-shortcut-copy {
  margin: 0;
  font-size: .84rem;
  color: var(--text-muted);
}

.spa-page-shell .spa-shell-shortcut-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .65rem;
}

.spa-page-shell .spa-shell-shortcut-grid .btn {
  justify-content: center;
  border-radius: .25rem;
  min-height: 2.25rem;
  font-size: .8rem;
}

.spa-page-shell .spa-shell-activity-item {
  display: grid;
  gap: .28rem;
  padding: .9rem 1rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 10%, var(--border-color));
  border-radius: .85rem;
  background: color-mix(in srgb, var(--bg-surface) 98%, transparent);
}

.spa-page-shell .spa-shell-activity-item-title {
  font-weight: 800;
  color: var(--text-color);
}

.spa-page-shell .spa-shell-activity-item-meta {
  font-size: .76rem;
  color: var(--text-muted);
}

.spa-page-shell .spa-shell-activity-item-copy {
  font-size: .86rem;
  color: var(--text-color);
  white-space: pre-wrap;
}

.spa-page-shell .spa-shell-activity-item-actions {
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
  margin-top: .45rem;
}

.spa-page-shell .spa-shell-activity-item-actions .btn {
  border-radius: .25rem;
  min-height: 2rem;
  padding-inline: .8rem;
  font-size: .78rem;
}

.spa-page-shell .spa-shell-activity-composer .form-control,
.spa-page-shell .spa-shell-activity-composer .form-select {
  border-radius: .75rem;
}

.spa-page-shell .spa-shell-activity-composer textarea.form-control {
  min-height: 96px;
  resize: vertical;
}

.spa-page-shell .spa-shell-filter-card .card-body-custom {
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary-color) 2%, var(--bg-surface)) 0%, color-mix(in srgb, var(--bg-surface) 99%, transparent) 100%);
}

.spa-page-shell .spa-shell-table-card {
  position: relative;
}

.spa-page-shell .spa-shell-table-card .card-header-custom {
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--primary-color) 7%, transparent) 0%, transparent 34%),
    linear-gradient(180deg, color-mix(in srgb, var(--primary-color) 5%, var(--bg-surface)) 0%, var(--bg-surface) 100%);
}

.spa-page-shell .spa-shell-table-card .card-body-custom {
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg-surface) 99%, transparent) 0%, color-mix(in srgb, var(--primary-color) 1.5%, var(--bg-surface)) 100%);
}

.spa-page-shell .spa-shell-action-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .55rem .6rem;
  align-items: center;
}

.spa-page-shell .spa-shell-action-footer.action-footer {
  margin-top: 1rem !important;
  padding: .9rem 1rem;
  border-radius: 1rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 12%, var(--border-color));
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg-surface) 98%, transparent) 0%, color-mix(in srgb, var(--primary-color) 2%, var(--bg-surface)) 100%);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.spa-page-shell .modal-footer.spa-shell-action-footer,
.spa-page-shell .spa-workspace-footer.spa-shell-action-footer {
  gap: .55rem .6rem;
}

.spa-page-shell .spa-shell-action-footer .btn {
  border-radius: .25rem;
  min-height: 2.45rem;
  padding-inline: .95rem;
  font-size: .84rem;
  font-weight: 800;
}

@media (min-width: 768px) {
  .spa-orders-native-shell .spa-order-workspace-footer {
    flex-wrap: nowrap;
    justify-content: flex-end;
  }

  .spa-orders-native-shell .spa-order-workspace-footer .btn {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

.spa-page-shell .spa-workspace-header-subtitle,
.spa-workspace-modal .spa-workspace-header-subtitle {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: .35rem;
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 700;
}

.spa-page-shell .spa-shell-status-badge,
.spa-workspace-modal .spa-shell-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: .2rem .55rem;
  border-radius: .25rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 22%, var(--border-color));
  background: color-mix(in srgb, var(--primary-color) 12%, var(--bg-surface));
  color: var(--text-main);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .03em;
}

.spa-page-shell .spa-order-edit-form .form-label,
.spa-page-shell .spa-order-payment-form .form-label,
.spa-workspace-modal .spa-order-edit-form .form-label,
.spa-workspace-modal .spa-order-payment-form .form-label {
  color: var(--text-muted);
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.spa-page-shell .spa-order-edit-form .form-control,
.spa-page-shell .spa-order-edit-form .form-select,
.spa-page-shell .spa-order-edit-form .choices__inner,
.spa-page-shell .spa-order-payment-form .form-control,
.spa-page-shell .spa-order-payment-form .form-select,
.spa-page-shell .spa-order-payment-form .choices__inner,
.spa-workspace-modal .spa-order-edit-form .form-control,
.spa-workspace-modal .spa-order-edit-form .form-select,
.spa-workspace-modal .spa-order-edit-form .choices__inner,
.spa-workspace-modal .spa-order-payment-form .form-control,
.spa-workspace-modal .spa-order-payment-form .form-select,
.spa-workspace-modal .spa-order-payment-form .choices__inner {
  min-height: var(--spa-select-height);
  border-radius: var(--spa-select-radius);
  font-size: var(--spa-select-font-size);
}

.spa-page-shell .spa-order-edit-form .choices,
.spa-page-shell .spa-order-payment-form .choices,
.spa-workspace-modal .spa-order-edit-form .choices,
.spa-workspace-modal .spa-order-payment-form .choices {
  margin-bottom: 0;
}

.spa-page-shell .spa-order-edit-form .choices__inner,
.spa-page-shell .spa-order-payment-form .choices__inner,
.spa-workspace-modal .spa-order-edit-form .choices__inner,
.spa-workspace-modal .spa-order-payment-form .choices__inner {
  border-color: color-mix(in srgb, var(--primary-color) 10%, var(--border-color)) !important;
  background: var(--input-bg) !important;
  color: var(--text-main);
}

.spa-page-shell .spa-order-edit-form .choices__list--single .choices__item,
.spa-page-shell .spa-order-payment-form .choices__list--single .choices__item,
.spa-workspace-modal .spa-order-edit-form .choices__list--single .choices__item,
.spa-workspace-modal .spa-order-payment-form .choices__list--single .choices__item {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spa-workspace-modal .spa-order-edit-form .phoenix-card,
.spa-workspace-modal .spa-order-payment-form .phoenix-card {
  border-radius: 1rem;
  border-color: color-mix(in srgb, var(--primary-color) 12%, var(--border-color));
  background: var(--bg-surface);
  box-shadow: none;
}

.spa-workspace-modal .spa-order-edit-section-label {
  display: inline-flex;
  width: 100%;
  min-height: 2.1rem;
  align-items: center;
  gap: .45rem;
  padding: .48rem .68rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 14%, var(--border-color));
  border-radius: .45rem;
  background: color-mix(in srgb, var(--primary-color) 5%, var(--bg-surface));
  color: var(--text-main);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.spa-workspace-modal .spa-order-edit-section-label i {
  color: var(--primary-color);
  font-size: .86rem;
}

.spa-order-product-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1rem;
}

.spa-order-product-summary span {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-height: 1.85rem;
  padding: .32rem .62rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 22%, var(--border-color));
  border-radius: .35rem;
  color: var(--text-main);
  background: color-mix(in srgb, var(--primary-color) 8%, var(--bg-surface));
  font-size: .78rem;
  font-weight: 700;
}

.spa-order-product-summary span strong,
.spa-order-product-summary span em {
  display: inline-flex;
  align-items: center;
  line-height: 1.1;
}

.spa-order-product-summary span em {
  color: color-mix(in srgb, var(--text-main) 88%, var(--text-muted));
  font-style: normal;
  font-weight: 700;
}

.spa-order-product-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid color-mix(in srgb, var(--primary-color) 12%, var(--border-color));
  border-radius: .75rem;
  background: var(--bg-surface);
}

.spa-order-product-tabulator {
  width: 100%;
  min-height: 16rem;
  overflow-x: auto;
}

.spa-order-product-tabulator .tabulator {
  min-width: 100%;
  border-radius: .75rem;
}

.spa-order-product-tabulator .tabulator-tableholder {
  min-height: 10rem;
}

.spa-order-product-tabulator .tabulator-row .tabulator-cell {
  white-space: nowrap;
}

.spa-order-product-table {
  min-width: 920px;
  color: var(--text-main);
  font-size: .8rem;
}

.spa-order-product-detail-table {
  min-width: 2250px;
}

.spa-order-product-edit-table {
  min-width: 2550px;
}

.spa-order-product-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: .72rem .75rem;
  border-color: color-mix(in srgb, var(--primary-color) 12%, var(--border-color));
  color: var(--text-muted);
  background: color-mix(in srgb, var(--primary-color) 7%, var(--bg-surface));
  font-size: .72rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: middle;
}

.spa-order-product-table td {
  padding: .62rem .75rem;
  border-color: color-mix(in srgb, var(--primary-color) 10%, var(--border-color));
  vertical-align: middle;
}

.spa-order-product-table .spa-order-product-name {
  min-width: 260px;
  font-weight: 700;
}

.spa-order-product-table .spa-order-product-note {
  min-width: 220px;
  color: var(--text-muted);
}

.spa-order-product-edit-table .form-control {
  min-height: 2.15rem;
  padding: .42rem .58rem;
  font-size: .78rem;
}

.spa-order-product-edit-table .spa-order-product-name-input {
  min-width: 250px;
}

.spa-order-product-edit-table .spa-order-product-note-input {
  min-width: 220px;
}

.spa-order-product-action {
  width: 2.15rem;
  height: 2.15rem;
  padding: 0;
  border-radius: .35rem;
}

.spa-order-product-empty {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-height: 4rem;
  padding: .85rem 1rem;
  border: 1px dashed color-mix(in srgb, var(--primary-color) 22%, var(--border-color));
  border-radius: .75rem;
  color: var(--text-muted);
  background: color-mix(in srgb, var(--bg-surface) 94%, var(--primary-color) 6%);
  font-size: .86rem;
}

.spa-order-product-empty i {
  color: var(--primary-color);
}

.spa-shell-inline-form .form-control,
.spa-shell-inline-form .form-select {
  border-radius: 0.75rem;
}

.spa-shell-inline-form textarea.form-control {
  min-height: 110px;
  resize: vertical;
}

.spa-shell-inline-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.spa-page-shell .spa-shell-form-grid {
  align-items: stretch;
}

.spa-page-shell .spa-shell-form-card {
  position: relative;
  min-height: 100%;
}

.spa-page-shell .spa-shell-form-card .card-header-custom {
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--primary-color) 8%, transparent) 0%, transparent 34%),
    linear-gradient(180deg, color-mix(in srgb, var(--primary-color) 6%, var(--bg-surface)) 0%, var(--bg-surface) 100%);
}

.spa-page-shell .spa-shell-form-card .card-body-custom {
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary-color) 2%, var(--bg-surface)) 0%, color-mix(in srgb, var(--bg-surface) 99%, transparent) 100%);
}

.spa-page-shell .spa-shell-form-card .card-body-custom.row {
  --bs-gutter-y: 1rem;
}

.spa-page-shell .spa-shell-form-note {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: .25rem;
  padding: .45rem .65rem;
  border-radius: .75rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 12%, var(--border-color));
  background: color-mix(in srgb, var(--primary-color) 5%, var(--bg-surface));
  color: var(--text-muted) !important;
}

.spa-page-shell .spa-workspace-catalog-shell {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.spa-page-shell .spa-workspace-catalog-group {
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 10%, var(--border-color));
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--primary-color) 6%, transparent) 0%, transparent 32%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg-surface) 99%, transparent) 0%, color-mix(in srgb, var(--primary-color) 2%, var(--bg-surface)) 100%);
}

.spa-page-shell .spa-workspace-catalog-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .9rem;
}

.spa-page-shell .spa-workspace-catalog-group-title {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}

.spa-page-shell .spa-workspace-catalog-group-title > i {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--primary-color) 12%, var(--bg-surface));
  color: var(--primary-color);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.spa-page-shell .spa-workspace-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: .85rem;
}

.spa-page-shell .spa-workspace-catalog-item {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  min-height: 100%;
  padding: .95rem 1rem;
  border-radius: .95rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 10%, var(--border-color));
  background: color-mix(in srgb, var(--bg-surface) 98%, transparent);
  text-decoration: none;
  color: inherit;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.spa-page-shell .spa-workspace-catalog-item:hover,
.spa-page-shell .spa-workspace-catalog-item:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
  border-color: color-mix(in srgb, var(--primary-color) 24%, var(--border-color));
}

.spa-page-shell .spa-workspace-catalog-item.is-danger {
  border-color: color-mix(in srgb, #dc2626 24%, var(--border-color));
}

.spa-page-shell .spa-workspace-catalog-item.is-warning {
  border-color: color-mix(in srgb, #d97706 24%, var(--border-color));
}

.spa-page-shell .spa-workspace-catalog-item.is-success {
  border-color: color-mix(in srgb, #16a34a 24%, var(--border-color));
}

.spa-page-shell .spa-workspace-catalog-item.is-primary,
.spa-page-shell .spa-workspace-catalog-item.is-info {
  border-color: color-mix(in srgb, var(--primary-color) 22%, var(--border-color));
}

.spa-page-shell .spa-workspace-catalog-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .65rem;
}

.spa-page-shell .spa-workspace-catalog-item-title {
  font-size: .96rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-main);
}

.spa-page-shell .spa-workspace-catalog-item-meta {
  margin-top: .15rem;
  font-size: .76rem;
  color: var(--text-muted);
}

.spa-page-shell .spa-workspace-catalog-item-copy {
  font-size: .82rem;
  line-height: 1.55;
  color: var(--text-color);
}

.spa-page-shell .spa-workspace-catalog-item-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.spa-page-shell .spa-workspace-catalog-item-badges .badge {
  border-radius: .5rem;
  font-size: .68rem;
  font-weight: 700;
}

.spa-page-shell .spa-migration-shell {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.spa-page-shell .spa-migration-section {
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 10%, var(--border-color));
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg-surface) 99%, transparent) 0%, color-mix(in srgb, var(--primary-color) 2%, var(--bg-surface)) 100%);
}

.spa-page-shell .spa-migration-section.is-warning {
  border-color: color-mix(in srgb, #d97706 28%, var(--border-color));
}

.spa-page-shell .spa-migration-section.is-pending {
  border-color: color-mix(in srgb, var(--primary-color) 28%, var(--border-color));
}

.spa-page-shell .spa-migration-section.is-complete {
  border-color: color-mix(in srgb, #16a34a 28%, var(--border-color));
}

.spa-page-shell .spa-migration-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .85rem;
}

.spa-page-shell .spa-migration-section-title {
  font-size: .95rem;
  font-weight: 800;
  color: var(--text-main);
}

.spa-page-shell .spa-migration-section-meta {
  margin-top: .12rem;
  font-size: .78rem;
  color: var(--text-muted);
}

.spa-page-shell .spa-migration-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: .75rem;
}

.spa-page-shell .spa-migration-check-item {
  padding: .8rem .9rem;
  border-radius: .85rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 10%, var(--border-color));
  background: color-mix(in srgb, var(--bg-surface) 98%, transparent);
}

.spa-page-shell .spa-migration-check-item.is-warning {
  border-color: color-mix(in srgb, #d97706 24%, var(--border-color));
}

.spa-page-shell .spa-migration-check-item.is-pending {
  border-color: color-mix(in srgb, var(--primary-color) 24%, var(--border-color));
}

.spa-page-shell .spa-migration-check-item.is-ok {
  border-color: color-mix(in srgb, #16a34a 20%, var(--border-color));
}

.spa-page-shell .spa-migration-check-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
}

.spa-page-shell .spa-migration-check-label {
  font-size: .85rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.45;
}

.spa-page-shell .spa-migration-check-meta {
  margin-top: .3rem;
  font-size: .76rem;
  line-height: 1.5;
  color: var(--text-muted);
}

body.spa-lite-shell .spa-settings-page {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

body.spa-lite-shell .spa-settings-page > .ds-page-header {
  margin-bottom: 0;
}

body.spa-lite-shell .spa-settings-page .ds-page-header-meta {
  min-width: 0;
}

body.spa-lite-shell .spa-settings-header-actions,
body.spa-lite-shell .spa-settings-overview-badges {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .55rem;
}

body.spa-lite-shell .spa-settings-overview-badges {
  justify-content: flex-start;
}

body.spa-lite-shell .spa-settings-status-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 2.15rem;
  padding: .48rem .72rem;
  border-radius: .38rem;
  font-size: .78rem;
  letter-spacing: .01em;
}

body.spa-lite-shell .spa-settings-status-badge strong {
  font-size: .82rem;
  font-weight: 800;
}

body.spa-lite-shell .spa-settings-icon-action,
body.spa-lite-shell .spa-settings-help {
  --icon-action-color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: .25rem;
  border-color: color-mix(in srgb, var(--icon-action-color) 35%, var(--border-color));
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--icon-action-color) 12%, transparent) 0%, transparent 44%),
    var(--bg-surface);
  color: var(--icon-action-color);
  box-shadow: 0 10px 20px rgba(15, 23, 42, .06);
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease, transform .18s ease;
}

body.spa-lite-shell .spa-settings-icon-action {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
}

body.spa-lite-shell .spa-settings-help {
  width: 2.15rem;
  min-width: 2.15rem;
  height: 2.15rem;
  padding: 0;
}

body.spa-lite-shell .spa-settings-icon-action:hover,
body.spa-lite-shell .spa-settings-icon-action:focus-visible,
body.spa-lite-shell .spa-settings-help:hover,
body.spa-lite-shell .spa-settings-help:focus-visible {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--icon-action-color) 52%, var(--border-color));
  background: color-mix(in srgb, var(--icon-action-color) 12%, var(--bg-surface));
  color: var(--icon-action-color);
  box-shadow: 0 16px 26px rgba(15, 23, 42, .12);
}

body.spa-lite-shell .spa-settings-icon-action i,
body.spa-lite-shell .spa-settings-help i {
  margin: 0;
  color: currentColor !important;
  line-height: 1;
}

body.spa-lite-shell .spa-settings-help.is-info {
  --icon-action-color: #0284c7;
}

body.spa-lite-shell .spa-settings-icon-action.is-home {
  --icon-action-color: #16a34a;
}

body.spa-lite-shell .spa-settings-icon-action.is-master {
  --icon-action-color: #2563eb;
}

body.spa-lite-shell .spa-settings-card .card-header-custom h5 {
  display: inline-flex;
  align-items: center;
  gap: .58rem;
  margin: 0;
}

body.spa-lite-shell .spa-settings-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: .75rem;
}

body.spa-lite-shell .spa-settings-action-btn {
  min-height: 3.25rem;
  justify-content: flex-start;
  gap: .65rem;
  border-radius: .25rem;
  font-size: .88rem;
  font-weight: 800;
  text-align: left;
}

body.spa-lite-shell .spa-settings-action-btn i {
  width: 1.25rem;
  text-align: center;
  font-size: .98rem;
}

body.spa-lite-shell .settings-note-list {
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

body.spa-lite-shell .settings-note-item {
  padding: .95rem 1rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 10%, var(--border-color));
  border-radius: .75rem;
  background: color-mix(in srgb, var(--bg-surface) 98%, transparent);
}

body.spa-lite-shell .settings-note-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .35rem;
}

body.spa-lite-shell .settings-runtime-card {
  margin-top: 0;
}

body.spa-lite-shell .settings-mini-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .55rem;
}

body.spa-lite-shell .settings-mini-metric-grid span {
  display: flex;
  flex-direction: column;
  gap: .12rem;
  min-width: 0;
  padding: .55rem .6rem;
  border-radius: .55rem;
  background: color-mix(in srgb, var(--primary-color) 5%, var(--bg-main));
}

body.spa-lite-shell .settings-mini-metric-grid strong {
  font-size: .96rem;
  line-height: 1;
  color: var(--text-main);
}

body.spa-lite-shell .settings-mini-metric-grid small {
  font-size: .68rem;
  color: var(--text-muted);
}

body.spa-lite-shell .spa-settings-page .spa-shell-state-card {
  min-height: auto;
  padding: .95rem 1rem;
}

body.spa-lite-shell .spa-settings-toggle {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border-radius: .25rem;
  font-size: .84rem;
  font-weight: 800;
}

body.spa-lite-shell .spa-settings-page hr {
  border-color: color-mix(in srgb, var(--primary-color) 12%, var(--border-color));
  opacity: 1;
}

@media (max-width: 991.98px) {
  .spa-page-shell .spa-shell-detail-grid {
    grid-template-columns: 1fr;
  }

  .spa-page-shell .spa-workspace-catalog-grid {
    grid-template-columns: 1fr;
  }

  .spa-page-shell .spa-migration-checklist {
    grid-template-columns: 1fr;
  }

  body.spa-lite-shell .spa-settings-page > .ds-page-header {
    align-items: stretch;
  }

  body.spa-lite-shell .spa-settings-header-actions {
    justify-content: flex-start;
  }

  body.spa-lite-shell .settings-mini-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.spa-master-toolbar {
  margin-left: auto;
}

.spa-master-chooser-modal .modal-dialog {
  max-width: 760px;
}

.spa-master-chooser-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
}

.spa-master-chooser-card {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  padding: 1rem 1rem .95rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 12%, var(--border-color));
  border-radius: .9rem;
  background: color-mix(in srgb, var(--bg-surface) 96%, transparent);
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.spa-master-chooser-card:hover {
  border-color: color-mix(in srgb, var(--primary-color) 36%, var(--border-color));
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.spa-master-chooser-card.is-selected {
  border-color: color-mix(in srgb, var(--primary-color) 56%, var(--border-color));
  background: color-mix(in srgb, var(--primary-color) 8%, var(--bg-surface));
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.12);
}

.spa-master-chooser-card .form-check-input {
  margin-top: .2rem;
  min-width: 1.05rem;
  min-height: 1.05rem;
}

.spa-master-chooser-card-title {
  display: block;
  font-weight: 800;
  line-height: 1.32;
  color: var(--text-main);
}

body.spa-lite-shell.master-data-page .ds-tabs-scroll-nav {
  align-items: center;
  gap: .55rem;
  margin-bottom: 1rem;
  border-bottom: 0;
}

body.spa-lite-shell.master-data-page .ds-tabs-scroll-nav .nav-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 2.6rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 12%, var(--border-color));
  border-radius: .35rem;
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: .84rem;
  font-weight: 850;
  white-space: nowrap;
}

body.spa-lite-shell.master-data-page .ds-tabs-scroll-nav .nav-link.active {
  border-color: color-mix(in srgb, var(--primary-color) 42%, var(--border-color));
  background: color-mix(in srgb, var(--primary-color) 10%, var(--bg-surface));
  color: var(--primary-color);
}

body.spa-lite-shell.master-data-page .master-tab-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.85rem;
  height: 1.35rem;
  padding: 0 .48rem;
  border-radius: .35rem;
  color: #fff;
  font-size: .72rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 8px 16px rgba(15, 23, 42, .1);
}

body.spa-lite-shell.master-data-page .master-tab-count-badge.is-empty {
  opacity: .72;
  filter: saturate(.72);
}

body.spa-lite-shell.master-data-page .master-tab-count-badge.is-principals {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

body.spa-lite-shell.master-data-page .master-tab-count-badge.is-partners {
  background: linear-gradient(135deg, #0d9488, #0f766e);
}

body.spa-lite-shell.master-data-page .master-tab-count-badge.is-owners {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
}

body.spa-lite-shell.master-data-page .master-tab-count-badge.is-locations {
  background: linear-gradient(135deg, #f97316, #ea580c);
}

body.spa-lite-shell.master-data-page .master-tab-count-badge.is-product-categories {
  background: linear-gradient(135deg, #db2777, #be185d);
}

body.spa-lite-shell.master-data-page .master-tab-count-badge.is-products {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}

body.spa-lite-shell.master-data-page .master-tab-count-badge.is-provinces {
  background: linear-gradient(135deg, #16a34a, #15803d);
}

body.spa-lite-shell.master-data-page .master-tab-count-badge.is-province-regions {
  background: linear-gradient(135deg, #0891b2, #0e7490);
}

body.spa-lite-shell.master-data-page .master-tab-count-badge.is-opportunity-sources {
  background: linear-gradient(135deg, #ca8a04, #a16207);
}

body.spa-lite-shell.master-data-page .ds-page-header-meta {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

body.spa-lite-shell.master-data-page .spa-master-page-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: .55rem;
  margin-left: auto;
}

body.spa-lite-shell.master-data-page .spa-commandbar-shell .spa-master-command-btn,
body.spa-lite-shell.master-data-page .spa-master-page-actions .spa-master-command-btn {
  --icon-action-color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  min-width: 2.55rem;
  height: 2.55rem;
  min-height: 2.55rem;
  padding: 0;
  border-radius: .25rem;
  border-color: color-mix(in srgb, var(--icon-action-color) 35%, var(--border-color));
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--icon-action-color) 12%, transparent) 0%, transparent 44%),
    var(--bg-surface);
  color: var(--icon-action-color);
  box-shadow: 0 10px 20px rgba(15, 23, 42, .06);
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease, transform .18s ease;
}

body.spa-lite-shell.master-data-page .spa-commandbar-shell .spa-master-command-btn i,
body.spa-lite-shell.master-data-page .spa-master-page-actions .spa-master-command-btn i {
  margin: 0;
  color: currentColor !important;
  font-size: .95rem;
  line-height: 1;
}

body.spa-lite-shell.master-data-page .spa-commandbar-shell .spa-master-command-btn:hover,
body.spa-lite-shell.master-data-page .spa-commandbar-shell .spa-master-command-btn:focus-visible,
body.spa-lite-shell.master-data-page .spa-master-page-actions .spa-master-command-btn:hover,
body.spa-lite-shell.master-data-page .spa-master-page-actions .spa-master-command-btn:focus-visible {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--icon-action-color) 52%, var(--border-color));
  background: color-mix(in srgb, var(--icon-action-color) 12%, var(--bg-surface));
  color: var(--icon-action-color);
  box-shadow: 0 16px 26px rgba(15, 23, 42, .12);
}

body.spa-lite-shell.master-data-page .spa-commandbar-shell .spa-master-command-btn.is-template,
body.spa-lite-shell.master-data-page .spa-master-page-actions .spa-master-command-btn.is-template {
  --icon-action-color: #16a34a;
}

body.spa-lite-shell.master-data-page .spa-commandbar-shell .spa-master-command-btn.is-import,
body.spa-lite-shell.master-data-page .spa-master-page-actions .spa-master-command-btn.is-import {
  --icon-action-color: #0284c7;
}

body.spa-lite-shell.master-data-page .spa-commandbar-shell .spa-master-command-btn.is-export,
body.spa-lite-shell.master-data-page .spa-master-page-actions .spa-master-command-btn.is-export {
  --icon-action-color: #7c3aed;
}

body.spa-lite-shell.master-data-page .master-grid-shell .tabulator-footer {
  position: relative;
}

body.spa-lite-shell.master-data-page .master-grid-shell .spa-master-table-count {
  left: .95rem;
  bottom: .82rem;
}

body.spa-lite-shell.master-data-page .master-grid-shell .tabulator-cell[tabulator-field="__actions"] {
  padding-inline: .45rem;
}

body.spa-lite-shell.master-data-page .master-action-buttons {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .42rem;
  width: 100%;
}

body.spa-lite-shell.master-data-page .master-action-buttons .action-icon-btn {
  --icon-action-color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  min-width: 2rem;
  height: 2rem;
  min-height: 2rem;
  margin: 0;
  padding: 0;
  border-radius: .35rem;
  border-color: color-mix(in srgb, var(--icon-action-color) 34%, var(--border-color)) !important;
  background: var(--bg-surface) !important;
  color: var(--icon-action-color) !important;
  line-height: 1;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}

body.spa-lite-shell.master-data-page .master-action-buttons .action-icon-btn i {
  margin: 0;
  color: currentColor !important;
  font-size: .82rem;
  line-height: 1;
}

body.spa-lite-shell.master-data-page .master-action-buttons .action-icon-btn:hover,
body.spa-lite-shell.master-data-page .master-action-buttons .action-icon-btn:focus-visible {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--icon-action-color) 52%, var(--border-color)) !important;
  background: color-mix(in srgb, var(--icon-action-color) 12%, var(--bg-surface)) !important;
  color: var(--icon-action-color) !important;
  box-shadow: 0 10px 18px rgba(15, 23, 42, .1);
  outline: none;
}

body.spa-lite-shell.master-data-page .master-action-buttons .action-icon-btn.is-edit {
  --icon-action-color: var(--primary-color);
}

body.spa-lite-shell.master-data-page .master-action-buttons .action-icon-btn.is-delete {
  --icon-action-color: #ef4444;
}

body.spa-lite-shell.master-data-page .master-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.35rem;
  padding: .25rem .5rem;
  border-radius: .32rem;
  font-size: .72rem;
  font-weight: 850;
  line-height: 1;
}

body.spa-lite-shell.master-data-page .master-status-badge.is-active {
  background: color-mix(in srgb, #16a34a 18%, transparent);
  color: #22c55e;
}

body.spa-lite-shell.master-data-page .master-status-badge.is-inactive {
  background: color-mix(in srgb, #ef4444 15%, transparent);
  color: #ef4444;
}

.spa-dashboard-native-shell .phoenix-card {
  border-radius: 1rem;
  border-color: color-mix(in srgb, var(--primary-color) 12%, var(--border-color));
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.spa-dashboard-native-shell .card-header-custom {
  padding: 1rem 1.2rem;
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary-color) 6%, var(--bg-surface)), var(--bg-surface));
  border-bottom-color: color-mix(in srgb, var(--primary-color) 10%, var(--border-color));
}

.spa-dashboard-native-shell .card-body-custom {
  padding: 1rem 1.15rem 1.1rem;
}

.spa-dashboard-kpis .card-body-custom {
  padding: .95rem 1rem 1rem;
}

.spa-dashboard-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 2fr) repeat(5, minmax(150px, 1fr)) auto;
  gap: .9rem;
  align-items: end;
}

.spa-dashboard-toolbar .form-label {
  margin-bottom: .42rem;
  color: var(--text-muted);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.spa-dashboard-toolbar-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
}

.spa-dashboard-insights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.spa-dashboard-insight {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--primary-color) 12%, var(--border-color));
  border-radius: .9rem;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--primary-color) 10%, transparent) 0%, transparent 42%),
    color-mix(in srgb, var(--bg-surface) 97%, transparent);
  padding: .95rem 1rem;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
}

.spa-dashboard-insight::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary-color) 90%, white) 0%, color-mix(in srgb, var(--primary-color) 26%, transparent) 100%);
}

.spa-dashboard-insight-title {
  position: relative;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .45rem;
}

.spa-dashboard-insight-value {
  position: relative;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.4;
  letter-spacing: -.02em;
}

.spa-dashboard-insight-note {
  position: relative;
  margin-top: .45rem;
  color: var(--text-muted);
  font-size: .82rem;
  line-height: 1.5;
  max-width: 42ch;
}

.spa-dashboard-health-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--primary-color) 14%, var(--border-color));
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--primary-color) 13%, transparent) 0%, transparent 42%),
    linear-gradient(135deg, color-mix(in srgb, var(--bg-surface) 96%, transparent), color-mix(in srgb, var(--primary-color) 4%, var(--bg-surface)));
  box-shadow: var(--card-shadow);
}

.spa-dashboard-health-card[data-health="watch"] {
  border-color: color-mix(in srgb, #f59e0b 42%, var(--border-color));
  background:
    radial-gradient(circle at top left, color-mix(in srgb, #f59e0b 14%, transparent) 0%, transparent 42%),
    color-mix(in srgb, var(--bg-surface) 98%, transparent);
}

.spa-dashboard-health-card[data-health="critical"] {
  border-color: color-mix(in srgb, #ef4444 42%, var(--border-color));
  background:
    radial-gradient(circle at top left, color-mix(in srgb, #ef4444 13%, transparent) 0%, transparent 42%),
    color-mix(in srgb, var(--bg-surface) 98%, transparent);
}

.spa-dashboard-health-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .9rem;
  align-items: center;
  min-width: 0;
}

.spa-dashboard-health-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: .8rem;
  color: var(--primary-color);
  background: color-mix(in srgb, var(--primary-color) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary-color) 22%, transparent);
}

.spa-dashboard-health-kicker {
  color: var(--text-muted);
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.spa-dashboard-health-title {
  margin-top: .12rem;
  color: var(--text-main);
  font-size: 1.02rem;
  font-weight: 850;
  letter-spacing: -.015em;
}

.spa-dashboard-health-copy {
  margin-top: .2rem;
  color: var(--text-muted);
  font-size: .84rem;
  line-height: 1.45;
}

.spa-dashboard-health-meta {
  margin-top: .35rem;
  color: color-mix(in srgb, var(--primary-color) 82%, var(--text-main));
  font-size: .78rem;
  font-weight: 800;
}

.spa-dashboard-health-actions {
  display: flex;
  gap: .6rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.spa-dashboard-health-chip {
  min-width: 7.5rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 18%, var(--border-color));
  border-radius: .55rem;
  padding: .62rem .72rem;
  color: var(--text-main);
  background: color-mix(in srgb, var(--bg-surface) 96%, transparent);
  text-align: left;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.spa-dashboard-health-chip:hover,
.spa-dashboard-health-chip:focus-visible {
  border-color: color-mix(in srgb, var(--primary-color) 56%, var(--border-color));
  background: color-mix(in srgb, var(--primary-color) 10%, var(--bg-surface));
  transform: translateY(-1px);
}

.spa-dashboard-health-chip span,
.spa-dashboard-health-chip strong {
  display: block;
}

.spa-dashboard-health-chip span {
  color: var(--text-muted);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.spa-dashboard-health-chip strong {
  margin-top: .2rem;
  color: var(--text-main);
  font-size: 1.06rem;
  line-height: 1;
}

.spa-dashboard-section-meta {
  flex: 0 0 auto;
  align-self: center;
  border: 1px solid color-mix(in srgb, var(--primary-color) 13%, var(--border-color));
  border-radius: .45rem;
  padding: .36rem .55rem;
  color: var(--text-muted);
  background: color-mix(in srgb, var(--bg-surface) 96%, transparent);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .015em;
  white-space: nowrap;
}

.spa-dashboard-mini-note {
  color: var(--text-muted);
  font-size: .82rem;
}

.spa-dashboard-empty {
  border: 1px dashed var(--border-color);
  border-radius: .95rem;
  padding: 1rem;
  text-align: center;
  color: var(--text-muted);
  background: color-mix(in srgb, var(--bg-surface) 98%, transparent);
}

@media (max-width: 1599.98px) {
  .spa-dashboard-toolbar {
    grid-template-columns: minmax(260px, 2fr) repeat(3, minmax(160px, 1fr));
  }

  .spa-dashboard-toolbar-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 1199.98px) {
  .spa-dashboard-toolbar,
  .spa-dashboard-insights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spa-dashboard-health-card {
    grid-template-columns: 1fr;
  }

  .spa-dashboard-health-actions {
    justify-content: flex-start;
  }

  .spa-workspace-pill-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spa-shell-review-banner {
    grid-template-columns: 1fr;
  }

  .spa-shell-review-banner-actions {
    justify-content: flex-start;
  }

  .spa-shell-review-desk-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spa-shell-review-desk-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 767.98px) {
  .spa-dashboard-toolbar,
  .spa-dashboard-insights {
    grid-template-columns: 1fr;
  }

  .spa-dashboard-health-main {
    grid-template-columns: 1fr;
  }

  .spa-dashboard-health-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .spa-dashboard-section-meta {
    width: 100%;
    white-space: normal;
  }

  .spa-dashboard-native-shell .card-header-custom,
  .spa-dashboard-native-shell .card-body-custom {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .spa-workspace-pill-row {
    grid-template-columns: 1fr;
  }

  .spa-shell-review-desk-grid {
    grid-template-columns: 1fr;
  }

  .spa-workspace-hero-main {
    flex-direction: column;
  }
}

.spa-funnel-native-shell .phoenix-card {
  border-radius: 1rem;
  border-color: color-mix(in srgb, var(--primary-color) 12%, var(--border-color));
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.spa-funnel-input-shell .phoenix-card {
  border-radius: 1rem;
  border-color: color-mix(in srgb, var(--primary-color) 12%, var(--border-color));
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.spa-funnel-input-shell .spa-shell-form-card,
.spa-funnel-input-shell .spa-shell-form-card .card-body-custom {
  overflow: visible !important;
}

.spa-funnel-input-shell .choices {
  position: relative;
}

.spa-funnel-input-shell .choices.is-open {
  z-index: 1080;
}

.spa-funnel-input-shell .choices__list--dropdown {
  z-index: 1085;
}

.spa-funnel-input-shell .card-header-custom {
  padding: 1rem 1.2rem;
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary-color) 6%, var(--bg-surface)), var(--bg-surface));
  border-bottom-color: color-mix(in srgb, var(--primary-color) 10%, var(--border-color));
}

.spa-funnel-input-shell .card-body-custom {
  padding: 1.05rem 1.2rem 1.15rem;
}

.spa-funnel-input-shell .card-header-custom h5 {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -.01em;
}

.spa-funnel-input-shell .form-label {
  margin-bottom: .42rem;
  color: var(--text-muted);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.spa-funnel-input-shell .form-control,
.spa-funnel-input-shell .form-select,
.spa-funnel-input-shell .choices__inner {
  min-height: var(--spa-select-height);
  border-radius: var(--spa-select-radius);
  font-size: var(--spa-select-font-size);
}

.spa-funnel-input-shell .form-control,
.spa-funnel-input-shell .form-select {
  padding: .55rem .85rem;
  border-color: color-mix(in srgb, var(--primary-color) 10%, var(--border-color));
}

.spa-funnel-input-shell textarea.form-control {
  min-height: 72px;
  padding-top: .75rem;
  line-height: 1.55;
  resize: vertical;
}

.spa-funnel-input-shell .choices[data-type*="select-one"] .choices__inner {
  padding-right: var(--spa-select-arrow-space);
}

.spa-funnel-input-shell .choices__list--single .choices__item {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spa-funnel-input-shell .spa-funnel-page-title-row {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
}

.spa-funnel-input-shell .spa-funnel-input-page-header {
  margin-bottom: 1rem;
}

.spa-funnel-input-shell .spa-funnel-input-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 2.2rem;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid color-mix(in srgb, #2563eb 34%, var(--border-color));
  border-radius: .55rem;
  background: color-mix(in srgb, #2563eb 11%, var(--bg-surface));
  color: #2563eb;
  box-shadow: 0 10px 20px rgba(15, 23, 42, .06);
}

.spa-funnel-input-shell .spa-funnel-input-title-icon i {
  font-size: 1rem;
  line-height: 1;
}

.spa-funnel-input-shell .spa-funnel-input-page-actions {
  justify-content: flex-end;
  gap: .45rem;
}

.spa-funnel-input-shell .ds-page-header-actions {
  justify-content: flex-end;
}

.spa-funnel-input-shell .spa-funnel-mode-tooltip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  min-width: 2.15rem;
  height: 2.15rem;
  padding: 0;
}

.spa-funnel-input-shell .spa-funnel-mode-tooltip-btn i {
  margin: 0;
}

.spa-funnel-input-shell .funnel-inline-textarea {
  min-height: 72px;
  padding-top: .7rem;
}

.spa-funnel-input-shell .action-footer {
  justify-content: flex-end;
  gap: .45rem .55rem;
  padding: 12px 14px;
}

.spa-funnel-input-shell .action-footer .btn {
  padding: .44rem .8rem;
  font-size: .84rem;
  white-space: nowrap;
}

.spa-funnel-input-shell .funnel-entry-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: auto;
  padding: .65rem .85rem;
}

.spa-funnel-input-shell .funnel-entry-footer .footer-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .45rem;
  min-width: 0;
}

.spa-funnel-input-shell .funnel-entry-footer .funnel-entry-footer-actions {
  margin-left: auto;
}

.spa-funnel-input-shell .funnel-entry-footer .funnel-entry-footer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .42rem;
  min-height: 2.15rem;
  padding: .42rem .72rem;
  border-radius: .25rem;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.spa-funnel-input-shell .funnel-entry-footer .funnel-entry-footer-btn i {
  flex: 0 0 auto;
  margin: 0 !important;
}

.spa-funnel-input-shell .funnel-entry-footer .funnel-entry-footer-btn span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spa-funnel-input-shell .funnel-entry-footer .is-save,
.spa-funnel-input-shell .funnel-entry-footer .is-open {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.spa-funnel-input-shell .funnel-entry-footer .is-save:hover,
.spa-funnel-input-shell .funnel-entry-footer .is-save:focus-visible,
.spa-funnel-input-shell .funnel-entry-footer .is-open:hover,
.spa-funnel-input-shell .funnel-entry-footer .is-open:focus-visible {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

.spa-funnel-native-shell .card-header-custom {
  padding: 1rem 1.2rem;
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary-color) 6%, var(--bg-surface)), var(--bg-surface));
  border-bottom-color: color-mix(in srgb, var(--primary-color) 10%, var(--border-color));
}

.spa-funnel-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.spa-funnel-page-title-row {
  display: flex;
  align-items: center;
  gap: .7rem;
  flex-wrap: wrap;
}

.spa-funnel-page-actions {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-wrap: wrap;
}

.spa-funnel-page-actions .spa-funnel-header-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 2.55rem !important;
  width: 2.55rem !important;
  min-width: 2.55rem !important;
  max-width: 2.55rem !important;
  height: 2.55rem;
  padding: 0;
  border-radius: .25rem;
  border-color: color-mix(in srgb, var(--primary-color) 28%, var(--border-color));
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--primary-color) 11%, transparent) 0%, transparent 42%),
    var(--bg-surface);
  color: var(--primary-color);
  box-shadow: 0 10px 20px rgba(15, 23, 42, .06);
}

.spa-funnel-page-actions .spa-funnel-header-icon-btn i {
  margin: 0;
  font-size: 1rem;
  line-height: 1;
}

.spa-funnel-page-actions .spa-funnel-header-icon-btn:hover,
.spa-funnel-page-actions .spa-funnel-header-icon-btn:focus-visible {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--primary-color) 52%, var(--border-color));
  background: color-mix(in srgb, var(--primary-color) 12%, var(--bg-surface));
  color: var(--primary-color);
}

.spa-funnel-page-actions .spa-funnel-header-icon-btn.is-template,
.spa-funnel-page-actions .spa-funnel-header-icon-btn.is-import,
.spa-funnel-page-actions .spa-funnel-header-icon-btn.is-export {
  color: #16a34a;
  border-color: color-mix(in srgb, #16a34a 35%, var(--border-color));
  background:
    radial-gradient(circle at top right, color-mix(in srgb, #16a34a 12%, transparent) 0%, transparent 44%),
    var(--bg-surface);
}

.spa-funnel-page-actions .spa-funnel-header-icon-btn.is-import {
  color: #0284c7;
  border-color: color-mix(in srgb, #0284c7 35%, var(--border-color));
  background:
    radial-gradient(circle at top right, color-mix(in srgb, #0284c7 12%, transparent) 0%, transparent 44%),
    var(--bg-surface);
}

.spa-funnel-page-actions .spa-funnel-header-icon-btn.is-export {
  color: #7c3aed;
  border-color: color-mix(in srgb, #7c3aed 35%, var(--border-color));
  background:
    radial-gradient(circle at top right, color-mix(in srgb, #7c3aed 12%, transparent) 0%, transparent 44%),
    var(--bg-surface);
}

.spa-funnel-page-actions .spa-funnel-header-icon-btn.is-new {
  color: #2563eb;
  border-color: color-mix(in srgb, #2563eb 38%, var(--border-color));
}

.spa-funnel-sync-badge,
.spa-funnel-meta-badge {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: .38rem .7rem;
  border-radius: .55rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 14%, var(--border-color));
  background: color-mix(in srgb, var(--primary-color) 8%, var(--bg-surface));
  color: var(--text-main);
  font-size: .74rem;
  font-weight: 800;
  white-space: nowrap;
}

.spa-funnel-meta-strip {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .65rem;
  margin-bottom: .85rem;
}

.spa-funnel-header-search {
  width: min(520px, 48vw);
  min-width: min(100%, 320px);
  margin-left: auto;
}

.spa-funnel-search-box {
  position: relative;
  min-width: 0;
}

.spa-funnel-search-box i {
  position: absolute;
  left: .9rem;
  top: 50%;
  z-index: 2;
  color: var(--text-muted);
  font-size: .88rem;
  transform: translateY(-50%);
  pointer-events: none;
}

.spa-funnel-search-box .form-control {
  padding-left: 2.45rem;
  font-size: .9rem;
}

.spa-funnel-toolbar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr)) 2.65rem;
  gap: .75rem;
  align-items: end;
}

.spa-funnel-toolbar > div,
.spa-funnel-toolbar-search {
  min-width: 0;
}

.spa-funnel-toolbar .form-label {
  margin-bottom: .42rem;
  color: var(--text-muted);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.spa-funnel-toolbar-actions {
  display: flex;
  justify-content: stretch;
  align-items: end;
  min-width: 0;
}

.spa-funnel-toolbar-actions .btn {
  width: 100%;
  white-space: nowrap;
}

.spa-funnel-toolbar .choices {
  margin-bottom: 0;
}

.spa-funnel-toolbar .choices__inner {
  border-color: color-mix(in srgb, var(--primary-color) 10%, var(--border-color)) !important;
  border-radius: var(--spa-select-radius);
  background: var(--input-bg) !important;
  color: var(--text-main);
  font-size: var(--spa-select-font-size);
}

.spa-funnel-toolbar .choices__list--single .choices__item {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spa-funnel-reset-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--spa-select-height);
  width: var(--spa-select-height) !important;
  height: var(--spa-select-height);
  padding: 0;
}

.spa-funnel-reset-btn i {
  margin: 0;
}

.spa-funnel-table-wrap {
  position: relative;
}

.spa-funnel-table-count {
  position: absolute;
  left: .95rem;
  bottom: .82rem;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: .28rem .58rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 16%, var(--border-color));
  border-radius: .45rem;
  color: var(--text-main);
  background: color-mix(in srgb, var(--bg-surface) 96%, transparent);
  font-size: .78rem;
  font-weight: 800;
  white-space: nowrap;
}

.spa-funnel-native-shell #spa-funnel-grid .tabulator-footer {
  min-height: 3.65rem;
  padding-left: 12.5rem;
}

.spa-funnel-native-shell #spa-funnel-grid .tabulator-col-content {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}

.spa-funnel-native-shell #spa-funnel-grid .tabulator-col .tabulator-col-title {
  font-size: .78rem;
  font-weight: 700;
  text-align: center;
  white-space: normal;
}

.spa-funnel-native-shell #spa-funnel-grid .tabulator-row .tabulator-cell {
  padding-top: .56rem;
  padding-bottom: .56rem;
  font-size: .82rem;
  line-height: 1.42;
}

.spa-funnel-native-shell #spa-funnel-grid .tabulator-row {
  cursor: pointer;
}

.spa-funnel-native-shell #spa-funnel-grid .tabulator-col[tabulator-field="actions"],
.spa-funnel-native-shell #spa-funnel-grid .tabulator-cell[tabulator-field="actions"],
.spa-funnel-native-shell #spa-funnel-grid .tabulator-cell.spa-funnel-action-cell {
  background: color-mix(in srgb, var(--bg-surface) 98%, transparent);
}

.spa-funnel-native-shell #spa-funnel-grid .tabulator-col[tabulator-field="actions"] {
  z-index: 6;
  box-shadow: -10px 0 18px rgba(15, 23, 42, .08);
}

.spa-funnel-native-shell #spa-funnel-grid .tabulator-cell[tabulator-field="actions"],
.spa-funnel-native-shell #spa-funnel-grid .tabulator-cell.spa-funnel-action-cell {
  z-index: 5;
  box-shadow: -8px 0 14px rgba(15, 23, 42, .05);
}

.spa-funnel-edit-form .form-label {
  color: var(--text-muted);
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.spa-funnel-edit-form .form-control,
.spa-funnel-edit-form .form-select,
.spa-funnel-edit-form .choices__inner,
.spa-shell-inline-form .datepicker {
  min-height: var(--spa-select-height);
  border-radius: var(--spa-select-radius);
  font-size: var(--spa-select-font-size);
}

.spa-funnel-edit-form .choices {
  margin-bottom: 0;
}

.spa-funnel-edit-form .choices__inner {
  border-color: color-mix(in srgb, var(--primary-color) 10%, var(--border-color)) !important;
  background: var(--input-bg) !important;
  color: var(--text-main);
}

.spa-funnel-edit-form .choices__list--single .choices__item {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spa-funnel-detail-hero {
  position: relative;
  padding: 1rem 1.05rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 12%, var(--border-color));
  border-radius: 1rem;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--primary-color) 12%, transparent) 0%, transparent 44%),
    linear-gradient(180deg, color-mix(in srgb, var(--primary-color) 5%, var(--bg-surface)), var(--bg-surface));
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.spa-funnel-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .95rem 1rem;
}

.spa-funnel-detail-span {
  grid-column: 1 / -1;
}

.spa-funnel-action-group {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .38rem;
}

.spa-funnel-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border-radius: .55rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 10%, var(--border-color));
  background: color-mix(in srgb, var(--primary-color) 4%, var(--bg-surface));
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

.spa-funnel-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(15, 23, 42, 0.08);
}

.spa-funnel-action-btn i {
  font-size: .82rem;
}

.spa-funnel-action-btn.is-detail {
  border-color: color-mix(in srgb, #2563eb 22%, var(--border-color));
  background: color-mix(in srgb, #2563eb 12%, var(--bg-surface));
  color: #2563eb;
}

.spa-funnel-action-btn.is-edit {
  border-color: color-mix(in srgb, #0ea5e9 22%, var(--border-color));
  background: color-mix(in srgb, #0ea5e9 12%, var(--bg-surface));
  color: #0ea5e9;
}

.spa-funnel-action-btn.is-duplicate {
  border-color: color-mix(in srgb, #7c3aed 22%, var(--border-color));
  background: color-mix(in srgb, #7c3aed 12%, var(--bg-surface));
  color: #7c3aed;
}

.spa-funnel-action-btn.is-delete {
  border-color: color-mix(in srgb, #dc2626 22%, var(--border-color));
  background: color-mix(in srgb, #dc2626 12%, var(--bg-surface));
  color: #dc2626;
}

.spa-funnel-history-list {
  display: grid;
  gap: .78rem;
}

.spa-funnel-history-empty {
  display: grid;
  place-items: center;
  min-height: 156px;
  padding: 1rem;
  border: 1px dashed color-mix(in srgb, var(--primary-color) 12%, var(--border-color));
  border-radius: .95rem;
  background: color-mix(in srgb, var(--primary-color) 2%, var(--bg-surface));
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

.spa-funnel-history-stage-item,
.spa-funnel-history-issue-item,
.spa-funnel-history-audit-item {
  padding: .9rem .95rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 10%, var(--border-color));
  border-radius: .95rem;
  background: color-mix(in srgb, var(--primary-color) 3%, var(--bg-surface));
}

.spa-funnel-history-stage-top,
.spa-funnel-history-issue-top,
.spa-funnel-history-metric-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .85rem;
}

.spa-funnel-history-stage-name,
.spa-funnel-history-issue-title,
.spa-funnel-history-audit-title {
  color: var(--text-main);
  font-weight: 800;
  line-height: 1.35;
}

.spa-funnel-history-stage-status,
.spa-funnel-history-stage-meta,
.spa-funnel-history-issue-time,
.spa-funnel-history-audit-meta,
.spa-funnel-history-mini-label {
  color: var(--text-muted);
  font-size: .78rem;
  line-height: 1.45;
}

.spa-funnel-history-stage-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .9rem;
  margin: .38rem 0;
}

.spa-funnel-history-stage-note,
.spa-funnel-history-mini-value {
  color: var(--text-main);
  font-size: .84rem;
  line-height: 1.5;
}

.spa-funnel-history-pill {
  flex: 0 0 auto;
  padding: .28rem .6rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 10%, var(--border-color));
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary-color) 5%, var(--bg-surface));
  color: var(--text-main);
  font-size: .75rem;
  font-weight: 700;
  white-space: nowrap;
}

.spa-funnel-history-issue-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem .9rem;
  margin-top: .65rem;
}

.spa-funnel-history-mini-block {
  margin-top: .7rem;
}

.spa-funnel-history-metric-list {
  display: grid;
  gap: .72rem;
}

.spa-funnel-history-metric-row {
  padding-bottom: .72rem;
  border-bottom: 1px solid color-mix(in srgb, var(--primary-color) 8%, var(--border-color));
  color: var(--text-muted);
  font-size: .84rem;
}

.spa-funnel-history-metric-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.spa-funnel-history-metric-row strong {
  color: var(--text-main);
  font-size: .85rem;
  font-weight: 700;
  text-align: right;
}

.spa-funnel-history-audit {
  display: grid;
  gap: .72rem;
}

.spa-funnel-history-audit-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem 1rem;
  margin-top: .4rem;
}

@media (max-width: 1399.98px) {
  .spa-funnel-toolbar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .spa-funnel-page-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .spa-funnel-input-shell .card-header-custom,
  .spa-funnel-input-shell .card-body-custom {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .spa-funnel-input-shell .ds-page-header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .spa-funnel-input-shell .action-footer {
    padding-right: 14px;
  }

  .spa-funnel-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spa-funnel-header-search {
    width: 100%;
    min-width: 0;
    margin-left: 0;
  }

  .spa-funnel-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .spa-funnel-page-actions {
    width: 100%;
  }

  .spa-funnel-page-actions .btn {
    width: 100%;
  }

  .spa-funnel-page-actions .spa-funnel-header-icon-btn {
    flex: 0 0 2.55rem !important;
    width: 2.55rem !important;
  }

  .spa-funnel-input-shell .action-footer .btn {
    width: 100%;
  }

  .spa-funnel-toolbar {
    grid-template-columns: 1fr;
  }

  .spa-funnel-native-shell #spa-funnel-grid .tabulator-footer {
    padding-left: .5rem;
    padding-bottom: 3.15rem;
  }

  .spa-funnel-table-count {
    left: .75rem;
    bottom: .65rem;
  }

  .spa-funnel-history-issue-grid {
    grid-template-columns: 1fr;
  }

  .spa-funnel-history-stage-top,
  .spa-funnel-history-issue-top,
  .spa-funnel-history-metric-row {
    flex-direction: column;
  }

  .spa-funnel-history-metric-row strong {
    text-align: left;
  }
}

.spa-orders-native-shell .phoenix-card {
  border-radius: 1rem;
  border-color: color-mix(in srgb, var(--primary-color) 12%, var(--border-color));
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.spa-order-input-shell .phoenix-card {
  border-radius: 1rem;
  border-color: color-mix(in srgb, var(--primary-color) 12%, var(--border-color));
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.spa-order-input-shell .card-header-custom {
  padding: 1rem 1.2rem;
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary-color) 6%, var(--bg-surface)), var(--bg-surface));
  border-bottom-color: color-mix(in srgb, var(--primary-color) 10%, var(--border-color));
}

.spa-order-input-shell .card-body-custom {
  padding: 1.05rem 1.2rem 1.15rem;
}

.spa-order-input-shell .card-header-custom h5 {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -.01em;
}

.spa-order-input-shell .form-label {
  margin-bottom: .42rem;
  color: var(--text-muted);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.spa-order-input-shell .form-control,
.spa-order-input-shell .form-select,
.spa-order-input-shell .choices__inner {
  min-height: var(--spa-select-height);
  border-radius: var(--spa-select-radius);
  font-size: var(--spa-select-font-size);
}

.spa-order-input-shell .form-control,
.spa-order-input-shell .form-select {
  padding: .55rem .85rem;
  border-color: color-mix(in srgb, var(--primary-color) 10%, var(--border-color));
}

.spa-order-input-shell textarea.form-control {
  min-height: 72px;
  padding-top: .75rem;
  line-height: 1.55;
  resize: vertical;
}

.spa-order-input-shell .choices[data-type*="select-one"] .choices__inner {
  padding-right: var(--spa-select-arrow-space);
}

.spa-order-input-shell .choices__list--single .choices__item {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spa-order-input-shell .action-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .45rem .55rem;
  padding: 12px 14px;
}

.spa-order-input-shell .action-footer .btn {
  padding: .44rem .8rem;
  font-size: .84rem;
  white-space: nowrap;
}

.spa-order-input-shell .order-entry-footer {
  align-items: center;
  gap: .5rem .6rem;
  justify-content: space-between;
  min-height: auto;
  padding: .65rem .85rem;
}

.spa-order-input-shell .order-entry-footer .footer-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem;
}

.spa-order-input-shell .order-entry-footer .order-entry-footer-actions {
  justify-content: flex-end;
  margin-left: auto;
}

.spa-order-input-shell .order-entry-footer .order-entry-footer-btn {
  min-height: 2.15rem;
  padding: .42rem .72rem;
  border-radius: .25rem;
  font-size: .78rem;
  line-height: 1.2;
}

.spa-order-input-shell .order-entry-footer .order-entry-footer-btn i {
  flex: 0 0 auto;
}

.spa-order-input-shell .order-entry-footer .order-entry-footer-btn span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spa-order-input-shell .order-entry-footer .is-save {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.spa-order-input-shell .order-entry-footer .is-save:hover,
.spa-order-input-shell .order-entry-footer .is-save:focus-visible {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

.spa-order-input-shell .order-product-card-header {
  align-items: center;
  gap: .7rem;
}

.spa-order-input-shell .order-product-toolbar {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .45rem;
}

.spa-order-input-shell .order-grid-toolbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-height: 2.15rem;
  border-radius: .25rem;
  font-size: .78rem;
  font-weight: 800;
  white-space: nowrap;
}

.spa-order-input-shell .order-grid-toolbar-btn i {
  margin: 0 !important;
}

.spa-order-input-shell .order-grid-toolbar-btn.is-template {
  color: #16a34a;
  border-color: color-mix(in srgb, #16a34a 35%, var(--border-color));
  background: color-mix(in srgb, #16a34a 8%, var(--bg-surface));
}

.spa-order-input-shell .order-grid-toolbar-btn.is-import {
  color: #0284c7;
  border-color: color-mix(in srgb, #0284c7 35%, var(--border-color));
  background: color-mix(in srgb, #0284c7 8%, var(--bg-surface));
}

.spa-order-input-shell .order-grid-toolbar-btn.is-add {
  color: #2563eb;
  border-color: color-mix(in srgb, #2563eb 38%, var(--border-color));
  background: color-mix(in srgb, #2563eb 8%, var(--bg-surface));
}

.spa-order-input-shell .order-stage-sticky-bar {
  position: sticky;
  top: calc(var(--topbar-height, 72px) + .65rem);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: .6rem;
  min-width: 0;
  margin-bottom: .85rem;
  padding: .65rem .75rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 14%, var(--border-color));
  border-radius: .85rem;
  background: color-mix(in srgb, var(--bg-surface) 96%, #000 4%);
  box-shadow: 0 14px 32px rgba(8, 15, 31, .16);
}

.spa-order-input-shell [data-order-stage] {
  scroll-margin-top: calc(var(--topbar-height, 72px) + 5.5rem);
}

.spa-order-input-shell .order-stage-switch {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: .5rem;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.spa-order-input-shell .order-stage-quick-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: .45rem;
  min-width: 0;
}

.spa-order-input-shell .stage-btn {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: .45rem .9rem;
  font-weight: 700;
  white-space: nowrap;
}

.spa-order-input-shell .stage-btn.is-active {
  box-shadow: 0 0 0 2px rgba(44, 123, 229, 0.18);
}

.spa-order-input-shell .order-stage-helper {
  min-height: 1.25rem;
}

.spa-order-input-shell .order-draft-meta {
  min-width: 180px;
}

.spa-order-input-shell .order-status-select {
  min-width: 220px;
}

.spa-order-input-shell .order-compact-dropdown {
  position: relative;
}

.spa-order-input-shell .order-checklist-chip,
.spa-order-input-shell .order-history-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 2rem;
  max-width: 11.5rem;
  padding: .38rem .72rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 18%, var(--border-color));
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-surface) 94%, var(--primary-color) 6%);
  color: var(--text-main);
  font-size: .78rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.spa-order-input-shell .order-checklist-chip span,
.spa-order-input-shell .order-history-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spa-order-input-shell .order-checklist-chip i,
.spa-order-input-shell .order-history-chip i {
  margin: 0;
  color: var(--primary-color);
  font-size: .82rem;
}

.spa-order-input-shell .order-checklist-chip.is-ready {
  border-color: color-mix(in srgb, #22c55e 55%, var(--border-color));
  background: color-mix(in srgb, #22c55e 14%, var(--bg-surface));
}

.spa-order-input-shell .order-checklist-chip.is-ready i {
  color: #22c55e;
}

.spa-order-input-shell .order-checklist-chip.is-warning {
  border-color: color-mix(in srgb, #f59e0b 60%, var(--border-color));
  background: color-mix(in srgb, #f59e0b 16%, var(--bg-surface));
}

.spa-order-input-shell .order-checklist-chip.is-warning i {
  color: #f59e0b;
}

.spa-order-input-shell .order-checklist-chip.is-muted,
.spa-order-input-shell .order-history-chip {
  border-color: color-mix(in srgb, var(--text-muted) 22%, var(--border-color));
  background: color-mix(in srgb, var(--bg-surface) 96%, var(--text-muted) 4%);
}

.spa-order-input-shell .order-history-chip.has-history {
  border-color: color-mix(in srgb, var(--primary-color) 35%, var(--border-color));
  background: color-mix(in srgb, var(--primary-color) 10%, var(--bg-surface));
}

.spa-order-input-shell .order-checklist-chip:hover,
.spa-order-input-shell .order-checklist-chip:focus-visible,
.spa-order-input-shell .order-history-chip:hover,
.spa-order-input-shell .order-history-chip:focus-visible {
  border-color: var(--primary-color);
  color: var(--primary-color);
  outline: none;
}

.spa-order-input-shell .order-compact-menu {
  width: min(360px, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem);
  padding: .65rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 14%, var(--border-color));
  border-radius: .75rem;
  background: var(--bg-surface);
  box-shadow: 0 18px 44px rgba(8, 15, 31, .22);
}

.spa-order-input-shell .order-compact-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding-bottom: .45rem;
  margin-bottom: .5rem;
  border-bottom: 1px solid color-mix(in srgb, var(--primary-color) 10%, var(--border-color));
}

.spa-order-input-shell .order-compact-menu-head strong {
  color: var(--text-main);
  font-size: .84rem;
}

.spa-order-input-shell .order-compact-menu-head span {
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 800;
}

.spa-order-input-shell .order-compact-menu-body {
  max-height: 19rem;
  overflow: auto;
  padding-right: .15rem;
}

.spa-order-input-shell .order-compact-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .35rem;
  margin-bottom: .55rem;
}

.spa-order-input-shell .order-compact-stats span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .28rem;
  min-width: 0;
  padding: .38rem .35rem;
  border-radius: .45rem;
  background: color-mix(in srgb, var(--bg-body) 80%, var(--bg-surface));
  color: var(--text-muted);
  font-size: .68rem;
  font-weight: 800;
  white-space: nowrap;
}

.spa-order-input-shell .order-compact-stats .is-ready {
  color: #16a34a;
}

.spa-order-input-shell .order-compact-stats .is-warning {
  color: #d97706;
}

.spa-order-input-shell .order-compact-list {
  display: grid;
  gap: .35rem;
}

.spa-order-input-shell .order-compact-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .45rem;
  padding: .45rem .5rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 8%, var(--border-color));
  border-radius: .5rem;
  background: color-mix(in srgb, var(--bg-surface) 98%, var(--primary-color) 2%);
}

.spa-order-input-shell .order-compact-item i {
  margin: 0;
  font-size: .78rem;
}

.spa-order-input-shell .order-compact-item span {
  min-width: 0;
  overflow: hidden;
  color: var(--text-main);
  font-size: .78rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spa-order-input-shell .order-compact-item small {
  min-width: 3.15rem;
  padding: .22rem .4rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text-muted) 8%, var(--bg-surface));
  color: var(--text-muted);
  font-size: .66rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.spa-order-input-shell .order-compact-item.is-ready i {
  color: #22c55e;
}

.spa-order-input-shell .order-compact-item.is-ready .order-compact-state-badge {
  background: color-mix(in srgb, #22c55e 14%, var(--bg-surface));
  color: #16a34a;
}

.spa-order-input-shell .order-compact-item.is-warning i {
  color: #f59e0b;
}

.spa-order-input-shell .order-compact-item.is-warning .order-compact-state-badge {
  background: color-mix(in srgb, #f59e0b 16%, var(--bg-surface));
  color: #d97706;
}

.spa-order-input-shell .order-compact-item.is-muted i {
  color: var(--text-muted);
}

.spa-order-input-shell .order-compact-item.is-muted .order-compact-state-badge {
  background: color-mix(in srgb, var(--text-muted) 10%, var(--bg-surface));
  color: var(--text-muted);
}

.spa-order-input-shell .order-closing-helper-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  margin-bottom: .85rem;
  padding: .48rem .55rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 14%, var(--border-color));
  border-radius: .65rem;
  background: color-mix(in srgb, var(--bg-body) 74%, var(--bg-surface));
}

.spa-order-input-shell .order-closing-helper-strip span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 1.55rem;
  padding: .24rem .5rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 18%, var(--border-color));
  border-radius: .45rem;
  background: var(--bg-surface);
  color: var(--text-custom);
  font-size: .72rem;
  font-weight: 800;
  white-space: nowrap;
}

.spa-order-input-shell .order-closing-helper-strip span:nth-child(2) {
  border-color: color-mix(in srgb, #0284c7 26%, var(--border-color));
  background: color-mix(in srgb, #0284c7 8%, var(--bg-surface));
}

.spa-order-input-shell .order-closing-helper-strip span:nth-child(3) {
  border-color: color-mix(in srgb, #16a34a 26%, var(--border-color));
  background: color-mix(in srgb, #16a34a 8%, var(--bg-surface));
}

.spa-order-input-shell .order-closing-helper-strip i {
  margin: 0;
  color: var(--primary-color);
  font-size: .72rem;
}

.spa-order-input-shell .order-compact-more,
.spa-order-input-shell .order-compact-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .55rem;
  border-radius: .55rem;
  background: color-mix(in srgb, var(--bg-body) 82%, var(--bg-surface));
  color: var(--text-muted);
  font-size: .76rem;
  font-weight: 800;
}

.spa-order-input-shell .order-history-menu .ops-history-list {
  display: grid;
  gap: .4rem;
}

.spa-order-input-shell .order-history-menu .ops-history-item {
  padding: .5rem .55rem;
  border-radius: .55rem;
}

.spa-order-input-shell .spa-order-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.spa-order-input-shell .spa-order-title-row {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-width: 0;
}

.spa-order-input-shell .spa-order-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 2.2rem;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid color-mix(in srgb, #2563eb 34%, var(--border-color));
  border-radius: .55rem;
  background: color-mix(in srgb, #2563eb 11%, var(--bg-surface));
  color: #2563eb;
  box-shadow: 0 10px 20px rgba(15, 23, 42, .06);
}

.spa-order-input-shell .spa-order-title-icon i {
  font-size: 1rem;
  line-height: 1;
}

.spa-order-input-shell .spa-shell-form-note[hidden] {
  display: none !important;
}

.spa-order-input-shell .spa-order-page-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: .45rem;
  flex-wrap: wrap;
}

.spa-order-input-shell .spa-order-header-action-btn {
  width: 2.55rem;
  height: 2.55rem;
  min-height: 2.55rem;
  padding: 0;
  border-radius: .25rem;
  border-color: color-mix(in srgb, var(--primary-color) 28%, var(--border-color));
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--primary-color) 11%, transparent) 0%, transparent 42%),
    var(--bg-surface);
  color: var(--primary-color);
  box-shadow: 0 10px 20px rgba(15, 23, 42, .06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.spa-order-input-shell .spa-order-header-action-btn i {
  margin: 0;
  font-size: .95rem;
}

.spa-order-input-shell .spa-order-header-action-btn:hover,
.spa-order-input-shell .spa-order-header-action-btn:focus-visible {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--primary-color) 52%, var(--border-color));
  background: color-mix(in srgb, var(--primary-color) 12%, var(--bg-surface));
}

.spa-order-input-shell .spa-order-header-action-btn.is-template,
.spa-order-input-shell .spa-order-header-action-btn.is-product-template {
  color: #16a34a;
  border-color: color-mix(in srgb, #16a34a 35%, var(--border-color));
  background: color-mix(in srgb, #16a34a 9%, var(--bg-surface));
}

.spa-order-input-shell .spa-order-header-action-btn.is-import {
  color: #0284c7;
  border-color: color-mix(in srgb, #0284c7 35%, var(--border-color));
  background: color-mix(in srgb, #0284c7 9%, var(--bg-surface));
}

.spa-order-input-shell .spa-order-header-action-btn.is-product-import {
  color: #7c3aed;
  border-color: color-mix(in srgb, #7c3aed 35%, var(--border-color));
  background: color-mix(in srgb, #7c3aed 9%, var(--bg-surface));
}

.spa-order-input-shell .spa-order-info-btn {
  width: 1.55rem;
  height: 1.55rem;
  min-width: 1.55rem;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--primary-color) 16%, var(--border-color));
  border-radius: .35rem;
  background: color-mix(in srgb, var(--primary-color) 7%, var(--bg-surface));
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.spa-order-input-shell .spa-order-info-btn:hover,
.spa-order-input-shell .spa-order-info-btn:focus-visible {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
  outline: none;
}

.spa-order-input-shell .spa-order-info-btn i {
  font-size: .78rem;
  margin: 0;
}

@media (max-width: 767.98px) {
  .spa-order-input-shell .order-stage-sticky-bar {
    flex-wrap: wrap;
    top: calc(var(--topbar-height, 64px) + .45rem);
    padding: .55rem .6rem;
  }

  .spa-order-input-shell .order-stage-switch {
    flex: 1 0 100%;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .spa-order-input-shell .order-stage-quick-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .spa-order-input-shell .spa-order-page-header {
    flex-direction: column;
    align-items: stretch;
  }

  .spa-order-input-shell .spa-order-title-row {
    width: 100%;
    justify-content: flex-start;
  }

  .spa-order-input-shell .spa-order-title-row .page-title {
    margin-bottom: 0;
    line-height: 1.2;
  }

  .spa-order-input-shell .spa-order-page-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
  }

  .spa-order-input-shell .spa-order-header-action-btn {
    width: 100%;
  }

  .spa-order-input-shell .order-checklist-chip,
  .spa-order-input-shell .order-history-chip {
    max-width: 8.25rem;
    padding-inline: .55rem;
  }

  .spa-order-input-shell .order-entry-footer {
    display: grid;
    grid-template-columns: 1fr;
    gap: .45rem;
    padding: .55rem .65rem;
  }

  .spa-order-input-shell .order-product-card-header {
    align-items: stretch;
  }

  .spa-order-input-shell .order-product-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .spa-order-input-shell .order-grid-toolbar-btn {
    width: 100%;
  }

  .spa-order-input-shell .order-entry-footer .footer-group {
    display: grid;
    width: 100%;
    gap: .4rem;
  }

  .spa-order-input-shell .order-entry-footer .order-entry-footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spa-order-input-shell .order-entry-footer .order-entry-footer-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spa-order-input-shell .order-entry-footer .order-entry-footer-actions .is-save {
    grid-column: 1 / -1;
  }

  .spa-order-input-shell .order-entry-footer .order-entry-footer-btn {
    flex: 0 1 auto;
    width: auto;
    min-width: 0;
    min-height: 2rem;
    padding: .36rem .4rem;
    font-size: .72rem;
  }

  .spa-order-input-shell .order-entry-footer .order-entry-footer-btn i {
    margin-left: .2rem !important;
    margin-right: .2rem !important;
  }
}

.spa-order-input-shell .order-stage-section-hidden {
  display: none !important;
}

.spa-order-input-shell .order-compact-menu-body .list-group,
.spa-order-input-shell .order-compact-menu-body ul {
  margin-bottom: 0;
}

.spa-order-input-shell .file-drop-zone {
  display: flex;
  min-height: 116px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .32rem;
  padding: .85rem .75rem;
  border: 1px dashed color-mix(in srgb, var(--primary-color) 28%, var(--border-color));
  border-radius: .9rem;
  background: color-mix(in srgb, var(--primary-color) 4%, var(--bg-surface));
  color: var(--text-muted);
  cursor: pointer;
  text-align: center;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.spa-order-input-shell .file-drop-zone:hover,
.spa-order-input-shell .file-drop-zone:focus-within {
  border-color: var(--primary-color);
  background: color-mix(in srgb, var(--primary-color) 8%, var(--bg-surface));
  box-shadow: 0 12px 26px rgba(37, 99, 235, .12);
  transform: translateY(-1px);
}

.spa-order-input-shell .file-drop-zone i {
  color: var(--primary-color);
  font-size: 1.45rem;
  line-height: 1;
}

.spa-order-input-shell .file-drop-zone p {
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  color: var(--text-primary);
  font-size: .84rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spa-order-input-shell .file-drop-zone small {
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 700;
}

.spa-order-input-shell .file-drop-zone.is-uploaded {
  border-style: solid;
  border-color: color-mix(in srgb, #16a34a 46%, var(--border-color));
  background: color-mix(in srgb, #16a34a 8%, var(--bg-surface));
}

.spa-order-input-shell .file-drop-zone.is-uploaded i {
  color: #22c55e;
}

.spa-order-input-shell .file-drop-zone.is-uploaded small {
  color: color-mix(in srgb, #22c55e 72%, var(--text-primary));
}

body.spa-lite-shell .order-entry-import-modal .modal-dialog {
  position: relative;
  z-index: 20001;
  max-width: min(96vw, 560px);
}

body.spa-lite-shell .order-entry-import-modal {
  z-index: 20000 !important;
}

body.spa-lite-shell .order-entry-import-modal .modal-content {
  background: var(--bg-surface);
  background-image: none;
  pointer-events: auto;
}

body.spa-lite-shell .order-entry-import-modal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 2.25rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 24%, var(--border-color));
  border-radius: .55rem;
  background: color-mix(in srgb, var(--primary-color) 10%, var(--bg-surface));
  color: var(--primary-color);
}

body.spa-lite-shell .order-entry-import-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

body.spa-lite-shell .order-entry-import-action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 6rem;
  padding: .95rem .8rem;
  border: 1px solid color-mix(in srgb, #16a34a 28%, var(--border-color));
  border-radius: .75rem;
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: .84rem;
  font-weight: 850;
  line-height: 1.25;
  text-align: center;
  transition: border-color .15s ease, color .15s ease, transform .15s ease, background .15s ease;
}

body.spa-lite-shell .order-entry-import-action-card i {
  color: #16a34a;
  font-size: 1.35rem;
}

body.spa-lite-shell .order-entry-import-action-card.is-file {
  border-color: color-mix(in srgb, #0284c7 30%, var(--border-color));
}

body.spa-lite-shell .order-entry-import-action-card.is-file i {
  color: #0284c7;
}

body.spa-lite-shell .order-entry-import-action-card:hover,
body.spa-lite-shell .order-entry-import-action-card:focus-visible {
  border-color: var(--primary-color);
  background: color-mix(in srgb, var(--primary-color) 7%, var(--bg-surface));
  color: var(--primary-color);
  transform: translateY(-1px);
}

body.spa-lite-shell .order-entry-import-note {
  margin-top: .75rem;
  padding: .65rem .75rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 10%, var(--border-color));
  border-radius: .65rem;
  background: color-mix(in srgb, var(--primary-color) 5%, var(--bg-surface));
  color: var(--text-muted);
  font-size: .78rem;
  line-height: 1.45;
}

.spa-order-input-shell .ds-order-summary-block .card-body-custom {
  padding-top: 1rem;
}

.spa-order-input-shell .ds-order-summary-block h6 {
  letter-spacing: .03em;
}

.spa-orders-native-shell .card-header-custom {
  padding: 1rem 1.2rem;
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary-color) 6%, var(--bg-surface)), var(--bg-surface));
  border-bottom-color: color-mix(in srgb, var(--primary-color) 10%, var(--border-color));
}

.spa-orders-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.spa-orders-page-title-row {
  display: flex;
  align-items: center;
  gap: .7rem;
  flex-wrap: wrap;
}

.spa-orders-sync-badge {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: .38rem .7rem;
  border-radius: .55rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 14%, var(--border-color));
  background: color-mix(in srgb, var(--primary-color) 8%, var(--bg-surface));
  color: var(--text-main);
  font-size: .74rem;
  font-weight: 800;
  white-space: nowrap;
}

.spa-orders-header-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: .65rem;
}

.spa-orders-stat-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 1.9rem;
  padding: .28rem .58rem;
  border-radius: .45rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 14%, var(--border-color));
  background: color-mix(in srgb, var(--primary-color) 5%, var(--bg-surface));
  color: var(--text-main);
  font-size: .76rem;
  font-weight: 800;
  white-space: nowrap;
}

.spa-orders-stat-badge span {
  color: var(--text-muted);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .035em;
}

.spa-orders-stat-badge strong {
  color: var(--text-main);
}

.spa-orders-stat-badge.is-warning {
  border-color: color-mix(in srgb, #d97706 26%, var(--border-color));
  background: color-mix(in srgb, #d97706 9%, var(--bg-surface));
}

.spa-orders-stat-badge.is-success {
  border-color: color-mix(in srgb, #16a34a 26%, var(--border-color));
  background: color-mix(in srgb, #16a34a 9%, var(--bg-surface));
}

.spa-orders-stat-badge.is-danger {
  border-color: color-mix(in srgb, #dc2626 26%, var(--border-color));
  background: color-mix(in srgb, #dc2626 9%, var(--bg-surface));
}

.spa-orders-stat-badge.is-value {
  border-color: color-mix(in srgb, #7c3aed 24%, var(--border-color));
  background: color-mix(in srgb, #7c3aed 8%, var(--bg-surface));
}

.spa-orders-page-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .55rem;
  flex-wrap: wrap;
}

.spa-orders-page-actions .spa-orders-header-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 2.55rem !important;
  width: 2.55rem !important;
  min-width: 2.55rem !important;
  max-width: 2.55rem !important;
  height: 2.55rem;
  padding: 0;
  border-radius: .25rem;
  border-color: color-mix(in srgb, var(--primary-color) 28%, var(--border-color));
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--primary-color) 11%, transparent) 0%, transparent 42%),
    var(--bg-surface);
  color: var(--primary-color);
  box-shadow: 0 10px 20px rgba(15, 23, 42, .06);
}

.spa-orders-page-actions .spa-orders-header-icon-btn i {
  margin: 0;
  font-size: 1rem;
  line-height: 1;
}

.spa-orders-page-actions .spa-orders-header-icon-btn:hover,
.spa-orders-page-actions .spa-orders-header-icon-btn:focus-visible {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--primary-color) 52%, var(--border-color));
  background: color-mix(in srgb, var(--primary-color) 12%, var(--bg-surface));
}

.spa-orders-page-actions .spa-orders-header-icon-btn.is-template {
  color: #16a34a;
  border-color: color-mix(in srgb, #16a34a 35%, var(--border-color));
  background:
    radial-gradient(circle at top right, color-mix(in srgb, #16a34a 12%, transparent) 0%, transparent 44%),
    var(--bg-surface);
}

.spa-orders-page-actions .spa-orders-header-icon-btn.is-import {
  color: #0284c7;
  border-color: color-mix(in srgb, #0284c7 35%, var(--border-color));
  background:
    radial-gradient(circle at top right, color-mix(in srgb, #0284c7 12%, transparent) 0%, transparent 44%),
    var(--bg-surface);
}

.spa-orders-page-actions .spa-orders-header-icon-btn.is-export {
  color: #7c3aed;
  border-color: color-mix(in srgb, #7c3aed 35%, var(--border-color));
  background:
    radial-gradient(circle at top right, color-mix(in srgb, #7c3aed 12%, transparent) 0%, transparent 44%),
    var(--bg-surface);
}

.spa-orders-page-actions .spa-orders-header-icon-btn.is-new {
  color: #2563eb;
  border-color: color-mix(in srgb, #2563eb 38%, var(--border-color));
}

.spa-orders-summary .card-body-custom {
  padding: .95rem 1rem 1rem;
}

.spa-orders-header-search {
  flex: 1 1 28rem;
  max-width: 42rem;
  min-width: min(100%, 18rem);
}

.spa-orders-search-box {
  position: relative;
}

.spa-orders-search-box i {
  position: absolute;
  left: .95rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.spa-orders-search-box .form-control {
  min-height: var(--spa-select-height);
  padding-left: 2.45rem;
  font-size: .88rem;
}

.spa-orders-toolbar {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr)) auto;
  gap: .9rem;
  align-items: end;
}

.spa-orders-toolbar .form-label {
  margin-bottom: .42rem;
  color: var(--text-muted);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.spa-orders-toolbar .form-control,
.spa-orders-toolbar .form-select,
.spa-orders-toolbar .choices__inner {
  min-height: var(--spa-select-height);
  border-radius: var(--spa-select-radius);
  font-size: var(--spa-select-font-size);
}

.spa-orders-toolbar .form-control,
.spa-orders-toolbar .form-select {
  padding: .55rem .85rem;
  border-color: color-mix(in srgb, var(--primary-color) 10%, var(--border-color));
}

.spa-orders-toolbar-actions {
  display: flex;
  justify-content: flex-end;
}

.spa-orders-toolbar .choices {
  margin-bottom: 0;
}

.spa-orders-toolbar .choices__inner {
  border-color: color-mix(in srgb, var(--primary-color) 10%, var(--border-color)) !important;
  border-radius: var(--spa-select-radius);
  background: var(--input-bg) !important;
  color: var(--text-main);
  font-size: var(--spa-select-font-size);
}

.spa-orders-toolbar .choices__list--single .choices__item {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spa-orders-reset-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--spa-select-height);
  width: var(--spa-select-height) !important;
  height: var(--spa-select-height);
  padding: 0;
}

.spa-orders-reset-btn i {
  margin: 0;
}

.spa-orders-table-wrap {
  position: relative;
}

.spa-orders-table-count {
  position: absolute;
  left: .95rem;
  bottom: .82rem;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: .28rem .58rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 16%, var(--border-color));
  border-radius: .45rem;
  color: var(--text-main);
  background: color-mix(in srgb, var(--bg-surface) 96%, transparent);
  font-size: .78rem;
  font-weight: 800;
  white-space: nowrap;
}

.spa-orders-native-shell #spa-orders-grid .tabulator-footer {
  min-height: 3.65rem;
  padding-left: 13.25rem;
}

.spa-orders-native-shell #spa-orders-grid .tabulator-col .tabulator-col-title {
  font-size: .78rem;
  font-weight: 700;
  text-align: center;
  white-space: normal;
}

.spa-orders-native-shell #spa-orders-grid .tabulator-col-content {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}

.spa-orders-native-shell #spa-orders-grid .tabulator-row .tabulator-cell {
  padding-top: .56rem;
  padding-bottom: .56rem;
  font-size: .82rem;
  line-height: 1.42;
}

.spa-orders-native-shell #spa-orders-grid .tabulator-row {
  cursor: pointer;
}

.spa-orders-native-shell #spa-orders-grid .tabulator-col[tabulator-field="actions"],
.spa-orders-native-shell #spa-orders-grid .tabulator-cell[tabulator-field="actions"],
.spa-orders-native-shell #spa-orders-grid .tabulator-cell.spa-orders-action-cell {
  background: color-mix(in srgb, var(--bg-surface) 98%, transparent);
}

.spa-orders-native-shell #spa-orders-grid .tabulator-col[tabulator-field="actions"] {
  z-index: 6;
  box-shadow: -10px 0 18px rgba(15, 23, 42, .08);
}

.spa-orders-native-shell #spa-orders-grid .tabulator-cell[tabulator-field="actions"],
.spa-orders-native-shell #spa-orders-grid .tabulator-cell.spa-orders-action-cell {
  z-index: 5;
  box-shadow: -8px 0 14px rgba(15, 23, 42, .05);
}

.spa-orders-action-group {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
}

.spa-orders-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border-radius: .55rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 10%, var(--border-color));
  background: color-mix(in srgb, var(--primary-color) 4%, var(--bg-surface));
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

.spa-orders-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(15, 23, 42, 0.08);
}

.spa-orders-action-btn i {
  font-size: .82rem;
}

.spa-orders-action-btn.is-detail {
  border-color: color-mix(in srgb, #2563eb 22%, var(--border-color));
  background: color-mix(in srgb, #2563eb 12%, var(--bg-surface));
  color: #2563eb;
}

.spa-orders-action-btn.is-update {
  border-color: color-mix(in srgb, #f59e0b 24%, var(--border-color));
  background: color-mix(in srgb, #f59e0b 12%, var(--bg-surface));
  color: #d97706;
}

.spa-orders-action-btn.is-activity,
.spa-orders-action-btn.is-duplicate {
  border-color: color-mix(in srgb, #7c3aed 22%, var(--border-color));
  background: color-mix(in srgb, #7c3aed 12%, var(--bg-surface));
  color: #7c3aed;
}

.spa-orders-action-btn.is-edit {
  border-color: color-mix(in srgb, #0ea5e9 22%, var(--border-color));
  background: color-mix(in srgb, #0ea5e9 12%, var(--bg-surface));
  color: #0ea5e9;
}

.spa-orders-action-btn.is-delete {
  border-color: color-mix(in srgb, #dc2626 22%, var(--border-color));
  background: color-mix(in srgb, #dc2626 12%, var(--bg-surface));
  color: #dc2626;
}

.spa-orders-detail-hero {
  position: relative;
  padding: 1rem 1.05rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 12%, var(--border-color));
  border-radius: 1rem;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--primary-color) 12%, transparent) 0%, transparent 44%),
    linear-gradient(180deg, color-mix(in srgb, var(--primary-color) 5%, var(--bg-surface)), var(--bg-surface));
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.spa-orders-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .95rem 1rem;
}

.spa-orders-detail-span {
  grid-column: 1 / -1;
}

.spa-order-payment-form .form-control[type="file"],
.spa-order-edit-form .form-control[type="file"] {
  padding: .68rem .8rem;
  cursor: pointer;
}

.spa-order-payment-flow {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) auto minmax(0, 1.15fr) minmax(10rem, .75fr) minmax(9rem, .7fr);
  align-items: stretch;
  gap: .65rem;
  padding: .75rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 12%, var(--border-color));
  border-radius: .85rem;
  background: var(--bg-surface);
}

.spa-order-payment-flow-item {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: .2rem;
  padding: .6rem .7rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 9%, var(--border-color));
  border-radius: .65rem;
  background: color-mix(in srgb, var(--bg-surface) 97%, transparent);
}

.spa-order-payment-flow-item span {
  color: var(--text-muted);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.spa-order-payment-flow-item strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text-main);
  font-size: .9rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spa-order-payment-flow-item.is-status strong {
  color: var(--primary-color);
}

.spa-order-payment-flow-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.05rem;
}

.spa-order-payment-stage-tracker {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .55rem;
}

.spa-order-payment-stage {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: .52rem;
  padding: .68rem;
  border: 1px solid color-mix(in srgb, var(--text-muted) 17%, var(--border-color));
  border-radius: .75rem;
  background: var(--bg-surface);
  color: var(--text-muted);
}

.spa-order-payment-stage-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 1.75rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: .55rem;
  background: color-mix(in srgb, var(--text-muted) 9%, var(--bg-surface));
  color: var(--text-muted);
}

.spa-order-payment-stage-copy {
  display: grid;
  min-width: 0;
  gap: .18rem;
}

.spa-order-payment-stage-copy strong {
  overflow: hidden;
  color: inherit;
  font-size: .78rem;
  font-weight: 900;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spa-order-payment-stage-copy small {
  display: -webkit-box;
  overflow: hidden;
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.spa-order-payment-stage.is-done {
  border-color: color-mix(in srgb, #16a34a 28%, var(--border-color));
  background: color-mix(in srgb, #16a34a 6%, var(--bg-surface));
  color: #16a34a;
}

.spa-order-payment-stage.is-active {
  border-color: color-mix(in srgb, var(--primary-color) 42%, var(--border-color));
  background: color-mix(in srgb, var(--primary-color) 8%, var(--bg-surface));
  color: var(--primary-color);
}

.spa-order-payment-stage.is-done .spa-order-payment-stage-icon {
  background: color-mix(in srgb, #16a34a 14%, var(--bg-surface));
  color: #16a34a;
}

.spa-order-payment-stage.is-active .spa-order-payment-stage-icon {
  background: color-mix(in srgb, var(--primary-color) 14%, var(--bg-surface));
  color: var(--primary-color);
}

.spa-order-payment-stage.is-blocked {
  border-color: color-mix(in srgb, #dc2626 36%, var(--border-color));
  background: color-mix(in srgb, #dc2626 8%, var(--bg-surface));
  color: #dc2626;
}

.spa-order-payment-stage.is-blocked .spa-order-payment-stage-icon {
  background: color-mix(in srgb, #dc2626 14%, var(--bg-surface));
  color: #dc2626;
}

.spa-order-payment-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-bottom: .85rem;
}

.spa-order-payment-check {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  min-height: 2.05rem;
  padding: .38rem .68rem;
  border: 1px solid color-mix(in srgb, var(--text-muted) 20%, var(--border-color));
  border-radius: .45rem;
  background: color-mix(in srgb, var(--bg-surface) 96%, transparent);
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 800;
}

.spa-order-payment-check.is-done {
  border-color: color-mix(in srgb, #16a34a 32%, var(--border-color));
  background: color-mix(in srgb, #16a34a 10%, var(--bg-surface));
  color: #16a34a;
}

.spa-order-payment-hint {
  color: var(--text-muted);
  font-size: .84rem;
  line-height: 1.55;
}

.spa-order-payment-guidance-card {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr);
  align-items: start;
  gap: .75rem;
  padding: .8rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 12%, var(--border-color));
  border-radius: .75rem;
  background: color-mix(in srgb, var(--primary-color) 3%, var(--bg-surface));
}

.spa-order-payment-guidance-kicker {
  display: block;
  margin-bottom: .2rem;
  color: var(--text-muted);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.spa-order-payment-guidance-card strong {
  display: block;
  color: var(--text-main);
  font-size: .92rem;
  font-weight: 900;
}

.spa-order-payment-guidance-card p {
  margin: .22rem 0 0;
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.45;
}

.spa-order-payment-requirements {
  display: flex;
  flex-wrap: wrap;
  gap: .42rem;
  align-content: flex-start;
}

.spa-order-payment-requirement {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .32rem .5rem;
  border: 1px solid color-mix(in srgb, var(--text-muted) 16%, var(--border-color));
  border-radius: .45rem;
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 850;
}

.spa-order-payment-requirement.is-done {
  border-color: color-mix(in srgb, #16a34a 30%, var(--border-color));
  background: color-mix(in srgb, #16a34a 8%, var(--bg-surface));
  color: #16a34a;
}

.spa-order-payment-requirement.is-missing {
  border-color: color-mix(in srgb, #dc2626 30%, var(--border-color));
  background: color-mix(in srgb, #dc2626 7%, var(--bg-surface));
  color: #dc2626;
}

.spa-order-payment-requirement.is-optional,
.spa-order-payment-requirement.is-neutral {
  background: var(--bg-surface);
}

.spa-order-document-preview {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  min-height: 2.2rem;
  margin-top: .55rem;
  padding: .55rem;
  border: 1px dashed color-mix(in srgb, var(--primary-color) 16%, var(--border-color));
  border-radius: .7rem;
  background: color-mix(in srgb, var(--primary-color) 3%, var(--bg-surface));
}

.spa-order-document-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  gap: .38rem;
  padding: .32rem .55rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 18%, var(--border-color));
  border-radius: .45rem;
  background: color-mix(in srgb, var(--primary-color) 8%, var(--bg-surface));
  color: var(--text-main);
  font-size: .76rem;
  font-weight: 800;
}

.spa-order-document-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spa-order-document-chip small {
  color: var(--text-muted);
  font-size: .7rem;
  font-weight: 800;
  white-space: nowrap;
}

.spa-order-document-empty {
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 700;
}

@media (max-width: 1399.98px) {
  .spa-orders-page-actions {
    justify-content: flex-start;
  }

  .spa-orders-toolbar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .spa-orders-toolbar-search,
  .spa-orders-toolbar-actions {
    grid-column: span 2;
  }

  .spa-order-payment-stage-tracker {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .spa-orders-page-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .spa-order-input-shell .card-header-custom,
  .spa-order-input-shell .card-body-custom {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .spa-order-input-shell .order-stage-toolbar {
    min-width: 100%;
  }

  .spa-orders-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spa-orders-toolbar-search,
  .spa-orders-toolbar-actions {
    grid-column: 1 / -1;
  }

  .spa-orders-detail-grid {
    grid-template-columns: 1fr;
  }

  .spa-order-payment-flow {
    grid-template-columns: 1fr;
  }

  .spa-order-payment-flow-arrow {
    transform: rotate(90deg);
  }

  .spa-order-payment-stage-tracker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spa-order-payment-guidance-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .spa-order-input-shell .action-footer {
    justify-content: stretch;
  }

  .spa-order-input-shell .action-footer .btn {
    width: 100%;
  }

  body.spa-lite-shell .order-entry-import-action-grid {
    grid-template-columns: 1fr;
  }

  .spa-orders-toolbar {
    grid-template-columns: 1fr;
  }

  .spa-orders-toolbar-actions {
    grid-column: auto;
  }

  .spa-orders-page-actions .spa-orders-header-icon-btn {
    flex: 0 0 2.55rem !important;
    width: 2.55rem !important;
  }

  .spa-order-input-shell .stage-btn {
    width: auto;
    max-width: 100%;
    justify-content: center;
  }

  .spa-order-payment-stage-tracker {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  body.spa-lite-shell .spa-toast-root {
    left: .75rem !important;
    right: .75rem !important;
    align-items: stretch;
    padding-inline: 0 !important;
  }

  body.spa-lite-shell .spa-toast {
    min-width: 0;
    max-width: none;
    width: 100%;
  }

  body.spa-lite-shell #spa-global-modal-root .modal-dialog,
  body.spa-lite-shell .spa-feedback-dialog {
    max-width: calc(100vw - 1.5rem);
    margin-inline: .75rem;
  }

  body.spa-lite-shell .spa-feedback-body {
    flex-direction: column;
    gap: .75rem;
  }

  body.spa-lite-shell #spa-global-modal-root .modal-footer,
  body.spa-lite-shell .spa-feedback-modal .modal-footer {
    align-items: stretch;
  }

  body.spa-lite-shell #spa-global-modal-root .modal-footer .btn,
  body.spa-lite-shell .spa-feedback-modal .modal-footer .btn {
    width: 100%;
  }

  body.spa-lite-shell .topbar {
    gap: .55rem;
    padding-inline: .75rem;
  }

  body.spa-lite-shell .topbar-left {
    overflow: visible;
  }

  body.spa-lite-shell .topbar-right {
    margin-left: auto;
    gap: .25rem;
    flex: 0 0 auto;
    overflow: hidden;
  }

  body.spa-lite-shell .spa-topbar-status-cluster,
  body.spa-lite-shell .spa-topbar-action-cluster {
    gap: .25rem;
  }

  body.spa-lite-shell .topbar-right > * {
    flex: 0 0 auto;
  }

  body.spa-lite-shell .topbar-right .btn-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
  }

body.spa-lite-shell .topbar-right img.rounded-circle,
body.spa-lite-shell .topbar-right img[alt="Profil Procura"],
  body.spa-lite-shell .topbar-right img[alt="Profile"] {
    display: none !important;
  }

body.spa-lite-shell .spa-profile-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid color-mix(in srgb, var(--primary-color) 72%, transparent);
  border-radius: 999px;
  background: linear-gradient(135deg, #2f7bff, #0ea5e9);
  color: #fff;
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .02em;
  box-shadow: 0 .6rem 1.2rem color-mix(in srgb, #2f7bff 24%, transparent);
}

  body.spa-lite-shell .topbar-right .ds-auth-trigger {
    display: none !important;
  }

  body.spa-lite-shell .spa-data-health-pill {
    display: none;
  }

  body.spa-lite-shell #spa-page-commandbar,
  body.spa-lite-shell .spa-commandbar-shell {
    justify-content: stretch;
  }

  body.spa-lite-shell .spa-commandbar-shell {
    padding: .75rem;
  }

  body.spa-lite-shell .spa-commandbar-shell .btn {
    width: 100%;
  }

  body.spa-lite-shell .main-content > .container-fluid {
    padding-left: .9rem;
    padding-right: .9rem;
  }

  body.spa-lite-shell .topbar .search-box {
    min-width: 0;
    width: min(42vw, 16rem);
    max-width: 16rem;
    margin-left: 0 !important;
    margin-top: 0;
  }

  .spa-route-switcher {
    left: 0;
    right: 0;
    top: calc(100% + .45rem);
    width: 100%;
  }

  .spa-page-shell > .ds-page-header {
    padding: .95rem 1rem .9rem;
  }

  .spa-page-shell > .ds-page-header .page-title {
    font-size: 1.24rem;
  }

  .spa-master-chooser-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  body.spa-lite-shell .topbar-right {
    gap: .2rem;
  }

}

.spa-funnel-history-page .history-hero {
  padding: 1.1rem 1.15rem 1.2rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 12%, var(--border-color));
  border-radius: 1.1rem;
  background: var(--bg-surface);
  box-shadow: 0 18px 34px rgba(15, 23, 42, .08);
}

.spa-funnel-history-page .history-overview-hero {
  padding: 1.1rem 1.15rem 1.2rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 12%, var(--border-color));
  border-radius: 1.1rem;
  background: var(--bg-surface);
  box-shadow: 0 18px 34px rgba(15, 23, 42, .08);
}

.spa-funnel-history-page .history-overview-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .95rem 1rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 12%, var(--border-color));
  border-radius: 1rem;
  background: var(--bg-surface);
  box-shadow: 0 14px 28px rgba(15, 23, 42, .06);
}

.spa-funnel-history-page .ds-page-header {
  margin-bottom: 1.25rem;
}

.spa-funnel-history-page > .ds-page-header {
  background: var(--bg-surface);
}

.spa-funnel-history-page > .ds-page-header::before {
  display: none;
}

.spa-funnel-history-page .spa-history-page-header {
  align-items: center;
}

.spa-funnel-history-page .spa-history-page-actions {
  flex: 0 0 auto;
}

.spa-funnel-history-page .spa-funnel-header-icon-btn[hidden] {
  display: none !important;
}

.spa-funnel-history-page .history-kpi-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .45rem;
}

.spa-funnel-history-page .history-kpi-badges span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 1.85rem;
  padding: .3rem .58rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 14%, var(--border-color));
  border-radius: .35rem;
  background: color-mix(in srgb, var(--primary-color) 7%, var(--bg-surface));
  color: var(--text-muted);
  font-size: .76rem;
  font-weight: 800;
}

.spa-funnel-history-page .history-kpi-badge.is-success {
  border-color: color-mix(in srgb, #16a34a 26%, var(--border-color));
  background: color-mix(in srgb, #16a34a 9%, var(--bg-surface));
}

.spa-funnel-history-page .history-kpi-badge.is-warning {
  border-color: color-mix(in srgb, #d97706 26%, var(--border-color));
  background: color-mix(in srgb, #d97706 9%, var(--bg-surface));
}

.spa-funnel-history-page .history-kpi-badge.is-danger {
  border-color: color-mix(in srgb, #dc2626 26%, var(--border-color));
  background: color-mix(in srgb, #dc2626 9%, var(--bg-surface));
}

.spa-funnel-history-page .history-kpi-badge.is-info {
  border-color: color-mix(in srgb, #0284c7 26%, var(--border-color));
  background: color-mix(in srgb, #0284c7 9%, var(--bg-surface));
}

.spa-funnel-history-page .history-kpi-badge.is-value {
  border-color: color-mix(in srgb, #7c3aed 24%, var(--border-color));
  background: color-mix(in srgb, #7c3aed 8%, var(--bg-surface));
}

.spa-funnel-history-page .history-kpi-badges strong {
  color: var(--text-main);
}

.spa-funnel-history-page .history-kicker,
.spa-funnel-history-page .history-meta-label,
.spa-funnel-history-page .history-kpi-label,
.spa-funnel-history-page .history-mini-label {
  color: var(--text-muted);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.spa-funnel-history-page .history-title {
  color: var(--text-main);
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -.015em;
}

.spa-funnel-history-page .history-subtitle,
.spa-funnel-history-page .history-stage-status,
.spa-funnel-history-page .history-stage-meta,
.spa-funnel-history-page .history-issue-time,
.spa-funnel-history-page .history-related-order-meta {
  color: var(--text-muted);
  font-size: .8rem;
  line-height: 1.45;
}

.spa-funnel-history-page .history-meta-grid,
.spa-funnel-history-page .history-kpi-grid {
  display: grid;
  gap: .75rem;
  margin-top: .95rem;
}

.spa-funnel-history-page .history-meta-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.spa-funnel-history-page .history-kpi-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.spa-funnel-history-page .history-meta-item,
.spa-funnel-history-page .history-kpi-card,
.spa-funnel-history-page .history-stage-item,
.spa-funnel-history-page .history-issue-item,
.spa-funnel-history-page .history-related-order {
  padding: .85rem .9rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 10%, var(--border-color));
  border-radius: .95rem;
  background: color-mix(in srgb, var(--primary-color) 3%, var(--bg-surface));
}

.spa-funnel-history-page .history-meta-value,
.spa-funnel-history-page .history-kpi-value,
.spa-funnel-history-page .history-stage-name,
.spa-funnel-history-page .history-issue-title,
.spa-funnel-history-page .history-related-order-title {
  color: var(--text-main);
  font-weight: 800;
  line-height: 1.35;
  word-break: break-word;
}

.spa-funnel-history-page .history-card {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--primary-color) 10%, var(--border-color));
  border-radius: 1rem;
  background: var(--bg-surface);
  box-shadow: 0 14px 28px rgba(15, 23, 42, .06);
}

.spa-funnel-history-page .phoenix-card.history-card {
  border-color: color-mix(in srgb, var(--primary-color) 12%, var(--border-color));
  border-radius: 1rem;
  background: var(--bg-surface);
}

.spa-funnel-history-page .history-card.spa-shell-filter-card,
.spa-funnel-history-page .history-card.spa-shell-table-card {
  background: var(--bg-surface);
}

.spa-funnel-history-page .history-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .95rem 1rem;
  border-bottom: 1px solid color-mix(in srgb, var(--primary-color) 10%, var(--border-color));
  background: var(--bg-surface);
}

.spa-funnel-history-page .history-card-header.card-header-custom {
  flex-wrap: wrap;
  padding: .95rem 1rem;
  background: var(--bg-surface);
}

.spa-funnel-history-page .history-card .card-header-custom,
.spa-funnel-history-page .history-card.spa-shell-filter-card .card-header-custom,
.spa-funnel-history-page .history-card.spa-shell-table-card .card-header-custom {
  background: var(--bg-surface);
}

.spa-funnel-history-page .history-card .card-header-custom::before,
.spa-funnel-history-page .history-card-header.card-header-custom::before {
  display: none;
}

.spa-funnel-history-page .history-card-header h5 {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: 0;
  color: var(--text-main);
  font-size: .98rem;
  font-weight: 800;
}

.spa-funnel-history-page .history-card-body {
  padding: 1rem;
  background: var(--bg-surface);
}

.spa-funnel-history-page .history-card .card-body-custom,
.spa-funnel-history-page .history-card.spa-shell-filter-card .card-body-custom,
.spa-funnel-history-page .history-card.spa-shell-table-card .card-body-custom {
  background: var(--bg-surface);
}

.spa-funnel-history-page .history-overview-filter-header {
  align-items: center;
}

.spa-funnel-history-page .history-overview-count {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: .28rem .62rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 16%, var(--border-color));
  border-radius: .35rem;
  background: color-mix(in srgb, var(--primary-color) 8%, var(--bg-surface));
  color: var(--text-main);
  font-size: .78rem;
  font-weight: 800;
}

.spa-funnel-history-page .history-overview-filters {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr)) 2.55rem;
  gap: .7rem;
  align-items: end;
}

.spa-funnel-history-page .history-search-field {
  position: relative;
}

.spa-funnel-history-page .history-search-field i {
  position: absolute;
  left: .85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: .88rem;
  pointer-events: none;
}

.spa-funnel-history-page .history-search-field .form-control {
  padding-left: 2.35rem;
}

.spa-funnel-history-page .history-overview-filters .form-control,
.spa-funnel-history-page .history-overview-filters .form-select,
.spa-funnel-history-page .history-reset-filter-btn {
  min-height: 2.55rem;
  font-size: .86rem;
}

.spa-funnel-history-page .history-header-search {
  max-width: min(520px, 100%);
}

.spa-funnel-history-page .history-header-search .spa-funnel-search-box {
  min-height: 2.55rem;
}

.spa-funnel-history-page .history-reset-filter-btn {
  width: 2.55rem;
  padding-inline: 0;
}

.spa-funnel-history-page .history-audit-table-wrap {
  width: 100%;
  overflow-x: auto;
  max-height: 34rem;
  overflow-y: auto;
  border: 1px solid color-mix(in srgb, var(--primary-color) 10%, var(--border-color));
  border-radius: .85rem .85rem 0 0;
}

.spa-funnel-history-page .history-audit-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--text-main);
  font-size: .82rem;
}

.spa-funnel-history-page .history-audit-table th,
.spa-funnel-history-page .history-audit-table td {
  padding: .62rem .68rem;
  border-bottom: 1px solid color-mix(in srgb, var(--primary-color) 8%, var(--border-color));
  vertical-align: middle;
}

.spa-funnel-history-page .history-audit-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: color-mix(in srgb, var(--primary-color) 7%, var(--bg-surface));
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .035em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.spa-funnel-history-page .history-audit-table th:last-child,
.spa-funnel-history-page .history-audit-table td:last-child {
  position: sticky;
  right: 0;
  width: 4.25rem;
  min-width: 4.25rem;
  text-align: center;
  background: var(--bg-surface);
  box-shadow: -10px 0 18px rgba(15, 23, 42, .06);
  z-index: 2;
}

.spa-funnel-history-page .history-audit-table th:last-child {
  background: color-mix(in srgb, var(--primary-color) 7%, var(--bg-surface));
  z-index: 4;
}

.spa-funnel-history-page .history-audit-table tbody tr {
  cursor: pointer;
  transition: background .16s ease, color .16s ease;
}

.spa-funnel-history-page .history-audit-table tbody tr:hover,
.spa-funnel-history-page .history-audit-table tbody tr.is-selected {
  background: color-mix(in srgb, var(--primary-color) 8%, var(--bg-surface));
}

.spa-funnel-history-page .history-audit-table tbody tr:hover td:last-child,
.spa-funnel-history-page .history-audit-table tbody tr.is-selected td:last-child {
  background: color-mix(in srgb, var(--primary-color) 8%, var(--bg-surface));
}

.spa-funnel-history-page .history-audit-table tbody tr:last-child td {
  border-bottom: 0;
}

.spa-funnel-history-page .history-audit-time,
.spa-funnel-history-page .history-audit-subtitle {
  color: var(--text-muted);
  font-size: .76rem;
}

.spa-funnel-history-page .history-audit-title {
  color: var(--text-main);
  font-weight: 800;
  line-height: 1.35;
}

.spa-funnel-history-page .history-audit-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: .22rem .5rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 16%, var(--border-color));
  border-radius: .35rem;
  background: color-mix(in srgb, var(--primary-color) 8%, var(--bg-surface));
  color: var(--primary-color);
  font-size: .74rem;
  font-weight: 850;
  white-space: nowrap;
}

.spa-funnel-history-page .history-audit-chip.is-created,
.spa-funnel-history-page .history-event-hero.is-created span {
  border-color: color-mix(in srgb, #2563eb 32%, var(--border-color));
  background: color-mix(in srgb, #2563eb 10%, var(--bg-surface));
  color: #3b82f6;
}

.spa-funnel-history-page .history-audit-chip.is-update,
.spa-funnel-history-page .history-event-hero.is-update span {
  border-color: color-mix(in srgb, #0284c7 32%, var(--border-color));
  background: color-mix(in srgb, #0284c7 10%, var(--bg-surface));
  color: #0ea5e9;
}

.spa-funnel-history-page .history-audit-chip.is-stage,
.spa-funnel-history-page .history-event-hero.is-stage span {
  border-color: color-mix(in srgb, #7c3aed 32%, var(--border-color));
  background: color-mix(in srgb, #7c3aed 10%, var(--bg-surface));
  color: #8b5cf6;
}

.spa-funnel-history-page .history-audit-chip.is-followup,
.spa-funnel-history-page .history-event-hero.is-followup span {
  border-color: color-mix(in srgb, #16a34a 32%, var(--border-color));
  background: color-mix(in srgb, #16a34a 10%, var(--bg-surface));
  color: #22c55e;
}

.spa-funnel-history-page .history-audit-chip.is-converted,
.spa-funnel-history-page .history-event-hero.is-converted span {
  border-color: color-mix(in srgb, #0d9488 32%, var(--border-color));
  background: color-mix(in srgb, #0d9488 10%, var(--bg-surface));
  color: #14b8a6;
}

.spa-funnel-history-page .history-audit-chip.is-lost,
.spa-funnel-history-page .history-event-hero.is-lost span {
  border-color: color-mix(in srgb, #dc2626 32%, var(--border-color));
  background: color-mix(in srgb, #dc2626 10%, var(--bg-surface));
  color: #ef4444;
}

.spa-funnel-history-page .history-audit-chip.is-snapshot,
.spa-funnel-history-page .history-event-hero.is-snapshot span {
  border-color: color-mix(in srgb, #64748b 28%, var(--border-color));
  background: color-mix(in srgb, #64748b 9%, var(--bg-surface));
  color: var(--text-muted);
}

.spa-funnel-history-page .history-audit-change {
  display: inline-block;
  max-width: 220px;
  color: var(--text-main);
  line-height: 1.35;
}

.spa-funnel-history-page .history-audit-icon-btn {
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  border-radius: .25rem;
}

.spa-funnel-history-page .history-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .85rem;
  min-height: 3.45rem;
  padding: .75rem .85rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 10%, var(--border-color));
  border-top: 0;
  border-radius: 0 0 .85rem .85rem;
  background: color-mix(in srgb, var(--primary-color) 3%, var(--bg-surface));
}

.spa-funnel-history-page .history-table-footer-count {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--text-main);
  font-size: .82rem;
  font-weight: 800;
  white-space: nowrap;
}

.spa-funnel-history-page .history-table-footer-count span {
  color: var(--text-muted);
  font-size: .76rem;
  font-weight: 750;
}

.spa-funnel-history-page .history-table-footer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .45rem;
  min-width: 0;
}

.spa-funnel-history-page .history-page-size-label {
  margin: 0 .2rem 0 0;
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 850;
  white-space: nowrap;
}

.spa-funnel-history-page .history-page-size-select {
  width: 4.35rem;
  min-height: 2.3rem;
  padding-block: .2rem;
  color: var(--text-main);
  background-color: var(--bg-surface);
  font-size: .82rem;
  font-weight: 800;
}

.spa-funnel-history-page .history-page-btn {
  min-height: 2.3rem;
  padding: .35rem .65rem;
  border-radius: .25rem;
  font-size: .8rem;
  font-weight: 800;
}

.spa-funnel-history-page .history-page-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.3rem;
  min-height: 2.3rem;
  padding: .25rem .55rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 22%, var(--border-color));
  border-radius: .25rem;
  background: color-mix(in srgb, var(--primary-color) 9%, var(--bg-surface));
  color: var(--text-main);
  font-size: .82rem;
  font-weight: 850;
}

.spa-funnel-history-page .history-inline-panel {
  border: 1px solid color-mix(in srgb, var(--primary-color) 12%, var(--border-color));
  border-radius: 1rem;
  background: var(--bg-surface);
  box-shadow: 0 14px 28px rgba(15, 23, 42, .06);
}

.spa-funnel-history-page .history-detail-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
  padding: 1rem 1rem 0;
}

.spa-funnel-history-page .history-detail-fact-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
  padding: 1rem 1rem 0;
}

.spa-funnel-history-page .history-detail-stat,
.spa-funnel-history-page .history-detail-fact {
  display: grid;
  grid-template-columns: 2.35rem minmax(0, 1fr);
  gap: .7rem;
  align-items: center;
  min-width: 0;
  padding: .78rem .85rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 11%, var(--border-color));
  border-radius: .8rem;
  background: color-mix(in srgb, var(--primary-color) 4%, var(--bg-surface));
}

.spa-funnel-history-page .history-detail-stat i,
.spa-funnel-history-page .history-detail-fact i {
  display: inline-grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: .65rem;
  background: color-mix(in srgb, var(--primary-color) 12%, var(--bg-surface));
  color: var(--primary-color);
}

.spa-funnel-history-page .history-detail-stat span,
.spa-funnel-history-page .history-detail-fact span,
.spa-funnel-history-page .history-detail-compact-row span,
.spa-funnel-history-page .history-issue-snapshot span,
.spa-funnel-history-page .history-next-action-box span,
.spa-funnel-history-page .history-detail-kv-row span {
  display: block;
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.spa-funnel-history-page .history-detail-stat strong,
.spa-funnel-history-page .history-detail-fact strong {
  display: block;
  overflow: hidden;
  color: var(--text-main);
  font-size: .88rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spa-funnel-history-page .history-detail-focus-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: 1rem;
  padding: 1rem;
}

.spa-funnel-history-page .history-detail-focus-section {
  min-width: 0;
  padding: .95rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 9%, var(--border-color));
  border-radius: .85rem;
  background: var(--bg-surface);
}

.spa-funnel-history-page .history-event-hero,
.spa-funnel-history-page .history-next-action-box {
  display: grid;
  gap: .28rem;
  margin-bottom: .7rem;
  padding: .72rem .78rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 10%, var(--border-color));
  border-radius: .65rem;
  background: color-mix(in srgb, var(--primary-color) 4%, var(--bg-surface));
}

.spa-funnel-history-page .history-event-hero span {
  width: fit-content;
  padding: .18rem .45rem;
  border-radius: .35rem;
  color: var(--primary-color);
  background: color-mix(in srgb, var(--primary-color) 10%, var(--bg-surface));
  font-size: .72rem;
  font-weight: 850;
}

.spa-funnel-history-page .history-event-hero strong,
.spa-funnel-history-page .history-next-action-box strong {
  color: var(--text-main);
  font-size: .88rem;
  font-weight: 850;
  line-height: 1.45;
}

.spa-funnel-history-page .history-event-hero small {
  color: var(--text-muted);
  font-size: .75rem;
  font-weight: 760;
}

.spa-funnel-history-page .history-detail-subtitle {
  margin: .85rem 0 .55rem;
  color: var(--text-main);
  font-size: .78rem;
  font-weight: 880;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.spa-funnel-history-page .history-detail-compact-list {
  display: grid;
  gap: .42rem;
}

.spa-funnel-history-page .history-detail-compact-row {
  display: grid;
  grid-template-columns: minmax(8rem, .75fr) minmax(0, 1fr);
  gap: .7rem;
  align-items: start;
  padding: .48rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--primary-color) 7%, var(--border-color));
}

.spa-funnel-history-page .history-detail-compact-row:last-child {
  border-bottom: 0;
}

.spa-funnel-history-page .history-detail-compact-row strong,
.spa-funnel-history-page .history-issue-snapshot strong {
  color: var(--text-main);
  font-size: .82rem;
  font-weight: 780;
  line-height: 1.4;
  word-break: break-word;
}

.spa-funnel-history-page .history-issue-snapshot {
  display: grid;
  gap: .55rem;
  margin-top: .75rem;
}

.spa-funnel-history-page .history-issue-snapshot > div {
  padding: .62rem .7rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 8%, var(--border-color));
  border-radius: .6rem;
  background: color-mix(in srgb, var(--primary-color) 3%, var(--bg-surface));
}

.spa-funnel-history-page .history-detail-tab-shell {
  padding: 0 1rem 1rem;
}

.spa-funnel-history-page .history-detail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: .75rem;
  padding: .38rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 9%, var(--border-color));
  border-radius: .8rem;
  background: color-mix(in srgb, var(--primary-color) 3%, var(--bg-surface));
}

.spa-funnel-history-page .history-detail-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 2.25rem;
  padding: .42rem .72rem;
  border: 1px solid transparent;
  border-radius: .55rem;
  color: var(--text-muted);
  background: transparent;
  font-size: .8rem;
  font-weight: 850;
  outline: 0;
  transition: color .16s ease, background-color .16s ease, border-color .16s ease;
}

.spa-funnel-history-page .history-detail-tab:hover,
.spa-funnel-history-page .history-detail-tab.is-active {
  border-color: color-mix(in srgb, var(--primary-color) 40%, var(--border-color));
  background: var(--bg-surface);
  color: var(--primary-color);
}

.spa-funnel-history-page .history-detail-tab:focus-visible {
  box-shadow: 0 0 0 .16rem color-mix(in srgb, var(--primary-color) 18%, transparent);
}

.spa-funnel-history-page .history-detail-tab-panel {
  max-height: 26rem;
  overflow: auto;
  padding: .9rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 9%, var(--border-color));
  border-radius: .85rem;
  background: var(--bg-surface);
}

.spa-funnel-history-page .history-detail-tab-panel[hidden] {
  display: none !important;
}

.spa-funnel-history-page .history-inline-empty,
.spa-funnel-history-page .history-inline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .95rem 1rem;
}

.spa-funnel-history-page .history-inline-empty {
  justify-content: flex-start;
  color: var(--text-muted);
}

.spa-funnel-history-page .history-inline-empty i {
  display: inline-grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: .65rem;
  background: color-mix(in srgb, var(--primary-color) 10%, var(--bg-surface));
  color: var(--primary-color);
}

.spa-funnel-history-page .history-inline-empty span,
.spa-funnel-history-page .history-inline-header p {
  display: block;
  margin: .15rem 0 0;
  color: var(--text-muted);
  font-size: .8rem;
}

.spa-funnel-history-page .history-inline-header {
  border-bottom: 1px solid color-mix(in srgb, var(--primary-color) 10%, var(--border-color));
}

.spa-funnel-history-page .history-inline-header h5 {
  margin: .1rem 0 0;
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 850;
}

.spa-funnel-history-page .history-inline-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
}

.spa-funnel-history-page .history-inline-grid-expanded {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.spa-funnel-history-page .history-inline-section {
  min-width: 0;
  max-height: 31rem;
  overflow: auto;
  padding: .9rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 9%, var(--border-color));
  border-radius: .85rem;
  background: var(--bg-surface);
}

.spa-funnel-history-page .history-inline-section-title {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .75rem;
  color: var(--text-main);
  font-size: .88rem;
  font-weight: 850;
}

.spa-funnel-history-page .history-inline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: .6rem;
}

.spa-funnel-history-page .history-inline-meta span {
  padding: .2rem .48rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 12%, var(--border-color));
  border-radius: .35rem;
  color: var(--text-muted);
  font-size: .74rem;
  font-weight: 750;
}

.spa-funnel-history-page .history-inline-summary {
  margin-bottom: .75rem;
  color: var(--text-main);
  font-size: .86rem;
  font-weight: 780;
}

.spa-funnel-history-page .history-detail-kv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
  margin-bottom: .8rem;
}

.spa-funnel-history-page .history-detail-kv-row {
  min-width: 0;
  padding: .55rem .62rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 8%, var(--border-color));
  border-radius: .55rem;
  background: color-mix(in srgb, var(--primary-color) 3%, var(--bg-surface));
}

.spa-funnel-history-page .history-detail-kv-row strong {
  display: block;
  margin-top: .18rem;
  color: var(--text-main);
  font-size: .8rem;
  font-weight: 780;
  line-height: 1.35;
  word-break: break-word;
}

.spa-funnel-history-page .history-compare-list {
  display: grid;
  gap: .45rem;
}

.spa-funnel-history-page .history-compare-row {
  display: grid;
  grid-template-columns: minmax(88px, .8fr) minmax(0, 1fr) auto minmax(0, 1fr);
  gap: .5rem;
  align-items: center;
}

.spa-funnel-history-page .history-compare-label {
  color: var(--text-muted);
  font-size: .74rem;
  font-weight: 800;
}

.spa-funnel-history-page .history-compare-value {
  min-width: 0;
  padding: .38rem .5rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 9%, var(--border-color));
  border-radius: .45rem;
  color: var(--text-main);
  font-size: .78rem;
  word-break: break-word;
}

.spa-funnel-history-page .history-compare-before {
  background: color-mix(in srgb, #ef4444 5%, var(--bg-surface));
}

.spa-funnel-history-page .history-compare-after {
  background: color-mix(in srgb, #22c55e 5%, var(--bg-surface));
}

.spa-funnel-history-page .history-compare-arrow {
  color: var(--text-muted);
  font-size: .75rem;
}

.spa-funnel-history-page .history-stage-list-compact .history-stage-item,
.spa-funnel-history-page .history-inline-section .history-issue-item {
  padding: .72rem .78rem;
}

.spa-funnel-history-page .history-overview-list {
  display: grid;
  gap: .75rem;
}

.spa-funnel-history-page .history-overview-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 1rem;
  padding: .95rem 1rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 10%, var(--border-color));
  border-radius: .95rem;
  background: color-mix(in srgb, var(--primary-color) 3%, var(--bg-surface));
  cursor: pointer;
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}

.spa-funnel-history-page .history-overview-item:hover {
  border-color: color-mix(in srgb, var(--primary-color) 34%, var(--border-color));
  background: color-mix(in srgb, var(--primary-color) 5%, var(--bg-surface));
  transform: translateY(-1px);
}

.spa-funnel-history-page .history-overview-title {
  color: var(--text-main);
  font-weight: 850;
  line-height: 1.35;
}

.spa-funnel-history-page .history-overview-subtitle,
.spa-funnel-history-page .history-overview-summary,
.spa-funnel-history-page .history-overview-date,
.spa-funnel-history-page .history-overview-stats {
  color: var(--text-muted);
  font-size: .8rem;
  line-height: 1.5;
}

.spa-funnel-history-page .history-overview-summary {
  margin-top: .55rem;
  color: var(--text-main);
}

.spa-funnel-history-page .history-overview-badges,
.spa-funnel-history-page .history-overview-stats,
.spa-funnel-history-page .history-overview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.spa-funnel-history-page .history-overview-badges {
  margin-top: .65rem;
}

.spa-funnel-history-page .history-overview-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .28rem .55rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 14%, var(--border-color));
  border-radius: .35rem;
  background: color-mix(in srgb, var(--primary-color) 6%, var(--bg-surface));
  color: var(--text-main);
  font-size: .74rem;
  font-weight: 800;
}

.spa-funnel-history-page .history-overview-side {
  display: grid;
  align-content: start;
  justify-items: end;
  gap: .7rem;
}

.spa-funnel-history-page .history-overview-stats {
  justify-content: flex-end;
}

.spa-funnel-history-page .history-overview-actions .btn {
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border-radius: .25rem;
}

.spa-funnel-history-page .history-stage-list,
.spa-funnel-history-page .history-issue-list,
.spa-funnel-history-page .history-metric-list {
  display: grid;
  gap: .75rem;
}

.spa-funnel-history-page .history-stage-top,
.spa-funnel-history-page .history-issue-top,
.spa-funnel-history-page .history-metric-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.spa-funnel-history-page .history-stage-duration,
.spa-funnel-history-page .history-issue-result {
  flex: 0 0 auto;
  padding: .3rem .62rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 10%, var(--border-color));
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary-color) 4%, var(--bg-surface));
  color: var(--text-main);
  font-size: .76rem;
  font-weight: 700;
  white-space: nowrap;
}

.spa-funnel-history-page .history-stage-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  margin-bottom: .36rem;
}

.spa-funnel-history-page .history-stage-note,
.spa-funnel-history-page .history-mini-value {
  color: var(--text-main);
  font-size: .84rem;
  line-height: 1.5;
}

.spa-funnel-history-page .history-issue-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem .9rem;
  margin-top: .55rem;
}

.spa-funnel-history-page .history-metric-row {
  padding-bottom: .65rem;
  border-bottom: 1px solid color-mix(in srgb, var(--primary-color) 8%, var(--border-color));
  color: var(--text-muted);
  font-size: .84rem;
}

.spa-funnel-history-page .history-metric-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.spa-funnel-history-page .history-metric-row strong {
  color: var(--text-main);
  font-size: .86rem;
  font-weight: 700;
  text-align: right;
}

.spa-funnel-history-page .history-empty,
.spa-funnel-history-page .history-empty-inline {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 1.4rem;
  border: 1px dashed color-mix(in srgb, var(--primary-color) 14%, var(--border-color));
  border-radius: 1rem;
  background: color-mix(in srgb, var(--primary-color) 2%, var(--bg-surface));
  color: var(--text-muted);
  text-align: center;
}

.spa-funnel-history-page .history-empty-inline {
  min-height: 0;
  padding: 1rem;
}

html[data-theme="dark"] .spa-funnel-history-page .history-hero,
html[data-theme="dark"] .spa-funnel-history-page .history-overview-hero,
html[data-theme="dark"] .spa-funnel-history-page .history-overview-compact,
html[data-theme="dark"] .spa-funnel-history-page .history-inline-panel,
html[data-theme="dark"] .spa-funnel-history-page .history-card {
  box-shadow: 0 18px 38px rgba(2, 6, 23, .34);
}

@media (max-width: 1199.98px) {
  .spa-funnel-history-page .history-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .spa-funnel-history-page .history-overview-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spa-funnel-history-page .history-search-field {
    grid-column: 1 / -1;
  }

  .spa-funnel-history-page .history-overview-compact {
    align-items: flex-start;
    flex-direction: column;
  }

  .spa-funnel-history-page .history-kpi-badges {
    justify-content: flex-start;
  }

  .spa-funnel-history-page .history-inline-grid {
    grid-template-columns: 1fr;
  }

  .spa-funnel-history-page .history-detail-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spa-funnel-history-page .history-detail-fact-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spa-funnel-history-page .history-detail-focus-grid {
    grid-template-columns: 1fr;
  }

  .spa-funnel-history-page .history-table-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .spa-funnel-history-page .history-table-footer-actions {
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
    padding-bottom: .15rem;
  }
}

@media (max-width: 991.98px) {
  .spa-funnel-history-page .history-meta-grid {
    grid-template-columns: 1fr;
  }

  .spa-funnel-history-page .history-overview-item {
    grid-template-columns: 1fr;
  }

  .spa-funnel-history-page .history-overview-side {
    justify-items: start;
  }

  .spa-funnel-history-page .history-overview-stats {
    justify-content: flex-start;
  }

  .spa-funnel-history-page .history-inline-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .spa-funnel-history-page .history-detail-kv-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .spa-funnel-history-page .history-kpi-grid,
  .spa-funnel-history-page .history-issue-grid,
  .spa-funnel-history-page .history-detail-stat-grid,
  .spa-funnel-history-page .history-detail-fact-strip,
  .spa-funnel-history-page .history-overview-filters {
    grid-template-columns: 1fr;
  }

  .spa-funnel-history-page .history-detail-compact-row {
    grid-template-columns: 1fr;
    gap: .18rem;
  }

  .spa-funnel-history-page .history-detail-tab {
    flex: 1 1 calc(50% - .45rem);
  }

  .spa-funnel-history-page .history-stage-top,
  .spa-funnel-history-page .history-issue-top,
  .spa-funnel-history-page .history-metric-row {
    flex-direction: column;
  }

  .spa-funnel-history-page .history-compare-row {
    grid-template-columns: 1fr;
  }

  .spa-funnel-history-page .history-compare-arrow {
    display: none;
  }

  .spa-funnel-history-page .history-metric-row strong {
    text-align: left;
  }
}

/* Global flat-card standard. Badges, status pills, buttons, toasts, and loaders keep their own accent styles. */
body.spa-lite-shell .spa-commandbar-shell,
body.spa-lite-shell .spa-page-shell > .ds-page-header,
body.spa-lite-shell .spa-page-shell .phoenix-card,
body.spa-lite-shell .spa-page-shell .spa-shell-state-card,
body.spa-lite-shell .spa-page-placeholder,
body.spa-lite-shell .spa-dashboard-empty,
body.spa-lite-shell .spa-page-shell .modal-content,
body.spa-lite-shell #spa-global-modal-root .modal-content,
body.spa-lite-shell .spa-feedback-modal,
body.spa-lite-shell .spa-feedback-modal .modal-content,
body.spa-lite-shell .spa-page-shell .spa-shell-review-banner,
body.spa-lite-shell .spa-page-shell .spa-shell-dashboard-handoff,
body.spa-lite-shell .spa-page-shell .spa-shell-review-desk-item,
body.spa-lite-shell .spa-page-shell .spa-shell-handoff-card,
body.spa-lite-shell .spa-page-shell .spa-shell-action-footer.action-footer,
body.spa-lite-shell .spa-page-shell .spa-workspace-catalog-group,
body.spa-lite-shell .spa-page-shell .spa-migration-section,
body.spa-lite-shell .spa-dashboard-kpis .phoenix-card,
body.spa-lite-shell .spa-funnel-summary .phoenix-card,
body.spa-lite-shell .spa-orders-summary .phoenix-card,
body.spa-lite-shell .spa-shell-summary .phoenix-card,
body.spa-lite-shell .spa-page-shell .spa-dashboard-insight,
body.spa-lite-shell .spa-page-shell .spa-dashboard-health-card,
body.spa-lite-shell .spa-page-shell .spa-funnel-detail-hero,
body.spa-lite-shell .spa-page-shell .spa-orders-detail-hero,
body.spa-lite-shell #spa-global-modal-root .phoenix-card,
body.spa-lite-shell #spa-global-modal-root .spa-shell-section-card,
body.spa-lite-shell #spa-global-modal-root .spa-shell-workspace-panel,
body.spa-lite-shell #spa-global-modal-root .spa-funnel-detail-hero,
body.spa-lite-shell #spa-global-modal-root .spa-orders-detail-hero {
  background: var(--bg-surface);
  background-image: none;
}

body.spa-lite-shell .spa-page-shell .card-header-custom,
body.spa-lite-shell .spa-page-shell .spa-shell-filter-card .card-header-custom,
body.spa-lite-shell .spa-page-shell .spa-shell-table-card .card-header-custom,
body.spa-lite-shell .spa-page-shell .spa-shell-form-card .card-header-custom,
body.spa-lite-shell .spa-dashboard-native-shell .card-header-custom,
body.spa-lite-shell .spa-funnel-input-shell .card-header-custom,
body.spa-lite-shell .spa-funnel-native-shell .card-header-custom,
body.spa-lite-shell .spa-order-input-shell .card-header-custom,
body.spa-lite-shell .spa-orders-native-shell .card-header-custom,
body.spa-lite-shell .spa-page-shell .modal-header,
body.spa-lite-shell #spa-global-modal-root .modal-header,
body.spa-lite-shell #spa-global-modal-root .card-header-custom,
body.spa-lite-shell .spa-feedback-modal .modal-header {
  background: var(--bg-surface);
  background-image: none;
}

body.spa-lite-shell .spa-page-shell .card-body-custom,
body.spa-lite-shell .spa-page-shell .spa-shell-workspace-panel .card-body-custom,
body.spa-lite-shell .spa-page-shell .spa-shell-filter-card .card-body-custom,
body.spa-lite-shell .spa-page-shell .spa-shell-table-card .card-body-custom,
body.spa-lite-shell .spa-page-shell .spa-shell-form-card .card-body-custom,
body.spa-lite-shell .spa-page-shell .modal-body,
body.spa-lite-shell #spa-global-modal-root .modal-body,
body.spa-lite-shell #spa-global-modal-root .card-body-custom,
body.spa-lite-shell #spa-global-modal-root .spa-workspace-body,
body.spa-lite-shell .spa-feedback-modal .modal-body,
body.spa-lite-shell .spa-page-shell .spa-workspace-body {
  background: var(--bg-surface);
  background-image: none;
}

body.spa-lite-shell .spa-page-shell .tabulator .tabulator-header {
  background: var(--bg-surface);
  background-image: none;
}

body.spa-lite-shell .spa-page-shell > .ds-page-header::before,
body.spa-lite-shell .spa-page-shell > .ds-page-header::after,
body.spa-lite-shell .spa-page-shell .card-header-custom::before,
body.spa-lite-shell .spa-page-shell .card-header-custom::after,
body.spa-lite-shell #spa-global-modal-root .card-header-custom::before,
body.spa-lite-shell #spa-global-modal-root .card-header-custom::after,
body.spa-lite-shell .spa-page-shell .phoenix-card::before,
body.spa-lite-shell .spa-page-shell .phoenix-card::after,
body.spa-lite-shell #spa-global-modal-root .phoenix-card::before,
body.spa-lite-shell #spa-global-modal-root .phoenix-card::after,
body.spa-lite-shell .spa-page-shell .card-body-custom::before,
body.spa-lite-shell .spa-page-shell .card-body-custom::after,
body.spa-lite-shell #spa-global-modal-root .card-body-custom::before,
body.spa-lite-shell #spa-global-modal-root .card-body-custom::after,
body.spa-lite-shell .spa-page-shell .spa-dashboard-insight::before,
body.spa-lite-shell .spa-page-shell .spa-dashboard-insight::after {
  content: none;
  display: none;
  background: none;
  background-image: none;
}

/* Global workspace component standard. This keeps migrated pages visually aligned without changing page logic. */
body.spa-lite-shell .spa-page-shell .phoenix-card,
body.spa-lite-shell #spa-global-modal-root .phoenix-card,
body.spa-lite-shell .spa-page-shell .modal-content,
body.spa-lite-shell #spa-global-modal-root .modal-content,
body.spa-lite-shell .spa-feedback-modal .modal-content {
  border: 1px solid color-mix(in srgb, var(--primary-color) 12%, var(--border-color));
  border-radius: 1rem;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .08);
}

html[data-theme="dark"] body.spa-lite-shell .spa-page-shell .phoenix-card,
html[data-theme="dark"] body.spa-lite-shell #spa-global-modal-root .phoenix-card,
html[data-theme="dark"] body.spa-lite-shell .spa-page-shell .modal-content,
html[data-theme="dark"] body.spa-lite-shell #spa-global-modal-root .modal-content,
html[data-theme="dark"] body.spa-lite-shell .spa-feedback-modal .modal-content {
  box-shadow: 0 18px 38px rgba(2, 6, 23, .34);
}

body.spa-lite-shell .spa-page-shell .phoenix-card:has(.choices.is-open),
body.spa-lite-shell .spa-page-shell .phoenix-card:has(.choices__list--dropdown[aria-expanded="true"]),
body.spa-lite-shell #spa-global-modal-root .phoenix-card:has(.choices.is-open),
body.spa-lite-shell #spa-global-modal-root .phoenix-card:has(.choices__list--dropdown[aria-expanded="true"]) {
  overflow: visible;
  z-index: 20;
}

body.spa-lite-shell .choices__list[aria-expanded],
body.spa-lite-shell .choices__list--dropdown {
  z-index: 3000 !important;
}

body.spa-lite-shell .spa-page-shell .card-header-custom,
body.spa-lite-shell #spa-global-modal-root .card-header-custom,
body.spa-lite-shell .spa-page-shell .modal-header,
body.spa-lite-shell #spa-global-modal-root .modal-header,
body.spa-lite-shell .spa-feedback-modal .modal-header {
  border-bottom: 1px solid color-mix(in srgb, var(--primary-color) 10%, var(--border-color));
  padding: .95rem 1.1rem;
}

body.spa-lite-shell .spa-page-shell .card-header-custom.ds-card-header-actionbar {
  align-items: center;
  gap: .7rem 1rem;
  min-height: 4.25rem;
}

body.spa-lite-shell .spa-page-shell .ds-card-header-meta,
body.spa-lite-shell .spa-page-shell .card-header-custom.ds-card-header-actionbar > .d-flex:first-child {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}

body.spa-lite-shell .spa-page-shell .ds-card-header-meta h5,
body.spa-lite-shell .spa-page-shell .card-header-custom.ds-card-header-actionbar h5,
body.spa-lite-shell #spa-global-modal-root .card-header-custom h5,
body.spa-lite-shell .spa-page-shell .modal-title,
body.spa-lite-shell #spa-global-modal-root .modal-title,
body.spa-lite-shell .spa-feedback-modal .modal-title {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin: 0;
  min-width: 0;
  text-align: left;
  color: var(--text-main);
  font-size: .98rem;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: -.01em;
}

body.spa-lite-shell .spa-page-shell .ds-card-header-meta h5 {
  display: flex !important;
  justify-content: flex-start;
  width: 100%;
}

body.spa-lite-shell .spa-page-shell .ds-card-header-actions,
body.spa-lite-shell .spa-page-shell .ds-page-header-actions,
body.spa-lite-shell .spa-page-shell .modal-footer,
body.spa-lite-shell #spa-global-modal-root .modal-footer,
body.spa-lite-shell .spa-feedback-modal .modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .5rem;
}

body.spa-lite-shell .spa-page-shell .ds-card-header-actions {
  margin-left: auto;
}

body.spa-lite-shell .spa-page-shell .card-body-custom,
body.spa-lite-shell #spa-global-modal-root .card-body-custom,
body.spa-lite-shell .spa-page-shell .modal-body,
body.spa-lite-shell #spa-global-modal-root .modal-body,
body.spa-lite-shell .spa-feedback-modal .modal-body {
  padding: 1rem 1.1rem 1.1rem;
}

body.spa-lite-shell .spa-page-shell .ds-page-header-actions .btn,
body.spa-lite-shell .spa-page-shell .action-footer .btn,
body.spa-lite-shell .spa-page-shell .modal-footer .btn,
body.spa-lite-shell .spa-page-shell .card-header-custom .btn,
body.spa-lite-shell .spa-page-shell .spa-shell-toolbar-actions .btn,
body.spa-lite-shell #spa-global-modal-root .modal-footer .btn,
body.spa-lite-shell .spa-feedback-modal .modal-footer .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 2.4rem;
  border-radius: .25rem;
  font-size: .84rem;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

body.spa-lite-shell .spa-page-shell .card-header-custom .btn.btn-sm,
body.spa-lite-shell .spa-page-shell .tabulator .btn.btn-sm {
  min-height: 2.15rem;
  border-radius: .25rem;
  padding: .38rem .68rem;
  font-size: .78rem;
}

body.spa-lite-shell .spa-page-shell .spa-funnel-header-search,
body.spa-lite-shell .spa-page-shell .spa-orders-header-search,
body.spa-lite-shell .spa-page-shell .history-header-search {
  flex: 0 1 min(520px, 48vw);
  width: min(520px, 48vw);
  max-width: 100%;
  min-width: min(100%, 18rem);
  margin-left: auto;
}

body.spa-lite-shell .spa-page-shell .spa-funnel-search-box,
body.spa-lite-shell .spa-page-shell .spa-orders-search-box {
  position: relative;
}

body.spa-lite-shell .spa-page-shell .spa-funnel-search-box i,
body.spa-lite-shell .spa-page-shell .spa-orders-search-box i {
  position: absolute;
  left: .9rem;
  top: 50%;
  z-index: 2;
  color: var(--text-muted);
  transform: translateY(-50%);
  pointer-events: none;
}

body.spa-lite-shell .spa-page-shell .spa-funnel-search-box .form-control,
body.spa-lite-shell .spa-page-shell .spa-orders-search-box .form-control,
body.spa-lite-shell .spa-page-shell .spa-shell-toolbar .form-control,
body.spa-lite-shell .spa-page-shell .spa-shell-toolbar .form-select,
body.spa-lite-shell .spa-page-shell .spa-dashboard-toolbar .form-control,
body.spa-lite-shell .spa-page-shell .spa-dashboard-toolbar .form-select {
  min-height: var(--spa-select-height);
  height: var(--spa-select-height);
  border-color: color-mix(in srgb, var(--primary-color) 10%, var(--border-color));
  border-radius: var(--spa-select-radius);
  background-color: var(--input-bg);
  color: var(--text-main);
  font-size: .86rem;
  line-height: 1.2;
}

body.spa-lite-shell .spa-page-shell .spa-funnel-search-box .form-control,
body.spa-lite-shell .spa-page-shell .spa-orders-search-box .form-control {
  padding-left: 2.45rem;
}

body.spa-lite-shell .spa-page-shell .spa-shell-toolbar {
  align-items: end;
  gap: .75rem;
}

body.spa-lite-shell .spa-page-shell .spa-shell-toolbar .form-label,
body.spa-lite-shell .spa-page-shell .spa-dashboard-toolbar .form-label {
  margin-bottom: .38rem;
  color: color-mix(in srgb, var(--text-main) 78%, var(--text-muted));
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .055em;
  line-height: 1.15;
  text-transform: uppercase;
}

body.spa-lite-shell .spa-page-shell .spa-shell-toolbar .choices,
body.spa-lite-shell .spa-page-shell .spa-dashboard-toolbar .choices {
  margin-bottom: 0;
}

body.spa-lite-shell .spa-page-shell .spa-shell-toolbar .choices[data-type*="select-one"] .choices__inner,
body.spa-lite-shell .spa-page-shell .spa-dashboard-toolbar .choices[data-type*="select-one"] .choices__inner {
  min-height: var(--spa-select-height);
  height: var(--spa-select-height);
  padding-top: 0;
  padding-bottom: 0;
  font-size: .86rem;
}

body.spa-lite-shell .spa-page-shell .spa-shell-toolbar-actions .btn,
body.spa-lite-shell .spa-page-shell .spa-funnel-reset-btn,
body.spa-lite-shell .spa-page-shell .spa-orders-reset-btn {
  min-width: var(--spa-select-height);
  min-height: var(--spa-select-height);
  padding: 0 .85rem;
}

body.spa-lite-shell .spa-page-shell .spa-funnel-reset-btn,
body.spa-lite-shell .spa-page-shell .spa-orders-reset-btn {
  width: var(--spa-select-height);
  padding: 0;
}

body.spa-lite-shell .spa-page-shell .tabulator {
  border-radius: .85rem;
  border-color: color-mix(in srgb, var(--primary-color) 10%, var(--border-color));
  background: var(--bg-surface) !important;
}

body.spa-lite-shell .spa-page-shell .tabulator .tabulator-header,
body.spa-lite-shell .spa-page-shell .tabulator .tabulator-col {
  background: var(--bg-surface) !important;
  background-image: none !important;
}

body.spa-lite-shell .spa-page-shell .tabulator .tabulator-col-content {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: .42rem .5rem;
  text-align: center;
}

body.spa-lite-shell .spa-page-shell .tabulator .tabulator-col .tabulator-col-title {
  width: 100%;
  color: var(--text-main);
  font-size: .76rem;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
}

body.spa-lite-shell .spa-page-shell .tabulator .tabulator-row .tabulator-cell {
  color: var(--text-main);
  font-size: .82rem;
  line-height: 1.42;
}

body.spa-lite-shell .spa-page-shell .tabulator .tabulator-footer {
  min-height: 3.35rem;
  border-top-color: color-mix(in srgb, var(--primary-color) 10%, var(--border-color));
  background: var(--bg-surface) !important;
  color: var(--text-muted);
}

body.spa-lite-shell .spa-page-shell .tabulator .tabulator-footer .tabulator-paginator,
body.spa-lite-shell .spa-page-shell .tabulator .tabulator-footer .tabulator-footer-contents,
body.spa-lite-shell .spa-page-shell .tabulator .tabulator-footer .tabulator-page-size {
  color: var(--text-muted);
  font-size: .82rem;
}

body.spa-lite-shell .spa-page-shell .tabulator .tabulator-footer .tabulator-page,
body.spa-lite-shell .spa-page-shell .tabulator .tabulator-footer select {
  min-height: 2.05rem;
  border-radius: .25rem;
  border-color: color-mix(in srgb, var(--primary-color) 12%, var(--border-color));
  background: var(--input-bg);
  color: var(--text-main);
  font-size: .82rem;
  font-weight: 700;
}

body.spa-lite-shell .spa-page-shell .tabulator .tabulator-footer select option {
  background: var(--bg-surface);
  color: var(--text-main);
}

body.spa-lite-shell .spa-funnel-native-shell #spa-funnel-grid .tabulator-footer .tabulator-paginator,
body.spa-lite-shell .spa-orders-native-shell #spa-orders-grid .tabulator-footer .tabulator-paginator {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .42rem;
}

body.spa-lite-shell .spa-home-page {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

body.spa-lite-shell .spa-home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

body.spa-lite-shell .spa-home-title-row {
  display: flex;
  align-items: center;
  gap: .7rem;
  flex-wrap: wrap;
}

body.spa-lite-shell .spa-home-date-badge {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: .35rem .7rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 16%, var(--border-color));
  border-radius: .45rem;
  background: color-mix(in srgb, var(--primary-color) 7%, var(--bg-surface));
  color: var(--text-main);
  font-size: .78rem;
  font-weight: 850;
}

body.spa-lite-shell .spa-home-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .55rem;
}

body.spa-lite-shell .spa-home-page-actions .spa-home-header-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 2.55rem;
  width: 2.55rem;
  min-width: 2.55rem;
  height: 2.55rem;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--primary-color) 28%, var(--border-color));
  border-radius: .25rem;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--primary-color) 11%, transparent) 0%, transparent 42%),
    var(--bg-surface);
  color: var(--primary-color);
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(15, 23, 42, .06);
}

body.spa-lite-shell .spa-home-page-actions .spa-home-header-icon-btn i {
  margin: 0;
  font-size: 1rem;
  line-height: 1;
}

body.spa-lite-shell .spa-home-page-actions .spa-home-header-icon-btn:hover,
body.spa-lite-shell .spa-home-page-actions .spa-home-header-icon-btn:focus-visible {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--primary-color) 52%, var(--border-color));
  background: color-mix(in srgb, var(--primary-color) 12%, var(--bg-surface));
}

body.spa-lite-shell .spa-home-page-actions .spa-home-header-icon-btn.is-funnel-new {
  color: #2563eb;
  border-color: color-mix(in srgb, #2563eb 38%, var(--border-color));
}

body.spa-lite-shell .spa-home-page-actions .spa-home-header-icon-btn.is-funnel-list {
  color: #16a34a;
  border-color: color-mix(in srgb, #16a34a 35%, var(--border-color));
}

body.spa-lite-shell .spa-home-page-actions .spa-home-header-icon-btn.is-order-new {
  color: #f97316;
  border-color: color-mix(in srgb, #f97316 38%, var(--border-color));
}

body.spa-lite-shell .spa-home-page-actions .spa-home-header-icon-btn.is-order-list {
  color: #0284c7;
  border-color: color-mix(in srgb, #0284c7 35%, var(--border-color));
}

body.spa-lite-shell .spa-home-hero {
  display: block;
  padding: 0;
}

body.spa-lite-shell .spa-home-command-body {
  display: grid;
  grid-template-columns: minmax(16rem, .82fr) minmax(0, 1.18fr);
  align-items: stretch;
  gap: 1rem;
}

body.spa-lite-shell .spa-home-command-panel {
  min-width: 0;
  padding: .85rem .95rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 12%, var(--border-color));
  border-radius: .75rem;
  background: var(--bg-surface);
}

body.spa-lite-shell .spa-home-hero-main {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: .95rem;
}

body.spa-lite-shell .spa-home-hero-icon {
  display: inline-flex;
  flex: 0 0 3.35rem;
  width: 3.35rem;
  height: 3.35rem;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--primary-color) 24%, var(--border-color));
  border-radius: .85rem;
  background: color-mix(in srgb, var(--primary-color) 10%, var(--bg-surface));
  color: var(--primary-color);
  font-size: 1.28rem;
}

body.spa-lite-shell .spa-home-eyebrow {
  margin: 0 0 .22rem;
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.spa-lite-shell .spa-home-hero h3 {
  margin: 0;
  color: var(--text-main);
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: -.015em;
}

body.spa-lite-shell .spa-home-hero p:last-child {
  margin: 0;
  color: var(--text-muted);
  font-size: .88rem;
  font-weight: 700;
}

body.spa-lite-shell .spa-home-resume-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--primary-color) 18%, var(--border-color));
  border-radius: .38rem;
  background: color-mix(in srgb, var(--primary-color) 7%, var(--bg-surface));
  color: var(--primary-color);
}

body.spa-lite-shell .spa-home-resume-hint:hover {
  border-color: color-mix(in srgb, var(--primary-color) 42%, var(--border-color));
  background: color-mix(in srgb, var(--primary-color) 12%, var(--bg-surface));
}

body.spa-lite-shell .spa-home-hero-support {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .22rem;
  border: 1px solid color-mix(in srgb, #16a34a 18%, var(--border-color));
  background: color-mix(in srgb, #16a34a 6%, var(--bg-surface));
  color: var(--text-main);
}

body.spa-lite-shell .spa-home-hero-support span {
  color: #16a34a;
}

body.spa-lite-shell .spa-home-hero-support strong {
  font-size: .86rem;
  font-weight: 900;
}

body.spa-lite-shell .spa-home-hero-support small {
  color: var(--text-muted);
  font-size: .76rem;
  font-weight: 750;
  line-height: 1.4;
}

body.spa-lite-shell .spa-home-command-activity {
  display: flex;
  min-height: 7rem;
  max-height: 12rem;
  overflow: auto;
  border-color: color-mix(in srgb, var(--primary-color) 18%, var(--border-color));
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--primary-color) 13%, transparent), transparent 45%),
    color-mix(in srgb, var(--primary-color) 6%, var(--bg-surface));
}

body.spa-lite-shell .spa-home-command-activity .spa-home-audit-list {
  width: 100%;
  padding: .15rem;
  border: 0;
}

body.spa-lite-shell .spa-home-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .75rem;
}

body.spa-lite-shell .spa-home-kpi {
  display: grid;
  min-height: 5.4rem;
  align-content: center;
  gap: .18rem;
  padding: .75rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 12%, var(--border-color));
  border-radius: .85rem;
  background: var(--bg-surface);
}

body.spa-lite-shell .spa-home-kpi span {
  color: var(--primary-color);
  font-size: .95rem;
}

body.spa-lite-shell .spa-home-kpi strong {
  color: var(--text-main);
  font-size: 1.28rem;
  font-weight: 950;
  line-height: 1;
}

body.spa-lite-shell .spa-home-kpi small {
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .035em;
  text-transform: uppercase;
}

body.spa-lite-shell .spa-home-kpi.is-danger span,
body.spa-lite-shell .spa-home-task.is-danger .spa-home-task-icon,
body.spa-lite-shell .spa-home-area-card.is-danger .spa-home-area-icon,
body.spa-lite-shell .spa-home-priority.is-danger,
body.spa-lite-shell .spa-home-compact-dot.is-danger {
  color: #dc2626;
}

body.spa-lite-shell .spa-home-kpi.is-warning span,
body.spa-lite-shell .spa-home-task.is-warning .spa-home-task-icon,
body.spa-lite-shell .spa-home-area-card.is-warning .spa-home-area-icon,
body.spa-lite-shell .spa-home-priority.is-warning,
body.spa-lite-shell .spa-home-compact-dot.is-warning {
  color: #d97706;
}

body.spa-lite-shell .spa-home-kpi.is-success span,
body.spa-lite-shell .spa-home-task.is-success .spa-home-task-icon,
body.spa-lite-shell .spa-home-area-card.is-success .spa-home-area-icon,
body.spa-lite-shell .spa-home-priority.is-success,
body.spa-lite-shell .spa-home-compact-dot.is-success {
  color: #16a34a;
}

body.spa-lite-shell .spa-home-kpi.is-info span,
body.spa-lite-shell .spa-home-task.is-info .spa-home-task-icon,
body.spa-lite-shell .spa-home-area-card.is-info .spa-home-area-icon,
body.spa-lite-shell .spa-home-priority.is-info,
body.spa-lite-shell .spa-home-compact-dot.is-info {
  color: #0284c7;
}

body.spa-lite-shell .spa-home-area-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}

body.spa-lite-shell .spa-home-area-card {
  display: grid;
  grid-template-columns: 2.45rem minmax(0, 1fr) auto;
  align-items: center;
  gap: .72rem;
  min-width: 0;
  padding: .78rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 12%, var(--border-color));
  border-radius: .82rem;
  background: var(--bg-surface);
  color: var(--text-main);
  cursor: pointer;
  font: inherit;
  text-align: left;
  text-decoration: none;
  width: 100%;
}

body.spa-lite-shell .spa-home-area-card:hover,
body.spa-lite-shell .spa-home-area-card.is-active {
  border-color: color-mix(in srgb, var(--primary-color) 30%, var(--border-color));
  background: color-mix(in srgb, var(--primary-color) 5%, var(--bg-surface));
}

body.spa-lite-shell .spa-home-area-icon {
  display: inline-flex;
  width: 2.45rem;
  height: 2.45rem;
  align-items: center;
  justify-content: center;
  border-radius: .62rem;
  background: color-mix(in srgb, var(--primary-color) 8%, var(--bg-surface));
  color: var(--primary-color);
}

body.spa-lite-shell .spa-home-area-main {
  display: grid;
  min-width: 0;
  gap: .15rem;
}

body.spa-lite-shell .spa-home-area-main strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text-main);
  font-size: .88rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.spa-lite-shell .spa-home-area-main small {
  min-width: 0;
  overflow: hidden;
  color: var(--text-muted);
  font-size: .74rem;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.spa-lite-shell .spa-home-area-side {
  display: grid;
  justify-items: end;
  gap: .1rem;
  text-align: right;
}

body.spa-lite-shell .spa-home-area-side b {
  color: var(--text-main);
  font-size: 1.1rem;
  font-weight: 950;
  line-height: 1;
}

body.spa-lite-shell .spa-home-area-side small,
body.spa-lite-shell .spa-home-area-side em,
body.spa-lite-shell .spa-home-area-action {
  color: var(--text-muted);
  font-size: .68rem;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

body.spa-lite-shell .spa-home-area-action,
body.spa-lite-shell .spa-home-open-cue,
body.spa-lite-shell .spa-home-compact-cue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  min-height: 1.35rem;
  padding: .12rem .38rem;
  border-radius: .32rem;
  background: color-mix(in srgb, var(--primary-color) 8%, var(--bg-surface));
  color: var(--primary-color);
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
}

body.spa-lite-shell .spa-home-area-card:hover .spa-home-area-action,
body.spa-lite-shell .spa-home-area-card.is-active .spa-home-area-action,
body.spa-lite-shell .spa-home-task:hover .spa-home-open-cue,
body.spa-lite-shell .spa-home-compact-item:hover .spa-home-compact-cue {
  background: color-mix(in srgb, var(--primary-color) 15%, var(--bg-surface));
}

body.spa-lite-shell .spa-home-priority-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

body.spa-lite-shell .spa-home-priority-grid .spa-home-card {
  min-width: 0;
}

body.spa-lite-shell .spa-home-priority-grid .card-body-custom {
  max-height: 22rem;
  overflow: auto;
}

body.spa-lite-shell .spa-home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(20rem, .75fr);
  gap: 1rem;
  align-items: start;
}

body.spa-lite-shell .spa-home-side-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

body.spa-lite-shell .spa-home-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1fr) minmax(0, .9fr);
  gap: 1rem;
}

body.spa-lite-shell .spa-home-task-list,
body.spa-lite-shell .spa-home-compact-list,
body.spa-lite-shell .spa-home-audit-list {
  display: flex;
  flex-direction: column;
  gap: .62rem;
}

body.spa-lite-shell .spa-home-task,
body.spa-lite-shell .spa-home-compact-item,
body.spa-lite-shell .spa-home-audit-item {
  display: flex;
  min-width: 0;
  gap: .7rem;
  padding: .7rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 10%, var(--border-color));
  border-radius: .72rem;
  background: color-mix(in srgb, var(--bg-surface) 96%, transparent);
  color: var(--text-main);
  text-decoration: none;
}

body.spa-lite-shell .spa-home-task,
body.spa-lite-shell .spa-home-compact-item {
  cursor: pointer;
  font: inherit;
  text-align: left;
  width: 100%;
}

body.spa-lite-shell .spa-home-task {
  align-items: center;
}

body.spa-lite-shell .spa-home-compact-item {
  align-items: center;
}

body.spa-lite-shell .spa-home-task:hover,
body.spa-lite-shell .spa-home-compact-item:hover,
body.spa-lite-shell .spa-home-task:focus-visible,
body.spa-lite-shell .spa-home-compact-item:focus-visible {
  border-color: color-mix(in srgb, var(--primary-color) 28%, var(--border-color));
  background: color-mix(in srgb, var(--primary-color) 5%, var(--bg-surface));
}

body.spa-lite-shell .spa-home-command-activity .spa-home-audit-item {
  border: 0;
  background: color-mix(in srgb, var(--bg-surface) 74%, var(--primary-color) 10%);
  box-shadow: none;
}

body.spa-lite-shell .spa-home-command-activity .spa-home-empty {
  border: 0;
  background: color-mix(in srgb, var(--bg-surface) 76%, var(--primary-color) 8%);
  box-shadow: none;
}

body.spa-lite-shell .spa-home-task-icon,
body.spa-lite-shell .spa-home-compact-dot {
  display: inline-flex;
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: .55rem;
  background: color-mix(in srgb, var(--primary-color) 7%, var(--bg-surface));
  color: var(--primary-color);
}

body.spa-lite-shell .spa-home-task-main {
  display: grid;
  min-width: 0;
  gap: .15rem;
}

body.spa-lite-shell .spa-home-task-title,
body.spa-lite-shell .spa-home-compact-item strong,
body.spa-lite-shell .spa-home-audit-item strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text-main);
  font-size: .88rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.spa-lite-shell .spa-home-task-copy,
body.spa-lite-shell .spa-home-task-meta,
body.spa-lite-shell .spa-home-compact-item small,
body.spa-lite-shell .spa-home-audit-item small {
  color: var(--text-muted);
  font-size: .76rem;
  font-weight: 720;
  line-height: 1.35;
}

body.spa-lite-shell .spa-home-task-side {
  display: flex;
  flex: 0 0 8rem;
  flex-direction: column;
  align-items: flex-end;
  gap: .2rem;
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 850;
  text-align: right;
}

body.spa-lite-shell .spa-home-open-cue {
  margin-top: .12rem;
}

body.spa-lite-shell .spa-home-compact-cue {
  flex: 0 0 auto;
  margin-left: auto;
}

body.spa-lite-shell .spa-home-task-area,
body.spa-lite-shell .spa-home-task-type {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  min-height: 1.45rem;
  padding: .18rem .45rem;
  border-radius: .35rem;
  background: color-mix(in srgb, var(--primary-color) 8%, var(--bg-surface));
  color: var(--primary-color);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

body.spa-lite-shell .spa-home-task-area {
  background: color-mix(in srgb, var(--text-muted) 8%, var(--bg-surface));
  color: var(--text-main);
  letter-spacing: 0;
  text-transform: none;
}

body.spa-lite-shell .spa-home-task-table-card .card-header-custom {
  align-items: center;
}

body.spa-lite-shell .spa-home-task-table-card .card-header-custom::after {
  content: "Klik baris untuk detail";
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  margin-left: auto;
  padding: .14rem .5rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 14%, var(--border-color));
  border-radius: .38rem;
  background: color-mix(in srgb, var(--primary-color) 6%, var(--bg-surface));
  color: var(--text-muted);
  font-size: .7rem;
  font-weight: 850;
}

body.spa-lite-shell .spa-home-table-count {
  position: absolute;
  left: .95rem;
  bottom: .82rem;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: .28rem .58rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 16%, var(--border-color));
  border-radius: .45rem;
  background: color-mix(in srgb, var(--bg-surface) 96%, transparent);
  color: var(--text-main);
  font-size: .78rem;
  font-weight: 800;
  white-space: nowrap;
}

body.spa-lite-shell .spa-home-task-filters {
  display: grid;
  grid-template-columns: repeat(9, minmax(5.75rem, 1fr));
  align-items: center;
  width: 100%;
  gap: .4rem;
  padding: .65rem .9rem 0;
  overflow-x: auto;
}

body.spa-lite-shell .spa-home-task-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: .25rem .58rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 14%, var(--border-color));
  border-radius: .38rem;
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: .73rem;
  font-weight: 850;
  text-align: center;
  white-space: nowrap;
}

body.spa-lite-shell .spa-home-task-filter:hover,
body.spa-lite-shell .spa-home-task-filter.is-active {
  border-color: var(--primary-color);
  background: color-mix(in srgb, var(--primary-color) 12%, var(--bg-surface));
  color: var(--text-main);
}

body.spa-lite-shell .spa-home-task-table-wrap {
  position: relative;
  width: 100%;
  overflow-x: auto;
}

body.spa-lite-shell .spa-home-task-grid.tabulator {
  min-width: 64rem;
  border-radius: .75rem;
}

body.spa-lite-shell .spa-home-task-grid.tabulator .tabulator-footer {
  min-height: 3.65rem;
  padding-left: 14.25rem;
}

body.spa-lite-shell .spa-home-task-grid.tabulator .tabulator-col,
body.spa-lite-shell .spa-home-task-grid.tabulator .tabulator-row .tabulator-cell {
  border-right-color: color-mix(in srgb, var(--primary-color) 10%, var(--border-color)) !important;
}

body.spa-lite-shell .spa-home-task-grid.tabulator .tabulator-col[tabulator-field="areaLabel"],
body.spa-lite-shell .spa-home-task-grid.tabulator .tabulator-cell[tabulator-field="areaLabel"] {
  border-right-color: color-mix(in srgb, var(--primary-color) 10%, var(--border-color)) !important;
}

body.spa-lite-shell .spa-home-task-grid.tabulator .tabulator-frozen,
body.spa-lite-shell .spa-home-task-grid.tabulator .tabulator-frozen-left,
body.spa-lite-shell .spa-home-task-grid.tabulator .tabulator-frozen-right {
  border-color: color-mix(in srgb, var(--primary-color) 10%, var(--border-color)) !important;
}

body.spa-lite-shell .spa-home-task-grid .tabulator-row .tabulator-cell {
  font-size: .78rem;
}

body.spa-lite-shell .spa-home-task-grid .tabulator-row {
  cursor: pointer;
}

body.spa-lite-shell .spa-home-task-grid .tabulator-row:hover .tabulator-cell {
  background: color-mix(in srgb, var(--primary-color) 5%, transparent);
}

body.spa-lite-shell .spa-home-task-grid .tabulator-row .tabulator-cell strong {
  display: block;
  max-width: 23rem;
  overflow: hidden;
  color: var(--text-main);
  font-size: .82rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.spa-lite-shell .spa-home-task-grid .tabulator-row .tabulator-cell .small {
  max-width: 23rem;
  overflow: hidden;
  font-size: .7rem;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.spa-lite-shell .spa-home-task-grid .tabulator-col[tabulator-field="actions"],
body.spa-lite-shell .spa-home-task-grid .tabulator-cell[tabulator-field="actions"],
body.spa-lite-shell .spa-home-task-grid .tabulator-cell.spa-home-action-cell {
  background: var(--bg-surface);
}

body.spa-lite-shell .spa-home-priority,
body.spa-lite-shell .spa-home-table-area {
  display: inline-flex;
  align-items: center;
  gap: .32rem;
  min-height: 1.65rem;
  padding: .18rem .48rem;
  border-radius: .35rem;
  background: color-mix(in srgb, var(--primary-color) 8%, var(--bg-surface));
  color: var(--text-main);
  font-size: .7rem;
  font-weight: 900;
  white-space: nowrap;
}

body.spa-lite-shell .spa-home-table-area i {
  color: var(--primary-color);
}

body.spa-lite-shell .spa-home-table-action {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--primary-color) 28%, var(--border-color));
  border-radius: .42rem;
  background: color-mix(in srgb, var(--primary-color) 8%, var(--bg-surface));
  color: var(--primary-color);
  text-decoration: none;
}

body.spa-lite-shell .spa-home-table-action:hover {
  background: color-mix(in srgb, var(--primary-color) 16%, var(--bg-surface));
}

body.spa-lite-shell .spa-home-task-modal .modal-content {
  border: 1px solid color-mix(in srgb, var(--primary-color) 14%, var(--border-color));
  border-radius: .95rem;
  background: var(--bg-surface);
  color: var(--text-main);
}

body.spa-lite-shell .spa-home-task-modal .modal-header,
body.spa-lite-shell .spa-home-task-modal .modal-footer {
  border-color: color-mix(in srgb, var(--primary-color) 10%, var(--border-color));
}

body.spa-lite-shell .spa-home-task-modal .modal-title {
  color: var(--text-main);
  font-weight: 950;
}

body.spa-lite-shell .spa-home-task-modal-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

body.spa-lite-shell .spa-home-task-modal-meta-item,
body.spa-lite-shell .spa-home-task-modal-action {
  display: grid;
  gap: .25rem;
  padding: .75rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 11%, var(--border-color));
  border-radius: .7rem;
  background: color-mix(in srgb, var(--bg-surface) 96%, transparent);
}

body.spa-lite-shell .spa-home-task-modal-meta-item span,
body.spa-lite-shell .spa-home-task-modal-action span {
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

body.spa-lite-shell .spa-home-task-modal-meta-item strong,
body.spa-lite-shell .spa-home-task-modal-action strong {
  color: var(--text-main);
  font-size: .9rem;
  font-weight: 900;
}

body.spa-lite-shell .spa-home-task-modal-action {
  margin-top: .85rem;
}

body.spa-lite-shell .spa-home-compact-item span:last-child,
body.spa-lite-shell .spa-home-audit-item span:last-child {
  display: grid;
  min-width: 0;
  gap: .15rem;
}

body.spa-lite-shell .spa-home-shortcut-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .62rem;
}

body.spa-lite-shell .spa-home-shortcut {
  display: grid;
  min-height: 5.35rem;
  align-content: center;
  gap: .2rem;
  padding: .75rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 12%, var(--border-color));
  border-radius: .7rem;
  background: var(--bg-surface);
  color: var(--text-main);
  text-decoration: none;
}

body.spa-lite-shell .spa-home-shortcut i {
  color: var(--primary-color);
}

body.spa-lite-shell .spa-home-shortcut span {
  font-size: .83rem;
  font-weight: 900;
}

body.spa-lite-shell .spa-home-shortcut small {
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 750;
}

body.spa-lite-shell .spa-home-empty {
  display: grid;
  justify-items: start;
  gap: .25rem;
  padding: .85rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 12%, var(--border-color));
  border-radius: .75rem;
  background: color-mix(in srgb, var(--primary-color) 3%, var(--bg-surface));
  color: var(--text-muted);
}

body.spa-lite-shell .spa-home-empty span {
  color: #16a34a;
}

body.spa-lite-shell .spa-home-empty strong {
  color: var(--text-main);
  font-size: .86rem;
  font-weight: 900;
}

body.spa-lite-shell .spa-home-empty p {
  margin: 0;
  font-size: .76rem;
  font-weight: 720;
  line-height: 1.4;
}

@media (max-width: 1199.98px) {
  body.spa-lite-shell .spa-home-kpi-grid,
  body.spa-lite-shell .spa-home-area-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.spa-lite-shell .spa-home-priority-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.spa-lite-shell .spa-home-layout,
  body.spa-lite-shell .spa-home-bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  body.spa-lite-shell .spa-home-header,
  body.spa-lite-shell .spa-home-command-body {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  body.spa-lite-shell .spa-home-hero-support {
    flex-basis: auto;
    min-width: 0;
  }

  body.spa-lite-shell .spa-home-kpi-grid,
  body.spa-lite-shell .spa-home-area-grid,
  body.spa-lite-shell .spa-home-priority-grid,
  body.spa-lite-shell .spa-home-shortcut-grid {
    grid-template-columns: 1fr;
  }

  body.spa-lite-shell .spa-home-task {
    align-items: flex-start;
    flex-direction: column;
  }

  body.spa-lite-shell .spa-home-task-side {
    flex: 0 0 auto;
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    text-align: left;
  }

  body.spa-lite-shell .spa-home-task-filters {
    grid-template-columns: repeat(9, minmax(6rem, 1fr));
  }

  body.spa-lite-shell .spa-home-compact-item {
    align-items: flex-start;
  }

  body.spa-lite-shell .spa-home-compact-cue {
    margin-left: 0;
  }

  body.spa-lite-shell .spa-home-area-card {
    grid-template-columns: 2.45rem minmax(0, 1fr);
  }

  body.spa-lite-shell .spa-home-area-side {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, max-content);
    justify-content: start;
    justify-items: start;
    text-align: left;
  }

  body.spa-lite-shell .spa-home-task-table-card .card-header-custom::after {
    margin-left: 0;
  }

  body.spa-lite-shell .spa-home-task-modal-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991.98px) {
  body.spa-lite-shell .spa-page-shell .card-header-custom.ds-card-header-actionbar .ds-card-header-meta {
    flex: 0 0 100%;
    width: 100%;
    justify-content: flex-start !important;
  }

  body.spa-lite-shell .spa-page-shell .spa-funnel-header-search,
  body.spa-lite-shell .spa-page-shell .spa-orders-header-search,
  body.spa-lite-shell .spa-page-shell .history-header-search {
    flex-basis: 100%;
    width: 100%;
    min-width: 0;
    margin-left: 0;
  }

  body.spa-lite-shell .spa-page-shell .ds-card-header-actions,
  body.spa-lite-shell .spa-page-shell .ds-page-header-actions {
    justify-content: flex-start;
    width: 100%;
  }

  body.spa-lite-shell .spa-funnel-native-shell #spa-funnel-grid .tabulator-footer,
  body.spa-lite-shell .spa-orders-native-shell #spa-orders-grid .tabulator-footer,
  body.spa-lite-shell .spa-home-task-grid.tabulator .tabulator-footer {
    padding-left: .55rem;
    padding-bottom: 3.15rem;
  }

  body.spa-lite-shell .spa-funnel-native-shell #spa-funnel-grid .tabulator-footer label,
  body.spa-lite-shell .spa-orders-native-shell #spa-orders-grid .tabulator-footer label,
  body.spa-lite-shell .spa-home-task-grid.tabulator .tabulator-footer label {
    display: none;
  }

  body.spa-lite-shell .spa-funnel-table-count,
  body.spa-lite-shell .spa-orders-table-count,
  body.spa-lite-shell .spa-home-table-count {
    left: .75rem;
    bottom: .65rem;
  }
}

@media (max-width: 767.98px) {
  body.spa-lite-shell .spa-order-input-shell .spa-order-page-actions {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
  }

  body.spa-lite-shell .spa-order-input-shell .spa-order-page-actions .btn {
    width: 100%;
  }
}

/* Calculator workspace polish */
body.spa-lite-shell.calculator-page #spa-page-commandbar {
  display: none !important;
}

body.spa-lite-shell .spa-calculator-native-shell {
  display: grid;
  gap: .95rem;
  overflow-x: hidden;
}

body.spa-lite-shell .spa-calculator-native-shell .spa-calculator-overview {
  margin-bottom: 0;
}

body.spa-lite-shell .spa-calculator-title-meta {
  gap: .55rem;
}

body.spa-lite-shell .spa-calculator-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  min-width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--primary-color) 24%, var(--border-color));
  border-radius: .25rem;
  background: var(--bg-surface);
  color: var(--primary-color);
}

body.spa-lite-shell .spa-calculator-page-actions {
  gap: .5rem;
}

body.spa-lite-shell .spa-calculator-header-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.45rem !important;
  min-width: 2.45rem !important;
  max-width: 2.45rem !important;
  height: 2.45rem;
  padding: 0 !important;
  border-radius: .25rem !important;
  border-color: color-mix(in srgb, var(--primary-color) 28%, var(--border-color));
  background: var(--bg-surface);
  color: var(--primary-color);
  box-shadow: 0 10px 20px rgba(15, 23, 42, .06);
}

body.spa-lite-shell .spa-calculator-header-icon-btn i {
  margin: 0;
  font-size: 1rem;
}

body.spa-lite-shell .spa-calculator-header-icon-btn:hover,
body.spa-lite-shell .spa-calculator-header-icon-btn:focus-visible,
body.spa-lite-shell .spa-calculator-info-btn:hover,
body.spa-lite-shell .spa-calculator-info-btn:focus-visible {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--primary-color) 52%, var(--border-color));
  background: color-mix(in srgb, var(--primary-color) 10%, var(--bg-surface));
  color: var(--primary-color);
}

body.spa-lite-shell .spa-calculator-header-icon-btn.is-demo {
  color: #0284c7;
  border-color: color-mix(in srgb, #0284c7 35%, var(--border-color));
}

body.spa-lite-shell .spa-calculator-header-icon-btn.is-reset {
  color: #f59e0b;
  border-color: color-mix(in srgb, #f59e0b 38%, var(--border-color));
}

body.spa-lite-shell .spa-calculator-header-icon-btn.is-switch {
  color: #7c3aed;
  border-color: color-mix(in srgb, #7c3aed 35%, var(--border-color));
}

body.spa-lite-shell .spa-calculator-header-icon-btn.is-order {
  color: #16a34a;
  border-color: color-mix(in srgb, #16a34a 35%, var(--border-color));
}

body.spa-lite-shell .spa-calculator-flow-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem;
  margin-bottom: .85rem;
  padding: .65rem .75rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 12%, var(--border-color));
  border-radius: .75rem;
  background: color-mix(in srgb, var(--primary-color) 5%, var(--bg-surface));
  color: var(--text-main);
  font-size: .82rem;
  font-weight: 800;
}

body.spa-lite-shell .spa-calculator-flow-strip span {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
}

body.spa-lite-shell .spa-calculator-flow-strip > i {
  color: var(--text-muted);
  font-size: .78rem;
}

body.spa-lite-shell .spa-calculator-mode-pill {
  margin-left: 0;
  padding: .35rem .55rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 18%, var(--border-color));
  border-radius: .55rem;
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: .76rem;
}

body.spa-lite-shell .spa-calculator-mode-pill strong {
  color: var(--text-main);
}

body.spa-lite-shell .spa-calculator-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .7rem;
}

body.spa-lite-shell .spa-calculator-summary-card {
  min-width: 0;
  padding: .8rem .85rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 12%, var(--border-color));
  border-radius: .75rem;
  background: var(--bg-surface);
}

body.spa-lite-shell .spa-calculator-summary-card span,
body.spa-lite-shell .spa-calculator-summary-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.spa-lite-shell .spa-calculator-summary-card span {
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

body.spa-lite-shell .spa-calculator-summary-card strong {
  display: block;
  margin-top: .22rem;
  overflow: hidden;
  color: var(--text-main);
  font-size: clamp(.98rem, .38vw + .9rem, 1.24rem);
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.spa-lite-shell .spa-calculator-summary-card small {
  margin-top: .28rem;
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 700;
}

body.spa-lite-shell .spa-calculator-summary-card.is-primary {
  border-color: color-mix(in srgb, #2563eb 26%, var(--border-color));
}

body.spa-lite-shell .spa-calculator-summary-card.is-blue {
  border-color: color-mix(in srgb, #0284c7 26%, var(--border-color));
}

body.spa-lite-shell .spa-calculator-summary-card.is-green {
  border-color: color-mix(in srgb, #16a34a 26%, var(--border-color));
}

body.spa-lite-shell .spa-calculator-summary-card.is-amber {
  border-color: color-mix(in srgb, #f59e0b 30%, var(--border-color));
}

body.spa-lite-shell .spa-calculator-summary-card.is-purple {
  border-color: color-mix(in srgb, #7c3aed 28%, var(--border-color));
}

body.spa-lite-shell .spa-calculator-legacy-host > .d-flex.justify-content-between.align-items-end.mb-4 {
  display: none !important;
}

body.spa-lite-shell .spa-calculator-legacy-host > .row {
  --bs-gutter-x: .95rem;
  --bs-gutter-y: .95rem;
}

body.spa-lite-shell .spa-calculator-legacy-host > .row > .col-12 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
  min-width: 0;
}

body.spa-lite-shell .spa-calculator-native-shell .phoenix-card {
  min-width: 0;
  margin-bottom: 0 !important;
}

body.spa-lite-shell .spa-calculator-legacy-host > .row > .col-12 > .phoenix-card:last-child {
  grid-column: 1 / -1;
}

body.spa-lite-shell .spa-calculator-legacy-host > .row > .col-12 > .phoenix-card:first-child {
  grid-column: 1 / -1;
}

body.spa-lite-shell .spa-calculator-native-shell .card-header-custom {
  min-height: 3.45rem;
  padding: .8rem 1rem;
}

body.spa-lite-shell .spa-calculator-native-shell .card-header-custom h5 {
  font-size: .95rem;
}

body.spa-lite-shell .spa-calculator-native-shell .card-body-custom {
  padding: .82rem .92rem .92rem;
}

body.spa-lite-shell .spa-calculator-legacy-host > .row > .col-12 > .phoenix-card:last-child .card-header-custom {
  min-height: 3.05rem;
  padding-block: .68rem;
}

body.spa-lite-shell .spa-calculator-legacy-host > .row > .col-12 > .phoenix-card:last-child .card-body-custom {
  padding: .72rem .82rem .82rem;
}

body.spa-lite-shell .spa-calculator-native-shell .card-body-custom.row,
body.spa-lite-shell .spa-calculator-native-shell .row.g-3 {
  --bs-gutter-x: .8rem;
  --bs-gutter-y: .75rem;
}

body.spa-lite-shell .spa-calculator-native-shell .form-label {
  margin-bottom: .35rem;
  color: var(--text-muted);
  font-size: .74rem;
  font-weight: 850;
  letter-spacing: .04em;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

body.spa-lite-shell .spa-calculator-native-shell .calc-nowrap-label {
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

body.spa-lite-shell .spa-calculator-native-shell .calc-doc-section-title {
  margin: .1rem 0 0;
  padding-bottom: .45rem;
  border-bottom: 1px solid color-mix(in srgb, var(--primary-color) 12%, var(--border-color));
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .045em;
  text-transform: uppercase;
}

body.spa-lite-shell .spa-calculator-native-shell .calc-doc-price-field .form-label,
body.spa-lite-shell .spa-calculator-native-shell .b2b2-doc-base-field .form-label,
body.spa-lite-shell .spa-calculator-native-shell .dist3-doc-base-field .form-label {
  color: var(--text-muted);
  white-space: nowrap;
}

body.spa-lite-shell .spa-calculator-native-shell .dist3-doc-base-field .form-control,
body.spa-lite-shell .spa-calculator-native-shell .dist3-doc-base-field .form-select {
  border-color: var(--border-color);
  background: var(--bg-surface);
  color: var(--text-main);
}

body.spa-lite-shell .spa-calculator-native-shell .form-control,
body.spa-lite-shell .spa-calculator-native-shell .form-select {
  width: 100%;
  min-height: 2.6rem;
  border-radius: .55rem;
  font-size: .88rem;
}

body.spa-lite-shell .spa-calculator-native-shell .form-select-sm {
  min-height: 2.25rem;
  font-size: .8rem;
}

body.spa-lite-shell .spa-calculator-native-shell .b2b2-stat-card,
body.spa-lite-shell .spa-calculator-native-shell .dist3-stat-card {
  gap: .35rem;
  padding: .75rem .85rem !important;
  border-radius: .75rem !important;
  background: color-mix(in srgb, var(--primary-color) 4%, var(--bg-surface)) !important;
}

body.spa-lite-shell .spa-calculator-native-shell .b2b2-stat-label,
body.spa-lite-shell .spa-calculator-native-shell .dist3-stat-label {
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

body.spa-lite-shell .spa-calculator-native-shell .b2b2-money-card,
body.spa-lite-shell .spa-calculator-native-shell .dist3-money-card,
body.spa-lite-shell .spa-calculator-native-shell .b2b2-money-hero,
body.spa-lite-shell .spa-calculator-native-shell .dist3-money-hero {
  font-size: clamp(.96rem, .38vw + .86rem, 1.22rem);
  line-height: 1.22;
}

body.spa-lite-shell .spa-calculator-native-shell .b2b2-table-wrap,
body.spa-lite-shell .spa-calculator-native-shell .dist3-table-wrap {
  border-radius: .75rem;
  overflow: auto;
}

body.spa-lite-shell .spa-calculator-native-shell .b2b2-table,
body.spa-lite-shell .spa-calculator-native-shell .dist3-table {
  min-width: 860px;
  font-size: .8rem;
}

body.spa-lite-shell .spa-calculator-native-shell .b2b2-table thead th,
body.spa-lite-shell .spa-calculator-native-shell .dist3-table thead th {
  padding: .65rem .55rem;
  text-align: center;
  vertical-align: middle;
}

body.spa-lite-shell .spa-calculator-native-shell .b2b2-table tbody td,
body.spa-lite-shell .spa-calculator-native-shell .dist3-table tbody td {
  padding: .55rem;
  vertical-align: middle;
}

body.spa-lite-shell .spa-calculator-native-shell .b2b2-table .form-control,
body.spa-lite-shell .spa-calculator-native-shell .b2b2-table .form-select,
body.spa-lite-shell .spa-calculator-native-shell .dist3-table .form-control,
body.spa-lite-shell .spa-calculator-native-shell .dist3-table .form-select {
  min-height: 2.25rem;
  padding: .38rem .55rem;
  font-size: .78rem;
}

body.spa-lite-shell .spa-calculator-native-shell #b2b2-add-fee-row,
body.spa-lite-shell .spa-calculator-native-shell #dist3-add-fee-row {
  min-height: 2.25rem;
  border-radius: .25rem;
  font-size: .78rem;
  font-weight: 850;
}

body.spa-lite-shell .spa-calculator-native-shell .b2b2-report-grid-card,
body.spa-lite-shell .spa-calculator-native-shell .dist3-report-grid-card {
  padding: .72rem !important;
  border-color: color-mix(in srgb, var(--primary-color) 13%, var(--border-color)) !important;
  border-radius: .85rem !important;
  background: var(--bg-surface) !important;
}

body.spa-lite-shell .spa-calculator-native-shell .b2b2-report-grid-card > .row,
body.spa-lite-shell .spa-calculator-native-shell .dist3-report-grid-card > .row,
body.spa-lite-shell .spa-calculator-native-shell .phoenix-card .card-body-custom > .row.g-4 {
  --bs-gutter-x: .75rem;
  --bs-gutter-y: .75rem;
}

body.spa-lite-shell .spa-calculator-native-shell .b2b2-panel-header,
body.spa-lite-shell .spa-calculator-native-shell .dist3-panel-header {
  gap: .35rem;
  margin-bottom: .55rem;
  padding-bottom: .5rem;
}

body.spa-lite-shell .spa-calculator-native-shell .b2b2-panel-title,
body.spa-lite-shell .spa-calculator-native-shell .dist3-panel-title {
  font-size: .78rem;
}

body.spa-lite-shell .spa-calculator-native-shell .b2b2-panel-note,
body.spa-lite-shell .spa-calculator-native-shell .dist3-panel-note {
  font-size: .72rem;
}

body.spa-lite-shell .spa-calculator-native-shell .b2b2-report-row,
body.spa-lite-shell .spa-calculator-native-shell .dist3-report-row {
  padding: .38rem .48rem;
  border-radius: .48rem;
  background: color-mix(in srgb, var(--primary-color) 3%, var(--bg-surface));
}

body.spa-lite-shell .spa-calculator-native-shell .b2b2-report-row + .b2b2-report-row,
body.spa-lite-shell .spa-calculator-native-shell .dist3-report-row + .dist3-report-row {
  margin-top: .26rem;
}

body.spa-lite-shell .spa-calculator-native-shell .b2b2-report-label,
body.spa-lite-shell .spa-calculator-native-shell .dist3-report-label {
  color: var(--text-muted);
  font-size: .74rem;
  font-weight: 800;
}

body.spa-lite-shell .spa-calculator-native-shell .b2b2-report-value,
body.spa-lite-shell .spa-calculator-native-shell .dist3-report-value {
  font-size: .82rem;
  font-weight: 850;
}

body.spa-lite-shell .spa-calculator-native-shell .b2b2-report-total,
body.spa-lite-shell .spa-calculator-native-shell .dist3-report-total {
  padding: .5rem .6rem !important;
  border-radius: .65rem;
  background: color-mix(in srgb, var(--primary-color) 7%, var(--bg-surface));
}

body.spa-lite-shell .spa-calculator-native-shell .b2b2-report-total-value,
body.spa-lite-shell .spa-calculator-native-shell .dist3-report-total-value {
  font-size: .98rem;
  font-weight: 900;
}

/* Dashboard Operasional Pesanan */
body.spa-lite-shell .spa-dashboard-orders-page {
  gap: 1rem;
}

body.spa-lite-shell .spa-dashboard-executive-card .card-header-custom {
  min-height: 4rem;
}

body.spa-lite-shell .spa-dashboard-executive-card .ds-card-header-meta {
  gap: .7rem;
}

body.spa-lite-shell .spa-dashboard-sync-badge {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: .35rem .65rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 18%, var(--border-color));
  border-radius: .55rem;
  background: color-mix(in srgb, var(--primary-color) 7%, var(--bg-surface));
  color: var(--text-main);
  font-size: .74rem;
  font-weight: 850;
  white-space: nowrap;
}

body.spa-lite-shell .spa-exec-dashboard-card .ds-card-header-meta {
  flex: 1 1 auto;
  flex-wrap: nowrap;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: .45rem .6rem;
  text-align: left !important;
}

body.spa-lite-shell .spa-exec-dashboard-card .ds-card-header-meta h5 {
  flex: 0 1 auto !important;
  width: auto !important;
}

body.spa-lite-shell .spa-exec-dashboard-card .spa-dashboard-sync-badge {
  flex: 0 0 auto;
}

body.spa-lite-shell .spa-exec-title-row {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 1 auto;
  margin-right: auto;
  gap: .55rem;
  min-width: 0;
  max-width: 100%;
  text-align: left;
  white-space: nowrap;
}

body.spa-lite-shell .spa-exec-title-row h5 {
  flex: 0 1 auto !important;
  width: auto !important;
  min-width: 0;
}

body.spa-lite-shell .spa-exec-title-row .spa-dashboard-sync-badge {
  flex: 0 0 auto;
}

body.spa-lite-shell .spa-dashboard-executive-actions {
  gap: .5rem;
}

body.spa-lite-shell .spa-dashboard-header-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.45rem !important;
  min-width: 2.45rem !important;
  max-width: 2.45rem !important;
  height: 2.45rem;
  padding: 0 !important;
  border: 1px solid color-mix(in srgb, var(--primary-color) 28%, var(--border-color));
  border-radius: .25rem !important;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--primary-color) 11%, transparent) 0%, transparent 42%),
    var(--bg-surface);
  color: var(--primary-color);
  box-shadow: 0 10px 20px rgba(15, 23, 42, .06);
  transition: transform .16s ease, border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

body.spa-lite-shell .spa-dashboard-header-icon-btn i {
  margin: 0;
}

body.spa-lite-shell .spa-dashboard-header-icon-btn:hover,
body.spa-lite-shell .spa-dashboard-header-icon-btn:focus-visible {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--primary-color) 52%, var(--border-color));
  background: color-mix(in srgb, var(--primary-color) 12%, var(--bg-surface));
  box-shadow: 0 10px 20px rgba(15, 23, 42, .08);
}

body.spa-lite-shell .spa-dashboard-header-icon-btn.is-sync {
  color: #0284c7;
  border-color: color-mix(in srgb, #0284c7 35%, var(--border-color));
}

body.spa-lite-shell .spa-dashboard-header-icon-btn.is-list {
  color: #7c3aed;
  border-color: color-mix(in srgb, #7c3aed 35%, var(--border-color));
}

body.spa-lite-shell .spa-dashboard-header-icon-btn.is-new {
  color: #16a34a;
  border-color: color-mix(in srgb, #16a34a 35%, var(--border-color));
}

body.spa-lite-shell .spa-dashboard-executive-top {
  display: grid;
  grid-template-columns: minmax(22rem, .92fr) minmax(0, 1.4fr);
  gap: .9rem;
  align-items: stretch;
}

body.spa-lite-shell .spa-dashboard-executive-card .spa-dashboard-health-card {
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  min-height: 100%;
  padding: .95rem;
  align-items: stretch;
}

body.spa-lite-shell .spa-dashboard-executive-card .spa-dashboard-health-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: stretch;
}

body.spa-lite-shell .spa-dashboard-executive-card .spa-dashboard-health-chip {
  min-width: 0;
}

body.spa-lite-shell .spa-dashboard-executive-card .spa-dashboard-health-copy {
  max-width: 62rem;
}

body.spa-lite-shell .spa-dashboard-kpi-badge-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .55rem;
}

body.spa-lite-shell .spa-dashboard-kpi-badge {
  display: flex;
  min-width: 0;
  min-height: 4.25rem;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: .2rem;
  padding: .62rem .7rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 14%, var(--border-color));
  border-radius: .65rem;
  background: var(--bg-surface);
  color: var(--text-main);
  text-align: left;
}

body.spa-lite-shell button.spa-dashboard-kpi-badge {
  cursor: pointer;
}

body.spa-lite-shell button.spa-dashboard-kpi-badge:hover,
body.spa-lite-shell button.spa-dashboard-kpi-badge:focus-visible,
body.spa-lite-shell .spa-dashboard-mini-insight:hover,
body.spa-lite-shell .spa-dashboard-mini-insight:focus-visible {
  border-color: color-mix(in srgb, var(--primary-color) 42%, var(--border-color));
  background: color-mix(in srgb, var(--primary-color) 7%, var(--bg-surface));
}

body.spa-lite-shell .spa-dashboard-kpi-badge span {
  overflow: hidden;
  width: 100%;
  color: var(--text-muted);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

body.spa-lite-shell .spa-dashboard-kpi-badge strong {
  overflow: hidden;
  width: 100%;
  color: var(--text-main);
  font-size: clamp(.94rem, .3vw + .86rem, 1.12rem);
  font-weight: 900;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.spa-lite-shell .spa-dashboard-kpi-badge.is-primary {
  border-color: color-mix(in srgb, #2563eb 26%, var(--border-color));
}

body.spa-lite-shell .spa-dashboard-kpi-badge.is-success {
  border-color: color-mix(in srgb, #16a34a 28%, var(--border-color));
}

body.spa-lite-shell .spa-dashboard-kpi-badge.is-warning {
  border-color: color-mix(in srgb, #f59e0b 32%, var(--border-color));
}

body.spa-lite-shell .spa-dashboard-kpi-badge.is-danger {
  border-color: color-mix(in srgb, #dc2626 28%, var(--border-color));
}

body.spa-lite-shell .spa-dashboard-kpi-badge.is-info {
  border-color: color-mix(in srgb, #0284c7 28%, var(--border-color));
}

body.spa-lite-shell .spa-dashboard-kpi-badge.is-value {
  border-color: color-mix(in srgb, #7c3aed 28%, var(--border-color));
}

body.spa-lite-shell .spa-dashboard-kpi-badge.is-muted {
  border-color: color-mix(in srgb, var(--text-muted) 14%, var(--border-color));
  background: color-mix(in srgb, var(--text-muted) 4%, var(--bg-surface));
}

body.spa-lite-shell .spa-dashboard-analytics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
  margin-top: .9rem;
}

body.spa-lite-shell .spa-dashboard-analytic-panel {
  min-width: 0;
  padding: .85rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 12%, var(--border-color));
  border-radius: .85rem;
  background: var(--bg-surface);
}

body.spa-lite-shell .spa-dashboard-analytic-panel.is-wide {
  grid-column: span 2;
}

body.spa-lite-shell .spa-dashboard-panel-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .7rem;
  min-width: 0;
  margin-bottom: .75rem;
}

body.spa-lite-shell .spa-dashboard-panel-title span {
  min-width: 0;
  color: var(--text-main);
  font-size: .9rem;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

body.spa-lite-shell .spa-dashboard-panel-title small {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 45%;
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 750;
  line-height: 1.25;
  text-align: right;
  overflow-wrap: anywhere;
}

body.spa-lite-shell .spa-dashboard-trend-chart {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  gap: .45rem;
  min-height: 12.5rem;
  padding: .25rem .1rem 0;
}

body.spa-lite-shell .spa-dashboard-trend-month {
  display: grid;
  min-width: 0;
  gap: .35rem;
}

body.spa-lite-shell .spa-dashboard-trend-bars {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: .16rem;
  height: 10rem;
  padding-inline: .08rem;
  border-bottom: 1px solid color-mix(in srgb, var(--primary-color) 12%, var(--border-color));
}

body.spa-lite-shell .spa-dashboard-trend-bars span {
  width: min(1rem, 42%);
  min-height: .35rem;
  border-radius: .35rem .35rem 0 0;
}

body.spa-lite-shell .spa-dashboard-trend-bars i {
  display: block;
  width: min(1rem, 42%);
  min-height: .35rem;
  border-radius: .35rem .35rem 0 0;
}

body.spa-lite-shell .spa-dashboard-trend-bars .is-current,
body.spa-lite-shell .spa-dashboard-chart-legend .is-current {
  background: #2563eb;
}

body.spa-lite-shell .spa-dashboard-trend-bars .is-previous,
body.spa-lite-shell .spa-dashboard-chart-legend .is-previous {
  background: #94a3b8;
}

body.spa-lite-shell .spa-dashboard-trend-month small {
  overflow: hidden;
  color: var(--text-muted);
  font-size: .66rem;
  font-weight: 800;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.spa-lite-shell .spa-dashboard-chart-legend {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-top: .65rem;
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 800;
}

body.spa-lite-shell .spa-dashboard-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: .32rem;
}

body.spa-lite-shell .spa-dashboard-chart-legend i {
  display: inline-block;
  width: .62rem;
  height: .62rem;
  border-radius: 999px;
}

body.spa-lite-shell .spa-dashboard-pie-wrap {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: .85rem;
  align-items: center;
}

body.spa-lite-shell .spa-dashboard-pie {
  position: relative;
  display: grid;
  place-items: center;
  width: 8.5rem;
  height: 8.5rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--primary-color) 12%, var(--border-color));
  color: var(--text-main);
}

body.spa-lite-shell .spa-dashboard-pie::after {
  content: '';
  position: absolute;
  inset: 1.28rem;
  border-radius: inherit;
  background: var(--bg-surface);
}

body.spa-lite-shell .spa-dashboard-pie span,
body.spa-lite-shell .spa-dashboard-pie small {
  position: relative;
  z-index: 1;
}

body.spa-lite-shell .spa-dashboard-pie span {
  align-self: end;
  font-size: 1.35rem;
  font-weight: 950;
  line-height: 1;
}

body.spa-lite-shell .spa-dashboard-pie small {
  align-self: start;
  margin-top: .15rem;
  color: var(--text-muted);
  font-size: .7rem;
  font-weight: 800;
}

body.spa-lite-shell .spa-dashboard-pie-legend {
  display: grid;
  gap: .38rem;
  min-width: 0;
}

body.spa-lite-shell .spa-dashboard-pie-legend > span {
  display: grid;
  grid-template-columns: .65rem minmax(0, 1fr) max-content max-content;
  align-items: center;
  gap: .42rem;
  color: var(--text-muted);
  font-size: .74rem;
  font-weight: 800;
}

body.spa-lite-shell .spa-dashboard-pie-legend > span > i {
  width: .65rem;
  height: .65rem;
  border-radius: 999px;
}

body.spa-lite-shell .spa-dashboard-pie-legend > span > em {
  overflow: hidden;
  color: var(--text-muted);
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.spa-lite-shell .spa-dashboard-pie-legend > span > b {
  color: var(--text-main);
  font-size: .74rem;
  white-space: nowrap;
}

body.spa-lite-shell .spa-dashboard-pie-legend > span > small {
  color: var(--text-muted);
  font-size: .68rem;
  font-weight: 850;
  white-space: nowrap;
}

body.spa-lite-shell .spa-dashboard-pie-legend > span > i.tone-1 {
  background: #2563eb;
}

body.spa-lite-shell .spa-dashboard-pie-legend > span > i.tone-2 {
  background: #16a34a;
}

body.spa-lite-shell .spa-dashboard-pie-legend > span > i.tone-3 {
  background: #f59e0b;
}

body.spa-lite-shell .spa-dashboard-pie-legend > span > i.tone-4 {
  background: #dc2626;
}

body.spa-lite-shell .spa-dashboard-pie-legend > span > i.tone-5 {
  background: #7c3aed;
}

body.spa-lite-shell .spa-dashboard-pie-legend > span > i.tone-6 {
  background: #0284c7;
}

body.spa-lite-shell .spa-dashboard-pie-legend-item {
  display: grid;
  grid-template-columns: .65rem minmax(0, 1fr) max-content;
  align-items: center;
  gap: .42rem;
  color: var(--text-muted);
  font-size: .74rem;
  font-weight: 800;
}

body.spa-lite-shell .spa-dashboard-pie-legend-item i {
  width: .65rem;
  height: .65rem;
  border-radius: 999px;
}

body.spa-lite-shell .spa-dashboard-pie-legend-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.spa-lite-shell .spa-dashboard-pie-legend-item strong {
  color: var(--text-main);
}

body.spa-lite-shell .spa-dashboard-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
}

body.spa-lite-shell .spa-dashboard-compare-card {
  display: grid;
  gap: .18rem;
  min-width: 0;
  padding: .62rem .68rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 12%, var(--border-color));
  border-radius: .65rem;
}

body.spa-lite-shell .spa-dashboard-compare-card span,
body.spa-lite-shell .spa-dashboard-compare-card small {
  overflow: hidden;
  color: var(--text-muted);
  font-size: .68rem;
  font-weight: 850;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

body.spa-lite-shell .spa-dashboard-compare-card strong {
  overflow: hidden;
  color: var(--text-main);
  font-size: .92rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.spa-lite-shell .spa-dashboard-compare-card b {
  justify-self: start;
  padding: .18rem .4rem;
  border-radius: .45rem;
  font-size: .72rem;
  line-height: 1.1;
}

body.spa-lite-shell .spa-dashboard-compare-card.is-up b {
  background: color-mix(in srgb, #16a34a 13%, var(--bg-surface));
  color: #16a34a;
}

body.spa-lite-shell .spa-dashboard-compare-card.is-down b {
  background: color-mix(in srgb, #dc2626 12%, var(--bg-surface));
  color: #dc2626;
}

body.spa-lite-shell .spa-dashboard-compare-card.is-flat b {
  background: color-mix(in srgb, var(--text-muted) 10%, var(--bg-surface));
  color: var(--text-muted);
}

body.spa-lite-shell .spa-dashboard-top-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}

body.spa-lite-shell .spa-dashboard-top-grid h6 {
  margin: 0 0 .45rem;
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

body.spa-lite-shell .spa-dashboard-top-list {
  display: grid;
  gap: .38rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.spa-lite-shell .spa-dashboard-top-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  gap: .55rem;
  padding: .42rem .5rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 9%, var(--border-color));
  border-radius: .55rem;
  color: var(--text-main);
  font-size: .76rem;
  font-weight: 800;
}

body.spa-lite-shell .spa-dashboard-top-list li span {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: .38rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.spa-lite-shell .spa-dashboard-top-list li span b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  min-width: 1.25rem;
  height: 1.25rem;
  border-radius: .35rem;
  background: color-mix(in srgb, var(--primary-color) 10%, var(--bg-surface));
  color: var(--primary-color);
  font-size: .68rem;
}

body.spa-lite-shell .spa-dashboard-top-list li strong {
  color: var(--text-main);
  font-size: .74rem;
  white-space: nowrap;
}

body.spa-lite-shell .spa-dashboard-top-list li.is-empty,
body.spa-lite-shell .spa-dashboard-muted-empty {
  color: var(--text-muted);
  font-size: .76rem;
  font-weight: 800;
}

body.spa-lite-shell .spa-dashboard-mini-insights {
  display: grid;
  gap: .55rem;
}

body.spa-lite-shell .spa-dashboard-mini-insight {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: .18rem;
  padding: .62rem .68rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 12%, var(--border-color));
  border-radius: .65rem;
  background: var(--bg-surface);
  color: var(--text-main);
  text-align: left;
}

body.spa-lite-shell .spa-dashboard-mini-insight span {
  color: var(--text-muted);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

body.spa-lite-shell .spa-dashboard-mini-insight strong {
  overflow: hidden;
  font-size: .84rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.spa-lite-shell .spa-dashboard-orders-page .spa-shell-filter-card {
  margin-top: 1rem;
}

body.spa-lite-shell .spa-dashboard-orders-page .spa-dashboard-toolbar {
  grid-template-columns: minmax(18rem, 1.4fr) repeat(5, minmax(10rem, 1fr)) max-content;
}

body.spa-lite-shell .spa-dashboard-orders-page .spa-dashboard-toolbar-actions {
  align-self: end;
}

/* Dashboard Bisnis Penjualan */
body.spa-lite-shell .spa-business-dashboard-page {
  gap: 1rem;
}

body.spa-lite-shell .spa-business-dashboard-card .card-body-custom {
  display: grid;
  gap: 1rem;
}

body.spa-lite-shell .spa-business-period {
  min-width: 10rem;
  border-radius: .55rem;
  font-size: .76rem;
  font-weight: 700;
}

body.spa-lite-shell .spa-business-focus-row {
  display: grid;
  grid-template-columns: minmax(22rem, .85fr) minmax(0, 1.45fr);
  gap: .9rem;
  align-items: stretch;
}

body.spa-lite-shell .spa-business-focus-row .spa-dashboard-health-card {
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  min-height: 100%;
}

body.spa-lite-shell .spa-business-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.spa-lite-shell .spa-business-analytics-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.spa-lite-shell .spa-business-flow,
body.spa-lite-shell .spa-business-action-list,
body.spa-lite-shell .spa-business-matrix {
  display: grid;
  gap: .48rem;
}

body.spa-lite-shell .spa-business-flow-item {
  display: grid;
  gap: .32rem;
  padding: .55rem .65rem;
  border: 1px solid color-mix(in srgb, var(--border-color) 82%, transparent);
  border-radius: .7rem;
  background: color-mix(in srgb, var(--bg-surface) 96%, var(--primary-color) 4%);
}

body.spa-lite-shell .spa-business-flow-item div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .65rem;
  align-items: start;
  min-width: 0;
}

body.spa-lite-shell .spa-business-flow-item strong {
  min-width: 0;
  color: var(--text-main);
  font-size: .78rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

body.spa-lite-shell .spa-business-flow-item span {
  min-width: 0;
  color: var(--text-muted);
  font-size: .68rem;
  font-weight: 700;
  text-align: right;
  overflow-wrap: anywhere;
}

body.spa-lite-shell .spa-business-flow-item i {
  display: block;
  height: .32rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #16a34a);
}

body.spa-lite-shell .spa-business-action-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(4.25rem, max-content);
  gap: .2rem .7rem;
  width: 100%;
  min-width: 0;
  padding: .65rem .7rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 18%, var(--border-color));
  border-radius: .75rem;
  background: var(--bg-surface);
  color: var(--text-main);
  text-align: left;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

body.spa-lite-shell .spa-business-action-item:hover,
body.spa-lite-shell .spa-business-action-item:focus-visible {
  border-color: color-mix(in srgb, var(--primary-color) 48%, var(--border-color));
  box-shadow: 0 .55rem 1.4rem color-mix(in srgb, var(--primary-color) 14%, transparent);
  transform: translateY(-1px);
}

body.spa-lite-shell .spa-business-action-item span {
  color: var(--primary-color);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

body.spa-lite-shell .spa-business-action-item strong,
body.spa-lite-shell .spa-business-action-item small {
  min-width: 0;
  line-height: 1.3;
  overflow-wrap: anywhere;
  white-space: normal;
}

body.spa-lite-shell .spa-business-action-item strong {
  color: var(--text-main);
  font-size: .78rem;
}

body.spa-lite-shell .spa-business-action-item small {
  color: var(--text-muted);
  font-size: .68rem;
  font-weight: 700;
}

body.spa-lite-shell .spa-business-action-item b {
  grid-row: 1 / span 3;
  grid-column: 2;
  align-self: center;
  color: var(--text-main);
  font-size: .78rem;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
}

body.spa-lite-shell .spa-business-action-empty {
  padding: .85rem;
  border: 1px dashed color-mix(in srgb, var(--border-color) 86%, transparent);
  border-radius: .75rem;
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 700;
  text-align: center;
}

body.spa-lite-shell .spa-business-matrix-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(5rem, .42fr) 2.8rem;
  align-items: center;
  gap: .55rem;
  padding: .58rem .65rem;
  border: 1px solid color-mix(in srgb, var(--border-color) 84%, transparent);
  border-radius: .75rem;
  background: color-mix(in srgb, var(--bg-surface) 96%, var(--primary-color) 4%);
}

body.spa-lite-shell .spa-business-matrix-row strong,
body.spa-lite-shell .spa-business-matrix-row span {
  display: block;
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.spa-lite-shell .spa-business-matrix-row strong {
  color: var(--text-main);
  font-size: .78rem;
}

body.spa-lite-shell .spa-business-matrix-row span {
  color: var(--text-muted);
  font-size: .68rem;
  font-weight: 700;
}

body.spa-lite-shell .spa-business-matrix-meter {
  height: .36rem;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--border-color) 62%, transparent);
}

body.spa-lite-shell .spa-business-matrix-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f59e0b, #16a34a);
}

body.spa-lite-shell .spa-business-matrix-row b {
  color: var(--text-main);
  font-size: .78rem;
  text-align: right;
}

body.spa-lite-shell .spa-board-meter-card {
  display: grid;
  gap: .48rem;
  margin-top: .65rem;
  padding: .72rem;
  border: 1px solid color-mix(in srgb, #16a34a 22%, var(--border-color));
  border-radius: .75rem;
  background: color-mix(in srgb, #16a34a 6%, var(--bg-surface));
}

body.spa-lite-shell .spa-board-meter-card span,
body.spa-lite-shell .spa-board-meter-card small {
  display: block;
  color: var(--text-muted);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .03em;
  text-transform: uppercase;
}

body.spa-lite-shell .spa-board-meter-card strong {
  display: block;
  color: var(--text-main);
  font-size: .95rem;
  font-weight: 950;
}

body.spa-lite-shell .spa-board-meter-card i {
  display: block;
  height: .45rem;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--border-color) 68%, transparent);
}

body.spa-lite-shell .spa-board-meter-card i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #16a34a);
}

body.spa-lite-shell .spa-board-lost-legend {
  padding: .2rem 0;
}

/* Executive dashboards */
body.spa-lite-shell .spa-exec-dashboard-page {
  gap: 1rem;
}

body.spa-lite-shell .spa-exec-dashboard-card {
  overflow: hidden;
  border-radius: 1rem;
  background: var(--bg-surface);
}

body.spa-lite-shell .spa-exec-main-header {
  min-height: 4rem;
}

body.spa-lite-shell .spa-exec-dashboard-body {
  display: grid;
  gap: .8rem;
  padding: .9rem 1rem 1rem;
}

body.spa-lite-shell .spa-exec-topbar {
  display: grid;
  grid-template-columns: minmax(18rem, 1fr) max-content;
  gap: .8rem;
  align-items: center;
}

body.spa-lite-shell .spa-exec-search {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  align-items: center;
  min-height: 2.75rem;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--primary-color) 14%, var(--border-color));
  border-radius: .6rem;
  background: color-mix(in srgb, var(--bg-surface) 96%, var(--primary-color) 4%);
}

body.spa-lite-shell .spa-exec-search i {
  color: var(--text-muted);
  text-align: center;
}

body.spa-lite-shell .spa-exec-search input {
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-main);
  font-size: .84rem;
  font-weight: 750;
}

body.spa-lite-shell .spa-exec-search input::placeholder {
  color: var(--text-muted);
}

body.spa-lite-shell .spa-exec-pipeline-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  min-width: 0;
  padding: .45rem .7rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 16%, var(--border-color));
  border-radius: .55rem;
  background: color-mix(in srgb, var(--primary-color) 6%, var(--bg-surface));
  color: var(--text-main);
  font-size: .76rem;
  font-weight: 850;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-align: center;
}

body.spa-lite-shell .spa-exec-filter-row {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: .55rem;
  align-items: center;
}

body.spa-lite-shell .spa-sales-dashboard-page .spa-exec-filter-row {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

body.spa-lite-shell .spa-exec-filter-row .form-select {
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  padding-right: 2.05rem;
  border-radius: .55rem;
  background-color: var(--bg-surface);
  color: var(--text-main);
  font-size: .76rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.spa-lite-shell .spa-exec-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: .65rem;
}

body.spa-lite-shell .spa-exec-kpi {
  display: grid;
  grid-template-columns: 2.85rem minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: .15rem .65rem;
  min-width: 0;
  min-height: 4.95rem;
  align-items: center;
  padding: .72rem .78rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 13%, var(--border-color));
  border-radius: .75rem;
  background: color-mix(in srgb, var(--bg-surface) 97%, var(--primary-color) 3%);
  box-shadow: 0 .45rem 1.2rem color-mix(in srgb, #020617 7%, transparent);
}

body.spa-lite-shell .spa-exec-kpi i {
  grid-row: 1 / span 2;
  display: inline-grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #0284c7);
  color: #fff;
  font-size: 1rem;
}

body.spa-lite-shell .spa-exec-kpi span {
  overflow: hidden;
  color: var(--text-muted);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .03em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

body.spa-lite-shell .spa-exec-kpi strong {
  min-width: 0;
  color: var(--text-main);
  font-size: clamp(.92rem, .3vw + .86rem, 1.14rem);
  font-weight: 950;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

body.spa-lite-shell .spa-exec-board-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}

body.spa-lite-shell .spa-exec-bottom-grid {
  display: grid;
  grid-template-columns: minmax(18rem, .9fr) minmax(0, 1.5fr);
  gap: .75rem;
}

body.spa-lite-shell .spa-exec-panel {
  overflow: hidden;
  min-width: 0;
  padding: .82rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 11%, var(--border-color));
  border-radius: .85rem;
  background: var(--bg-surface);
}

body.spa-lite-shell .spa-exec-panel.is-wide {
  grid-column: span 2;
}

body.spa-lite-shell .spa-exec-bottom-grid > .spa-exec-panel.is-wide {
  grid-column: auto;
}

body.spa-lite-shell .spa-exec-bar-list {
  display: grid;
  gap: .52rem;
  min-width: 0;
}

body.spa-lite-shell .spa-exec-bar-row {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(5rem, 1.3fr) minmax(4.3rem, max-content);
  gap: .55rem;
  align-items: center;
  min-width: 0;
  color: var(--text-main);
  font-size: .74rem;
  font-weight: 800;
}

body.spa-lite-shell .spa-exec-bar-label {
  min-width: 0;
  color: var(--text-main);
  line-height: 1.22;
  overflow-wrap: anywhere;
}

body.spa-lite-shell .spa-exec-bar-track {
  height: .68rem;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--border-color) 70%, transparent);
}

body.spa-lite-shell .spa-exec-bar-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
}

body.spa-lite-shell .spa-exec-bar-row strong {
  min-width: 0;
  color: var(--text-main);
  font-size: .72rem;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
}

body.spa-lite-shell .spa-exec-tile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .45rem;
}

body.spa-lite-shell .spa-exec-tile {
  display: grid;
  min-height: 4.15rem;
  align-content: center;
  gap: .22rem;
  padding: .65rem;
  border-radius: .65rem;
  color: #fff;
}

body.spa-lite-shell .spa-exec-tile.tone-1 {
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
}

body.spa-lite-shell .spa-exec-tile.tone-2 {
  background: linear-gradient(135deg, #16a34a, #22c55e);
}

body.spa-lite-shell .spa-exec-tile.tone-3 {
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

body.spa-lite-shell .spa-exec-tile.tone-4 {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
}

body.spa-lite-shell .spa-exec-tile.tone-5 {
  background: linear-gradient(135deg, #0891b2, #14b8a6);
}

body.spa-lite-shell .spa-exec-tile span,
body.spa-lite-shell .spa-exec-tile strong {
  min-width: 0;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

body.spa-lite-shell .spa-exec-tile span {
  font-size: .78rem;
  font-weight: 850;
}

body.spa-lite-shell .spa-exec-tile strong {
  font-size: .9rem;
  font-weight: 950;
}

body.spa-lite-shell .spa-exec-attention {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: .7rem;
  align-items: center;
  margin-bottom: .7rem;
  padding: .8rem;
  border: 1px solid color-mix(in srgb, #f59e0b 32%, var(--border-color));
  border-radius: .85rem;
  background: color-mix(in srgb, #f59e0b 10%, var(--bg-surface));
}

body.spa-lite-shell .spa-exec-attention.is-ok {
  border-color: color-mix(in srgb, #16a34a 32%, var(--border-color));
  background: color-mix(in srgb, #16a34a 9%, var(--bg-surface));
}

body.spa-lite-shell .spa-exec-attention > i {
  display: inline-grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  color: #f59e0b;
  font-size: 1.15rem;
}

body.spa-lite-shell .spa-exec-attention.is-ok > i {
  color: #16a34a;
}

body.spa-lite-shell .spa-exec-attention strong,
body.spa-lite-shell .spa-exec-attention span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

body.spa-lite-shell .spa-exec-attention strong {
  color: var(--text-main);
  font-size: .9rem;
  font-weight: 950;
}

body.spa-lite-shell .spa-exec-attention span {
  color: var(--text-muted);
  font-size: .76rem;
  font-weight: 750;
  line-height: 1.45;
}

body.spa-lite-shell .spa-exec-insight-card {
  display: grid;
  grid-template-columns: 2.45rem minmax(0, 1fr);
  gap: .65rem;
  align-items: start;
  padding: .78rem;
  border: 1px solid color-mix(in srgb, #2563eb 18%, var(--border-color));
  border-radius: .85rem;
  background: color-mix(in srgb, #2563eb 6%, var(--bg-surface));
}

body.spa-lite-shell .spa-exec-insight-card > div:last-child {
  min-width: 0;
}

body.spa-lite-shell .spa-exec-insight-icon {
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
}

body.spa-lite-shell .spa-exec-insight-card strong {
  display: block;
  color: var(--text-main);
  font-size: .86rem;
  font-weight: 950;
}

body.spa-lite-shell .spa-exec-insight-card p {
  margin: .18rem 0 0;
  color: var(--text-muted);
  font-size: .76rem;
  font-weight: 750;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

body.spa-lite-shell .spa-exec-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--border-color) 86%, transparent);
  border-radius: .75rem;
  color: var(--text-main);
  font-size: .76rem;
}

body.spa-lite-shell .spa-exec-table th,
body.spa-lite-shell .spa-exec-table td {
  padding: .55rem .65rem;
  border-bottom: 1px solid color-mix(in srgb, var(--border-color) 82%, transparent);
  vertical-align: middle;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

body.spa-lite-shell .spa-exec-table th {
  background: color-mix(in srgb, var(--primary-color) 7%, var(--bg-surface));
  color: var(--text-muted);
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

body.spa-lite-shell .spa-exec-table tr:last-child td {
  border-bottom: 0;
}

body.spa-lite-shell .spa-exec-table tbody tr {
  cursor: pointer;
}

body.spa-lite-shell .spa-exec-table tbody tr:hover {
  background: color-mix(in srgb, var(--primary-color) 7%, transparent);
}

body.spa-lite-shell .spa-exec-empty {
  display: grid;
  min-height: 4rem;
  place-items: center;
  padding: .8rem;
  border: 1px dashed color-mix(in srgb, var(--border-color) 82%, transparent);
  border-radius: .75rem;
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 800;
  text-align: center;
}

body.spa-lite-shell .spa-exec-versus-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-bottom: .55rem;
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 850;
}

body.spa-lite-shell .spa-exec-versus-legend span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

body.spa-lite-shell .spa-exec-versus-legend i {
  width: .65rem;
  height: .65rem;
  border-radius: 999px;
}

body.spa-lite-shell .spa-exec-versus-list {
  display: grid;
  gap: .55rem;
}

body.spa-lite-shell .spa-exec-versus-row {
  display: grid;
  grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr);
  gap: .65rem;
  align-items: center;
  min-width: 0;
}

body.spa-lite-shell .spa-exec-versus-bars {
  display: grid;
  gap: .22rem;
  min-width: 0;
}

body.spa-lite-shell .spa-exec-versus-bars span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(4.3rem, max-content);
  gap: .45rem;
  align-items: center;
  min-width: 0;
}

body.spa-lite-shell .spa-exec-versus-bars i {
  display: block;
  height: .45rem;
  border-radius: 999px;
}

body.spa-lite-shell .spa-exec-versus-bars b {
  color: var(--text-muted);
  font-size: .68rem;
  font-weight: 850;
  white-space: nowrap;
}

body.spa-lite-shell .spa-exec-versus-legend .is-penggarap,
body.spa-lite-shell .spa-exec-versus-bars .is-penggarap {
  background: #2563eb;
}

body.spa-lite-shell .spa-exec-versus-legend .is-pic,
body.spa-lite-shell .spa-exec-versus-bars .is-pic {
  background: #16a34a;
}

/* Dashboard Funnel executive command board */
body.spa-lite-shell .spa-funnel-command-dashboard {
  background: color-mix(in srgb, var(--bg-surface) 96%, #020617 4%);
  overflow: visible;
}

body.spa-lite-shell .spa-funnel-command-header {
  display: grid !important;
  grid-template-columns: minmax(18rem, .58fr) minmax(34rem, 1.42fr);
  gap: 1rem;
  align-items: start;
  justify-content: stretch !important;
  padding: .95rem 1rem .7rem;
}

body.spa-lite-shell .spa-funnel-command-title {
  min-width: 0;
}

body.spa-lite-shell .spa-funnel-command-title h2 {
  margin: 0;
  color: var(--text-main);
  font-size: clamp(1.15rem, .72vw + 1rem, 1.65rem);
  font-weight: 950;
  line-height: 1.12;
}

body.spa-lite-shell .spa-funnel-command-title p {
  margin: .25rem 0 0;
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 760;
  line-height: 1.35;
}

body.spa-lite-shell .spa-funnel-command-tools {
  display: grid;
  grid-template-columns: minmax(15rem, 1fr) max-content max-content;
  gap: .65rem;
  align-items: center;
  min-width: 0;
}

body.spa-lite-shell .spa-funnel-command-tools .spa-exec-search {
  min-height: 2.55rem;
}

body.spa-lite-shell .spa-funnel-command-tools .spa-dashboard-sync-badge {
  min-height: 2.35rem;
  color: #fff;
  background: color-mix(in srgb, #2563eb 16%, var(--bg-surface));
  border-color: color-mix(in srgb, #2563eb 42%, var(--border-color));
}

body.spa-lite-shell .spa-funnel-filter-row {
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: .6rem;
}

body.spa-lite-shell .spa-funnel-filter-row label {
  display: grid;
  gap: .28rem;
  min-width: 0;
  margin: 0;
}

body.spa-lite-shell .spa-funnel-filter-row label > span {
  overflow: hidden;
  color: var(--text-muted);
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .05em;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

body.spa-lite-shell .spa-funnel-filter-row .form-select {
  min-height: 2.55rem;
  font-size: .75rem;
}

body.spa-lite-shell .spa-funnel-period-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .45rem;
  width: 100%;
  min-width: 0;
  overflow-x: visible;
  padding-bottom: .05rem;
}

body.spa-lite-shell .spa-funnel-period-row > span {
  flex: 0 0 auto;
  color: var(--text-muted);
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .05em;
  text-transform: uppercase;
}

body.spa-lite-shell .spa-funnel-period-row button {
  flex: 0 0 auto;
  min-height: 2.1rem;
  padding: .38rem .72rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 22%, var(--border-color));
  border-radius: .45rem;
  background: color-mix(in srgb, var(--bg-surface) 92%, transparent);
  color: var(--text-main);
  font-size: .72rem;
  font-weight: 850;
  white-space: nowrap;
}

body.spa-lite-shell .spa-funnel-period-row button:hover,
body.spa-lite-shell .spa-funnel-period-row button.is-active {
  border-color: color-mix(in srgb, var(--primary-color) 72%, var(--border-color));
  background: color-mix(in srgb, var(--primary-color) 18%, var(--bg-surface));
  color: #fff;
}

body.spa-lite-shell .spa-funnel-period-row .spa-funnel-filter-reset {
  display: inline-grid;
  place-items: center;
  width: 2.1rem;
  padding-inline: 0;
  color: #f97316;
}

body.spa-lite-shell .spa-funnel-card-select {
  width: min(12rem, 45%);
  min-height: 2.05rem;
  margin-left: auto;
  border-radius: .45rem;
  font-size: .7rem;
  font-weight: 850;
}

body.spa-lite-shell .spa-funnel-panel {
  overflow: visible;
}

body.spa-lite-shell .spa-funnel-panel:has(.choices.is-open),
body.spa-lite-shell .spa-funnel-panel:has(.choices__list--dropdown[aria-expanded="true"]) {
  z-index: 45;
}

body.spa-lite-shell .spa-funnel-panel .spa-dashboard-panel-title {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-width: 0;
}

body.spa-lite-shell .spa-funnel-panel .spa-dashboard-panel-title span {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.spa-lite-shell .spa-funnel-panel .spa-dashboard-panel-title .choices,
body.spa-lite-shell .spa-funnel-panel .spa-dashboard-panel-title .spa-funnel-card-select {
  flex: 0 0 min(14rem, 48%);
  width: min(14rem, 48%);
  margin-left: auto;
}

body.spa-lite-shell .spa-funnel-panel .spa-dashboard-panel-title .choices {
  z-index: 20;
}

body.spa-lite-shell .spa-funnel-panel .spa-dashboard-panel-title .choices.is-open {
  z-index: 1208;
}

body.spa-lite-shell .spa-funnel-panel .spa-dashboard-panel-title .choices__list {
  max-width: min(22rem, 86vw);
}

body.spa-lite-shell .spa-funnel-panel .spa-dashboard-panel-title .choices__inner {
  min-height: 2.15rem;
  height: 2.15rem;
  border-radius: .45rem;
  font-size: .72rem;
  font-weight: 850;
}

body.spa-lite-shell .spa-funnel-panel .spa-dashboard-panel-title .choices__list--dropdown {
  z-index: 1210;
  border-color: color-mix(in srgb, var(--primary-color) 24%, var(--border-color));
  background: var(--bg-surface);
}

body.spa-lite-shell .spa-funnel-dashboard-page .spa-exec-kpi-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.spa-lite-shell .spa-funnel-dashboard-page .spa-exec-kpi {
  grid-template-columns: 2.85rem minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  min-height: 5.35rem;
  padding: .68rem .75rem;
  border-radius: .7rem;
}

body.spa-lite-shell .spa-funnel-dashboard-page .spa-exec-kpi i {
  grid-row: 1 / span 3;
}

body.spa-lite-shell .spa-funnel-dashboard-page .spa-exec-kpi span {
  font-size: .68rem;
  white-space: normal;
}

body.spa-lite-shell .spa-funnel-dashboard-page .spa-exec-kpi strong {
  font-size: clamp(1rem, .35vw + .95rem, 1.28rem);
}

body.spa-lite-shell .spa-funnel-dashboard-page .spa-exec-kpi small {
  min-width: 0;
  overflow: hidden;
  color: var(--text-muted);
  font-size: .68rem;
  font-weight: 760;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.spa-lite-shell .spa-funnel-dashboard-page .spa-exec-kpi.tone-blue i {
  background: #2563eb;
}

body.spa-lite-shell .spa-funnel-dashboard-page .spa-exec-kpi.tone-green i {
  background: #16a34a;
}

body.spa-lite-shell .spa-funnel-dashboard-page .spa-exec-kpi.tone-emerald i {
  background: #10b981;
}

body.spa-lite-shell .spa-funnel-dashboard-page .spa-exec-kpi.tone-purple i {
  background: #7c3aed;
}

body.spa-lite-shell .spa-funnel-dashboard-page .spa-exec-kpi.tone-orange i {
  background: #f97316;
}

body.spa-lite-shell .spa-funnel-dashboard-page .spa-exec-kpi.tone-red i {
  background: #ef4444;
}

body.spa-lite-shell .spa-funnel-executive-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .62rem;
  min-width: 0;
}

body.spa-lite-shell .spa-funnel-executive-strip .spa-funnel-panel {
  min-height: 0;
}

body.spa-lite-shell .spa-funnel-executive-strip .spa-exec-insight-card {
  height: 100%;
  min-height: 7.35rem;
}

body.spa-lite-shell .spa-funnel-executive-strip .spa-exec-attention {
  margin-bottom: .48rem;
}

body.spa-lite-shell .spa-exec-attention.is-info {
  border-color: color-mix(in srgb, #2563eb 30%, var(--border-color));
  background: color-mix(in srgb, #2563eb 8%, var(--bg-surface));
}

body.spa-lite-shell .spa-exec-attention.is-info > i {
  color: #2563eb;
}

body.spa-lite-shell .spa-funnel-action-list {
  display: grid;
  gap: .42rem;
  max-height: 10rem;
  min-height: 0;
  overflow: auto;
  padding-right: .1rem;
}

body.spa-lite-shell .spa-funnel-action-list .spa-business-action-item {
  grid-template-columns: minmax(0, 1fr) minmax(5rem, max-content);
  gap: .14rem .6rem;
  padding: .52rem .62rem;
  border-radius: .58rem;
}

body.spa-lite-shell .spa-funnel-action-list .spa-business-action-item strong,
body.spa-lite-shell .spa-funnel-action-list .spa-business-action-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.spa-lite-shell .spa-funnel-action-list .spa-business-action-item strong {
  font-size: .72rem;
}

body.spa-lite-shell .spa-funnel-action-list .spa-business-action-item small,
body.spa-lite-shell .spa-funnel-action-list .spa-business-action-item b {
  font-size: .66rem;
}

body.spa-lite-shell .spa-funnel-board-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: .62rem;
}

body.spa-lite-shell .spa-funnel-panel {
  display: grid;
  align-content: start;
  gap: .65rem;
  min-height: 11rem;
  padding: .72rem;
  border-radius: .65rem;
}

body.spa-lite-shell .spa-funnel-panel.span-3 {
  grid-column: span 3;
}

body.spa-lite-shell .spa-funnel-panel.span-4 {
  grid-column: span 4;
}

body.spa-lite-shell .spa-funnel-panel.span-5 {
  grid-column: span 5;
}

body.spa-lite-shell .spa-funnel-panel.span-6 {
  grid-column: span 6;
}

body.spa-lite-shell .spa-funnel-panel.span-12 {
  grid-column: span 12;
}

body.spa-lite-shell .spa-funnel-panel .spa-dashboard-panel-title {
  margin-bottom: .1rem;
}

body.spa-lite-shell .spa-funnel-panel .spa-dashboard-panel-title span {
  font-size: .82rem;
  text-transform: none;
}

body.spa-lite-shell .spa-funnel-panel .spa-dashboard-panel-title small {
  max-width: 52%;
  font-size: .68rem;
}

body.spa-lite-shell .spa-funnel-dashboard-page .spa-dashboard-pie-wrap {
  grid-template-columns: 7.6rem minmax(0, 1fr);
  gap: .75rem;
}

body.spa-lite-shell .spa-funnel-dashboard-page .spa-dashboard-pie {
  width: 7.6rem;
  height: 7.6rem;
}

body.spa-lite-shell .spa-funnel-dashboard-page .spa-dashboard-pie::after {
  inset: 1.22rem;
}

body.spa-lite-shell .spa-funnel-dashboard-page .spa-dashboard-pie-legend > span {
  font-size: .7rem;
}

body.spa-lite-shell .spa-funnel-dashboard-page .spa-exec-bar-list {
  gap: .45rem;
}

body.spa-lite-shell .spa-funnel-dashboard-page .spa-exec-bar-row {
  grid-template-columns: minmax(7.2rem, .95fr) minmax(6rem, 1.4fr) minmax(4rem, max-content);
  font-size: .72rem;
}

body.spa-lite-shell .spa-funnel-dashboard-page .spa-exec-bar-label {
  overflow: hidden;
  overflow-wrap: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.spa-lite-shell .spa-funnel-dashboard-page .spa-exec-bar-track {
  height: .58rem;
}

body.spa-lite-shell .spa-funnel-probability-chart,
body.spa-lite-shell .spa-funnel-month-chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: .5rem;
  align-items: end;
  min-height: 8.4rem;
}

body.spa-lite-shell .spa-funnel-probability-line-chart,
body.spa-lite-shell .spa-funnel-probability-curve-chart {
  display: grid;
  gap: .55rem;
  min-height: 9.6rem;
}

body.spa-lite-shell .spa-funnel-probability-plot {
  position: relative;
  height: 7.65rem;
  min-height: 0;
  overflow: visible;
  border-bottom: 1px solid color-mix(in srgb, var(--border-color) 76%, transparent);
}

body.spa-lite-shell .spa-funnel-probability-line-chart svg,
body.spa-lite-shell .spa-funnel-probability-curve-chart svg {
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: visible;
}

body.spa-lite-shell .spa-funnel-probability-line-chart .probability-area,
body.spa-lite-shell .spa-funnel-probability-curve-chart .probability-area {
  fill: color-mix(in srgb, #2f7bff 20%, transparent);
  stroke: none;
}

body.spa-lite-shell .spa-funnel-probability-line-chart .probability-line,
body.spa-lite-shell .spa-funnel-probability-curve-chart .probability-line {
  fill: none;
  stroke: #2f7bff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.1;
  filter: drop-shadow(0 0 8px color-mix(in srgb, #2f7bff 38%, transparent));
  vector-effect: non-scaling-stroke;
}

body.spa-lite-shell .spa-funnel-probability-line-chart .probability-point circle {
  fill: #38bdf8;
  stroke: color-mix(in srgb, #fff 82%, transparent);
  stroke-width: .8;
}

body.spa-lite-shell .spa-funnel-probability-curve-chart .probability-point {
  position: absolute;
  z-index: 2;
  width: .55rem;
  height: .55rem;
  border: 2px solid color-mix(in srgb, #fff 84%, transparent);
  border-radius: 999px;
  background: #38bdf8;
  box-shadow: 0 0 0 .18rem color-mix(in srgb, #38bdf8 18%, transparent), 0 .25rem .7rem color-mix(in srgb, #000 42%, transparent);
  transform: translate(-50%, -50%);
}

body.spa-lite-shell .spa-funnel-probability-axis {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: .25rem;
}

body.spa-lite-shell .spa-funnel-probability-axis span {
  display: grid;
  gap: .04rem;
  min-width: 0;
  color: var(--text-main);
  font-size: .66rem;
  font-weight: 900;
  text-align: center;
}

body.spa-lite-shell .spa-funnel-probability-axis small {
  overflow: hidden;
  color: var(--text-muted);
  font-size: .58rem;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.spa-lite-shell .spa-funnel-month-chart {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

body.spa-lite-shell .spa-funnel-probability-item,
body.spa-lite-shell .spa-funnel-month-item {
  display: grid;
  grid-template-rows: 1.4rem 5.8rem auto auto;
  gap: .22rem;
  min-width: 0;
  justify-items: center;
}

body.spa-lite-shell .spa-funnel-month-item {
  grid-template-rows: 1.4rem 5.8rem auto;
}

body.spa-lite-shell .spa-funnel-probability-item strong,
body.spa-lite-shell .spa-funnel-month-item strong {
  color: var(--text-main);
  font-size: .66rem;
  font-weight: 950;
  text-align: center;
  white-space: nowrap;
}

body.spa-lite-shell .spa-funnel-probability-item > i,
body.spa-lite-shell .spa-funnel-month-item div > i {
  align-self: end;
  display: block;
  width: 1.35rem;
  min-height: .35rem;
  border-radius: .35rem .35rem 0 0;
  background: linear-gradient(180deg, #2f7bff, #0f56d9);
  box-shadow: 0 0 14px color-mix(in srgb, #2563eb 28%, transparent);
}

body.spa-lite-shell .spa-funnel-month-item div {
  position: relative;
  display: grid;
  align-items: end;
  justify-items: center;
  width: 100%;
  height: 5.8rem;
  border-bottom: 1px solid color-mix(in srgb, var(--border-color) 80%, transparent);
}

body.spa-lite-shell .spa-funnel-month-item b {
  position: absolute;
  right: 50%;
  top: .3rem;
  translate: 50% 0;
  min-width: 1.55rem;
  padding: .08rem .24rem;
  border-radius: 999px;
  background: color-mix(in srgb, #06b6d4 20%, var(--bg-surface));
  color: #67e8f9;
  font-size: .62rem;
  font-weight: 900;
  text-align: center;
}

body.spa-lite-shell .spa-funnel-probability-item span,
body.spa-lite-shell .spa-funnel-probability-item small,
body.spa-lite-shell .spa-funnel-month-item span {
  overflow: hidden;
  max-width: 100%;
  color: var(--text-muted);
  font-size: .66rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.spa-lite-shell .spa-funnel-region-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: .85rem;
  align-items: stretch;
}

body.spa-lite-shell .spa-funnel-panel.is-region-map {
  min-height: 31rem;
}

body.spa-lite-shell .spa-funnel-map-shell {
  display: grid;
  gap: .2rem;
  min-width: 0;
  width: 100%;
}

body.spa-lite-shell .spa-funnel-panel.is-region-map .sales-leaflet-map {
  width: 100%;
  min-height: 24rem;
  margin: .2rem 0 .55rem;
}

body.spa-lite-shell .spa-funnel-panel.is-region-map .sales-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .8rem;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 0 .15rem;
}

body.spa-lite-shell .spa-funnel-panel.is-region-map .sales-map-legend strong {
  min-width: 0;
  overflow: hidden;
  color: color-mix(in srgb, var(--text-main) 82%, var(--text-muted));
  font-size: .68rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.spa-lite-shell .spa-funnel-panel.is-region-map .sales-map-list {
  align-content: start;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  padding: .3rem 0 0;
}

body.spa-lite-shell .spa-funnel-panel.is-region-map .sales-map-list span {
  min-height: 2.2rem;
  border-radius: .55rem;
  background: color-mix(in srgb, var(--primary-color) 5%, var(--bg-surface));
}

body.spa-lite-shell .spa-funnel-map-visual {
  position: relative;
  min-height: 8.8rem;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, #2563eb 14%, var(--border-color));
  border-radius: .65rem;
  background: color-mix(in srgb, #0f172a 8%, var(--bg-surface));
}

body.spa-lite-shell .spa-funnel-map-visual svg {
  position: absolute;
  inset: .5rem;
  width: calc(100% - 1rem);
  height: calc(100% - 1rem);
}

body.spa-lite-shell .spa-funnel-map-visual path {
  fill: color-mix(in srgb, #2563eb 35%, var(--bg-surface));
  stroke: color-mix(in srgb, #60a5fa 45%, transparent);
  stroke-width: .45;
}

body.spa-lite-shell .spa-funnel-map-dot {
  position: absolute;
  width: .9rem;
  height: .9rem;
  border: 2px solid color-mix(in srgb, #fff 78%, transparent);
  border-radius: 999px;
  background: #2563eb;
  box-shadow: 0 0 0 .22rem color-mix(in srgb, #2563eb 18%, transparent);
  translate: -50% -50%;
}

body.spa-lite-shell .spa-funnel-region-list {
  display: grid;
  gap: .3rem;
  align-content: start;
  min-width: 0;
}

body.spa-lite-shell .spa-funnel-region-list div,
body.spa-lite-shell .spa-funnel-region-list p {
  display: grid;
  grid-template-columns: .7rem minmax(0, 1fr) max-content;
  gap: .42rem;
  align-items: center;
  margin: 0;
  min-width: 0;
  position: relative;
}

body.spa-lite-shell .spa-funnel-region-list div {
  grid-template-columns: minmax(0, 1fr) max-content;
  color: var(--text-muted);
  font-size: .68rem;
  font-weight: 900;
}

body.spa-lite-shell .spa-funnel-region-list p {
  padding-bottom: .35rem;
  border-bottom: 1px solid color-mix(in srgb, var(--border-color) 70%, transparent);
  color: var(--text-main);
  font-size: .7rem;
  font-weight: 800;
}

body.spa-lite-shell .spa-funnel-region-list p i {
  width: .62rem;
  height: .62rem;
  border-radius: 999px;
  background: #2563eb;
}

body.spa-lite-shell .spa-funnel-region-list p span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.spa-lite-shell .spa-funnel-region-list p em {
  grid-column: 2 / 4;
  display: block;
  height: .2rem;
  border-radius: 999px;
  background: #2563eb;
}

body.spa-lite-shell .spa-funnel-map-dot.tone-1,
body.spa-lite-shell .spa-funnel-region-list p i.tone-1 {
  background-color: #2563eb !important;
}

body.spa-lite-shell .spa-funnel-map-dot.tone-2,
body.spa-lite-shell .spa-funnel-region-list p i.tone-2 {
  background-color: #3b82f6 !important;
}

body.spa-lite-shell .spa-funnel-map-dot.tone-3,
body.spa-lite-shell .spa-funnel-region-list p i.tone-3 {
  background-color: #60a5fa !important;
}

body.spa-lite-shell .spa-funnel-map-dot.tone-4,
body.spa-lite-shell .spa-funnel-region-list p i.tone-4 {
  background-color: #0ea5e9 !important;
}

body.spa-lite-shell .spa-funnel-map-dot.tone-5,
body.spa-lite-shell .spa-funnel-region-list p i.tone-5 {
  background-color: #22c55e !important;
}

body.spa-lite-shell .spa-funnel-priority-followup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(7.5rem, .72fr);
  gap: .7rem;
}

body.spa-lite-shell .spa-funnel-priority-bars {
  display: grid;
  gap: .42rem;
  min-width: 0;
}

body.spa-lite-shell .spa-funnel-priority-bars p {
  display: grid;
  grid-template-columns: minmax(3.2rem, .65fr) minmax(0, 1fr) max-content;
  gap: .45rem;
  align-items: center;
  margin: 0;
  color: var(--text-main);
  font-size: .7rem;
  font-weight: 850;
}

body.spa-lite-shell .spa-funnel-priority-bars i {
  display: block;
  height: .55rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #ef4444, #f97316);
}

body.spa-lite-shell .spa-funnel-followup-badges {
  display: grid;
  gap: .38rem;
}

body.spa-lite-shell .spa-funnel-followup-badges span {
  display: grid;
  grid-template-columns: 1.55rem minmax(1.6rem, max-content) minmax(0, 1fr);
  gap: .42rem;
  align-items: center;
  min-height: 2rem;
  padding: .34rem .42rem;
  border: 1px solid color-mix(in srgb, var(--border-color) 80%, transparent);
  border-radius: .48rem;
  background: color-mix(in srgb, var(--primary-color) 5%, var(--bg-surface));
}

body.spa-lite-shell .spa-funnel-followup-badges i {
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: .35rem;
  color: #fff;
  font-size: .68rem;
}

body.spa-lite-shell .spa-funnel-followup-badges b {
  color: var(--text-main);
  font-size: .78rem;
  font-weight: 950;
}

body.spa-lite-shell .spa-funnel-followup-badges em {
  overflow: hidden;
  color: var(--text-muted);
  font-size: .64rem;
  font-style: normal;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.spa-lite-shell .spa-funnel-followup-badges .is-today i {
  background: #2563eb;
}

body.spa-lite-shell .spa-funnel-followup-badges .is-overdue i {
  background: #f97316;
}

body.spa-lite-shell .spa-funnel-followup-badges .is-week i {
  background: #16a34a;
}

body.spa-lite-shell .spa-funnel-mini-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text-main);
  font-size: .7rem;
}

body.spa-lite-shell .spa-funnel-table-wrap {
  width: 100%;
  overflow: auto;
  border-radius: .62rem;
}

body.spa-lite-shell .spa-funnel-table-wrap .sales-compact-table {
  min-width: 46rem;
}

body.spa-lite-shell .spa-funnel-table-wrap .sales-compact-table tbody tr {
  cursor: default;
}

body.spa-lite-shell .spa-funnel-priority-table-wrap .sales-compact-table tbody tr {
  cursor: pointer;
}

body.spa-lite-shell .spa-funnel-priority-table-wrap .sales-compact-table tbody tr:hover {
  background: color-mix(in srgb, var(--primary-color) 9%, transparent);
}

body.spa-lite-shell .spa-funnel-mini-table th,
body.spa-lite-shell .spa-funnel-mini-table td {
  padding: .38rem .45rem;
  border-bottom: 1px solid color-mix(in srgb, var(--border-color) 82%, transparent);
  vertical-align: middle;
  white-space: nowrap;
}

body.spa-lite-shell .spa-funnel-mini-table th {
  color: var(--text-muted);
  font-size: .62rem;
  font-weight: 950;
  text-transform: uppercase;
}

body.spa-lite-shell .spa-funnel-warning-list {
  display: grid;
  gap: .45rem;
  align-content: start;
  min-height: 8.2rem;
}

body.spa-lite-shell .spa-funnel-warning-list div {
  display: grid;
  grid-template-columns: 1.7rem minmax(0, 1fr);
  gap: .55rem;
  align-items: center;
  min-height: 2.15rem;
  padding: .42rem .55rem;
  border: 1px solid color-mix(in srgb, var(--border-color) 80%, transparent);
  border-radius: .5rem;
  background: color-mix(in srgb, var(--primary-color) 5%, var(--bg-surface));
}

body.spa-lite-shell .spa-funnel-warning-list i {
  display: inline-grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
}

body.spa-lite-shell .spa-funnel-warning-list span {
  color: var(--text-main);
  font-size: .74rem;
  font-weight: 780;
  line-height: 1.3;
}

body.spa-lite-shell .spa-funnel-warning-list .is-warning i {
  color: #f59e0b;
}

body.spa-lite-shell .spa-funnel-warning-list .is-danger i {
  color: #ef4444;
}

body.spa-lite-shell .spa-funnel-warning-list .is-info i {
  color: #3b82f6;
}

body.spa-lite-shell .spa-funnel-warning-list .is-success i {
  color: #16a34a;
}

body.spa-lite-shell .spa-funnel-dashboard-tabulator {
  width: 100%;
  min-height: 13.25rem;
}

body.spa-lite-shell .spa-funnel-dashboard-tabulator.is-priority {
  min-height: 20rem;
}

body.spa-lite-shell .spa-funnel-dashboard-tabulator .tabulator {
  width: 100%;
  min-height: inherit;
  border: 1px solid color-mix(in srgb, var(--border-color) 86%, transparent);
  border-radius: .68rem;
  background: color-mix(in srgb, var(--bg-main) 35%, var(--bg-surface));
  overflow: hidden;
}

body.spa-lite-shell .spa-funnel-dashboard-tabulator .tabulator-header,
body.spa-lite-shell .spa-funnel-dashboard-tabulator .tabulator-col {
  background: color-mix(in srgb, var(--primary-color) 5%, var(--bg-surface));
}

body.spa-lite-shell .spa-funnel-dashboard-tabulator .tabulator-col .tabulator-col-title {
  color: color-mix(in srgb, var(--text-main) 82%, var(--text-muted));
  font-size: .66rem;
  font-weight: 950;
  letter-spacing: .035em;
  text-align: center;
  text-transform: uppercase;
}

body.spa-lite-shell .spa-funnel-dashboard-tabulator .tabulator-row .tabulator-cell {
  color: var(--text-main);
  font-size: .7rem;
  font-weight: 780;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.spa-lite-shell .spa-funnel-dashboard-tabulator .tabulator-tableholder {
  min-height: 9.6rem;
  overflow: auto;
}

body.spa-lite-shell .spa-funnel-dashboard-tabulator.is-priority .tabulator-tableholder {
  min-height: 16rem;
}

body.spa-lite-shell .spa-funnel-dashboard-tabulator .tabulator-placeholder {
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 800;
}

body.spa-lite-shell .spa-funnel-dashboard-tabulator .tabulator-row:hover .tabulator-cell {
  background: color-mix(in srgb, var(--primary-color) 7%, transparent);
}

body.spa-lite-shell #spaExecFunnelStrategicTable,
body.spa-lite-shell #spaExecFunnelTeamTable,
body.spa-lite-shell #spaExecFunnelPriorityTable {
  overflow-x: auto;
}

body.spa-lite-shell #spaExecFunnelStrategicTable .tabulator-tableholder,
body.spa-lite-shell #spaExecFunnelTeamTable .tabulator-tableholder,
body.spa-lite-shell #spaExecFunnelPriorityTable .tabulator-tableholder {
  overflow: auto !important;
}

body.spa-lite-shell #spaExecFunnelStrategicTable .tabulator-row,
body.spa-lite-shell #spaExecFunnelPriorityTable .tabulator-row,
body.spa-lite-shell .spa-business-action-item {
  cursor: pointer;
}

body.spa-lite-shell .spa-funnel-priority-table {
  min-width: 82rem;
  font-size: .7rem;
}

body.spa-lite-shell .spa-funnel-priority-table th,
body.spa-lite-shell .spa-funnel-priority-table td {
  padding: .42rem .52rem;
  overflow: hidden;
  overflow-wrap: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.spa-lite-shell .spa-funnel-stage-pill,
body.spa-lite-shell .spa-funnel-priority-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.8rem;
  padding: .16rem .45rem;
  border: 1px solid color-mix(in srgb, #2563eb 38%, var(--border-color));
  border-radius: .32rem;
  background: color-mix(in srgb, #2563eb 14%, var(--bg-surface));
  color: #93c5fd;
  font-size: .66rem;
  font-weight: 900;
}

body.spa-lite-shell .spa-funnel-priority-pill {
  border-color: color-mix(in srgb, #f97316 42%, var(--border-color));
  background: color-mix(in srgb, #f97316 12%, var(--bg-surface));
  color: #fdba74;
}

body.spa-lite-shell .spa-funnel-dashboard-modal .modal-content {
  border: 1px solid color-mix(in srgb, var(--primary-color) 22%, var(--border-color));
  border-radius: 1rem;
  background: var(--bg-surface);
  color: var(--text-main);
}

body.spa-lite-shell .spa-funnel-dashboard-modal .modal-header,
body.spa-lite-shell .spa-funnel-dashboard-modal .modal-footer {
  border-color: color-mix(in srgb, var(--border-color) 86%, transparent);
}

body.spa-lite-shell .spa-funnel-dashboard-modal .modal-title {
  margin: 0;
  color: var(--text-main);
  font-size: 1.15rem;
  font-weight: 950;
}

body.spa-lite-shell .spa-funnel-dashboard-modal .modal-header p {
  margin: .18rem 0 0;
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 780;
}

body.spa-lite-shell .spa-funnel-modal-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .65rem;
  margin-bottom: .75rem;
}

body.spa-lite-shell .spa-funnel-modal-summary span {
  display: grid;
  gap: .15rem;
  padding: .72rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 18%, var(--border-color));
  border-radius: .65rem;
  background: color-mix(in srgb, var(--primary-color) 6%, var(--bg-surface));
}

body.spa-lite-shell .spa-funnel-modal-summary small {
  color: var(--text-muted);
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .035em;
  text-transform: uppercase;
}

body.spa-lite-shell .spa-funnel-modal-summary strong {
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 950;
}

body.spa-lite-shell .spa-funnel-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

body.spa-lite-shell .spa-funnel-modal-grid section {
  display: grid;
  gap: .45rem;
  padding: .78rem;
  border: 1px solid color-mix(in srgb, var(--border-color) 86%, transparent);
  border-radius: .72rem;
  background: color-mix(in srgb, var(--bg-main) 48%, var(--bg-surface));
}

body.spa-lite-shell .spa-funnel-modal-grid section.span-2 {
  grid-column: 1 / -1;
}

body.spa-lite-shell .spa-funnel-modal-grid h4 {
  margin: 0 0 .1rem;
  color: var(--text-main);
  font-size: .82rem;
  font-weight: 950;
}

body.spa-lite-shell .spa-funnel-modal-grid p {
  display: grid;
  grid-template-columns: minmax(8rem, .36fr) minmax(0, 1fr);
  gap: .65rem;
  margin: 0;
  color: var(--text-muted);
  font-size: .76rem;
  font-weight: 760;
}

body.spa-lite-shell .spa-funnel-modal-grid p b {
  color: var(--text-muted);
  font-weight: 900;
}

body.spa-lite-shell .spa-funnel-modal-grid p span {
  color: var(--text-main);
  font-weight: 850;
}

@media (max-width: 1399.98px) {
  body.spa-lite-shell .spa-funnel-command-header,
  body.spa-lite-shell .spa-funnel-command-tools {
    grid-template-columns: 1fr;
  }

  body.spa-lite-shell .spa-funnel-dashboard-page .spa-exec-kpi-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.spa-lite-shell .spa-funnel-dashboard-page .spa-funnel-filter-row {
    grid-template-columns: repeat(9, minmax(0, 1fr));
  }
}

@media (max-width: 1199.98px) {
  body.spa-lite-shell .spa-funnel-dashboard-page .spa-funnel-filter-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.spa-lite-shell .spa-funnel-executive-strip {
    grid-template-columns: 1fr;
  }

  body.spa-lite-shell .spa-funnel-panel.span-3,
  body.spa-lite-shell .spa-funnel-panel.span-4,
  body.spa-lite-shell .spa-funnel-panel.span-5,
  body.spa-lite-shell .spa-funnel-panel.span-6 {
    grid-column: span 6;
  }

  body.spa-lite-shell .spa-funnel-region-wrap,
  body.spa-lite-shell .spa-funnel-priority-followup {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  body.spa-lite-shell .spa-funnel-dashboard-page .spa-exec-kpi-row,
  body.spa-lite-shell .spa-funnel-dashboard-page .spa-funnel-filter-row,
  body.spa-lite-shell .spa-funnel-board-grid {
    grid-template-columns: 1fr;
  }

  body.spa-lite-shell .spa-funnel-panel.span-3,
  body.spa-lite-shell .spa-funnel-panel.span-4,
  body.spa-lite-shell .spa-funnel-panel.span-5,
  body.spa-lite-shell .spa-funnel-panel.span-6,
  body.spa-lite-shell .spa-funnel-panel.span-12 {
    grid-column: auto;
  }

  body.spa-lite-shell .spa-funnel-dashboard-page .spa-exec-bar-row,
  body.spa-lite-shell .spa-funnel-region-list p {
    grid-template-columns: 1fr;
  }

  body.spa-lite-shell .spa-funnel-probability-chart,
  body.spa-lite-shell .spa-funnel-month-chart {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1399.98px) {
  body.spa-lite-shell .spa-exec-filter-row {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  body.spa-lite-shell .spa-sales-dashboard-page .spa-exec-filter-row {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  body.spa-lite-shell .spa-exec-kpi-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.spa-lite-shell .spa-exec-board-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.spa-lite-shell .spa-dashboard-executive-top {
    grid-template-columns: 1fr;
  }

  body.spa-lite-shell .spa-dashboard-kpi-badge-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  body.spa-lite-shell .spa-dashboard-analytics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.spa-lite-shell .spa-business-focus-row {
    grid-template-columns: 1fr;
  }

  body.spa-lite-shell .spa-business-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1199.98px) {
  body.spa-lite-shell .spa-exec-board-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.spa-lite-shell .spa-exec-panel.is-wide {
    grid-column: span 2;
  }
}

@media (max-width: 991.98px) {
  body.spa-lite-shell .spa-exec-topbar,
  body.spa-lite-shell .spa-exec-bottom-grid {
    grid-template-columns: 1fr;
  }

  body.spa-lite-shell .spa-exec-filter-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.spa-lite-shell .spa-exec-board-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.spa-lite-shell .spa-exec-panel.is-wide {
    grid-column: auto;
  }

  body.spa-lite-shell .spa-exec-kpi-row,
  body.spa-lite-shell .spa-exec-tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.spa-lite-shell .spa-dashboard-kpi-badge-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.spa-lite-shell .spa-dashboard-analytics-grid,
  body.spa-lite-shell .spa-dashboard-top-grid {
    grid-template-columns: 1fr;
  }

  body.spa-lite-shell .spa-dashboard-analytic-panel.is-wide {
    grid-column: auto;
  }

  body.spa-lite-shell .spa-dashboard-pie-wrap {
    grid-template-columns: 1fr;
  }

  body.spa-lite-shell .spa-dashboard-pie {
    justify-self: center;
  }

  body.spa-lite-shell .spa-business-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  body.spa-lite-shell .spa-exec-filter-row,
  body.spa-lite-shell .spa-exec-kpi-row,
  body.spa-lite-shell .spa-exec-board-grid,
  body.spa-lite-shell .spa-exec-tile-grid {
    grid-template-columns: 1fr;
  }

  body.spa-lite-shell .spa-dashboard-panel-title {
    flex-direction: column;
    gap: .22rem;
  }

  body.spa-lite-shell .spa-dashboard-panel-title small {
    max-width: none;
    text-align: left;
  }

  body.spa-lite-shell .spa-dashboard-trend-chart {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    row-gap: .9rem;
  }

  body.spa-lite-shell .spa-dashboard-trend-bars {
    height: 7.25rem;
  }

  body.spa-lite-shell .spa-exec-bar-row,
  body.spa-lite-shell .spa-exec-versus-row {
    grid-template-columns: 1fr;
  }

  body.spa-lite-shell .spa-business-flow-item div,
  body.spa-lite-shell .spa-business-action-item,
  body.spa-lite-shell .spa-exec-versus-bars span {
    grid-template-columns: 1fr;
  }

  body.spa-lite-shell .spa-business-flow-item span,
  body.spa-lite-shell .spa-business-action-item b,
  body.spa-lite-shell .spa-exec-bar-row strong,
  body.spa-lite-shell .spa-exec-versus-bars b {
    justify-self: start;
    text-align: left;
  }

  body.spa-lite-shell .spa-exec-pipeline-badge {
    white-space: normal;
  }

  body.spa-lite-shell .spa-dashboard-kpi-badge-grid,
  body.spa-lite-shell .spa-dashboard-compare-grid {
    grid-template-columns: 1fr;
  }

  body.spa-lite-shell .spa-dashboard-executive-card .spa-dashboard-health-actions {
    grid-template-columns: 1fr;
  }

  body.spa-lite-shell .spa-business-period {
    width: 100%;
  }

  body.spa-lite-shell .spa-business-matrix-row {
    grid-template-columns: 1fr;
  }

  body.spa-lite-shell .spa-business-matrix-row b {
    text-align: left;
  }

  body.spa-lite-shell .spa-dashboard-trend-chart {
    min-height: 10.5rem;
    gap: .28rem;
  }

  body.spa-lite-shell .spa-dashboard-trend-bars {
    height: 8rem;
  }
}

@media (max-width: 1399.98px) {
  body.spa-lite-shell .spa-calculator-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  body.spa-lite-shell .spa-calculator-legacy-host > .row > .col-12 {
    grid-template-columns: 1fr;
  }

  body.spa-lite-shell .spa-calculator-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.spa-lite-shell .spa-calculator-mode-pill {
    margin-left: 0;
  }
}

@media (max-width: 575.98px) {
  body.spa-lite-shell .spa-calculator-summary-grid {
    grid-template-columns: 1fr;
  }

  body.spa-lite-shell .spa-calculator-page-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
  }

  body.spa-lite-shell .spa-calculator-header-icon-btn {
    width: 100% !important;
    max-width: none !important;
  }
}

/* Dashboard Penjualan */
body.spa-lite-shell .sales-dashboard-page {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

body.spa-lite-shell .sales-dashboard-card {
  overflow: hidden;
}

body.spa-lite-shell .sales-dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

body.spa-lite-shell .sales-dashboard-title {
  display: flex;
  align-items: center;
  min-width: 0;
}

body.spa-lite-shell .sales-dashboard-title > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem .7rem;
  min-width: 0;
}

body.spa-lite-shell .sales-dashboard-title h5 {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: .01em;
  line-height: 1.15;
}

body.spa-lite-shell .sales-dashboard-title span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: .32rem .68rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 22%, var(--border-color));
  border-radius: .45rem;
  background: color-mix(in srgb, var(--primary-color) 10%, var(--bg-surface));
  color: var(--text-main);
  font-size: .76rem;
  font-weight: 850;
  white-space: nowrap;
}

body.spa-lite-shell .sales-dashboard-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .5rem;
  margin-left: auto;
}

body.spa-lite-shell .sales-header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.45rem;
  height: 2.45rem;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--primary-color) 24%, var(--border-color));
  border-radius: .25rem;
  background: var(--bg-surface);
  color: var(--primary-color);
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

body.spa-lite-shell .sales-header-icon:hover,
body.spa-lite-shell .sales-header-icon:focus-visible {
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--primary-color) 12%, var(--bg-surface));
  border-color: color-mix(in srgb, var(--primary-color) 52%, var(--border-color));
}

body.spa-lite-shell .sales-header-icon.is-refresh {
  color: #0ea5e9;
  border-color: color-mix(in srgb, #0ea5e9 36%, var(--border-color));
}

body.spa-lite-shell .sales-header-icon.is-order-new {
  color: #22c55e;
  border-color: color-mix(in srgb, #22c55e 36%, var(--border-color));
}

body.spa-lite-shell .sales-header-icon.is-order-list {
  color: #f97316;
  border-color: color-mix(in srgb, #f97316 36%, var(--border-color));
}

body.spa-lite-shell .sales-dashboard-body {
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

body.spa-lite-shell .sales-filter-strip {
  display: grid;
  grid-template-columns: minmax(13.5rem, 1.55fr) repeat(7, minmax(0, 1fr)) var(--spa-select-height);
  align-items: end;
  gap: .48rem;
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

body.spa-lite-shell .sales-filter-strip .form-select,
body.spa-lite-shell .sales-filter-strip input[type="date"],
body.spa-lite-shell .sales-range-input-shell {
  min-height: var(--spa-select-height);
  height: var(--spa-select-height);
  border: 1px solid color-mix(in srgb, var(--primary-color) 12%, var(--border-color));
  border-radius: var(--spa-select-radius);
  background-color: var(--input-bg);
  color: var(--text-main);
  font-size: .76rem;
  font-weight: 800;
  line-height: 1.15;
}

body.spa-lite-shell .sales-filter-field {
  display: flex;
  flex-direction: column;
  gap: .28rem;
  min-width: 0;
}

body.spa-lite-shell .sales-filter-field > label,
body.spa-lite-shell .sales-date-range label {
  overflow: hidden;
  margin: 0;
  color: color-mix(in srgb, var(--text-main) 78%, var(--text-muted));
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .065em;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

body.spa-lite-shell .sales-filter-strip .form-select {
  padding-left: .65rem;
  padding-right: 1.75rem;
  min-width: 0;
  width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.spa-lite-shell .sales-date-range {
  position: relative;
  min-width: 0;
}

body.spa-lite-shell .sales-range-input-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .55rem;
  width: 100%;
  padding: 0 .75rem;
  text-align: left;
}

body.spa-lite-shell .sales-range-input-shell input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-main);
  font: inherit;
  cursor: pointer;
}

body.spa-lite-shell .sales-range-input-shell input::placeholder {
  color: var(--text-muted);
}

body.spa-lite-shell .sales-range-input-shell input {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.spa-lite-shell .sales-range-input-shell i:first-child {
  color: var(--primary-color);
}

body.spa-lite-shell .sales-range-popover {
  position: absolute;
  left: 0;
  top: calc(100% + .5rem);
  z-index: 30;
  display: none;
  width: min(27rem, 90vw);
  padding: .8rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 18%, var(--border-color));
  border-radius: .75rem;
  background: var(--bg-surface);
  box-shadow: 0 18px 36px rgba(15, 23, 42, .18);
}

html[data-theme="dark"] body.spa-lite-shell .sales-range-popover {
  box-shadow: 0 22px 42px rgba(2, 6, 23, .52);
}

body.spa-lite-shell .sales-range-picker.is-open .sales-range-popover {
  display: block;
}

body.spa-lite-shell .sales-range-popover-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem;
}

body.spa-lite-shell .sales-range-popover-grid label {
  display: flex;
  flex-direction: column;
  gap: .32rem;
  color: var(--text-muted);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

body.spa-lite-shell .sales-range-popover-grid input[type="date"] {
  width: 100%;
  min-width: 0;
  padding: 0 .65rem;
}

body.spa-lite-shell .sales-range-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .45rem;
  margin-top: .65rem;
}

body.spa-lite-shell .sales-range-shortcuts button,
body.spa-lite-shell .sales-range-close {
  min-height: 2.1rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 18%, var(--border-color));
  border-radius: .25rem;
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: .72rem;
  font-weight: 850;
}

body.spa-lite-shell .sales-range-shortcuts button:hover,
body.spa-lite-shell .sales-range-close:hover {
  background: color-mix(in srgb, var(--primary-color) 10%, var(--bg-surface));
}

body.spa-lite-shell .sales-range-close {
  width: 100%;
  margin-top: .55rem;
  background: color-mix(in srgb, var(--primary-color) 9%, var(--bg-surface));
}

body.spa-lite-shell .sales-reset-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: end;
  min-width: var(--spa-select-height);
  width: var(--spa-select-height);
  height: var(--spa-select-height);
  border: 1px solid color-mix(in srgb, #ef4444 32%, var(--border-color));
  border-radius: .25rem;
  background: var(--bg-surface);
  color: #ef4444;
}

body.spa-lite-shell .sales-reset-btn:hover,
body.spa-lite-shell .sales-reset-btn:focus-visible {
  background: color-mix(in srgb, #ef4444 12%, var(--bg-surface));
}

body.spa-lite-shell .sales-shortcut-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .42rem;
  margin-top: -.25rem;
}

body.spa-lite-shell .sales-shortcut-row button {
  min-height: 2rem;
  padding: .26rem .68rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 18%, var(--border-color));
  border-radius: .25rem;
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: .72rem;
  font-weight: 850;
}

body.spa-lite-shell .sales-shortcut-row button:hover,
body.spa-lite-shell .sales-shortcut-row button:focus-visible {
  background: color-mix(in srgb, var(--primary-color) 10%, var(--bg-surface));
  border-color: color-mix(in srgb, var(--primary-color) 38%, var(--border-color));
}

html[data-theme="dark"] .flatpickr-calendar {
  border: 1px solid color-mix(in srgb, var(--primary-color) 18%, var(--border-color));
  background: var(--bg-surface);
  color: var(--text-main);
  box-shadow: 0 1.2rem 2.6rem rgba(2, 6, 23, .58);
}

html[data-theme="dark"] .flatpickr-months .flatpickr-month,
html[data-theme="dark"] .flatpickr-current-month .flatpickr-monthDropdown-months,
html[data-theme="dark"] .flatpickr-current-month input.cur-year,
html[data-theme="dark"] .flatpickr-weekdays,
html[data-theme="dark"] span.flatpickr-weekday {
  background: var(--bg-surface);
  color: var(--text-main);
}

html[data-theme="dark"] .flatpickr-day {
  border-color: transparent;
  color: var(--text-main);
}

html[data-theme="dark"] .flatpickr-day:hover,
html[data-theme="dark"] .flatpickr-day.inRange,
html[data-theme="dark"] .flatpickr-day.prevMonthDay.inRange,
html[data-theme="dark"] .flatpickr-day.nextMonthDay.inRange {
  border-color: color-mix(in srgb, var(--primary-color) 18%, transparent);
  background: color-mix(in srgb, var(--primary-color) 14%, var(--bg-surface));
  color: var(--text-main);
}

html[data-theme="dark"] .flatpickr-day.selected,
html[data-theme="dark"] .flatpickr-day.startRange,
html[data-theme="dark"] .flatpickr-day.endRange {
  border-color: var(--primary-color);
  background: var(--primary-color);
  color: #fff;
}

body.spa-lite-shell .sales-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .75rem;
}

body.spa-lite-shell .sales-kpi-card {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: .92rem;
  min-height: 7.35rem;
  padding: 1.05rem 1rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 13%, var(--border-color));
  border-radius: .95rem;
  background: color-mix(in srgb, var(--primary-color) 3%, var(--bg-surface));
}

body.spa-lite-shell .sales-kpi-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 3.05rem;
  width: 3.05rem;
  height: 3.05rem;
  border-radius: 50%;
  background: #1d72f3;
  color: #fff;
  font-size: 1.02rem;
}

body.spa-lite-shell .sales-kpi-card.is-cyan .sales-kpi-icon {
  background: #0891b2;
}

body.spa-lite-shell .sales-kpi-card.is-green .sales-kpi-icon {
  background: #16a34a;
}

body.spa-lite-shell .sales-kpi-card.is-amber .sales-kpi-icon {
  background: #f59e0b;
}

body.spa-lite-shell .sales-kpi-card.is-violet .sales-kpi-icon {
  background: #7c3aed;
}

body.spa-lite-shell .sales-kpi-card.is-rose .sales-kpi-icon {
  background: #e11d48;
}

body.spa-lite-shell .sales-kpi-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: .22rem;
}

body.spa-lite-shell .sales-kpi-copy small {
  display: block;
  width: 113.64%;
  color: color-mix(in srgb, var(--text-main) 74%, var(--text-muted));
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .035em;
  line-height: 1.15;
  transform: scale(.88);
  transform-origin: left top;
  text-transform: uppercase;
  white-space: normal;
}

body.spa-lite-shell .sales-kpi-copy strong {
  overflow: hidden;
  color: var(--text-main);
  font-size: clamp(1.22rem, 1.25vw, 1.58rem);
  font-weight: 900;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.spa-lite-shell .sales-kpi-copy em {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .08rem;
  color: var(--text-muted);
  font-size: .68rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.15;
}

body.spa-lite-shell .sales-kpi-copy em span {
  display: inline-flex;
  align-items: center;
  gap: .22rem;
  font-size: .9rem;
  font-weight: 900;
  line-height: 1;
}

body.spa-lite-shell .sales-kpi-copy em b {
  color: var(--text-muted);
  font-size: .64rem;
  font-weight: 800;
  line-height: 1.05;
}

body.spa-lite-shell .sales-kpi-copy em.is-up {
  color: #22c55e;
}

body.spa-lite-shell .sales-kpi-copy em.is-down {
  color: #ef4444;
}

body.spa-lite-shell .sales-analytics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
}

body.spa-lite-shell .sales-bottom-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
}

body.spa-lite-shell .sales-management-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
  align-items: stretch;
}

body.spa-lite-shell .sales-management-grid .is-principal-sales {
  grid-column: span 2;
  grid-row: 1;
  height: 21rem;
  min-height: 21rem;
}

body.spa-lite-shell .sales-management-grid .is-finance-sales {
  grid-column: span 1;
  grid-row: 1;
  height: 21rem;
  min-height: 21rem;
}

body.spa-lite-shell .sales-management-grid .is-management-alert {
  grid-column: 1 / -1;
  grid-row: 2;
}

body.spa-lite-shell .sales-chart-card,
body.spa-lite-shell .sales-alert-card {
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--primary-color) 12%, var(--border-color));
  border-radius: .85rem;
  background: var(--bg-surface);
  overflow: hidden;
}

body.spa-lite-shell .sales-chart-card {
  min-height: 19rem;
}

body.spa-lite-shell .sales-chart-card.is-wide {
  grid-column: span 2;
}

body.spa-lite-shell .sales-chart-card.is-map {
  grid-column: span 1;
}

body.spa-lite-shell .sales-chart-card.is-map.is-full {
  grid-column: 1 / -1;
}

body.spa-lite-shell .sales-chart-card.is-table {
  min-height: 20rem;
}

body.spa-lite-shell .sales-chart-card.is-compare-sales {
  min-height: 0;
  margin-top: .85rem;
}

body.spa-lite-shell .sales-chart-card > header,
body.spa-lite-shell .sales-alert-card > header {
  display: flex;
  align-items: center;
  min-height: 3.18rem;
  padding: .72rem .85rem;
  border-bottom: 1px solid color-mix(in srgb, var(--primary-color) 10%, var(--border-color));
}

body.spa-lite-shell .sales-chart-card h6,
body.spa-lite-shell .sales-alert-card h6 {
  margin: 0;
  color: var(--text-main);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .015em;
  line-height: 1.25;
  text-transform: uppercase;
  white-space: normal;
}

body.spa-lite-shell .sales-bar-list,
body.spa-lite-shell .sales-chart-card > div:not(.sales-donut-layout):not(.sales-table-wrap) {
  padding: .85rem;
}

body.spa-lite-shell .sales-bar-list,
body.spa-lite-shell #spaSalesTrendChart {
  min-height: 15.5rem;
}

body.spa-lite-shell .sales-management-grid .is-principal-sales .sales-bar-list {
  height: calc(21rem - 3.18rem);
  min-height: 0;
}

body.spa-lite-shell .sales-management-grid .is-principal-sales .sales-chart-canvas {
  height: 100% !important;
  min-height: 0;
}

body.spa-lite-shell .sales-chart-canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  min-height: 14rem;
}

body.spa-lite-shell .sales-chart-canvas.is-trend {
  min-height: 18rem;
}

body.spa-lite-shell .sales-bar-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .55rem;
  min-height: 2.55rem;
}

body.spa-lite-shell .sales-bar-row + .sales-bar-row {
  margin-top: .45rem;
}

body.spa-lite-shell .sales-bar-row span {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: .38rem;
  overflow: hidden;
  color: var(--text-main);
  font-size: .72rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.spa-lite-shell .sales-bar-row span b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 1.38rem;
  width: 1.38rem;
  height: 1.38rem;
  border-radius: .35rem;
  background: color-mix(in srgb, var(--primary-color) 12%, var(--bg-surface));
  color: var(--primary-color);
  font-size: .66rem;
}

body.spa-lite-shell .sales-bar-row i {
  position: relative;
  display: block;
  grid-column: 1 / -1;
  height: .5rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary-color) 8%, var(--border-color));
  overflow: hidden;
}

body.spa-lite-shell .sales-bar-row i em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1d72f3, #22c55e);
}

body.spa-lite-shell .sales-bar-row strong {
  justify-self: end;
  color: var(--text-main);
  font-size: .68rem;
  font-weight: 900;
  white-space: nowrap;
}

body.spa-lite-shell .sales-combo-chart {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  gap: .38rem;
  min-height: 14.25rem;
  padding: 1.1rem .85rem .4rem;
}

body.spa-lite-shell .sales-combo-line {
  position: absolute;
  inset: 1rem .85rem 2rem .85rem;
  z-index: 3;
  pointer-events: none;
}

body.spa-lite-shell .sales-combo-month {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  min-width: 0;
  height: 100%;
}

body.spa-lite-shell .sales-combo-bars {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: .16rem;
  width: 100%;
  min-height: 11rem;
  border-bottom: 1px solid color-mix(in srgb, var(--primary-color) 10%, var(--border-color));
}

body.spa-lite-shell .sales-combo-bars i {
  display: block;
  width: .55rem;
  min-height: .3rem;
  border-radius: .35rem .35rem 0 0;
}

body.spa-lite-shell .sales-combo-bars .is-bruto {
  background: #1d72f3;
}

body.spa-lite-shell .sales-combo-bars .is-netto {
  background: #38bdf8;
}

body.spa-lite-shell .sales-combo-month span {
  color: var(--text-muted);
  font-size: .68rem;
  font-weight: 800;
}

body.spa-lite-shell .sales-chart-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .65rem;
  padding: 0 .85rem .85rem;
}

body.spa-lite-shell .sales-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: .32rem;
  color: var(--text-muted);
  font-size: .7rem;
  font-weight: 800;
}

body.spa-lite-shell .sales-chart-legend i {
  width: .62rem;
  height: .62rem;
  border-radius: 50%;
  background: #1d72f3;
}

body.spa-lite-shell .sales-chart-legend i.is-netto {
  background: #38bdf8;
}

body.spa-lite-shell .sales-chart-legend i.is-order {
  background: #22c55e;
}

body.spa-lite-shell .sales-donut-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .78rem;
  padding: .95rem;
}

body.spa-lite-shell .sales-donut-canvas-wrap {
  position: relative;
  width: min(12rem, 74%);
  height: 12rem;
}

body.spa-lite-shell .sales-donut-canvas-wrap canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

body.spa-lite-shell .sales-donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 2.4rem;
  text-align: center;
  pointer-events: none;
}

body.spa-lite-shell .sales-donut-center span {
  max-width: 7rem;
  overflow: hidden;
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.spa-lite-shell .sales-donut-center small {
  color: var(--text-muted);
  font-size: .7rem;
  font-weight: 850;
}

body.spa-lite-shell .sales-donut {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--primary-color) 8%, var(--bg-surface));
  color: var(--text-main);
  text-align: center;
}

body.spa-lite-shell .sales-donut::after {
  content: "";
  position: absolute;
  inset: 1.55rem;
  border-radius: 50%;
  background: var(--bg-surface);
}

body.spa-lite-shell .sales-donut span,
body.spa-lite-shell .sales-donut small {
  position: relative;
  z-index: 1;
}

body.spa-lite-shell .sales-donut span {
  max-width: 6rem;
  overflow: hidden;
  color: var(--text-main);
  font-size: .94rem;
  font-weight: 900;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.spa-lite-shell .sales-donut small {
  color: var(--text-muted);
  font-size: .68rem;
  font-weight: 800;
}

body.spa-lite-shell .sales-donut-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .42rem .6rem;
  min-width: 0;
  width: 100%;
}

body.spa-lite-shell .sales-donut-legend span {
  display: grid;
  grid-template-columns: .65rem minmax(0, 1fr) auto;
  align-items: center;
  gap: .38rem;
  min-width: 0;
}

body.spa-lite-shell .sales-donut-legend i {
  width: .62rem;
  height: .62rem;
  border-radius: 50%;
}

body.spa-lite-shell .sales-donut-legend em,
body.spa-lite-shell .sales-donut-legend b,
body.spa-lite-shell .sales-donut-legend small {
  min-width: 0;
  overflow: hidden;
  font-size: .7rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.spa-lite-shell .sales-donut-legend small {
  display: none;
}

body.spa-lite-shell .sales-donut-legend em {
  color: var(--text-main);
}

body.spa-lite-shell .sales-donut-legend b,
body.spa-lite-shell .sales-donut-legend small {
  color: var(--text-muted);
}

body.spa-lite-shell .sales-map-canvas {
  position: relative;
  min-height: 14rem;
  margin: .85rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 10%, var(--border-color));
  border-radius: .8rem;
  background:
    radial-gradient(circle at 30% 35%, color-mix(in srgb, #1d72f3 14%, transparent) 0%, transparent 28%),
    radial-gradient(circle at 72% 58%, color-mix(in srgb, #22c55e 10%, transparent) 0%, transparent 26%),
    color-mix(in srgb, var(--primary-color) 7%, var(--bg-surface));
  overflow: hidden;
}

body.spa-lite-shell .sales-leaflet-map {
  position: relative;
  min-height: 15.75rem;
  margin: .85rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 10%, var(--border-color));
  border-radius: .8rem;
  background:
    radial-gradient(circle at 26% 32%, rgba(37, 120, 245, .16) 0%, transparent 28%),
    color-mix(in srgb, var(--primary-color) 5%, var(--bg-surface));
  overflow: hidden;
}

body.spa-lite-shell .sales-chart-card.is-map.is-full .sales-leaflet-map {
  min-height: 30rem;
}

body.spa-lite-shell .sales-chart-card.is-map.is-full .sales-map-list {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

body.spa-lite-shell .sales-leaflet-map.is-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
}

body.spa-lite-shell .sales-leaflet-map .leaflet-container,
body.spa-lite-shell .sales-leaflet-map .leaflet-pane {
  background: transparent;
}

body.spa-lite-shell .sales-leaflet-map .leaflet-tile-pane {
  display: none;
}

body.spa-lite-shell .sales-leaflet-map .leaflet-funnelProvince-pane,
body.spa-lite-shell .sales-leaflet-map .leaflet-salesProvince-pane {
  z-index: 410 !important;
}

body.spa-lite-shell .sales-leaflet-map .leaflet-funnelPoint-pane,
body.spa-lite-shell .sales-leaflet-map .leaflet-salesPoint-pane {
  z-index: 720 !important;
}

body.spa-lite-shell .sales-leaflet-map .leaflet-overlay-pane path {
  filter: drop-shadow(0 .18rem .28rem rgba(2, 6, 23, .18));
  transition: fill-opacity .16s ease, stroke .16s ease, stroke-width .16s ease;
}

body.spa-lite-shell .sales-leaflet-map .leaflet-tooltip {
  border: 1px solid color-mix(in srgb, var(--primary-color) 18%, var(--border-color));
  border-radius: .45rem;
  background: color-mix(in srgb, var(--bg-surface) 94%, transparent);
  color: var(--text-main);
  box-shadow: 0 .65rem 1.4rem rgba(2, 6, 23, .24);
  font-size: .7rem;
  font-weight: 800;
}

body.spa-lite-shell .sales-leaflet-map .leaflet-tooltip span {
  color: var(--text-muted);
  font-size: .62rem;
  font-weight: 750;
}

body.spa-lite-shell .tooltip {
  pointer-events: none;
  z-index: 4000;
}

body.spa-lite-shell .tooltip .tooltip-inner {
  max-width: min(20rem, calc(100vw - 2rem));
  padding: .55rem .7rem;
  border: 1px solid color-mix(in srgb, var(--border-color) 70%, transparent);
  border-radius: .45rem;
  background: #05070d;
  color: #fff;
  box-shadow: 0 .75rem 1.7rem rgba(0, 0, 0, .32);
  font-size: .78rem;
  font-weight: 750;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-align: center;
}

body.spa-lite-shell .tooltip[data-popper-placement^="bottom"] {
  margin-top: .35rem !important;
}

body.spa-lite-shell .sales-leaflet-map .leaflet-control-zoom {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--primary-color) 20%, var(--border-color));
  border-radius: .55rem;
  background: color-mix(in srgb, var(--bg-surface) 92%, transparent);
  box-shadow: 0 .75rem 1.4rem rgba(2, 6, 23, .24);
}

body.spa-lite-shell .sales-leaflet-map .leaflet-control-zoom a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--primary-color) 12%, var(--border-color));
  background: color-mix(in srgb, var(--primary-color) 7%, var(--bg-surface));
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
}

body.spa-lite-shell .sales-leaflet-map .leaflet-control-zoom a:last-child {
  border-bottom: 0;
}

body.spa-lite-shell .sales-leaflet-map .leaflet-control-zoom a:hover {
  background: color-mix(in srgb, var(--primary-color) 18%, var(--bg-surface));
  color: var(--primary-color);
}

body.spa-lite-shell .sales-map-island {
  position: absolute;
  display: block;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--primary-color) 28%, var(--border-color));
  background: color-mix(in srgb, var(--primary-color) 24%, var(--bg-surface));
  opacity: 1;
  transform: rotate(-12deg);
}

body.spa-lite-shell .sales-map-island.is-sumatra {
  left: 10%;
  top: 42%;
  width: 19%;
  height: 10%;
}

body.spa-lite-shell .sales-map-island.is-java {
  left: 29%;
  top: 66%;
  width: 24%;
  height: 5%;
}

body.spa-lite-shell .sales-map-island.is-kalimantan {
  left: 38%;
  top: 37%;
  width: 20%;
  height: 17%;
  transform: rotate(6deg);
}

body.spa-lite-shell .sales-map-island.is-sulawesi {
  left: 59%;
  top: 42%;
  width: 13%;
  height: 18%;
  transform: rotate(22deg);
}

body.spa-lite-shell .sales-map-island.is-papua {
  right: 8%;
  top: 43%;
  width: 19%;
  height: 12%;
  transform: rotate(4deg);
}

body.spa-lite-shell .sales-map-point {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 2px solid rgba(255,255,255,.7);
  border-radius: 50%;
  background: rgba(29, 114, 243, var(--map-alpha, .5));
  color: #fff;
  font-size: .7rem;
  font-weight: 900;
  transform: translate(-50%, -50%);
  box-shadow: 0 .5rem 1.2rem rgba(15, 23, 42, .18);
}

body.spa-lite-shell .sales-map-empty {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  padding: .38rem .7rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 18%, var(--border-color));
  border-radius: .45rem;
  background: color-mix(in srgb, var(--bg-surface) 88%, transparent);
  color: var(--text-main);
  font-size: .72rem;
  font-weight: 850;
  transform: translate(-50%, -50%);
}

body.spa-lite-shell .sales-map-legend {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .65rem;
  padding: 0 .85rem .45rem;
  color: var(--text-muted);
  font-size: .68rem;
  font-weight: 800;
}

body.spa-lite-shell .sales-map-legend span {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: .4rem;
  color: var(--text-main);
  font-weight: 850;
}

body.spa-lite-shell .sales-map-legend .sales-map-legend-dot {
  display: inline-flex;
  width: .72rem;
  height: .72rem;
  border: 2px solid rgba(255,255,255,.92);
  border-radius: 50%;
  background: var(--primary-color);
  box-shadow: 0 0 0 .18rem color-mix(in srgb, var(--primary-color) 18%, transparent);
}

body.spa-lite-shell .sales-map-legend strong {
  overflow: hidden;
  color: var(--text-muted);
  font-weight: 800;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.spa-lite-shell .sales-map-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .4rem;
  padding: 0 .85rem .85rem;
}

body.spa-lite-shell .sales-map-list.is-empty {
  display: none;
}

body.spa-lite-shell .sales-map-list span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  min-width: 0;
  padding: .42rem .55rem;
  border-radius: .45rem;
  background: color-mix(in srgb, var(--primary-color) 7%, var(--bg-surface));
}

body.spa-lite-shell .sales-map-list b,
body.spa-lite-shell .sales-map-list em {
  overflow: hidden;
  font-size: .68rem;
  font-style: normal;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.spa-lite-shell .sales-map-list b {
  color: var(--text-main);
}

body.spa-lite-shell .sales-map-list em {
  color: var(--text-muted);
}

body.spa-lite-shell .sales-table-wrap {
  max-height: 17rem;
  overflow: auto;
}

body.spa-lite-shell .sales-chart-card.is-top-orders {
  min-height: 0;
}

body.spa-lite-shell .sales-chart-card.is-top-orders .sales-table-wrap {
  max-height: none;
  overflow-x: auto;
  overflow-y: hidden;
}

body.spa-lite-shell .sales-chart-card.is-top-orders .sales-compact-table {
  width: max-content;
  min-width: 60rem;
  table-layout: auto;
}

body.spa-lite-shell .sales-chart-card.is-owner-sales .sales-table-wrap {
  max-height: none;
  overflow: auto;
}

body.spa-lite-shell .sales-chart-card.is-owner-sales .sales-compact-table {
  min-width: 44rem;
}

body.spa-lite-shell .sales-compact-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

body.spa-lite-shell .sales-compact-table th,
body.spa-lite-shell .sales-compact-table td {
  padding: .52rem .62rem;
  border-bottom: 1px solid color-mix(in srgb, var(--primary-color) 9%, var(--border-color));
  color: var(--text-main);
  font-size: .73rem;
  line-height: 1.25;
  vertical-align: middle;
}

body.spa-lite-shell .sales-compact-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bg-surface);
  color: color-mix(in srgb, var(--text-main) 76%, var(--text-muted));
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

body.spa-lite-shell .sales-compact-table td strong {
  display: block;
  max-width: 18rem;
  overflow: hidden;
  color: var(--text-main);
  font-size: .74rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.spa-lite-shell .sales-chart-card.is-top-orders .sales-compact-table th,
body.spa-lite-shell .sales-chart-card.is-top-orders .sales-compact-table td,
body.spa-lite-shell .sales-chart-card.is-owner-sales .sales-compact-table th,
body.spa-lite-shell .sales-chart-card.is-owner-sales .sales-compact-table td {
  overflow: visible;
  padding: .46rem .48rem;
  font-size: .68rem;
  text-overflow: clip;
  white-space: nowrap;
}

body.spa-lite-shell .sales-chart-card.is-top-orders .sales-compact-table th {
  position: static;
}

body.spa-lite-shell .sales-compact-table tr.sales-clickable-row {
  cursor: pointer;
  transition: background .16s ease, color .16s ease;
}

body.spa-lite-shell .sales-compact-table tr.sales-clickable-row:hover td,
body.spa-lite-shell .sales-compact-table tr.sales-clickable-row:focus-visible td {
  background: color-mix(in srgb, var(--primary-color) 9%, var(--bg-surface));
}

body.spa-lite-shell .sales-compact-table tr.sales-clickable-row:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--primary-color) 62%, transparent);
  outline-offset: -2px;
}

body.spa-lite-shell .sales-chart-card.is-owner-sales .sales-compact-table th {
  position: static;
}

body.spa-lite-shell .sales-chart-card.is-top-orders .sales-order-name-cell strong,
body.spa-lite-shell .sales-chart-card.is-owner-sales .sales-compact-table td strong {
  max-width: none !important;
  font-size: .69rem;
  overflow: visible !important;
  text-overflow: clip !important;
}

body.spa-lite-shell .sales-compact-table td small {
  display: block;
  margin-top: .14rem;
  color: var(--text-muted);
  font-size: .66rem;
  font-weight: 750;
}

body.spa-lite-shell .sales-chart-card > header.sales-compare-header {
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

body.spa-lite-shell .sales-compare-header h6 {
  padding-top: 0;
}

body.spa-lite-shell #spaSalesCompareControls {
  min-width: min(100%, 45rem);
}

body.spa-lite-shell .sales-compare-toolbar,
body.spa-lite-shell .sales-compare-chips {
  display: flex;
  align-items: center;
  gap: .42rem;
}

body.spa-lite-shell .sales-compare-toolbar {
  justify-content: flex-end;
  flex-wrap: nowrap;
  width: 100%;
}

body.spa-lite-shell .sales-compare-field {
  display: grid;
  gap: .2rem;
  min-width: 0;
}

body.spa-lite-shell .sales-compare-field span {
  overflow: hidden;
  color: var(--text-muted);
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .055em;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

body.spa-lite-shell .sales-compare-reset,
body.spa-lite-shell .sales-compare-chip {
  border: 1px solid color-mix(in srgb, var(--primary-color) 14%, var(--border-color));
  border-radius: .42rem;
  background: transparent;
  color: var(--text-muted);
  font-size: .66rem;
  font-weight: 850;
  line-height: 1;
}

body.spa-lite-shell .sales-compare-select {
  width: 12.5rem;
  min-height: 2.25rem;
  border-color: color-mix(in srgb, var(--primary-color) 13%, var(--border-color));
  border-radius: .5rem;
  background-color: color-mix(in srgb, var(--primary-color) 4%, var(--bg-surface));
  color: var(--text-main);
  font-size: .68rem;
  font-weight: 800;
}

body.spa-lite-shell .sales-compare-reset {
  width: 2.25rem;
  height: 2.25rem;
  align-self: end;
  color: var(--primary-color);
}

body.spa-lite-shell .sales-compare-chips {
  justify-content: flex-end;
  flex-wrap: wrap;
}

body.spa-lite-shell .sales-chart-card.is-compare-sales #spaSalesCompareTable > .sales-compare-chips {
  justify-content: flex-start;
  padding: .65rem .85rem .35rem;
}

body.spa-lite-shell .sales-compare-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 1.65rem;
  max-width: 13rem;
  padding: .28rem .48rem;
  background: color-mix(in srgb, var(--primary-color) 8%, var(--bg-surface));
  color: var(--text-main);
}

body.spa-lite-shell .sales-compare-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.spa-lite-shell .sales-compare-chip i {
  color: var(--primary-color);
  font-size: .62rem;
}

body.spa-lite-shell .sales-compare-empty-chip {
  color: var(--text-muted);
  font-size: .68rem;
  font-weight: 800;
}

body.spa-lite-shell .sales-chart-card.is-compare-sales .sales-table-wrap {
  max-height: none;
  overflow-x: auto;
  overflow-y: hidden;
}

body.spa-lite-shell .sales-chart-card.is-compare-sales .sales-compact-table {
  min-width: 64rem;
}

body.spa-lite-shell .sales-compare-transposed-table th,
body.spa-lite-shell .sales-compare-transposed-table td {
  text-align: left;
  vertical-align: middle;
}

body.spa-lite-shell .sales-compare-transposed-table thead th:first-child,
body.spa-lite-shell .sales-compare-transposed-table tbody th {
  width: 15rem;
  min-width: 15rem;
  color: var(--text-muted);
  font-weight: 900;
  white-space: nowrap;
}

body.spa-lite-shell .sales-compare-transposed-table thead th:not(:first-child) {
  max-width: 13rem;
  overflow: hidden;
  color: var(--text-main);
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.spa-lite-shell .sales-compare-transposed-table td {
  color: var(--text-main);
  font-weight: 850;
  white-space: nowrap;
}

body.spa-lite-shell .sales-compare-empty-state {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-height: 6.25rem;
  padding: .9rem;
  border: 1px dashed color-mix(in srgb, var(--primary-color) 24%, var(--border-color));
  border-radius: .75rem;
  background: color-mix(in srgb, var(--primary-color) 5%, var(--bg-surface));
}

body.spa-lite-shell .sales-compare-empty-state i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--primary-color) 17%, var(--bg-surface));
  color: var(--primary-color);
}

body.spa-lite-shell .sales-compare-empty-state strong,
body.spa-lite-shell .sales-compare-empty-state span {
  display: block;
  line-height: 1.2;
}

body.spa-lite-shell .sales-compare-empty-state strong {
  color: var(--text-main);
  font-size: .82rem;
  font-weight: 900;
}

body.spa-lite-shell .sales-compare-empty-state span {
  margin-top: .18rem;
  color: var(--text-muted);
  font-size: .68rem;
  font-weight: 750;
}

body.spa-lite-shell .sales-finance-list {
  display: grid;
  gap: .55rem;
  padding: .85rem;
}

body.spa-lite-shell .sales-finance-list span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .58rem .65rem;
  border: 1px solid color-mix(in srgb, var(--primary-color) 9%, var(--border-color));
  border-radius: .55rem;
  background: color-mix(in srgb, var(--primary-color) 5%, var(--bg-surface));
}

body.spa-lite-shell .sales-finance-list em,
body.spa-lite-shell .sales-finance-list strong {
  overflow: hidden;
  font-size: .73rem;
  font-style: normal;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.spa-lite-shell .sales-finance-list em {
  color: var(--text-muted);
  font-weight: 800;
}

body.spa-lite-shell .sales-finance-list strong {
  color: var(--text-main);
  font-weight: 900;
}

body.spa-lite-shell .sales-alert-card {
  min-height: 0;
}

body.spa-lite-shell .sales-alert-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  padding: .85rem;
}

body.spa-lite-shell .sales-management-grid .sales-alert-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.spa-lite-shell .sales-management-grid .sales-alert-item {
  min-height: 0;
}

body.spa-lite-shell .sales-alert-item {
  display: grid;
  grid-template-columns: 2.35rem minmax(0, 1fr);
  gap: .65rem;
  align-items: start;
  min-width: 0;
  padding: .75rem;
  border: 1px solid color-mix(in srgb, #f59e0b 20%, var(--border-color));
  border-radius: .7rem;
  background: color-mix(in srgb, #f59e0b 8%, var(--bg-surface));
}

body.spa-lite-shell .sales-alert-item > i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  background: color-mix(in srgb, #f59e0b 18%, var(--bg-surface));
  color: #f59e0b;
}

body.spa-lite-shell .sales-alert-item span {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: .2rem;
}

body.spa-lite-shell .sales-alert-item strong,
body.spa-lite-shell .sales-alert-item small {
  min-width: 0;
  overflow: hidden;
  line-height: 1.25;
  text-overflow: ellipsis;
}

body.spa-lite-shell .sales-alert-item strong {
  color: var(--text-main);
  font-size: .78rem;
  font-weight: 900;
  white-space: nowrap;
}

body.spa-lite-shell .sales-alert-item small {
  display: -webkit-box;
  color: var(--text-muted);
  font-size: .7rem;
  font-weight: 750;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.spa-lite-shell .sales-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 7rem;
  padding: .8rem;
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 800;
  text-align: center;
}

body.spa-lite-shell .sales-empty.is-small {
  min-height: 3rem;
}

@media (max-width: 1699.98px) {
  body.spa-lite-shell .sales-filter-strip {
    grid-template-columns: minmax(12.75rem, 1.45fr) repeat(7, minmax(0, 1fr)) var(--spa-select-height);
    gap: .42rem;
  }

  body.spa-lite-shell .sales-filter-strip .form-select,
  body.spa-lite-shell .sales-range-input-shell {
    font-size: .7rem;
  }

  body.spa-lite-shell .sales-filter-strip .form-select {
    padding-left: .55rem;
    padding-right: 1.55rem;
  }

  body.spa-lite-shell .sales-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.spa-lite-shell .sales-analytics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1299.98px) {
  body.spa-lite-shell .sales-filter-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body.spa-lite-shell .sales-reset-btn {
    width: 100%;
  }

  body.spa-lite-shell .sales-analytics-grid,
  body.spa-lite-shell .sales-management-grid,
  body.spa-lite-shell .sales-bottom-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.spa-lite-shell .sales-chart-card.is-wide,
  body.spa-lite-shell .sales-chart-card.is-map {
    grid-column: span 2;
  }

  body.spa-lite-shell .sales-management-grid .sales-alert-card {
    grid-column: auto;
  }

  body.spa-lite-shell .sales-management-grid .is-principal-sales {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  body.spa-lite-shell .sales-management-grid .is-finance-sales,
  body.spa-lite-shell .sales-management-grid .is-management-alert {
    grid-column: auto;
    grid-row: auto;
  }

  body.spa-lite-shell .sales-alert-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991.98px) {
  body.spa-lite-shell .sales-dashboard-header {
    align-items: flex-start;
    flex-direction: column;
  }

  body.spa-lite-shell .sales-dashboard-header-actions {
    margin-left: 0;
  }

  body.spa-lite-shell .sales-filter-strip,
  body.spa-lite-shell .sales-kpi-grid,
  body.spa-lite-shell .sales-analytics-grid,
  body.spa-lite-shell .sales-management-grid,
  body.spa-lite-shell .sales-bottom-grid {
    grid-template-columns: 1fr;
  }

  body.spa-lite-shell .sales-chart-card.is-wide,
  body.spa-lite-shell .sales-chart-card.is-map {
    grid-column: auto;
  }

  body.spa-lite-shell .sales-management-grid .sales-alert-card {
    grid-column: auto;
  }

  body.spa-lite-shell .sales-management-grid .is-principal-sales,
  body.spa-lite-shell .sales-management-grid .is-finance-sales,
  body.spa-lite-shell .sales-management-grid .is-management-alert {
    grid-column: auto;
    grid-row: auto;
  }

  body.spa-lite-shell .sales-chart-card.is-map.is-full .sales-map-list {
    grid-template-columns: 1fr;
  }
}
