:root {
  --dark-office-accent: #16c2a3;
  --dark-office-accent-soft: rgba(22, 194, 163, 0.16);
  --dark-office-glow: rgba(22, 194, 163, 0.2);
  --dark-office-surface: rgba(12, 18, 26, 0.86);
  --dark-office-border: rgba(123, 143, 173, 0.16);
  --dark-office-heading-font: "Space Grotesk", "Manrope", sans-serif;
  --dark-office-body-font: "Manrope", sans-serif;
}

body {
  font-family: var(--dark-office-body-font);
  background:
    radial-gradient(circle at top right, rgba(22, 194, 163, 0.12), transparent 22rem),
    radial-gradient(circle at bottom left, rgba(49, 113, 255, 0.12), transparent 20rem),
    #0a1017;
}

body.modal-open {
  overflow: hidden;
}

.layout-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.02), transparent 30%),
    linear-gradient(225deg, rgba(255, 255, 255, 0.01), transparent 35%);
  pointer-events: none;
}

.layout-navbar,
.layout-menu,
.card,
.dropdown-menu,
.modal-content {
  backdrop-filter: blur(14px);
}

.bg-navbar-theme,
#layout-menu,
.card,
.dropdown-menu {
  background: var(--dark-office-surface) !important;
  border-color: var(--dark-office-border) !important;
}

.toolbar .dropdown {
  position: relative;
}

.toolbar .dropdown-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  left: auto;
  min-width: 16rem;
  max-width: min(18rem, calc(100vw - 2rem));
  margin: 0;
  transform: none !important;
}

.toolbar .dropdown-menu.show {
  display: block;
}

.profile-summary {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(22, 194, 163, 0.12);
  border-radius: 1rem;
  background:
    linear-gradient(135deg, rgba(22, 194, 163, 0.12), rgba(49, 113, 255, 0.07)),
    rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.profile-summary-avatar {
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  padding: 0.18rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(22, 194, 163, 0.55), rgba(49, 113, 255, 0.4));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.profile-summary-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-summary-body {
  min-width: 0;
}

.profile-summary-name {
  font-family: var(--dark-office-heading-font);
  font-size: 1rem;
  font-weight: 700;
  color: #f2f7fb;
  line-height: 1.2;
}

.profile-summary-role {
  display: inline-block;
  margin-top: 0.2rem;
  color: #9fb4cb;
  font-size: 0.8rem;
  line-height: 1.35;
}

.profile-status-list {
  display: grid;
  gap: 0.75rem;
}

.profile-status-card {
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.03);
}

.profile-status-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8ea5bf;
  margin-bottom: 0.25rem;
}

.profile-status-value {
  font-family: var(--dark-office-heading-font);
  font-size: 0.95rem;
  font-weight: 700;
  color: #d7e2f0;
}

.profile-status-value.is-success {
  color: #44d19f;
}

.profile-status-value.is-warning {
  color: #ffb44d;
}

.profile-status-value.is-danger {
  color: #ff6b7d;
}

.profile-status-value.is-neutral {
  color: #c9d7e6;
}

.profile-status-hint {
  margin-top: 0.3rem;
  font-size: 0.775rem;
  color: #8ea5bf;
  line-height: 1.35;
}

.menu-vertical .menu-item.active > .menu-link {
  background: linear-gradient(90deg, rgba(22, 194, 163, 0.18), rgba(22, 194, 163, 0.08));
  box-shadow: inset 0 0 0 1px rgba(22, 194, 163, 0.18);
}

.menu-vertical .menu-link:hover,
.list-group-item-action:hover {
  background: rgba(255, 255, 255, 0.04);
}

.app-brand-text {
  font-family: var(--dark-office-heading-font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
h5,
h6,
.text-glow,
.status-pill,
.guide-step,
.detail-counter-value {
  font-family: var(--dark-office-heading-font);
}

.hero-card {
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(135deg, rgba(22, 194, 163, 0.18), rgba(49, 113, 255, 0.08)),
    rgba(11, 17, 24, 0.92) !important;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -4rem -4rem auto;
  width: 16rem;
  height: 16rem;
  background: radial-gradient(circle, var(--dark-office-glow), transparent 62%);
  pointer-events: none;
}

.workspace-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.switch-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #dce8f5;
  text-decoration: none;
  transition: 0.18s ease;
}

.switch-chip:hover {
  color: #fff;
  background: rgba(22, 194, 163, 0.14);
  border-color: rgba(22, 194, 163, 0.26);
}

.metric-card {
  min-height: 100%;
}

.metric-card .avatar {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 16px 40px rgba(0, 0, 0, 0.28);
}

.module-grid .card,
.metric-card,
.pipeline-card,
.feed-card {
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
}

.module-icon {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.95rem;
  background: var(--dark-office-accent-soft);
  color: var(--dark-office-accent);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #d7e2f0;
  font-size: 0.8125rem;
}

.status-pill::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

.status-pill.success {
  color: #44d19f;
}

.status-pill.warning {
  color: #ffb44d;
}

.status-pill.info {
  color: #55a8ff;
}

.timeline-mini {
  position: relative;
  padding-left: 1.35rem;
}

.timeline-mini::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.timeline-mini-item {
  position: relative;
  padding-bottom: 1rem;
}

.timeline-mini-item::before {
  content: "";
  position: absolute;
  left: -1.02rem;
  top: 0.4rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--dark-office-accent);
  box-shadow: 0 0 0 0.22rem rgba(22, 194, 163, 0.12);
}

.table-dark-office thead th {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  color: #90a5be;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.table-dark-office tbody td {
  border-color: rgba(255, 255, 255, 0.06);
}

.table-dark-office tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

.staff-role-matrix-card {
  background:
    linear-gradient(135deg, rgba(22, 194, 163, 0.08), rgba(49, 113, 255, 0.05)),
    rgba(11, 17, 24, 0.92) !important;
}

.staff-role-matrix-card .table-dark-office tbody td:first-child {
  color: #e7f2ff;
  font-weight: 600;
}

.staff-guide-list li {
  color: #9ab0c7;
  line-height: 1.55;
}

.staff-form-card {
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
}

.exchange-side-stack .card {
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
}

.exchange-guide-card {
  background:
    linear-gradient(135deg, rgba(85, 168, 255, 0.08), rgba(22, 194, 163, 0.07)),
    rgba(11, 17, 24, 0.92) !important;
}

.compact-guide-list {
  gap: 0.8rem;
}

.compact-guide-list .guide-item {
  grid-template-columns: 2rem 1fr;
  gap: 0.8rem;
}

.compact-guide-list .guide-step {
  width: 2rem;
  height: 2rem;
  border-radius: 0.75rem;
  font-size: 0.8rem;
}

.abcex-priority-card {
  background:
    linear-gradient(135deg, rgba(22, 194, 163, 0.08), rgba(49, 113, 255, 0.05)),
    rgba(11, 17, 24, 0.92) !important;
}

.balance-value {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.compact-balance-card {
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(22, 194, 163, 0.14), rgba(49, 113, 255, 0.08)),
    rgba(11, 17, 24, 0.92) !important;
}

.compact-balance-toolbar {
  align-items: center;
  gap: 1rem;
}

.balance-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.85rem;
}

.balance-chip {
  min-width: 8.5rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.balance-chip-dirty {
  background:
    linear-gradient(135deg, rgba(255, 153, 51, 0.18), rgba(255, 107, 125, 0.12)),
    rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 153, 51, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 221, 179, 0.16),
    0 0 0 1px rgba(255, 153, 51, 0.08),
    0 14px 26px rgba(255, 107, 125, 0.14);
}

.balance-chip-dirty .balance-chip-code {
  color: #ffd08a;
}

.balance-chip-dirty .balance-chip-value {
  color: #fff3dd;
}

.balance-chip-clean {
  background:
    linear-gradient(135deg, rgba(22, 194, 163, 0.14), rgba(85, 168, 255, 0.08)),
    rgba(255, 255, 255, 0.04);
  border-color: rgba(22, 194, 163, 0.2);
}

.balance-chip-code {
  display: block;
  margin-bottom: 0.3rem;
  color: #8ea5bf;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.balance-chip-value {
  display: block;
  color: #eef6ff;
  font-family: var(--dark-office-heading-font);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section-search {
  width: min(18rem, 100%);
  min-width: 13rem;
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.pagination-label {
  color: #8ea5bf;
  font-size: 0.82rem;
}

.audit-feed {
  min-height: 28rem;
}

.text-glow {
  color: #c9fff3;
  text-shadow: 0 0 22px rgba(22, 194, 163, 0.22);
}

.auth-shell {
  min-height: 100vh;
}

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 1085;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background:
    radial-gradient(circle at top, rgba(22, 194, 163, 0.18), transparent 28rem),
    rgba(7, 11, 17, 0.86);
  backdrop-filter: blur(14px);
}

.auth-overlay.is-hidden {
  display: none;
}

.auth-card {
  width: min(100%, 28rem);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  background: rgba(10, 16, 23, 0.92);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.auth-boot-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  min-height: 12rem;
  text-align: center;
}

.auth-boot-spinner {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--dark-office-accent);
  animation: dark-office-spin 0.9s linear infinite;
}

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

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(22, 194, 163, 0.12);
  color: #97f2e0;
  font-size: 0.8125rem;
}

.section-anchor {
  scroll-margin-top: 6rem;
}

.surface-muted {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
}

.guide-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.guide-item {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.95rem;
  align-items: start;
}

.guide-item p {
  margin: 0.3rem 0 0;
  color: #91a7bf;
}

.guide-step {
  width: 2.4rem;
  height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, rgba(22, 194, 163, 0.18), rgba(49, 113, 255, 0.12));
  color: #cbfff4;
  font-weight: 700;
}

.list-clean {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list-clean li + li {
  margin-top: 0.75rem;
}

.empty-state {
  padding: 2rem;
  text-align: center;
  color: #8aa0b8;
}

.order-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.order-actions .form-select,
.order-actions .btn {
  min-width: fit-content;
}

.orders-actions-compact {
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.row-action-menu {
  position: relative;
}

.row-action-menu summary {
  list-style: none;
}

.row-action-menu summary::-webkit-details-marker {
  display: none;
}

.row-action-menu[open] summary {
  border-color: rgba(22, 194, 163, 0.35);
  background: rgba(22, 194, 163, 0.08);
}

.row-action-menu-panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 40;
  min-width: 18rem;
  padding: 0.85rem;
  border-radius: 1rem;
  border: 1px solid rgba(123, 143, 173, 0.18);
  background: rgba(12, 18, 26, 0.96);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
}

.row-action-menu-group + .row-action-menu-group {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.row-action-menu-label {
  display: block;
  margin-bottom: 0.45rem;
  color: #8ea5bf;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.row-action-menu-inline {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.row-action-menu-inline .form-select {
  min-width: 0;
  flex: 1 1 auto;
}

.row-action-menu-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.orders-table-wrap {
  overflow: visible;
}

.orders-table-wrap .table {
  overflow: visible;
  table-layout: fixed;
}

.orders-table-wrap .table th,
.orders-table-wrap .table td {
  white-space: normal;
  vertical-align: top;
}

.orders-table-wrap .table th:first-child,
.orders-table-wrap .table td:first-child {
  width: 4.5rem;
}

.orders-table-wrap .table th:nth-child(2),
.orders-table-wrap .table td:nth-child(2) {
  width: 34%;
}

.orders-table-wrap .table th:nth-child(3),
.orders-table-wrap .table td:nth-child(3) {
  width: 22%;
}

.orders-table-wrap .table th:nth-child(4),
.orders-table-wrap .table td:nth-child(4) {
  width: 16%;
}

.orders-main-cell,
.orders-amounts-cell,
.orders-state-cell {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.orders-main-line {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.orders-route {
  color: #e7f2ff;
  font-weight: 600;
  line-height: 1.35;
  word-break: break-word;
}

.orders-meta {
  color: #8ea5bf;
  font-size: 0.8rem;
  line-height: 1.35;
  word-break: break-word;
}

.orders-label {
  color: #8ea5bf;
}

.orders-amounts-cell {
  font-size: 0.9rem;
  line-height: 1.4;
}

.orders-state-cell .badge {
  align-self: flex-start;
}

.orders-table-wrap .table th:last-child,
.orders-table-wrap .table td:last-child {
  text-align: right;
}

.payouts-table-wrap .table {
  width: 100%;
  table-layout: fixed;
}

.payouts-table-wrap .table th,
.payouts-table-wrap .table td {
  white-space: normal;
  vertical-align: top;
}

.payouts-table-wrap .table th:nth-child(1),
.payouts-table-wrap .table td:nth-child(1),
.payouts-table-wrap .table th:nth-child(2),
.payouts-table-wrap .table td:nth-child(2) {
  width: 7%;
}

.payouts-table-wrap .table th:nth-child(3),
.payouts-table-wrap .table td:nth-child(3) {
  width: 16%;
}

.payouts-table-wrap .table th:nth-child(4),
.payouts-table-wrap .table td:nth-child(4) {
  width: 10%;
}

.payouts-table-wrap .table th:nth-child(5),
.payouts-table-wrap .table td:nth-child(5) {
  width: 12%;
}

.payouts-table-wrap .table th:nth-child(6),
.payouts-table-wrap .table td:nth-child(6) {
  width: 12%;
}

.payouts-table-wrap .table th:nth-child(7),
.payouts-table-wrap .table td:nth-child(7) {
  width: 17%;
}

.payouts-table-wrap .table th:nth-child(8),
.payouts-table-wrap .table td:nth-child(8) {
  width: 11%;
}

.payouts-table-wrap .table th:nth-child(9),
.payouts-table-wrap .table td:nth-child(9) {
  width: 16%;
  text-align: right;
}

.payouts-confirmation-cell {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.payouts-confirmation-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.payouts-confirmation-line {
  color: #8ea5bf;
  font-size: 0.78rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.orders-load-more-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.5rem;
  padding-top: 0.75rem;
}

.orders-load-more-sentinel {
  width: 100%;
  height: 1px;
}

.toolbar {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.toolbar-spacer {
  flex: 1 1 auto;
}

.mobile-icon-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.refresh-button-spinner {
  width: 0.95rem;
  height: 0.95rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  display: none;
  flex: 0 0 auto;
}

.mobile-icon-button.is-loading {
  cursor: wait;
}

.mobile-icon-button.is-loading .refresh-button-icon {
  display: none;
}

.mobile-icon-button.is-loading .refresh-button-spinner {
  display: inline-block;
  animation: dark-office-spin 0.9s linear infinite;
}

.quick-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.quick-filter-group .btn.active {
  background: var(--dark-office-accent-soft);
  border-color: rgba(22, 194, 163, 0.4);
  color: #d4fff7;
  box-shadow: inset 0 0 0 1px rgba(22, 194, 163, 0.15);
}

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

.chart-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.analytics-chart {
  min-height: 16rem;
}

.analytics-chart-sm {
  min-height: 11rem;
}

.analytics-chart-md {
  min-height: 18rem;
}

.analytics-chart-lg {
  min-height: 22rem;
}

.analytics-split {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.analytics-subchart {
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.analytics-subchart-head {
  margin-bottom: 0.75rem;
  color: #8ea5bf;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.apexcharts-canvas svg {
  overflow: visible;
}

.apexcharts-legend-text {
  color: #c8d5e5 !important;
}

.apexcharts-tooltip,
.apexcharts-xaxistooltip,
.apexcharts-yaxistooltip {
  background: rgba(10, 16, 23, 0.96) !important;
  border: 1px solid rgba(123, 143, 173, 0.18) !important;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.32) !important;
}

.chart-row {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.chart-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #dbe8f6;
  font-size: 0.92rem;
}

.chart-row-head strong {
  color: #fff;
}

.chart-bar-track {
  height: 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.chart-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #16c2a3, #4f7dff);
  box-shadow: 0 0 20px rgba(22, 194, 163, 0.26);
}

.balance-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.03);
}

.dark-office-alert {
  border: 1px solid rgba(123, 143, 173, 0.18);
  border-radius: 1rem;
  background: rgba(12, 18, 26, 0.86);
  color: #d7e3f0;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
}

.module-state {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
}

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

.detail-tile {
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
}

.detail-tile-warning {
  border: 1px solid rgba(255, 180, 77, 0.28);
  background: rgba(255, 180, 77, 0.08);
}

.detail-label {
  display: block;
  margin-bottom: 0.35rem;
  color: #8ea5bf;
  font-size: 0.8rem;
}

.detail-value {
  color: #eef6ff;
  font-weight: 600;
}

.mini-table td,
.mini-table th {
  padding: 0.65rem 0.75rem;
  font-size: 0.86rem;
}

.exchange-workspace-nav-card {
  border-color: rgba(79, 125, 255, 0.18);
  background: linear-gradient(135deg, rgba(79, 125, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.ledger-workspace-nav-card {
  border-color: rgba(255, 180, 77, 0.16);
  background: linear-gradient(135deg, rgba(255, 180, 77, 0.08), rgba(255, 255, 255, 0.02));
}

.exchange-workspace-nav-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.ledger-workspace-nav-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.exchange-workspace-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.ledger-workspace-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.exchange-workspace-nav .btn.active {
  background: rgba(79, 125, 255, 0.2);
  border-color: rgba(79, 125, 255, 0.38);
  color: #eef6ff;
  box-shadow: inset 0 0 0 1px rgba(79, 125, 255, 0.12);
}

.ledger-workspace-nav .btn.active {
  background: rgba(255, 180, 77, 0.2);
  border-color: rgba(255, 180, 77, 0.34);
  color: #fff4df;
  box-shadow: inset 0 0 0 1px rgba(255, 180, 77, 0.1);
}

.exchange-focus-card {
  border-color: rgba(22, 194, 163, 0.18);
}

.exchange-tool-card,
.exchange-guide-card {
  height: 100%;
}

.abcex-balances-card {
  align-self: flex-start;
}

.ledger-table-shell .table {
  margin-bottom: 0;
}

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

.exchange-table-wrap .table {
  width: 100%;
  table-layout: fixed;
}

.exchange-table-wrap .table th,
.exchange-table-wrap .table td {
  white-space: normal;
  vertical-align: top;
}

.exchange-cell {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.exchange-cell-main {
  color: #eef6ff;
  font-weight: 600;
  line-height: 1.35;
}

.exchange-cell-meta {
  color: #8ea5bf;
  font-size: 0.78rem;
  line-height: 1.4;
  word-break: break-word;
}

.exchange-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.exchange-action-stack {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: flex-start;
}

.exchange-action-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: flex-start;
}

.exchange-summary-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.mini-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mini-list-item {
  padding: 0.85rem 0.95rem;
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.03);
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.payout-detail-comment {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.mini-list-item-emphasis {
  border: 1px solid rgba(255, 180, 77, 0.28);
  background: rgba(255, 180, 77, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.provider-audit-summary-item {
  border: 1px solid rgba(123, 143, 173, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.provider-audit-summary-danger {
  border-color: rgba(255, 107, 125, 0.3);
  background: linear-gradient(135deg, rgba(255, 107, 125, 0.12), rgba(255, 255, 255, 0.03));
}

.provider-audit-summary-warning {
  border-color: rgba(255, 180, 77, 0.3);
  background: linear-gradient(135deg, rgba(255, 180, 77, 0.12), rgba(255, 255, 255, 0.03));
}

.provider-audit-summary-info {
  border-color: rgba(85, 168, 255, 0.24);
  background: linear-gradient(135deg, rgba(85, 168, 255, 0.1), rgba(255, 255, 255, 0.03));
}

.detail-focus-card {
  border-color: rgba(255, 180, 77, 0.24);
  background: linear-gradient(135deg, rgba(255, 180, 77, 0.08), rgba(255, 255, 255, 0.03));
}

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

.checklist-item {
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(123, 143, 173, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.checklist-item.is-complete {
  border-color: rgba(22, 194, 163, 0.2);
  background: rgba(22, 194, 163, 0.08);
}

.checklist-item.is-missing {
  border-color: rgba(255, 107, 125, 0.2);
  background: rgba(255, 107, 125, 0.08);
}

.checklist-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  color: #eef6ff;
}

.checklist-mark {
  width: 1.55rem;
  height: 1.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
}

.checklist-item.is-complete .checklist-mark {
  background: rgba(22, 194, 163, 0.2);
  color: #8cffdf;
}

.checklist-item.is-missing .checklist-mark {
  background: rgba(255, 107, 125, 0.2);
  color: #ffb3be;
}

.checklist-detail {
  margin-top: 0.45rem;
  color: #9bb0c8;
  font-size: 0.84rem;
  line-height: 1.45;
}

.modal.app-modal-active {
  display: block;
  background: rgba(7, 11, 17, 0.56);
}

.modal-backdrop.app-modal-backdrop {
  background: rgba(5, 10, 16, 0.7);
  backdrop-filter: blur(6px);
}

.modal-backdrop.app-modal-backdrop.show {
  opacity: 1;
}

.detail-toolbar {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.detail-filter {
  min-width: min(100%, 14rem);
}

.detail-counter-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.detail-counter {
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-card {
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.detail-counter-label {
  display: block;
  margin-bottom: 0.3rem;
  color: #8ea5bf;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.detail-counter-value {
  color: #eef6ff;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.security-panel {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.security-panel-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.security-panel-title {
  color: #8ea5bf;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.security-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.security-filter {
  min-width: 8rem;
}

.security-item {
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.security-item.is-lockout {
  background: rgba(255, 107, 125, 0.08);
  border-color: rgba(255, 107, 125, 0.18);
}

.security-item-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.security-item-title {
  color: #eef6ff;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.security-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  color: #8ea5bf;
  font-size: 0.82rem;
}

.security-item-subtext {
  margin-top: 0.45rem;
  color: #8ea5bf;
  font-size: 0.8rem;
}

.security-item-actions {
  margin-top: 0.8rem;
  display: flex;
  justify-content: flex-end;
}

.workspace-solo-col {
  flex: 0 0 100%;
  max-width: 100%;
}

@media (max-width: 1199.98px) {
  .exchange-side-stack {
    position: static;
  }

  .exchange-workspace-nav {
    gap: 0.45rem;
  }

  .exchange-workspace-nav .btn {
    width: 100%;
    justify-content: center;
  }

  .analytics-split {
    grid-template-columns: 1fr;
  }

  .compact-balance-toolbar {
    align-items: flex-start;
  }

  .balance-strip {
    justify-content: flex-start;
  }

  #layout-menu {
    transform: translateX(-110%);
    transition: transform 0.22s ease;
    z-index: 1081;
  }

  html.dark-office-menu-open #layout-menu {
    transform: translateX(0);
  }

  html.dark-office-menu-open .layout-overlay {
    display: block;
    opacity: 1;
  }

  .workspace-solo-col {
    flex-basis: 100%;
    max-width: 100%;
  }
}

@media (min-width: 1200px) {
  .exchange-side-stack {
    position: sticky;
    top: 6.25rem;
    align-self: flex-start;
  }
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, monospace;
}

@media (max-width: 767.98px) {
  #layout-navbar .navbar-nav-right {
    gap: 0.75rem;
    align-items: center !important;
  }

  #layout-navbar .navbar-nav {
    min-width: 0;
    flex: 1 1 auto;
  }

  #layout-navbar .text-glow {
    font-size: 0.96rem;
  }

  #layout-navbar .navbar-nav .fw-semibold.text-glow {
    display: none;
  }

  #workspaceLead {
    display: none;
  }

  #layout-navbar .toolbar {
    margin-left: 0 !important;
    flex-wrap: nowrap;
    gap: 0.45rem;
    align-items: center;
  }

  #layout-navbar .status-pill {
    min-width: 2.2rem;
    justify-content: center;
    padding: 0.5rem;
    font-size: 0;
  }

  #layout-navbar .status-pill::before {
    margin: 0;
  }

  #layout-navbar .mobile-icon-button {
    width: 2.35rem;
    height: 2.35rem;
    justify-content: center;
    padding: 0.45rem;
  }

  #layout-navbar .mobile-icon-button .btn-label {
    display: none;
  }

  #layout-navbar .mobile-icon-button .icon-base {
    margin: 0;
    font-size: 1rem;
  }

  #layout-navbar .mobile-icon-button .refresh-button-spinner {
    width: 0.95rem;
    height: 0.95rem;
  }

  #layout-navbar .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .order-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .orders-actions-compact {
    align-items: stretch;
  }

  .row-action-menu {
    width: 100%;
  }

  .row-action-menu summary {
    width: 100%;
  }

  .row-action-menu-panel {
    position: static;
    margin-top: 0.5rem;
    min-width: 0;
  }

  .row-action-menu-inline {
    flex-direction: column;
    align-items: stretch;
  }

  .section-search {
    width: 100%;
    min-width: 0;
  }

  .balance-chip {
    min-width: calc(50% - 0.5rem);
  }

  .exchange-table-wrap .table {
    table-layout: auto;
  }

  .ledger-workspace-nav .btn {
    flex: 1 1 100%;
  }
}
