:root {
  --primary: #004aae;
  --primary-dark: #003580;
  --primary-light: #e6f0ff;
  --accent: #00ad7a;
  --accent-dark: #008c62;
  --accent-light: #e6f9f3;
  --danger: #ef4444;
  --warning: #f59e0b;
  --purple: #8b5cf6;
  --pink: #ec4899;
  --app-bg: #f0f4f8;
  --app-text: #1a1a2e;
  --surface: #ffffff;
  --surface-muted: #f8fafc;
  --border-color: #e5e7eb;
  --muted-text: #6b7280;
  --field-bg: #ffffff;
  --field-border: #d1d5db;
  --table-hover: #f8fafc;
  --panel-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  --thead-bg: linear-gradient(135deg, var(--primary-light), #dbeafe);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Roboto", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  background: var(--app-bg);
  color: var(--app-text);
  height: 100vh;
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 260px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
  overflow-y: auto;
  z-index: 100;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
}

.sidebar-logo {
  padding: 24px 56px 24px 20px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.sidebar-logo h1 {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 2px;
}

.sidebar-logo span {
  color: var(--accent);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.sidebar-logo img {
  max-width: 160px;
  width: 100%;
  height: auto;
  display: inline-block;
}

.sidebar-logo svg {
  max-width: 190px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.sidebar-collapse-btn {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sidebar-collapse-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* Sidebar collapsed */
.sidebar-collapsed .sidebar {
  width: 72px;
}

.sidebar-collapsed .main {
  margin-left: 72px;
}

.sidebar-collapsed .sidebar-logo {
  padding: 16px 0 12px;
  text-align: center;
}

.sidebar-collapsed .sidebar-logo img {
  display: none;
}

.sidebar-collapsed .sidebar-logo h1,
.sidebar-collapsed .sidebar-logo span {
  display: none;
}

.sidebar-collapsed .sidebar-collapse-btn {
  right: 50%;
  transform: translateX(50%) rotate(180deg);
}

.sidebar-collapsed .sidebar-section {
  display: none;
}

.sidebar-collapsed .sidebar a {
  width: 48px;
  height: 48px;
  margin: 4px auto;
  justify-content: center;
  align-items: center;
  gap: 0;
  padding: 0;
  position: relative;
  border-left: 0;
  border-radius: 14px;
  overflow: visible;
}

.sidebar-collapsed .sidebar a .nav-label-wrap,
.sidebar-collapsed .sidebar a .nav-label,
.sidebar-collapsed .sidebar a .nav-subtitle,
.sidebar-collapsed .sidebar a .nav-badge {
  display: none !important;
}

.sidebar-collapsed .sidebar a.sidebar-has-short-label i {
  display: none;
}

.sidebar-collapsed .sidebar a .nav-short-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: currentColor;
}

.sidebar-collapsed .sidebar a i {
  width: auto;
  font-size: 16px;
}

.sidebar-collapsed .sidebar a.sidebar-item-card {
  width: 48px;
  height: 48px;
  margin: 4px auto;
  padding: 0;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(148, 163, 184, 0.12);
}

.sidebar-collapsed .sidebar a.active,
.sidebar-collapsed .sidebar a.sidebar-item-card.active {
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.32);
}

.sidebar-collapsed .sidebar a::after {
  content: attr(data-title);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: #101826;
  color: #fff;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
  z-index: 120;
}

.sidebar-collapsed .sidebar a:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(2px);
}

.sidebar-collapsed .sidebar-profile {
  width: 48px;
  margin: 12px auto 8px;
  padding: 6px;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.sidebar-collapsed .sidebar-profile .user-meta {
  display: none;
}

.sidebar-collapsed .sidebar-profile .sidebar-user {
  justify-content: center;
}

.sidebar-collapsed .user-avatar {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  flex: 0 0 40px;
  border-radius: 999px;
  padding: 0;
  line-height: 40px;
}

.sidebar-collapsed .sidebar-footer {
  padding: 14px 0 18px;
}

.sidebar-collapsed .sidebar-powered {
  display: none;
}

.sidebar-collapsed .theme-toggle,
.sidebar-collapsed .sidebar-logout {
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 12px;
}

.sidebar-collapsed .theme-toggle {
  justify-content: center;
}

.sidebar-collapsed .theme-toggle i,
.sidebar-collapsed .sidebar-logout i {
  margin: 0;
}

.sidebar-collapsed .sidebar-logout {
  justify-content: center;
}

.sidebar-collapsed .sidebar-logout span {
  display: none;
}

.sidebar-section {
  padding: 16px 20px 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 6px;
}

.sidebar a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  border-left: 4px solid transparent;
}

.sidebar a .nav-short-label {
  display: none;
}

.sidebar a.sidebar-item-card {
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  background: rgba(148, 163, 184, 0.12);
  border-radius: 12px;
  margin: 6px 14px;
  padding: 12px 12px;
  border-left: 0;
  position: relative;
}

.sidebar a.sidebar-item-card:hover {
  background: rgba(148, 163, 184, 0.2);
}

.sidebar a.sidebar-item-card.active {
  background: rgba(59, 130, 246, 0.16);
  border-left: 0;
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.35);
  color: #fff;
}

.sidebar a:hover {
  background: rgba(148, 163, 184, 0.12);
  color: #fff;
}

.sidebar a.active {
  background: rgba(59, 130, 246, 0.12);
  border-left-color: #3b82f6;
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.3);
  color: #fff;
}

.sidebar a i {
  width: 20px;
  text-align: center;
  font-size: 15px;
}

.sidebar a i.menu-dot {
  font-size: 8px;
}

.sidebar a .nav-label {
  white-space: nowrap;
}

.sidebar a .nav-label-wrap {
  display: flex;
  align-items: flex-start;
  text-align: left;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}


.sidebar a .nav-subtitle {
  font-size: 11px;
  color: #94a3b8;
  white-space: nowrap;
}

.sidebar a.sidebar-item-card .nav-label,
.sidebar a.sidebar-item-card .nav-subtitle {
  text-align: left;
}

.sidebar a .nav-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #6366f1;
  color: #fff;
  align-self: center;
}

.sidebar a.sidebar-item-card .nav-badge {
  align-self: flex-start;
}

.sidebar-group {
  max-height: 1000px;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.sidebar-group.collapsed {
  max-height: 0;
}

.sidebar-section.collapsible {
  cursor: pointer;
  user-select: none;
}

.sidebar-section.collapsible::after {
  content: "\25BE";
  float: right;
  transition: transform 0.3s ease;
}

.sidebar-section.collapsible.collapsed::after {
  transform: rotate(-90deg);
}

/* Main */
.main {
  margin-left: 260px;
  padding: 28px 32px;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
}

section {
  display: none;
}

section.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Page Header */
.page-header {
  margin-bottom: 24px;
}

.page-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.page-header-row.align-end {
  justify-content: flex-end;
}

.source-name-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 0;
}


.page-header h2 {
  font-size: 28px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.page-header p {
  color: #6b7280;
  font-size: 15px;
}

.page-header-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-start;
}

#incoming-header,
#inbound-header,
#outbound-header,
#other-integrations-header,
#integration-header,
#endpoint-header,
#routing-header,
#rules-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

#incoming-header .page-header-actions,
#inbound-header .page-header-actions,
#outbound-header .page-header-actions,
#other-integrations-header .page-header-actions,
#integration-header .page-header-actions,
#endpoint-header .page-header-actions,
#routing-header .page-header-actions,
#rules-header .page-header-actions {
  margin-top: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

#incoming-header #filterToggleBtn,
#inbound-header #inboundFilterToggleBtn,
#outbound-header #outboundFilterToggleBtn,
#other-integrations-header #otherIntegrationFilterToggleBtn,
#integration-header #integrationFilterToggleBtn,
#endpoint-header #endpointFilterToggleBtn,
#routing-header #routingFilterToggleBtn,
#rules-header #rulesFilterToggleBtn {
  order: 1;
}

#incoming-header #addSourceBtn,
#inbound-header #addInboundBtn,
#outbound-header #addOutboundBtn,
#other-integrations-header #addOtherIntegrationBtn,
#integration-header #addIntegrationBtn,
#endpoint-header #addEndpointBtn,
#routing-header #addRoutingBtn,
#rules-header #addRuleBtn {
  order: 2;
}

@media (max-width: 768px) {
  #incoming-header,
  #inbound-header,
  #outbound-header,
  #other-integrations-header,
  #integration-header,
  #endpoint-header,
  #routing-header,
  #rules-header {
    flex-direction: column;
  }

  #incoming-header .page-header-actions,
  #inbound-header .page-header-actions,
  #outbound-header .page-header-actions,
  #other-integrations-header .page-header-actions,
  #integration-header .page-header-actions,
  #endpoint-header .page-header-actions,
  #routing-header .page-header-actions,
  #rules-header .page-header-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* KPI Cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.kpi-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  text-align: center;
}

.kpi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.kpi-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.kpi-card.accent::before {
  background: linear-gradient(90deg, var(--accent), #10b981);
}

.kpi-card.warning::before {
  background: linear-gradient(90deg, var(--warning), #fbbf24);
}

.kpi-card.purple::before {
  background: linear-gradient(90deg, var(--purple), #a78bfa);
}

.kpi-label {
  font-size: 13px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.kpi-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
}

.kpi-card.accent .kpi-value {
  color: var(--accent);
}

.kpi-card.warning .kpi-value {
  color: var(--warning);
}

.kpi-card.purple .kpi-value {
  color: var(--purple);
}

.kpi-meta {
  font-size: 13px;
  color: #9ca3af;
  margin-top: 4px;
}

.kpi-card.remaining {
  grid-column: span 1;
  /* or span 2 if you want it bigger */
}

/* Content Grid */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 24px;
}

.content-grid.full-width {
  grid-template-columns: 1fr;
}

.content-grid.equal {
  grid-template-columns: 1fr 1fr;
}

.content-grid > .card {
  min-width: 0;
}

@media (max-width: 1200px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
}

/* Cards */
.card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a2e;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-title i {
  color: var(--primary);
}

/* Tables */
.table-container {
  overflow-x: auto;
  max-width: 100%;
  padding-bottom: 8px;
  scrollbar-color: #94a3b8 #e2e8f0;
  scrollbar-width: thin;
}

.table-container::-webkit-scrollbar {
  height: 10px;
}

.table-container::-webkit-scrollbar-track {
  background: #e2e8f0;
  border-radius: 999px;
}

.table-container::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 999px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

table th {
  background: linear-gradient(135deg, var(--primary-light), #dbeafe);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 16px;
  text-align: left;
}

table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e5e7eb;
}

.table-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.table-actions .btn.btn-sm {
  width: 40px;
  height: 40px;
  padding: 0;
  justify-content: center;
  border-radius: 10px;
}

.table-actions .btn.btn-sm i {
  font-size: 15px;
  line-height: 1;
}

.table-actions .btn[data-action="edit-source-name"] {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-color: transparent;
}

.table-actions .btn[data-action="edit-source-name"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 74, 174, 0.3);
}

#incoming table th,
#incoming table td,
#inbound-channels table th,
#inbound-channels table td,
#outbound-channels table th,
#outbound-channels table td,
#other-integrations table th,
#other-integrations table td,
#all-transactions table th,
#all-transactions table td,
#integration-sources table th,
#integration-sources table td,
#endpoint-sources table th,
#endpoint-sources table td,
#source-routing-configuration table th,
#source-routing-configuration table td,
#transaction-routing-rules table th,
#transaction-routing-rules table td {
  text-align: center;
}

/* Keep date values in one line in routing/rules list tables */
#source-routing-configuration #routing-table-body td:nth-child(9),
#source-routing-configuration #routing-table-body td:nth-child(10),
#transaction-routing-rules #rules-table-body td:nth-child(7),
#transaction-routing-rules #rules-table-body td:nth-child(8) {
  white-space: nowrap;
}

table tbody tr {
  cursor: pointer;
  transition: background 0.15s;
}

table tbody tr:hover {
  background: #f8fafc;
}

.table-lg th {
  padding: 18px 20px;
  font-size: 13px;
}

.table-lg td {
  padding: 18px 20px;
  font-size: 15px;
}

.table-scroll {
  overflow-x: auto;
}

  .table-wide {
    min-width: 1200px;
  }


.swift-table th,
.swift-table td,
#allTransactionsTable th,
#allTransactionsTable td {
  text-align: center;
}


/* All Transactions Filters */
#all-transactions {
  font-family: "Roboto", sans-serif;
}

#all-transactions input,
#all-transactions select,
#all-transactions button,
#all-transactions textarea,
#all-transactions table {
  font-family: "Roboto", sans-serif;
}

.page-breadcrumb {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 6px;
}

.page-breadcrumb span {
  color: #cbd5f5;
  padding: 0 6px;
}

.page-subtitle {
  margin: 6px 0 0;
  font-size: 14px;
  color: #94a3b8;
}

.tx-hub-card {
  border: 1px solid #e5eaf3;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.tx-hub-filters {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 6px 4px 12px;
  border-bottom: 1px solid #e5eaf3;
}

.tx-hub-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: end;
}

.tx-hub-block,
.tx-hub-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tx-hub-row > .tx-hub-block {
  flex: 0 1 210px;
  min-width: 210px;
}

.tx-hub-row > .tx-hub-field {
  flex: 1 1 220px;
  min-width: 220px;
}

.tx-hub-block label,
.tx-hub-field label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #94a3b8;
}

.tx-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tx-chip {
  border: 1px solid #d9e2f4;
  background: #f8fafc;
  color: #334155;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.tx-chip-active {
  background: #e8f0ff;
  color: #1d4ed8;
  border-color: #93c5fd;
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.08);
}

.tx-chip:hover {
  border-color: #94a3b8;
}

.tx-hub-field select,
.tx-hub-field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d7e0ef;
  border-radius: 10px;
  font-size: 14px;
  background-color: #fff;
  outline: none;
  transition: border-color 0.2s ease;
}

.tx-hub-field select:focus,
.tx-hub-field input:focus {
  border-color: var(--primary);
}

.tx-hub-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-left: auto;
  align-self: end;
}

.tx-hub-meta {
  display: flex;
  justify-content: flex-end;
  color: #94a3b8;
  font-size: 12px;
}

.tx-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 10px 12px;
}

.tx-table-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tx-table-title i {
  color: #64748b;
  font-size: 14px;
}

.tx-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  background: #f1f5f9;
  color: #1e293b;
}

.tx-pill.tx-module {
  background: #dbeafe;
  color: #1d4ed8;
  border: 1px solid #93c5fd;
}

.tx-owner {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #eef2ff;
  color: #4338ca;
}

.tx-owner--t24 {
  background: #dbeafe;
  color: #1d4ed8;
}

.tx-owner--fti {
  background: #dbeafe;
  color: #1d4ed8;
}

.tx-owner--bie {
  background: #dcfce7;
  color: #166534;
}

.tx-owner--inc {
  background: #ede9fe;
  color: #6d28d9;
}

.tx-owner--ppa {
  background: #fee2e2;
  color: #be123c;
}

.tx-owner--dep {
  background: #e0f2fe;
  color: #0369a1;
}

.tx-owner--interbank {
  background: #d1fae5;
  color: #065f46;
}

.tx-owner--fa {
  background: #fef3c7;
  color: #92400e;
}

.tx-owner--neutral {
  background: #e2e8f0;
  color: #1e293b;
}

.tx-date {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}

.tx-time {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 4px;
}

.tx-hub-table .table-lg th,
.tx-hub-table .table-lg td {
  padding: 16px 18px;
}

.tx-hub-table .table-lg th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
}


/* SWIFT Module */
.swift-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.swift-header-actions {
  margin-top: 0;
  align-items: center;
  gap: 10px;
}

.swift-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
  justify-content: center;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.sidebar-collapsed .swift-kpi-grid {
  max-width: 100%;
}

.swift-kpi-card {
  min-height: 112px;
  padding: 18px 20px;
}

.swift-kpi-value {
  font-size: 22px;
  line-height: 1.1;
}

.swift-kpi-label {
  min-height: 20px;
  font-size: 13px;
}

@media (max-width: 600px) {
  .swift-kpi-grid {
    grid-template-columns: 1fr;
  }
}

.swift-kpi-card {
  border: 1px solid #e5eaf3;
  border-radius: 14px;
  background: #ffffff;
  padding: 14px 16px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.swift-kpi-card.active {
  background: #7c3aed;
  color: #ffffff;
  border-color: #6d28d9;
  box-shadow: 0 8px 18px rgba(124, 58, 237, 0.25);
}

.swift-kpi-card:hover {
  transform: translateY(-2px);
}

.swift-kpi-icon {
  font-size: 16px;
  color: #475569;
}

.swift-kpi-card.active .swift-kpi-icon {
  color: #ffffff;
}

.swift-kpi-value {
  font-size: 20px;
  font-weight: 700;
}

.swift-kpi-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

.swift-kpi-card.active .swift-kpi-label {
  color: rgba(255, 255, 255, 0.85);
}

.swift-filter-card {
  border: 1px solid #e5eaf3;
  padding: 16px 18px;
  margin-bottom: 16px;
}

.swift-filter-row {
  display: grid;
  gap: 12px;
}

.swift-filter-row-top {
  grid-template-columns: minmax(220px, 1.2fr) repeat(5, minmax(160px, 0.9fr));
  align-items: end;
  margin-bottom: 14px;
}

.swift-filter-row-bottom {
  grid-template-columns: minmax(220px, 1.1fr) repeat(4, minmax(160px, 0.9fr)) auto;
  align-items: end;
}

.swift-search {
  position: relative;
}

.swift-search i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
}

.swift-search input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border: 1px solid #d7e0ef;
  border-radius: 10px;
  font-size: 14px;
}

.swift-filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.swift-filter-field label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
}

.swift-filter-field input,
.swift-filter-field select {
  padding: 9px 10px;
  border: 1px solid #d7e0ef;
  border-radius: 10px;
  font-size: 13px;
}

.swift-inline-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.swift-inline-search input {
  flex: 1 1 auto;
  min-width: 0;
}

.swift-inline-search .btn {
  white-space: nowrap;
  height: 36px;
  padding: 0 14px;
}

.swift-range-toggle {
  display: flex;
  gap: 8px;
}

.swift-range-btn {
  border: 1px solid #d7e0ef;
  background: #f8fafc;
  color: #475569;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.swift-range-btn.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.swift-filter-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

@media (max-width: 1400px) {
  .swift-filter-row-top,
  .swift-filter-row-bottom {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  }

  .swift-filter-actions {
    justify-content: flex-start;
  }
}

.swift-table-card .tx-table-header {
  padding: 16px 8px 12px;
}

.swift-table-meta {
  font-size: 12px;
  color: #94a3b8;
}

.swift-detail-view {
  display: none;
  padding: 18px 20px 22px;
  gap: 18px;
}

.swift-detail-view.active {
  display: flex;
  flex-direction: column;
}

/* Combined selector so display:none wins over .integration-view-header-breadcrumb { display:flex } */
.integration-view-header-breadcrumb.swift-detail-breadcrumb-outside {
  display: none;
  margin: 0 0 22px;
}

.integration-view-header-breadcrumb.swift-detail-breadcrumb-outside.active {
  display: flex;
}

.integration-view-header-breadcrumb.swift-detail-breadcrumb-outside.active + .swift-detail-view {
  margin-top: 12px;
}

.swift-detail-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.swift-detail-ref {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  color: #64748b;
}

.swift-detail-ref strong {
  font-size: 14px;
  color: #1e293b;
}

.swift-detail-status {
  margin-left: auto;
  background: #e0f2fe;
  color: #0369a1;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
}

.swift-detail-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid #e5eaf3;
}

.swift-detail-tab {
  background: transparent;
  border: none;
  padding: 10px 12px;
  font-weight: 600;
  color: #64748b;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}

.swift-detail-tab.active {
  color: #1d4ed8;
  border-bottom-color: #1d4ed8;
}

.swift-detail-panel {
  display: none;
  gap: 16px;
  flex-direction: column;
}

.swift-detail-panel.active {
  display: flex;
}

.swift-detail-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.swift-event-print {
  margin-left: auto;
}

.swift-detail-panel-header h3 {
  margin: 0;
  font-size: 16px;
}

.swift-event-log {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.swift-event-item {
  display: grid;
  grid-template-columns: 16px minmax(160px, 200px) 1fr;
  gap: 16px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid #eef2f7;
}

.swift-event-item:last-child {
  border-bottom: none;
}

.swift-event-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 6px;
}

.swift-event-time {
  font-size: 12px;
  color: #94a3b8;
}

.swift-event-title {
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 4px;
}

.swift-event-desc {
  font-size: 13px;
  color: #64748b;
}

.swift-request-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.swift-request-card {
  border: 1px solid #e5eaf3;
  border-radius: 12px;
  padding: 14px;
  background: #f8fafc;
}

.swift-request-card h4 {
  margin: 0 0 10px;
  font-size: 14px;
  color: #1e293b;
}

.swift-request-card pre {
  margin: 0;
  white-space: pre-wrap;
  font-size: 12px;
  color: #475569;
}

.swift-rr-header {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 1fr;
  gap: 12px;
  padding: 12px 16px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
  border-bottom: 1px solid #e5eaf3;
  background: #f8fafc;
  border-radius: 12px;
}

.swift-rr-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 0 6px;
}

.swift-rr-item {
  border: 1px solid #e5eaf3;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}

.swift-rr-row {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
}

.swift-rr-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #0f172a;
}

.swift-rr-toggle {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 12px;
}

.swift-rr-toggle i {
  transition: transform 0.2s ease;
}

.swift-rr-row.active .swift-rr-toggle i {
  transform: rotate(90deg);
}

.swift-rr-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.swift-rr-pill.req {
  background: #fde68a;
  color: #92400e;
}

.swift-rr-pill.res {
  background: #dbeafe;
  color: #1e40af;
}

.swift-rr-pill.system {
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 600;
}

.swift-rr-time {
  font-size: 13px;
  color: #64748b;
}

.swift-rr-actions {
  display: none;
}

.swift-rr-content {
  display: none;
  background: #0f172a;
  color: #e2e8f0;
  padding: 16px;
}

.swift-rr-content-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 10px;
}

.swift-rr-action-btn {
  border: 1px solid rgba(226, 232, 240, 0.3);
  background: rgba(15, 23, 42, 0.6);
  color: #e2e8f0;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.swift-rr-action-btn:hover {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(226, 232, 240, 0.5);
}

.swift-rr-content.active {
  display: block;
}

.swift-rr-content pre {
  margin: 0;
  white-space: pre-wrap;
  font-size: 12px;
}

.swift-detail-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.swift-summary-card {
  border: 1px solid #e5eaf3;
  border-radius: 16px;
  padding: 16px 18px;
  background: #ffffff;
}

.swift-summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.swift-summary-header h3 {
  margin: 0;
  font-size: 15px;
  color: #1e293b;
}

.swift-summary-toggle {
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
}

.swift-summary-toggle i {
  transition: transform 0.2s ease;
}

.swift-summary-toggle.active i {
  transform: rotate(180deg);
}

.swift-collapsible.collapsed {
  display: none;
}

.swift-summary-block {
  margin-top: 12px;
}

.swift-summary-title {
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 10px;
}

.swift-summary-block table {
  width: 100%;
  table-layout: fixed;
}

.swift-summary-block th,
.swift-summary-block td {
  text-align: center;
  vertical-align: middle;
}

.swift-summary-block th:first-child,
.swift-summary-block td:first-child {
  text-align: left;
}

.swift-summary-block th:last-child,
.swift-summary-block td:last-child {
  text-align: center;
}

.swift-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  background: #0b4aa2 !important;
  border-color: #0b4aa2 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 14px rgba(11, 74, 162, 0.18);
}

.swift-view-btn:hover {
  background: #093b86 !important;
  border-color: #093b86 !important;
}

.swift-view-btn:active {
  transform: translateY(1px);
}

.swift-message-detail {
  display: grid;
  gap: 14px;
}

.swift-detail-section {
  background: #ffffff;
  border: 1px solid #e5eaf3;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
  display: grid;
  gap: 12px;
}

.swift-detail-section-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1d4ed8;
}

.swift-detail-section-title i {
  font-size: 12px;
}

.swift-message-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.swift-message-row label {
  display: block;
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.swift-all-messages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.swift-message-card {
  border: 1px solid #e5eaf3;
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
}

 .swift-message-card-header {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 12px;
   padding: 12px 14px;
   background: #f8fafc;
   border-bottom: 1px solid #e5eaf3;
 }

 .swift-message-title {
   display: flex;
   align-items: center;
   gap: 8px;
   font-weight: 600;
   color: #1e293b;
 }

 .swift-message-actions {
   display: flex;
   align-items: center;
   gap: 8px;
 }


.swift-message-toggle {
  border: 1px solid #e5eaf3;
  background: #ffffff;
  color: #64748b;
  width: 34px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.swift-message-card.collapsed .swift-message-toggle i {
  transform: rotate(-90deg);
}

.swift-message-card-body {
  background: #0f172a;
  color: #e2e8f0;
  padding: 14px;
}

.swift-message-card-body pre {
  margin: 0;
  white-space: pre-wrap;
  font-size: 12px;
  max-height: 260px;
  overflow: auto;
}

.swift-message-card.collapsed .swift-message-card-body {
  display: none;
}

.swift-field {
  border: 1px solid #e5eaf3;
  border-radius: 10px;
  padding: 10px 12px;
  background: #f8fafc;
  color: #1e293b;
  font-size: 13px;
}

.swift-field.swift-field-editable {
  background: #ffffff;
  border-color: #93c5fd;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
  outline: none;
}

.swift-owner {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.swift-owner--t24 {
  background: #dcfce7;
  color: #65164f;
}

.swift-owner--fti {
  background: #dbeafe;
  color: #1d4ed8;
}

.swift-owner--bie {
  background: #dcfce7;
  color: #166534;
}

.swift-owner--inc {
  background: #ede9fe;
  color: #6d28d9;
}

.swift-owner--ppa {
  background: #fee2e2;
  color: #be123c;
}

.swift-owner--dep {
  background: #e0f2fe;
  color: #0369a1;
}

.swift-owner--interbank {
  background: #d1fae5;
  color: #065f46;
}

.swift-owner--fa {
  background: #fef3c7;
  color: #92400e;
}

.swift-owner--neutral {
  background: #e2e8f0;
  color: #1e293b;
}

.swift-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.swift-status i {
  font-size: 11px;
  line-height: 1;
}

.swift-status.ack {
  background: #dcfce7;
  color: #166534;
}

.swift-status.received {
  background: #e0f2fe;
  color: #0369a1;
}

.swift-status.submitted {
  background: #fef9c3;
  color: #a16207;
}

.swift-status.transmitted {
  background: #dbeafe;
  color: #1d4ed8;
}

.swift-status.nack {
  background: #fee2e2;
  color: #b91c1c;
}

.swift-status.pending {
  background: #fef9c3;
  color: #a16207;
}

.swift-status.transform {
  background: #fff1d5;
  color: #b45309;
}

.swift-status.duplicate {
  background: #ede9fe;
  color: #6d28d9;
}

.swift-status.rejected {
  background: #ffe4e6;
  color: #be123c;
}

.swift-status.neutral {
  background: #e2e8f0;
  color: #475569;
}

@media (max-width: 1200px) {
  .swift-filter-row-top,
  .swift-filter-row-bottom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .swift-header {
    flex-direction: column;
  }

  .swift-filter-row-top,
  .swift-filter-row-bottom {
    grid-template-columns: 1fr;
  }

  .swift-filter-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

body.theme-dark .swift-kpi-card {
  background: #1e293b;
  border-color: #2a354a;
  color: #e2e8f0;
}

body.theme-dark .swift-kpi-card.active {
  background: #6d28d9;
  border-color: #7c3aed;
}

body.theme-dark .swift-filter-card {
  background: #1e293b;
  border-color: #2a354a;
}

body.theme-dark .swift-filter-field input,
body.theme-dark .swift-filter-field select,
body.theme-dark .swift-search input {
  background: #0f172a;
  border-color: #2a354a;
  color: #e2e8f0;
}

body.theme-dark .swift-range-btn {
  background: #0f172a;
  border-color: #2a354a;
  color: #cbd5e1;
}

body.theme-dark .swift-range-btn.active {
  background: #2563eb;
  border-color: #2563eb;
}

@media (max-width: 1200px) {
  .tx-hub-row {
    gap: 12px;
  }

  .tx-hub-actions {
    justify-content: flex-start;
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .tx-hub-row > .tx-hub-block,
  .tx-hub-row > .tx-hub-field {
    flex-basis: 100%;
    min-width: 100%;
  }

  .tx-hub-actions {
    width: 100%;
    flex-direction: column;
  }
}

.all-tx-filters {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.filter-row {
  display: flex;
  width: 100%;
}

.filter-search {
  position: relative;
  width: 100%;
}

.filter-search i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
}

.filter-search input {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border: 1px solid #d7e0ef;
  border-radius: 12px;
  font-size: 14px;
  background: #fff;
  outline: none;
  transition: border-color 0.2s ease;
}

.filter-search input:focus {
  border-color: var(--primary);
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-field label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.filter-field select,
.filter-field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d7e0ef;
  border-radius: 12px;
  font-size: 14px;
  background-color: #fff;
  outline: none;
  transition: border-color 0.2s ease;
}

.filter-field select {
  padding-right: 40px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  cursor: pointer;
}

.filter-field select:focus,
.filter-field input:focus {
  border-color: var(--primary);
}

.filter-field select:hover {
  border-color: #9ca3af;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23004AAE' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.filter-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #64748b;
  font-size: 14px;
}

.all-tx-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.all-tx-status.ack {
  background: #dcfce7;
  color: #166534;
}

.all-tx-status.submitted {
  background: #fef9c3;
  color: #a16207;
}

.all-tx-status.transmitted {
  background: #dbeafe;
  color: #1d4ed8;
}

.all-tx-status.nack {
  background: #fee2e2;
  color: #b91c1c;
}

.all-tx-status.pending {
  background: #fef9c3;
  color: #a16207;
}

.all-tx-status.transform {
  background: #fff1d5;
  color: #b45309;
}

.all-tx-status.duplicate {
  background: #ede9fe;
  color: #6d28d9;
}

.all-tx-status.rejected {
  background: #ffe4e6;
  color: #be123c;
}

.all-tx-status.neutral {
  background: #e2e8f0;
  color: #475569;
}

.tx-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.tx-detail-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tx-detail-title h3 {
  margin: 0;
  font-size: 20px;
  color: #1e293b;
}

.tx-detail-card {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 16px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.tx-detail-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
  flex-wrap: wrap;
}

.tx-detail-card-header h4 {
  margin: 0;
  font-size: 20px;
  color: #1f2937;
  font-weight: 700;
}

.tx-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 26px;
}

.tx-detail-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tx-field-label,
.tx-detail-item span {
  font-size: 14px;
  color: #4a6487;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}

.tx-readonly-value,
.tx-detail-item strong {
  min-height: 40px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #f8fafc;
  padding: 10px 12px;
  font-size: 15px;
  line-height: 1.35;
  color: #111827;
  display: flex;
  align-items: center;
}

.tx-repair-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tx-detail-card-header .btn.btn-sm {
  min-height: 40px;
  padding: 10px 18px;
  border-radius: 12px;
}

.tx-field-control,
.tx-repair-input {
  width: 100%;
  min-height: 40px;
  border: 1px solid #9ca3af;
  border-radius: 10px;
  background: #fff;
  padding: 10px 12px;
  font-size: 16px;
  color: #111827;
  font-family: "Roboto", sans-serif;
}

.tx-field-control:focus,
.tx-repair-input:focus {
  outline: none;
  border-color: #004aae;
  box-shadow: 0 0 0 3px rgba(0, 74, 174, 0.12);
}

.tx-repair-input[type="date"] {
  letter-spacing: 0.2px;
}

.mapping-embed-card {
  padding: 0;
  overflow: hidden;
}

.mapping-embed-card .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 0;
}

.mapping-upload-btn {
  min-height: 36px;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid #cbd5f5;
  background: #eef2ff;
  color: #1e3a8a;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.2px;
  cursor: pointer;
}

.mapping-upload-btn:hover {
  filter: brightness(0.98);
}

.mtnew-shell {
  padding: 0;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}


.mtnew-module-group {
  display: flex;
  align-items: center;
  border: 1px solid #d7e0ef;
  border-radius: 10px;
  overflow: hidden;
  height: 36px;
  background: #f8fafc;
}

.mtnew-module-label {
  padding: 0 12px;
  font-size: 11px;
  font-weight: 700;
  color: #9aa2b1;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #f1f5f9;
  border-right: 1px solid #d7e0ef;
  display: flex;
  align-items: center;
  height: 100%;
  white-space: nowrap;
}

.mtnew-module-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.mtnew-module-select {
  height: 100%;
  padding: 0 34px 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: #0b4aa2;
  background: #ffffff;
  border: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: none;
  cursor: pointer;
  outline: none;
  min-width: 160px;
}

.mtnew-module-select:focus {
  background: #f0f7ff;
}

.mtnew-module-select:hover {
  background-image: none !important;
}

.mtnew-module-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #0b4aa2;
  font-size: 11px;
}

.mtnew-standard-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 36px;
}

.mtnew-standard-label .mtnew-lbl {
  font-size: 10px;
  color: #9aa2b1;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mtnew-standard-label .mtnew-val {
  font-size: 13px;
  font-weight: 700;
  color: #0b4aa2;
  margin-top: 2px;
}

.mtnew-card {
  background: #ffffff;
}

.mtnew-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid #e5e7eb;
  gap: 12px;
  flex-wrap: wrap;
}

.mtnew-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #0b4aa2;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mtnew-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mtnew-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  cursor: pointer;
  white-space: nowrap;
}

.mtnew-upload-btn input {
  display: none;
}

.mtnew-upload-status {
  display: none;
  margin: 10px 20px 0;
  padding: 8px 14px;
  border-radius: 8px;
  background: #ecfdf3;
  border: 1px solid #a7f3d0;
  font-size: 12px;
  color: #047857;
  align-items: center;
  gap: 8px;
}

.mtnew-module-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid;
  letter-spacing: 0.04em;
}

.mtnew-badge-swift {
  background: #e8f0fe;
  border-color: #a8c4f5;
  color: #1a4fa8;
}

.mtnew-badge-visa {
  background: #fff3e0;
  border-color: #f5c57a;
  color: #8a5000;
}

.mtnew-badge-fed {
  background: #eafaf4;
  border-color: #a3dfc4;
  color: #0a4a30;
}

.mtnew-badge-prop {
  background: #f3e8ff;
  border-color: #c4a8f5;
  color: #5a1fa8;
}

.mtnew-type-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  padding: 16px 20px 14px;
}

.mtnew-type-col {
  flex: 1;
}

.mtnew-type-label {
  font-size: 10px;
  color: #9aa2b1;
  margin-bottom: 6px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mtnew-type-select-wrap {
  position: relative;
}

.mtnew-type-select {
  width: 100%;
  padding: 9px 30px 9px 12px;
  border: 1px solid #d7e0ef;
  border-radius: 10px;
  background: #ffffff;
  color: #1e293b;
  font-size: 13px;
  font-weight: 600;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: none;
  cursor: pointer;
}

.mtnew-type-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.12);
}

.mtnew-type-select:hover,
.mtnew-type-select:active,
.mtnew-type-select:focus {
  background-image: none !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 0 0 !important;
}

#mapping-transformation-new .mtnew-type-select:hover,
#mapping-transformation-new .mtnew-type-select:active,
#mapping-transformation-new .mtnew-type-select:focus {
  background-image: none !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 0 0 !important;
}

.mtnew-select-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #94a3b8;
  font-size: 11px;
}

.mtnew-arrow-mid {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b82f6;
  font-size: 18px;
}

.mtnew-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #e5e7eb;
}

.mtnew-panel {
  display: flex;
  flex-direction: column;
  min-height: 360px;
}

.mtnew-panel + .mtnew-panel {
  border-left: 1px solid #e5e7eb;
}

.mtnew-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
}

.mtnew-panel-title {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}

.mtnew-add-field-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid #d7e0ef;
  background: #ffffff;
  color: #1d4ed8;
  cursor: pointer;
}

.mtnew-add-field-btn:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.mtnew-add-form {
  display: none;
  padding: 10px 14px;
  border-bottom: 1px solid #eef2f7;
  background: #f8fafc;
}

.mtnew-add-form-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.mtnew-add-form-row input[type="text"] {
  flex: 1;
  padding: 7px 10px;
  font-size: 12px;
  border: 1px solid #d7e0ef;
  border-radius: 8px;
  background: #ffffff;
  color: #1e293b;
  font-family: "Roboto", sans-serif;
}

.mtnew-add-form-row select {
  padding: 7px 9px;
  font-size: 12px;
  border: 1px solid #d7e0ef;
  border-radius: 8px;
  background: #ffffff;
  color: #1e293b;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: none !important;
}

.mtnew-save-btn {
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid #a7f3d0;
  background: #ecfdf3;
  color: #047857;
  cursor: pointer;
  white-space: nowrap;
}

.mtnew-cancel-btn {
  padding: 7px 10px;
  font-size: 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  cursor: pointer;
}

.mtnew-field-list {
  padding: 10px 14px;
  flex: 1;
  overflow-y: auto;
  max-height: 360px;
}

.mtnew-field-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.mtnew-field-box {
  flex: 1;
  padding: 7px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  font-size: 12px;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mtnew-field-box.mtnew-map-field {
  cursor: pointer;
}

.mtnew-field-box.mtnew-selected {
  outline: 2px solid #3b82f6;
  background: #e8f2ff;
}

.mtnew-preview-wrap {
  padding: 16px 20px 0;
}

.mtnew-preview-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
}

.mtnew-preview-note {
  font-size: 11px;
  color: #6b7280;
  margin-top: 8px;
}

.mtnew-table-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.mtnew-mapping-table,
.mtnew-saved-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
}

.mtnew-mapping-table th,
.mtnew-saved-table th {
  background: linear-gradient(180deg, #eaf2ff 0%, #dbeafe 100%);
  color: #1e3a8a;
  padding: 12px 14px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  border-bottom: 1px solid #e2e8f0;
}

.mtnew-mapping-table td,
.mtnew-saved-table td {
  padding: 12px 14px;
  text-align: center;
  color: #1f2937;
  border-bottom: 1px solid #edf2f7;
  font-size: 12px;
}

.mtnew-mapping-table tr:last-child td,
.mtnew-saved-table tr:last-child td {
  border-bottom: none;
}

.mtnew-mapping-table tbody tr:hover,
.mtnew-saved-table tbody tr:hover {
  background: #f8fafc;
}

.mtnew-section-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  margin: 16px 20px 20px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}

.mtnew-mapping-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.mtnew-mapping-toolbar label {
  font-weight: 600;
  color: #1f2937;
  font-size: 12px;
}

.mtnew-mapping-toolbar input {
  min-width: 240px;
  flex: 1 1 240px;
  padding: 9px 12px;
  border: 1px solid #d7e0ea;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  font-size: 12px;
}

.mtnew-mapping-toolbar button {
  padding: 9px 16px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #4f9cb0 0%, #2e7f93 100%);
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(46, 127, 147, 0.25);
  font-size: 12px;
}

.mtnew-mapping-toolbar button:hover {
  filter: brightness(1.05);
}

.mtnew-saved-title {
  font-weight: 700;
  color: #1f2937;
  margin-top: 6px;
  font-size: 12px;
}

.mtnew-action-btn {
  background: #2f6fd3;
  color: #ffffff;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.mtnew-action-btn:hover {
  filter: brightness(1.05);
}

.mtnew-view-btn {
  background: linear-gradient(180deg, #0b4bb3 0%, #0a3e99 100%);
  box-shadow: 0 14px 30px rgba(12, 63, 153, 0.35);
}

.mtnew-delete-btn {
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 14px 30px rgba(220, 38, 38, 0.35);
}

.mtnew-icon-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 10px;
}

.mtnew-icon-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.mtnew-field-box.mtnew-mandatory {
  border-left: 3px solid #10b981;
}

.mtnew-field-box.mtnew-manual {
  background: #fffbeb;
  border-color: #fcd34d;
  color: #92400e;
}

.mtnew-field-status {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 999px;
  flex-shrink: 0;
  font-weight: 700;
}

.mtnew-field-status.M {
  background: #ecfdf3;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.mtnew-field-status.O {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fdba74;
}

.mtnew-del-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mtnew-count-bar {
  padding: 6px 14px;
  font-size: 11px;
  color: #94a3b8;
  border-top: 1px solid #f1f5f9;
  background: #f8fafc;
}

.mtnew-std-tag {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
}

.mtnew-std-iso {
  background: #e8f0fe;
  border: 1px solid #a8c4f5;
  color: #1a4fa8;
}

.mtnew-std-mt {
  background: #f3e8ff;
  border: 1px solid #c4a8f5;
  color: #5a1fa8;
}

.mtnew-search-bar {
  padding: 10px 14px 6px;
}

.mtnew-search-bar input {
  width: 100%;
  padding: 7px 10px;
  font-size: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  color: #1e293b;
}

.mtnew-search-bar input:focus {
  outline: none;
  border-color: #3b82f6;
}

.mtnew-no-data {
  text-align: center;
  padding: 40px 20px;
  color: #b0b8c5;
  font-size: 12px;
  line-height: 1.6;
}

.mtnew-no-data-icon {
  font-size: 30px;
  margin-bottom: 10px;
  display: block;
}

@media (max-width: 1100px) {
  .mtnew-type-row {
    grid-template-columns: 1fr;
  }

  .mtnew-panels {
    grid-template-columns: 1fr;
  }

  .mtnew-panel + .mtnew-panel {
    border-left: none;
    border-top: 1px solid #e5e7eb;
  }
}

body.theme-dark .mtnew-shell {
  border-color: #2a354a;
}

body.theme-dark .mtnew-topbar,
body.theme-dark .mtnew-card {
  background: #0f172a;
}

body.theme-dark .mtnew-card-header,
body.theme-dark .mtnew-panels,
body.theme-dark .mtnew-panel + .mtnew-panel,
body.theme-dark .mtnew-panel-header {
  border-color: #2a354a;
}

body.theme-dark .mtnew-module-group,
body.theme-dark .mtnew-module-label,
body.theme-dark .mtnew-module-select,
body.theme-dark .mtnew-type-select,
body.theme-dark .mtnew-search-bar input,
body.theme-dark .mtnew-add-form-row input[type="text"],
body.theme-dark .mtnew-add-form-row select {
  background: #111827;
  border-color: #2a354a;
  color: #e2e8f0;
}

body.theme-dark .mtnew-page-title,
body.theme-dark .mtnew-card-title,
body.theme-dark .mtnew-standard-label .mtnew-val {
  color: #93c5fd;
}

body.theme-dark .mtnew-panel-title {
  color: #cbd5e1;
}

body.theme-dark .mtnew-upload-btn {
  background: #1e293b;
  border-color: #2a354a;
  color: #cbd5e1;
}

body.theme-dark .mtnew-upload-status {
  background: #064e3b;
  border-color: #047857;
  color: #d1fae5;
}

body.theme-dark .mtnew-field-box {
  background: #111827;
  border-color: #2a354a;
  color: #e2e8f0;
}

body.theme-dark .mtnew-field-box.mtnew-manual {
  background: #3f2d0f;
  border-color: #b45309;
  color: #fde68a;
}

body.theme-dark .mtnew-count-bar {
  background: #111827;
  border-color: #2a354a;
  color: #94a3b8;
}

.integration-view-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.integration-view-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: #6b7280;
  padding: 2px 0;
}

.integration-view-breadcrumb .crumb-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #6b7280;
  font-weight: 500;
}

.integration-view-breadcrumb .crumb-item i {
  color: #9ca3af;
  font-size: 13px;
}

.integration-view-breadcrumb .crumb-item.active {
  color: #7c3aed;
  font-weight: 600;
}

.integration-view-breadcrumb .crumb-item.active i {
  color: #7c3aed;
}

.integration-view-breadcrumb .crumb-sep {
  margin: 0 2px;
  color: #9ca3af;
  font-size: 11px;
}

.integration-view-header-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 16px;
  color: #6b7280;
  margin-bottom: 2px;
  line-height: 1.25;
}

.integration-view-header-breadcrumb .crumb-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6b7280;
  font-weight: 600;
}

.integration-view-header-breadcrumb .crumb-item i {
  color: #94a3b8;
  font-size: 14px;
}

.integration-view-header-breadcrumb .crumb-item.active {
  color: #7c3aed;
  font-weight: 600;
}

.integration-view-header-breadcrumb .crumb-item.active i {
  color: #7c3aed;
}

.integration-view-header-breadcrumb .crumb-sep {
  margin: 0 1px;
  color: #9ca3af;
  font-size: 12px;
}

.integration-view-header-breadcrumb .crumb-link {
  border: none;
  background: transparent;
  padding: 4px 8px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.integration-view-header-breadcrumb .crumb-link:hover {
  color: #1d4ed8;
  background: #e8efff;
}

.integration-view-header-breadcrumb .crumb-link:hover i {
  color: #1d4ed8;
}

.source-card-shell {
  border: 1px solid #e6eef8;
  border-radius: 16px;
  padding: 14px 16px 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
  margin-bottom: 18px;
}

.source-card-shell:last-child {
  margin-bottom: 0;
}

.source-card-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.source-card-wrapper:last-child {
  margin-bottom: 0;
}

.source-card-breadcrumb {
  margin-left: 4px;
}

.source-card-shell .integration-meta-card {
  background: #f8fbff;
  border-color: #e5efff;
}

.source-card-shell .integration-view-section {
  background: #ffffff;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  padding: 12px;
  margin-top: 14px;
}

.source-card-shell .section-title-row h4 {
  font-size: 15px;
}

.integration-meta-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.integration-meta-item .meta-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #64748b;
}

.integration-meta-item .meta-value {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin-top: 4px;
}

.integration-view-section {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}

.integration-view-section .section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.integration-view-section .table-wide th,
.integration-view-section .table-wide td {
  text-align: center;
}

.integration-view-section h4 {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  color: #1f2937;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
  border: 1px solid transparent;
}

.status-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-pill.on {
  color: #16a34a;
  background: #ecfdf3;
  border-color: #bbf7d0;
}

.status-pill.off {
  color: #dc2626;
  background: #fef2f2;
  border-color: #fecaca;
}

.badge.badge-pill {
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.table-footer-note {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 6px;
}

.mapping-embed-frame {
  display: block;
  width: 100%;
  min-height: 880px;
  border: 0;
  background: #f8fafc;
}

.tx-source-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin-bottom: 10px;
  background: #f8fafc;
}

.tx-source-meta {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(220px, 1.1fr) minmax(
      120px,
      0.7fr
    );
  gap: 8px 18px;
  font-size: 13px;
  align-items: center;
}

.tx-source-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #64748b;
  display: block;
  margin-bottom: 6px;
}

.tx-source-value {
  font-weight: 600;
  color: #334155;
  font-size: 13px;
  min-height: 18px;
}

.tx-source-pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.tx-source-pill.input {
  background: #dbeafe;
  color: #64748b;
}

.tx-source-pill.output {
  background: #dcfce7;
  color: #15803d;
}

.tx-source-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 900px) {
  .tx-source-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .tx-source-meta {
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .tx-source-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

.tx-transform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tx-transform-panel {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f8fafc;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 320px;
}

.tx-transform-title {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
}

.tx-transform-code {
  margin: 0;
  padding: 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e5e7eb;
  font-size: 12px;
  line-height: 1.5;
  color: #334155;
  overflow: auto;
  height: 100%;
  min-height: 260px;
  font-family: "Roboto Mono", "Courier New", monospace;
}

.tx-collapse-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  color: #1f2937;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tx-collapse-btn:hover {
  background: #eef2f7;
}

.tx-collapsible[data-collapsed="true"] .tx-collapsible-body {
  display: none;
}

.tx-collapsible[data-collapsed="true"] .tx-collapse-btn i {
  transform: rotate(180deg);
}

@media (max-width: 900px) {
  .tx-transform-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .tx-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .filter-grid {
    grid-template-columns: 1fr;
  }

  .filter-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Force horizontal scroll for wide integration tables */
#integration-sources .table-container {
  width: 100%;
  overflow-x: auto;
  display: block;
  max-width: 100%;
}

#integration-sources .table-wide {
  width: max-content;
  min-width: 1800px;
  table-layout: auto;
}

#integration-sources table th,
#integration-sources table td {
  white-space: nowrap;
}

/* View Toggle */
.view-toggle {
  display: flex;
  gap: 8px;
  align-items: center;
}

.view-btn {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  color: #6b7280;
  padding: 9px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
}

.view-btn:hover {
  background: #e5e7eb;
  color: #374151;
}

.view-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.view-container {
  min-height: 200px;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 16px 0;
}

.source-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.source-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.source-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.source-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a2e;
  margin: 0;
  flex: 1;
}

.source-card-type {
  margin-left: 8px;
}

.source-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.source-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13px;
}

.source-card-label {
  color: #6b7280;
  font-weight: 500;
  min-width: 120px;
}

.source-card-value {
  color: #1a1a2e;
  font-weight: 600;
  flex: 1;
  text-align: right;
}

.source-card-stats {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
}

.source-card-stat {
  flex: 1;
  text-align: center;
}

.source-card-stat-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  display: block;
}

.source-card-stat-label {
  font-size: 11px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.source-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
}

/* Pagination */
.pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.pagination-info {
  font-size: 13px;
  color: #6b7280;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  /* Prevent wrapping */
  overflow-x: auto;
  /* Allow horizontal scrolling if needed */
  max-width: 100%;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
  white-space: nowrap;
  /* Prevent button text from wrapping */
}

.btn-outline.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-numbers {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: nowrap;
  /* Prevent page numbers from wrapping */
  min-height: 32px;
  /* Fixed height */
}

.page-number {
  min-width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  color: #374151;
  transition: all 0.2s;
  white-space: nowrap;
  /* Prevent number from wrapping */
  flex-shrink: 0;
  /* Prevent shrinking */
}

.page-number:hover:not(.active) {
  background: #e5e7eb;
  border-color: #d1d5db;
}

.page-number.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.page-dots {
  min-width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #6b7280;
  user-select: none;
  flex-shrink: 0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .pagination-container {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .pagination-info {
    text-align: center;
  }

  .pagination-controls {
    justify-content: center;
  }
}

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid transparent;
}

.badge-success {
  background: #ecfdf5;
  color: #059669;
}

.badge-warning {
  background: #fffbeb;
  color: #d97706;
}

.badge-trade {
  background: #ecfdf5;
  color: #059669;
  border-color: transparent;
}

.badge-danger {
  background: #fef2f2;
  color: #dc2626;
}

.badge-info {
  background: var(--primary-light);
  color: var(--primary);
}

.badge-purple {
  background: #f5f3ff;
  color: var(--purple);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 74, 174, 0.3);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 173, 122, 0.3);
}

.btn-outline {
  background: #fff;
  border: 1px solid #d1d5db;
  color: #374151;
}

.btn-outline:hover {
  background: #f9fafb;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

/* Charts */
.chart-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-top: 24px;
}

.chart-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.chart-card h4 i {
  color: var(--primary);
}

.chart-wrapper {
  position: relative;
  height: 250px;
}

/* Detail Panel */
.detail-panel {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #e2e8f0;
}

.detail-panel .detail-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.detail-panel .detail-subtitle {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 20px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #e2e8f0;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  font-size: 12px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-value {
  font-size: 14px;
  font-weight: 500;
  color: #1a1a2e;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 20, 40, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-backdrop.active {
  display: flex;
}

.modal {
  background: #fff;
  border-radius: 20px;
  width: 90%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  padding: 24px 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: #64748b;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--primary);
  color: #fff;
  transform: rotate(90deg);
}

.modal-body {
  padding: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full {
  grid-column: span 2;
}

.form-group.horizontal {
  flex-direction: row;
  align-items: center;
}

.form-group.horizontal label {
  margin-bottom: 0;
  margin-right: 16px;
  flex: 0 0 220px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s;
  background: #fff;
}

.form-group select {
  padding: 12px 14px;
  padding-right: 44px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s;
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  cursor: pointer;
}

.form-group select:hover {
  border-color: #9ca3af;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23004AAE' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 74, 174, 0.1);
}

.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 74, 174, 0.1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23004AAE' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

/* Style select options for better appearance */
.form-group select option {
  padding: 12px 14px;
  background: #fff;
  color: #1a1a2e;
}

.form-group select option:hover,
.form-group select option:checked {
  background: var(--primary-light);
  color: var(--primary);
}

.source-name-workspace {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.source-name-tab-bar {
  display: flex;
  align-self: stretch;
  gap: 4px;
  border-bottom: 1px solid #e5eaf3;
}

.source-name-tab {
  border: none;
  background: transparent;
  color: #64748b;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 14px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.source-name-tab.active {
  color: #1d4ed8;
  border-bottom-color: #1d4ed8;
}

.source-name-panel {
  display: none;
}

.source-name-panel.active {
  display: block;
  animation: configPanelFadeIn 0.22s ease;
}

.source-name-config-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.source-config-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid #d9e3f0;
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.source-config-card-header h3 {
  margin: 0;
  font-size: 17px;
  color: #0f172a;
}

.source-config-card-header p {
  margin-top: 4px;
  color: #64748b;
  font-size: 14px;
}

.source-config-segmented {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  margin-top: 18px;
  border: 1px solid #d8dfeb;
  border-radius: 14px;
  overflow: hidden;
  background: #f8fafc;
}

.source-config-option {
  border: 0;
  background: transparent;
  color: #64748b;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.source-config-option + .source-config-option {
  border-left: 1px solid #d8dfeb;
}

.source-config-option.active {
  background: #3b4fd7;
  color: #fff;
}

.source-config-note {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  border: 1px solid transparent;
}

.source-config-note.blue {
  background: #edf5ff;
  border-color: #bfd7ff;
  color: #2457bd;
}

.source-config-note.purple {
  background: #f5efff;
  border-color: #e1cffd;
  color: #8b5cf6;
}

.source-config-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.config-field {
  display: flex;
  flex-direction: column;
}

.config-field label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.config-field .form-control,
.config-field input,
.config-field select,
.config-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.45;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.config-field textarea {
  min-height: 90px;
  resize: vertical;
}

.config-field .form-control:hover,
.config-field input:hover,
.config-field select:hover,
.config-field textarea:hover {
  border-color: #9ca3af;
}

.config-field .form-control:focus,
.config-field input:focus,
.config-field select:focus,
.config-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 74, 174, 0.12);
}

.config-field .form-control::placeholder,
.config-field input::placeholder,
.config-field textarea::placeholder {
  color: #9ca3af;
}

.config-field.half {
  grid-column: span 1;
}

.config-field:not(.half) {
  grid-column: 1 / -1;
}

.source-config-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.source-config-actions .btn {
  min-width: 138px;
}

@keyframes configPanelFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-footer {
  padding: 0 24px 24px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Toast */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Global Select/Dropdown Styling */
select {
  padding: 12px 14px;
  padding-right: 44px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 14px;
  font-family: "Roboto", sans-serif;
  transition: all 0.2s;
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  cursor: pointer;
  color: #1a1a2e;
}

select:hover {
  border-color: #9ca3af;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23004AAE' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 74, 174, 0.1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23004AAE' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

select option {
  padding: 12px;
  background: #fff;
  color: #1a1a2e;
}

/* Small select variant for inline use */
select.select-sm {
  padding: 8px 10px;
  padding-right: 36px;
  font-size: 13px;
  border-radius: 8px;
  background-position: right 10px center;
  background-size: 14px;
}

@media (max-width: 1024px) {
  .source-name-config-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .source-config-fields,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .config-field,
  .config-field.half,
  .config-field:not(.half),
  .form-group.full {
    grid-column: 1 / -1;
  }
}

.toast {
  background: #fff;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  animation: toastIn 0.3s ease;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.toast.success {
  border-left: 4px solid var(--accent);
}

.toast.error {
  border-left: 4px solid var(--danger);
}

.toast.info {
  border-left: 4px solid var(--primary);
}

.toast i {
  font-size: 20px;
}

.toast.success i {
  color: var(--accent);
}

.toast.error i {
  color: var(--danger);
}

.toast.info i {
  color: var(--primary);
}

/* Unique Section Styles */

/* Operations sections - Blue theme */
.section-operations .kpi-card::before {
  background: linear-gradient(90deg, var(--primary), #3b82f6);
}

/* Finance sections - Green theme */
.section-finance .kpi-card::before {
  background: linear-gradient(90deg, var(--accent), #10b981);
}

.section-finance .card-title i {
  color: var(--accent);
}

.section-finance table th {
  background: linear-gradient(135deg, var(--accent-light), #d1fae5);
  color: var(--accent-dark);
}

/* Analytics sections - Purple theme */
.section-analytics .kpi-card::before {
  background: linear-gradient(90deg, var(--purple), #a78bfa);
}

.section-analytics .card-title i {
  color: var(--purple);
}

.section-analytics table th {
  background: linear-gradient(135deg, #f5f3ff, #ede9fe);
  color: var(--purple);
}

/* Monitoring Dashboard - Blue hero */
.monitor-hero {
  background: linear-gradient(135deg, #0f56b3 0%, #12499a 100%);
  border-radius: 20px;
  padding: 32px;
  color: #fff;
  margin-bottom: 24px;
  box-shadow: 0 18px 38px rgba(15, 86, 179, 0.18);
}

.monitor-hero h2 {
  color: #fff;
  font-size: 24px;
  margin-bottom: 8px;
}

.monitor-hero p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 24px;
}

.monitor-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.monitor-stat {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.monitor-stat-value {
  font-size: 28px;
  font-weight: 700;
}

.monitor-stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  margin-top: 4px;
}

/* Customer Dashboard - Blue hero */
.customer-hero {
  background: linear-gradient(135deg, #0f56b3 0%, #12499a 100%);
  border-radius: 20px;
  padding: 32px;
  color: #fff;
  margin-bottom: 24px;
  box-shadow: 0 18px 38px rgba(15, 86, 179, 0.18);
}

.customer-hero h2 {
  color: #fff;
  margin-bottom: 8px;
}

.customer-hero p {
  color: rgba(255, 255, 255, 0.8);
}

.customer-select {
  margin-top: 16px;
  padding: 12px 44px 12px 16px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  font-size: 14px;
  font-family: "Roboto", sans-serif;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 240px;
}

.customer-select:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background-color: rgba(255, 255, 255, 0.25);
}

.customer-select:focus {
  outline: none;
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.customer-select option {
  background: #12499a;
  color: #fff;
  padding: 12px;
}

#customer .kpi-card::before {
  background: linear-gradient(90deg, #0f56b3, #12499a);
}

#customer .kpi-card.purple::before {
  background: linear-gradient(90deg, #0f56b3, #12499a);
}

#customer .kpi-card.purple .kpi-value {
  color: var(--primary);
}

/* Reports - Clean modern style */
.reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.report-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border-left: 4px solid var(--primary);
  transition: all 0.2s;
}

.report-card:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.report-card.accent {
  border-left-color: var(--accent);
}

.report-card.purple {
  border-left-color: var(--purple);
}

.report-card.warning {
  border-left-color: var(--warning);
}

/* Code blocks */
.code-block {
  background: #1e293b;
  color: #e2e8f0;
  padding: 16px;
  border-radius: 10px;
  font-family: "SF Mono", Consolas, monospace;
  font-size: 13px;
  overflow-x: auto;
  white-space: pre;
}

/* AI Help Assistant */
.ai-help-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: min(620px, calc(100vh - 220px));
  max-height: calc(100vh - 220px);
  overflow: hidden;
}

.ai-help-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #475569;
  font-size: 12px;
  font-weight: 500;
}

.ai-help-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}

.ai-help-chat {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 6px 4px 0;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.ai-help-chat::-webkit-scrollbar {
  width: 8px;
}

.ai-help-chat::-webkit-scrollbar-track {
  background: #e2e8f0;
  border-radius: 999px;
}

.ai-help-chat::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 999px;
}

.ai-msg-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.ai-msg-row.user {
  justify-content: flex-end;
}

.ai-msg-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #dbeafe;
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ai-msg-row.user .ai-msg-avatar {
  background: #bfd9ff;
}

.ai-msg-content {
  max-width: min(78%, 560px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-msg-bubble {
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.55;
  white-space: pre-line;
  border: 1px solid #e2e8f0;
}

.ai-msg-bubble.assistant {
  background: #f8fbff;
  color: #1e293b;
  border-color: #dbeafe;
}

.ai-msg-bubble-rich {
  white-space: normal;
}

.ai-msg-text {
  white-space: pre-line;
  margin-bottom: 12px;
}

.ai-help-rich {
  margin-top: 4px;
}

.ai-help-tx-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 4px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ai-help-tx-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.ai-help-tx-id {
  font-weight: 700;
  font-size: 14px;
  color: #0f172a;
}

.ai-help-tx-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.ai-help-tx-badge.ack,
.ai-help-tx-badge.neutral {
  background: #dcfce7;
  color: #166534;
}

.ai-help-tx-badge.nack {
  background: #fee2e2;
  color: #991b1b;
}

.ai-help-tx-badge.pending {
  background: #fef9c3;
  color: #854d0e;
}

.ai-help-tx-amount {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
}

.ai-help-tx-dl {
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: 13px;
}

.ai-help-tx-dl > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px;
  align-items: start;
}

.ai-help-tx-dl dt {
  margin: 0;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.ai-help-tx-dl dd {
  margin: 0;
  color: #1e293b;
}

.ai-help-tx-foot {
  margin-top: 12px;
  padding: 10px 12px;
  background: #ecfdf5;
  border-radius: 8px;
  font-size: 13px;
  color: #065f46;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-help-log-title {
  margin: 0 0 10px;
  font-size: 14px;
}

.ai-help-ev-count {
  display: inline-block;
  margin-left: 8px;
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

.ai-help-ev-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 10px;
}

.ai-help-ev-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
}

.ai-help-ev-time {
  font-family: "SF Mono", Consolas, monospace;
  color: #475569;
  white-space: nowrap;
  width: 92px;
}

.ai-help-muted {
  margin: 8px 0 0;
  font-size: 13px;
  color: #64748b;
}

.ai-help-party-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 8px;
}

.ai-help-party-card strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.ai-help-party-role {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 12px;
}

.ai-help-party-grid {
  display: grid;
  gap: 8px;
  font-size: 13px;
}

.ai-help-party-grid span {
  color: #64748b;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 2px;
}

.ai-help-fx-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 8px;
}

.ai-help-fx-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.ai-help-fx-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
}

.ai-help-pdf-card {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 8px;
}

.ai-help-pdf-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #fef2f2;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.ai-help-pdf-name {
  font-weight: 600;
  font-size: 14px;
}

.ai-help-pdf-meta {
  font-size: 12px;
  color: #64748b;
}

.ai-help-pdf-dl {
  margin-left: auto;
}

.ai-msg-bubble.user {
  background: #dbeafe;
  color: var(--primary);
  border-color: #bfdbfe;
}

.ai-msg-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-msg-option-btn,
.ai-help-quick-action-btn {
  border: 1px solid #bfdbfe;
  background: #fff;
  color: var(--primary);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ai-msg-option-btn:hover,
.ai-help-quick-action-btn:hover {
  background: #eff6ff;
  border-color: #93c5fd;
}

.ai-help-composer {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  background: #fff;
  padding: 8px;
}

.ai-help-composer input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 15px;
  color: #1f2937;
  padding: 6px 4px;
}

.ai-help-composer input::placeholder {
  color: #94a3b8;
}

.ai-help-composer button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ai-help-composer button:hover {
  filter: brightness(1.06);
}

.ai-help-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ai-msg-bubble-typing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ai-msg-bubble-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #60a5fa;
  opacity: 0.35;
  animation: aiTyping 1.1s infinite ease-in-out;
}

.ai-msg-bubble-typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.ai-msg-bubble-typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes aiTyping {
  0%,
  80%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@media (max-width: 1024px) {
  .ai-help-card {
    min-height: min(560px, calc(100vh - 220px));
  }

  .ai-msg-content {
    max-width: 100%;
  }
}

/* Floating Help */
.floating-help {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0, 74, 174, 0.3);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
  z-index: 50;
}

.floating-help:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 74, 174, 0.4);
}

/* Multi-chart grid */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}

@media (max-width: 900px) {
  .charts-grid {
    grid-template-columns: 1fr;
  }
}

/* Stats row for dashboards */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-item {
  text-align: center;
  padding: 16px;
  background: #f8fafc;
  border-radius: 12px;
}

.stat-item .value {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}

.stat-item .label {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
}

/* Filter Styles */
.filter-section {
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  margin-bottom: 24px;
  overflow: hidden;
}

.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #f1f5f9;
  border-bottom: 1px solid #e5e7eb;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 600;
  color: #374151;
}

.filter-header:hover {
  background: #e2e8f0;
}

.filter-header i {
  margin-right: 8px;
  color: var(--primary);
}

.filter-toggle-icon {
  transition: transform 0.3s ease;
  color: #6b7280;
}

.filter-toggle-icon.rotated {
  transform: rotate(180deg);
}

.filter-toggle-btn {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-toggle-btn:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

.filter-toggle-btn i {
  color: var(--primary);
  font-size: 16px;
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  padding: 20px;
  max-height: 500px;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.filter-row.collapsed {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.filter-group {
  display: flex;
  flex-direction: column;
}

.filter-group label {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-group input,
.filter-group select {
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  transition: all 0.2s;
}

.filter-group input:focus,
.filter-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 74, 174, 0.1);
}

.filter-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

.filter-group select:hover {
  border-color: #9ca3af;
}

@media (max-width: 1200px) {
  .filter-row {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    padding: 16px;
  }
}

@media (max-width: 768px) {
  .filter-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Filter Dropdown Styles */
.filter-dropdown-container {
  position: relative;
}

.filter-dropdown {
  position: relative;
  top: auto;
  right: auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 20px;
  width: 100%;
  max-width: 100%;
  z-index: 101;
  margin-top: 8px;
  margin-bottom: 16px;
}

.filter-dropdown::before {
  content: none;
}

.filter-dropdown .filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 0;
}

.filter-dropdown .filter-group {
  flex: 1;
  min-width: 180px;
}

.filter-dropdown .filter-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-dropdown .filter-group input,
.filter-dropdown .filter-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  transition: all 0.2s;
}

.filter-dropdown .filter-group input:focus,
.filter-dropdown .filter-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 74, 174, 0.1);
}

.filter-dropdown .filter-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

.filter-dropdown .filter-group select:hover {
  border-color: #9ca3af;
}

/* Login */
body.auth-locked .sidebar,
body.auth-locked .main {
  display: none;
}

body.auth-locked .login-screen {
  display: flex !important;
}

body:not(.auth-locked) .login-screen {
  display: none !important;
}

.login-screen {
  position: fixed;
  inset: 0;
  background: transparent;
  color: #fff;
  display: none !important;
  align-items: stretch;
  justify-content: stretch;
  z-index: 1000;
  padding: 0;
}

.login-screen .login-portal {
  width: 100%;
}

/* LOGIN PORTAL (from login.css, scoped) */
.login-portal {
  --space: 22px;
  --green: #10b981;
  --green-dark: #0f8f6a;
  --green-light: #34d399;
  --teal: #0f8a92;
  --blue: #1f8acb;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --border: #d8e3f2;
  --background: #f5f8fb;
  --surface: #ffffff;
  --error: #dc2626;
  --warning: #f59e0b;
  --success: #10b981;
  margin: 0;
  padding: 28px clamp(16px, 3vw, 40px);
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(900px 480px at 8% 12%, rgba(15, 138, 146, 0.16), transparent 60%),
    radial-gradient(740px 380px at 92% 88%, rgba(31, 138, 203, 0.12), transparent 58%),
    linear-gradient(135deg, #f7f9fc 0%, #eef3f8 48%, #e5edf5 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-portal .container {
  width: min(1240px, 100%);
  min-height: 680px;
  height: clamp(680px, 82vh, 820px);
  background: var(--surface);
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  margin: 0;
  box-shadow:
    0 28px 60px rgba(15, 23, 42, 0.16),
    0 12px 24px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.3s ease;
}

.login-portal.single-pane .container {
  justify-content: center;
}

.login-portal .container:hover {
  box-shadow:
    0 32px 72px rgba(15, 23, 42, 0.2),
    0 12px 24px rgba(15, 23, 42, 0.1);
}

.login-portal .left-side {
  flex: 1.08;
  background:
    radial-gradient(420px 220px at 20% 18%, rgba(255, 255, 255, 0.18), transparent 60%),
    linear-gradient(155deg, #032d42 0%, #0f6b83 38%, #10a28d 72%, #87d9b0 100%);
  position: relative;
  min-height: 100%;
  display: flex;
  align-items: center;
  color: #f8fafc;
}

.login-portal .left-side::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(2, 12, 27, 0.05), rgba(2, 12, 27, 0.42)),
    linear-gradient(120deg, rgba(10, 60, 70, 0.14), rgba(10, 60, 70, 0));
  pointer-events: none;
}

.login-portal .left-content {
  position: relative;
  z-index: 1;
  padding: clamp(32px, 6vw, 60px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.login-portal .left-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.login-portal .left-brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.login-portal .left-logo {
  width: clamp(138px, 18vw, 186px);
  height: auto;
  filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.24));
}

.login-portal .left-brand-badge,
.login-portal .left-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
}

.login-portal .status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #86efac;
  box-shadow: 0 0 0 4px rgba(134, 239, 172, 0.18);
}

.login-portal .left-copy {
  max-width: 560px;
}

.login-portal .left-eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.login-portal .left-brand {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.login-portal .left-side h1 {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  margin: 4px 0 0;
  line-height: 1.2;
}

.login-portal .left-subtitle {
  font-size: clamp(14px, 1.4vw, 18px);
  margin: 0;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.9);
}

.login-portal .left-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.login-portal .left-feature-card {
  padding: 18px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.login-portal .feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 15px;
}

.login-portal .left-feature-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.login-portal .left-feature-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  line-height: 1.55;
}

.login-portal .left-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  gap: 10px;
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 500;
  max-width: 560px;
}

.login-portal .left-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-portal .left-list li::before {
  content: "\f00c";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-weight: 900;
  font-size: 12px;
  font-family: "Font Awesome 6 Free";
}

.login-portal .left-illustration {
  margin-top: auto;
  display: flex;
  justify-content: flex-start;
}

.login-portal .left-illustration svg {
  width: min(420px, 90%);
  height: auto;
  filter: drop-shadow(0 20px 35px rgba(10, 60, 70, 0.25));
}

.login-portal .right-side {
  width: 44%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(24px, 4vw, 44px);
  background:
    radial-gradient(360px 240px at 90% 12%, rgba(16, 185, 129, 0.08), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(243, 248, 252, 0.96));
}

.login-portal .form-wrapper {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.88);
  padding: clamp(26px, 3vw, 34px);
  border-radius: 26px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow:
    0 24px 48px rgba(15, 23, 42, 0.12),
    0 10px 22px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(16px);
}

.login-portal .brand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}

.login-portal .logo {
  width: clamp(138px, 20vw, 180px);
  height: auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.08));
  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}

.login-portal .brand-badge,
.login-portal .section-kicker,
.login-portal .login-pill,
.login-portal .demo-role {
  letter-spacing: 0.04em;
}

.login-portal .brand-badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 74, 174, 0.08);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.login-portal .logo:hover {
  transform: scale(1.02);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.login-portal .welcome-section {
  margin-bottom: 18px;
  text-align: left;
}

.login-portal .section-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.login-portal .title {
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text-dark);
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.login-portal .subtitle {
  color: var(--text-light);
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.6;
  margin: 0;
}

.login-portal .login-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.login-portal .login-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.04);
  color: #334155;
  font-size: 12px;
  font-weight: 600;
}

.login-portal .login-pill i {
  color: var(--green-dark);
}

.login-portal .input-box {
  margin-bottom: 20px;
  position: relative;
}

.login-portal .input-box label {
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.login-portal .input-box label i {
  color: var(--green);
  font-size: clamp(12px, 0.95vw, 14px);
}

.login-portal .input-box input {
  width: 100%;
  padding: 14px 16px;
  padding-right: 48px;
  border: 1.6px solid var(--border);
  border-radius: 14px;
  font-size: clamp(14px, 1.05vw, 16px);
  outline: none;
  transition: all 0.2s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 8px 20px rgba(15, 23, 42, 0.04);
  height: 54px;
  box-sizing: border-box;
  background: #ffffff;
  font-family: inherit;
}

/* Keep only the custom eye toggle icon on the password field */
#loginPassword::-ms-reveal,
#loginPassword::-ms-clear,
#loginPassword::-webkit-credentials-auto-fill-button {
  display: none;
}

.login-portal .password-wrapper {
  position: relative;
}

.login-portal .toggle-password {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  transition: all 0.2s ease;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.login-portal .toggle-password:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-dark);
}

.login-portal .capslock-warning {
  font-size: 12px;
  color: var(--warning);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: rgba(245, 158, 11, 0.08);
  border-radius: 4px;
  border-left: 3px solid var(--warning);
}

.login-portal .capslock-warning i {
  font-size: 11px;
}

.login-portal .input-box input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14), 0 14px 24px rgba(15, 23, 42, 0.08);
}

.login-portal .remember-forgot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  font-size: clamp(12px, 0.95vw, 14px);
}

.login-portal .checkbox-container {
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  gap: 10px;
}

.login-portal .checkbox-container input[type="checkbox"] {
  display: none;
}

.login-portal .checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  background: white;
}

.login-portal .checkbox-container input:checked + .checkmark {
  background: var(--green);
  border-color: var(--green);
}

.login-portal .checkbox-container input:checked + .checkmark::after {
  content: "\2713";
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.login-portal .checkbox-label {
  color: var(--text-dark);
  font-weight: 500;
}

.login-portal .forgot {
  color: var(--green);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(12px, 0.9vw, 14px);
}

.login-portal .forgot:hover {
  background: rgba(0, 158, 96, 0.08);
  text-decoration: none;
}

.login-portal .forgot i {
  font-size: 12px;
}

.login-portal .login-button {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #0f8a92 0%, #0c74a8 54%, #10b981 100%);
  color: white;
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 600;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 16px 30px rgba(12, 116, 168, 0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  position: relative;
  overflow: hidden;
}

.login-portal .login-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.login-portal .login-button:hover {
  background: linear-gradient(135deg, #0b7a81 0%, #0a6696 54%, #0ea76f 100%);
  transform: translateY(-2px);
  box-shadow: 0 20px 34px rgba(12, 116, 168, 0.3);
}

.login-portal .login-button:hover::before {
  left: 100%;
}

.login-portal .login-button:active {
  transform: translateY(0);
}

.login-portal .login-error {
  color: var(--error);
  font-size: 13px;
  min-height: 18px;
  margin-bottom: 12px;
}

.login-portal .error-message {
  min-height: 16px;
  margin-top: 6px;
  color: var(--error);
  font-size: 12px;
}

.login-portal .login-demo-panel {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: linear-gradient(180deg, rgba(244, 248, 252, 0.9), rgba(239, 245, 251, 0.96));
}

.login-portal .login-demo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.login-portal .demo-title {
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 700;
}

.login-portal .demo-subtitle {
  color: var(--text-light);
  font-size: 12px;
}

.login-portal .demo-credential-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.login-portal .demo-credential-card {
  padding: 14px 15px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(209, 213, 219, 0.8);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.04);
}

.login-portal .demo-role {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.login-portal .demo-value {
  display: block;
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 600;
}

.login-portal .login-footer {
  margin-top: 18px;
  font-size: clamp(11px, 0.9vw, 13px);
  color: var(--text-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.login-portal .login-footer .footer-link {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
}

.login-portal .login-footer .footer-link:hover {
  color: var(--green);
  text-decoration: underline;
}

.login-portal.theme-dark {
  --text-dark: #e7edf5;
  --text-light: #a3b1c4;
  --border: #2b3646;
  --background: #0f1622;
  --surface: #0c121b;
}

.login-portal.theme-dark {
  background:
    radial-gradient(900px 500px at 12% 10%, rgba(17, 208, 187, 0.12), transparent 55%),
    radial-gradient(720px 420px at 88% 84%, rgba(47, 123, 255, 0.14), transparent 58%),
    linear-gradient(145deg, #111925 0%, #0b111a 56%, #080d14 100%);
}

.login-portal.theme-dark .container {
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.55),
    0 8px 18px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.login-portal.theme-dark .left-side {
  background:
    radial-gradient(380px 220px at 22% 18%, rgba(255, 255, 255, 0.08), transparent 60%),
    linear-gradient(155deg, #07111f 0%, #0b3d5b 38%, #0f766e 72%, #16a34a 100%);
}

.login-portal.theme-dark .left-side::after {
  background:
    linear-gradient(140deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.55)),
    linear-gradient(to right, rgba(6, 10, 16, 0.52) 0%, rgba(6, 10, 16, 0.22) 100%);
}

.login-portal.theme-dark .brand-header {
  border-bottom: none;
}

.login-portal.theme-dark .logo {
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.login-portal.theme-dark .logo #brand-text {
  fill: #2f7bff !important;
}

.login-portal.theme-dark .logo path:first-child {
  fill: #17d97b !important;
}

.login-portal.theme-dark .input-box input {
  background: #0f1824;
  border-color: #223043;
  color: var(--text-dark);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 8px 22px rgba(0, 0, 0, 0.16);
}

.login-portal.theme-dark .input-box input::placeholder {
  color: #6f8196;
}

.login-portal.theme-dark .input-box input:focus {
  border-color: #1fd085;
  box-shadow: 0 0 0 3px rgba(31, 208, 133, 0.16), 0 16px 28px rgba(0, 0, 0, 0.24);
}

.login-portal.theme-dark .right-side {
  background:
    radial-gradient(360px 220px at 90% 12%, rgba(19, 208, 176, 0.1), transparent 60%),
    linear-gradient(180deg, rgba(12, 18, 27, 0.94), rgba(15, 22, 34, 0.98));
}

.login-portal.theme-dark .form-wrapper {
  background: rgba(12, 18, 27, 0.82);
  border-color: rgba(148, 163, 184, 0.12);
}

.login-portal.theme-dark .left-brand-badge,
.login-portal.theme-dark .left-status-pill,
.login-portal.theme-dark .left-feature-card {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
}

.login-portal.theme-dark .brand-badge {
  background: rgba(59, 130, 246, 0.16);
  color: #bfdbfe;
}

.login-portal.theme-dark .section-kicker {
  color: #7be6b6;
}

.login-portal.theme-dark .login-pill {
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
}

.login-portal.theme-dark .login-pill i {
  color: #7be6b6;
}

.login-portal.theme-dark .toggle-password {
  color: #9fb0c5;
}

.login-portal.theme-dark .toggle-password:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #e7edf5;
}

.login-portal.theme-dark .checkmark {
  background: #0f1824;
  border-color: #2b3646;
}

.login-portal.theme-dark .checkbox-container input:checked + .checkmark {
  background: linear-gradient(135deg, #10b981 0%, #22d3ee 100%);
  border-color: transparent;
}

.login-portal.theme-dark .forgot {
  color: #7be6b6;
}

.login-portal.theme-dark .forgot:hover {
  background: rgba(123, 230, 182, 0.12);
}

.login-portal.theme-dark .login-button {
  background: linear-gradient(135deg, #0f8a92 0%, #1471d7 54%, #10b981 100%);
  box-shadow: 0 14px 28px rgba(20, 113, 215, 0.25);
}

.login-portal.theme-dark .login-button:hover {
  background: linear-gradient(135deg, #0c7279 0%, #0f5fc0 54%, #0d9a60 100%);
  box-shadow: 0 18px 32px rgba(20, 113, 215, 0.32);
}

.login-portal.theme-dark .login-demo-panel {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.9));
  border-color: rgba(148, 163, 184, 0.14);
}

.login-portal.theme-dark .demo-credential-card {
  background: #101827;
  border-color: #223043;
  box-shadow: none;
}

.login-portal.theme-dark .demo-value {
  color: #e7edf5;
}

.login-portal.theme-dark .login-footer,
.login-portal.theme-dark .login-footer .footer-link {
  color: #93a4bb;
}

@media (max-width: 1000px) {
  .login-portal .container {
    width: 100%;
    height: auto;
    min-height: unset;
    flex-direction: column;
  }

  .login-portal .left-side,
  .login-portal .right-side {
    width: 100%;
  }

  .login-portal .left-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .login-portal .right-side {
    padding: 4vh 5vw;
  }
}

@media (max-width: 768px) {
  .login-portal {
    align-items: stretch;
  }

  .login-portal .container {
    height: auto;
    max-width: none;
    border-radius: 18px;
  }

  .login-portal .left-side {
    height: auto;
    flex: none;
    min-height: 0;
  }

  .login-portal .right-side {
    padding: 5vh 8vw;
  }

  .login-portal .form-wrapper {
    max-width: 100%;
  }

  .login-portal .left-topbar,
  .login-portal .brand-header,
  .login-portal .login-demo-header,
  .login-portal .login-footer {
    justify-content: center;
  }

  .login-portal .left-copy,
  .login-portal .welcome-section {
    text-align: center;
  }

  .login-portal .left-feature-grid,
  .login-portal .demo-credential-grid {
    grid-template-columns: 1fr;
  }

  .login-portal .remember-forgot {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .login-portal {
    padding: 20px 12px;
  }

  .login-portal .right-side {
    padding: 5vh 7vw;
  }

  .login-portal .left-content,
  .login-portal .form-wrapper {
    padding-left: 20px;
    padding-right: 20px;
  }

  .login-portal .left-feature-grid {
    display: none;
  }
}

.login-portal {
  --login-page: #eef1f7;
  --login-shell: #ffffff;
  --login-brand: #2f5fb8;
  --login-brand-dark: #294fa0;
  --login-text: #2a3954;
  --login-muted: #707f98;
  --login-label: #202e49;
  --login-input-bg: #f2f5fb;
  --login-input-border: #d9e1f0;
  --login-input-focus: #9db4e8;
  --login-link: #2e63cf;
  --login-button: #2f5fbb;
  --login-button-dark: #284fa0;
  margin: 0;
  padding: 28px clamp(18px, 3vw, 42px);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(900px 360px at 50% 0%, rgba(255, 255, 255, 0.8), transparent 72%),
    linear-gradient(180deg, #f5f7fb 0%, var(--login-page) 100%);
}

.login-screen .login-theme-toggle {
  display: none;
}

.login-portal .container {
  width: min(1240px, 100%);
  min-height: min(620px, calc(100vh - 110px));
  display: grid;
  grid-template-columns: minmax(340px, 1fr) minmax(420px, 1fr);
  background: var(--login-shell);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(214, 222, 237, 0.95);
  box-shadow: 0 28px 64px rgba(70, 90, 124, 0.18);
}

.login-portal .container:hover {
  box-shadow: 0 32px 70px rgba(70, 90, 124, 0.2);
}

.login-portal .login-brand-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 4vw, 56px);
  background:
    radial-gradient(360px 240px at 50% 55%, rgba(255, 255, 255, 0.06), transparent 70%),
    linear-gradient(180deg, var(--login-brand) 0%, var(--login-brand-dark) 100%);
}

.login-portal .login-brand-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.04));
  pointer-events: none;
}

.login-portal .login-brand-logo {
  position: relative;
  z-index: 1;
  width: min(72%, 340px);
  height: auto;
  filter: drop-shadow(0 14px 34px rgba(0, 0, 0, 0.18));
}

.login-portal .form-wrapper {
  width: 100%;
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(40px, 5vw, 64px) clamp(34px, 5vw, 72px);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.login-portal .form-wrapper > * {
  width: min(100%, 420px);
}

.login-portal .welcome-section {
  margin-bottom: 28px;
  text-align: left;
}

.login-portal .title {
  margin: 0 0 8px;
  color: var(--login-text);
  font-size: clamp(34px, 3vw, 46px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.login-portal .subtitle {
  margin: 0;
  color: var(--login-muted);
  font-size: 16px;
  line-height: 1.55;
}

.login-portal .input-box {
  margin-bottom: 22px;
}

.login-portal .input-box label {
  margin-bottom: 10px;
  color: var(--login-label);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-portal .input-box label i {
  color: var(--login-link);
  font-size: 14px;
}

.login-portal .input-box input {
  width: 100%;
  height: 54px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid var(--login-input-border);
  background: var(--login-input-bg);
  color: #4a5a76;
  font-size: 15px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.login-portal .input-box input::placeholder {
  color: #7f8da5;
}

.login-portal .input-box input:focus {
  border-color: var(--login-input-focus);
  box-shadow: 0 0 0 4px rgba(47, 95, 187, 0.12);
}

.login-portal .password-wrapper {
  position: relative;
}

.login-portal .password-wrapper input {
  padding-right: 52px;
}

.login-portal .toggle-password {
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  color: #57667f;
}

.login-portal .toggle-password:hover {
  background: rgba(47, 95, 187, 0.08);
  color: var(--login-link);
}

.login-portal .capslock-warning {
  margin-top: 8px;
  border-radius: 10px;
  border-left: 0;
}

.login-portal .remember-forgot {
  margin: 6px 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
}

.login-portal .checkbox-container {
  gap: 10px;
}

.login-portal .checkbox-container input[type="checkbox"] {
  display: none;
}

.login-portal .checkmark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1.6px solid #ccd6e9;
  background: #ffffff;
}

.login-portal .checkbox-container input:checked + .checkmark {
  background: var(--login-button);
  border-color: var(--login-button);
}

.login-portal .checkbox-label {
  color: #25344e;
  font-size: 13px;
  font-weight: 500;
}

.login-portal .forgot {
  padding: 0;
  color: var(--login-link);
  font-size: 13px;
  font-weight: 500;
}

.login-portal .forgot:hover {
  background: transparent;
  color: var(--login-button-dark);
}

.login-portal .login-error,
.login-portal .error-message {
  font-size: 12px;
}

.login-portal .login-button {
  height: 60px;
  margin-top: 2px;
  border-radius: 14px;
  background: linear-gradient(180deg, #3164c5 0%, #2d59b1 100%);
  box-shadow: 0 16px 32px rgba(47, 95, 187, 0.2);
  font-size: 18px;
  font-weight: 700;
}

.login-portal .login-button:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #2958b4 0%, #264d9c 100%);
  box-shadow: 0 18px 36px rgba(47, 95, 187, 0.24);
}

.login-portal .login-footer {
  display: none;
}

.login-portal.theme-dark {
  --login-page: #0f1726;
  --login-shell: #0f1726;
  --login-brand: #183c84;
  --login-brand-dark: #122d63;
  --login-text: #eff4ff;
  --login-muted: #a9b7cf;
  --login-label: #dce6f8;
  --login-input-bg: #162235;
  --login-input-border: #23324a;
  --login-input-focus: #4b76d2;
  --login-link: #8cb0ff;
  --login-button: #3164c5;
  --login-button-dark: #274e9b;
}

.login-portal.theme-dark .container {
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 30px 62px rgba(0, 0, 0, 0.42);
}

.login-portal.theme-dark .form-wrapper {
  background: transparent;
}

.login-portal.theme-dark .input-box input {
  color: #dfe7f8;
}

@media (max-width: 900px) {
  .login-portal .container {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .login-portal .login-brand-panel {
    min-height: 220px;
    padding: 34px 24px;
  }

  .login-portal .login-brand-logo {
    width: min(68%, 280px);
  }
}

@media (max-width: 768px) {
  .login-portal {
    padding: 16px 10px;
  }

  .login-portal .container {
    border-radius: 22px;
  }

  .login-portal .form-wrapper {
    padding: 30px 22px;
  }

  .login-portal .title {
    font-size: 32px;
  }

  .login-portal .remember-forgot {
    flex-direction: column;
    align-items: flex-start;
  }
}

.sidebar-footer {
  margin-top: auto;
  padding: 16px 20px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.sidebar-powered {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.4px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
}

.sidebar-powered img {
  height: 14px;
  width: auto;
  display: block;
}

.sidebar-profile {
  margin: 16px 20px 8px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.sidebar-profile .sidebar-user {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-user {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: #0b1120;
  background: linear-gradient(135deg, #c7d2fe, #a7f3d0);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
  text-transform: uppercase;
}

.user-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.user-name {
  font-weight: 600;
  font-size: 13px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.user-role {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.sidebar-logout {
  margin-left: 0;
  width: 100%;
  padding: 10px 16px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sidebar-logout:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.theme-toggle {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.16);
}

.login-theme-toggle {
  position: absolute;
  top: 18px;
  right: 20px;
  width: auto;
  padding: 8px 12px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  background: rgba(255, 255, 255, 0.9);
  color: #334155;
  z-index: 1002;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
}

.login-theme-toggle:hover {
  background: #ffffff;
}

.sidebar-collapsed .theme-toggle {
  width: 40px;
  padding: 10px;
}

.sidebar-collapsed .theme-toggle .theme-toggle-label {
  display: none;
}

/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 20px;
  vertical-align: middle;
  margin-right: 4px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #dc3545; /* inactive = red */
  transition: 0.2s;
  border-radius: 20px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.2s;
  border-radius: 50%;
}

.slider:after {
  content: "OFF";
  position: absolute;
  top: 50%;
  right: 5px;
  transform: translateY(-50%);
  font-size: 8px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.2px;
  line-height: 1;
  pointer-events: none;
}

input:checked + .slider {
  background-color: #28a745; /* active = green */
}

input:checked + .slider:before {
  transform: translateX(22px);
}

input:checked + .slider:after {
  content: "ON";
  left: 6px;
  right: auto;
}

.status-text {
  font-size: 0.85rem;
  font-weight: 600;
}

body.theme-light .sidebar {
  background: linear-gradient(180deg, #0b4aa6 0%, #0a3f96 55%, #0a357f 100%);
  box-shadow: 4px 0 20px rgba(15, 23, 42, 0.08);
}

body.theme-light .sidebar-logo {
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

body.theme-light .sidebar-collapse-btn {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

body.theme-light .sidebar-collapse-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

body.theme-light .sidebar-section {
  color: #ffffff;
  opacity: 0.7;
}

body.theme-light .sidebar a {
  color: #ffffff;
}

body.theme-light .sidebar a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

body.theme-light .sidebar a.sidebar-item-card {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

body.theme-light .sidebar a.sidebar-item-card:hover {
  background: rgba(255, 255, 255, 0.18);
}

body.theme-light .sidebar a.sidebar-item-card.active {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

body.theme-light .sidebar a .nav-subtitle {
  color: rgba(255, 255, 255, 0.72);
}

.sidebar a.sidebar-item-card .nav-label,
.sidebar a.sidebar-item-card .nav-subtitle {
  text-align: left;
}

body.theme-light .sidebar a.active {
  background: rgba(255, 255, 255, 0.22);
  border-left-color: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

body.theme-light .sidebar-profile {
  border-color: rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

body.theme-light.sidebar-collapsed .sidebar-profile {
  padding: 10px;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

body.theme-light .sidebar-profile .sidebar-user,
body.theme-light .sidebar-user {
  color: #334155;
}

body.theme-light .user-name {
  color: #334155;
}

body.theme-light .user-role {
  color: #64748b;
}

body.theme-light .sidebar-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.1);
}

body.theme-light .theme-toggle {
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.84);
  color: #334155;
}

body.theme-light .theme-toggle:hover {
  background: #ffffff;
}

body.theme-light .sidebar-logout {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.76);
  color: #1e293b;
}

body.theme-light .sidebar-logout:hover {
  background: #ffffff;
}

body.theme-light .sidebar-powered {
  color: #64748b;
}
body.theme-dark {
  --app-bg: #0f172a;
  --app-text: #e6eaf1;
  --surface: #1e293b;
  --surface-muted: #111827;
  --border-color: #2a3344;
  --muted-text: #a5b0c2;
  --field-bg: #0f172a;
  --field-border: #2a3344;
  --table-hover: #1f2937;
  --panel-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  --thead-bg: linear-gradient(135deg, #1b2433, #202c3f);
}

body.theme-dark .main {
  color: var(--app-text);
}

body.theme-dark .page-header p,
body.theme-dark .kpi-label,
body.theme-dark .kpi-meta,
body.theme-dark .pagination-info,
body.theme-dark .source-card-label,
body.theme-dark .source-card-stat-label,
body.theme-dark .filter-field label,
body.theme-dark .filter-group label,
body.theme-dark .filter-meta,
body.theme-dark .tx-source-label,
body.theme-dark .tx-field-label,
body.theme-dark .tx-detail-item span,
body.theme-dark .filter-search i {
  color: var(--muted-text);
}

body.theme-dark .page-header h2 {
  color: #ffffff;
}

body.theme-dark .kpi-card,
body.theme-dark .card,
body.theme-dark .source-card,
body.theme-dark .tx-detail-card,
body.theme-dark .tx-transform-panel,
body.theme-dark .tx-source-row,
body.theme-dark .filter-dropdown,
body.theme-dark .modal,
body.theme-dark .page-number,
body.theme-dark .mapping-embed-frame {
  background: var(--surface);
  color: var(--app-text);
  border-color: var(--border-color);
  box-shadow: var(--panel-shadow);
}

body.theme-dark .tx-transform-code,
body.theme-dark .tx-readonly-value,
body.theme-dark .tx-detail-item strong {
  background: var(--surface-muted);
  color: var(--app-text);
  border-color: var(--border-color);
}

body.theme-dark table th {
  background: var(--thead-bg);
  color: #dde3ee;
}

body.theme-dark .page-breadcrumb,
body.theme-dark .page-subtitle {
  color: var(--muted-text);
}

body.theme-dark .tx-hub-card {
  background: var(--surface);
  border-color: var(--border-color);
}

body.theme-dark .tx-hub-filters {
  border-color: var(--border-color);
}

body.theme-dark .tx-chip {
  background: rgba(148, 163, 184, 0.12);
  color: var(--app-text);
  border-color: rgba(148, 163, 184, 0.3);
}

body.theme-dark .tx-chip-active {
  background: rgba(59, 130, 246, 0.2);
  color: #bfdbfe;
  border-color: rgba(59, 130, 246, 0.5);
}

body.theme-dark .tx-hub-field select,
body.theme-dark .tx-hub-field input {
  background: var(--field-bg);
  border-color: var(--field-border);
  color: var(--app-text);
}

body.theme-dark .tx-table-title {
  color: #e2e8f0;
}

body.theme-dark .tx-pill {
  background: rgba(148, 163, 184, 0.16);
  color: var(--app-text);
}

body.theme-dark .tx-owner {
  background: rgba(99, 102, 241, 0.2);
  color: #c7d2fe;
}

body.theme-dark .tx-owner--t24 {
  background: #1e3a8a;
  color: #dbeafe;
}

body.theme-dark .tx-owner--fti {
  background: #1e3a8a;
  color: #dbeafe;
}

body.theme-dark .tx-owner--bie {
  background: #14532d;
  color: #dcfce7;
}

body.theme-dark .tx-owner--inc {
  background: #4c1d95;
  color: #ede9fe;
}

body.theme-dark .tx-owner--ppa {
  background: #881337;
  color: #ffe4e6;
}

body.theme-dark .tx-owner--dep {
  background: #0c4a6e;
  color: #e0f2fe;
}

body.theme-dark .tx-owner--interbank {
  background: #064e3b;
  color: #d1fae5;
}

body.theme-dark .tx-owner--fa {
  background: #78350f;
  color: #fef3c7;
}

body.theme-dark .tx-owner--neutral {
  background: #334155;
  color: #e2e8f0;
}

body.theme-dark .tx-date {
  color: #e2e8f0;
}

body.theme-dark .tx-time {
  color: var(--muted-text);
}

body.theme-dark table td,
body.theme-dark .pagination-container,
body.theme-dark .source-card-stats,
body.theme-dark .source-card-actions,
body.theme-dark .tx-transform-code,
body.theme-dark .tx-transform-panel,
body.theme-dark .tx-source-row,
body.theme-dark .modal-header,
body.theme-dark .modal-footer {
  border-color: var(--border-color);
}

body.theme-dark table td {
  color: #e6eaf1;
  border-bottom-color: #2d3748;
}

body.theme-dark table tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.01);
}

body.theme-dark table tbody tr:nth-child(even) {
  background: rgba(148, 163, 184, 0.03);
}

body.theme-dark table tbody tr:hover {
  background: var(--table-hover);
}

body.theme-dark .table-container::-webkit-scrollbar-track {
  background: #1f2937;
}

body.theme-dark .table-container::-webkit-scrollbar-thumb {
  background: #475569;
}

body.theme-dark .view-btn,
body.theme-dark .page-number,
body.theme-dark .tx-collapse-btn {
  background: #2d3a4a;
  color: #d1d5db;
  border-color: var(--border-color);
}

body.theme-dark .view-btn:hover,
body.theme-dark .page-number:hover:not(.active),
body.theme-dark .tx-collapse-btn:hover {
  background: #334155;
}

body.theme-dark .view-btn.active,
body.theme-dark .page-number.active {
  background: #3b82f6;
  color: #fff;
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.35);
}

body.theme-dark .filter-search input,
body.theme-dark .filter-field input,
body.theme-dark .filter-field select,
body.theme-dark .filter-group input,
body.theme-dark .filter-group select,
body.theme-dark .filter-dropdown .filter-group input,
body.theme-dark .filter-dropdown .filter-group select,
body.theme-dark .tx-field-control,
body.theme-dark .tx-repair-input {
  background: var(--field-bg);
  color: var(--app-text);
  border-color: var(--field-border);
}

body.theme-dark .form-group label,
body.theme-dark .form-group.horizontal label,
body.theme-dark .detail-label {
  color: #d1d5db;
}

body.theme-dark .form-group input,
body.theme-dark .form-group textarea,
body.theme-dark .form-group select,
body.theme-dark select {
  color: #e6eaf1;
  background-color: #334155;
  border-color: #2a3344;
}

body.theme-dark .form-group input::placeholder,
body.theme-dark .form-group textarea::placeholder {
  color: #94a3b8;
}

body.theme-dark .form-group select,
body.theme-dark select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23cbd5e1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

body.theme-dark .filter-field select,
body.theme-dark .filter-group select,
body.theme-dark .filter-dropdown .filter-group select {
  background-color: #334155;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23e2e8f0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 42px;
}

body.theme-dark .filter-field select:hover,
body.theme-dark .filter-field select:focus,
body.theme-dark .filter-group select:hover,
body.theme-dark .filter-group select:focus,
body.theme-dark .filter-dropdown .filter-group select:hover,
body.theme-dark .filter-dropdown .filter-group select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23e2e8f0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
}


body.theme-dark .modal-close {
  color: #cbd5e1;
}

body.theme-dark .modal-close:hover {
  background: #1f2937;
  color: #ffffff;
}

body.theme-dark .card-title,
body.theme-dark .source-card-title,
body.theme-dark .source-card-value,
body.theme-dark .tx-detail-title h3,
body.theme-dark .tx-detail-card-header h4,
body.theme-dark .tx-source-value,
body.theme-dark .page-dots {
  color: var(--app-text);
}

body.theme-dark .source-card {
  border-color: #2a3344;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

body.theme-dark .source-card:hover {
  border-color: #3b82f6;
}

body.theme-dark .badge-success {
  background: #ecfdf5;
  color: #059669;
  border-color: transparent;
  box-shadow: none;
}

body.theme-dark .badge-trade {
  background: #ecfdf5;
  color: #059669;
  border-color: transparent;
  box-shadow: none;
}

body.theme-dark .badge-danger {
  color: #f87171;
  background: rgba(248, 113, 113, 0.18);
  border-color: rgba(248, 113, 113, 0.3);
  box-shadow: 0 0 12px rgba(248, 113, 113, 0.12);
}

body.theme-dark .badge-info {
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.18);
  border-color: rgba(96, 165, 250, 0.28);
}

body.theme-dark .switch .slider {
  background-color: #f87171;
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.25);
}

body.theme-dark .switch input:checked + .slider {
  background-color: #4ade80;
  box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.3);
}

body.theme-dark .table-actions .btn.btn-sm,
body.theme-dark .source-card-actions .btn.btn-sm {
  background: #1e293b;
  border: 1px solid #2a3344;
}

body.theme-dark .table-actions .btn[data-action="edit"],
body.theme-dark .source-card-actions .btn[data-action="edit"] {
  color: #3b82f6;
}

body.theme-dark .table-actions .btn[data-action="delete"],
body.theme-dark .source-card-actions .btn[data-action="delete"] {
  color: #ef4444;
}

body.theme-dark .table-actions .btn.btn-sm:hover,
body.theme-dark .source-card-actions .btn.btn-sm:hover {
  background: #243244;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.2), 0 6px 14px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

body.theme-dark .login-theme-toggle {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.8);
  color: #e2e8f0;
}

body.theme-dark .login-theme-toggle:hover {
  background: rgba(15, 23, 42, 0.95);
}

body.theme-dark .swift-detail-section {
  background: var(--surface);
  border-color: var(--border-color);
  box-shadow: var(--panel-shadow);
}

body.theme-dark .swift-detail-section-title {
  color: #93c5fd;
}

body.theme-dark .ai-help-status {
  color: #cbd5e1;
}

body.theme-dark .ai-help-status-dot {
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.22);
}

body.theme-dark .ai-msg-avatar {
  background: #1e3a8a;
  color: #dbeafe;
}

body.theme-dark .ai-msg-row.user .ai-msg-avatar {
  background: #334155;
  color: #bfdbfe;
}

body.theme-dark .ai-msg-bubble {
  border-color: #334155;
}

body.theme-dark .ai-msg-bubble.assistant {
  background: #0f172a;
  color: #dbeafe;
  border-color: #1e293b;
}

body.theme-dark .ai-help-tx-card,
body.theme-dark .ai-help-party-card,
body.theme-dark .ai-help-fx-card,
body.theme-dark .ai-help-pdf-card {
  background: #1e293b;
  border-color: #334155;
}

body.theme-dark .ai-help-tx-id,
body.theme-dark .ai-help-tx-amount {
  color: #f1f5f9;
}

body.theme-dark .ai-help-tx-dl dd {
  color: #e2e8f0;
}

body.theme-dark .ai-help-tx-foot {
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
}

body.theme-dark .ai-help-ev-table td {
  border-color: #334155;
}

body.theme-dark .ai-msg-bubble.user {
  background: #1e3a8a;
  color: #dbeafe;
  border-color: #1d4ed8;
}

body.theme-dark .ai-msg-option-btn,
body.theme-dark .ai-help-quick-action-btn {
  background: #0f172a;
  border-color: #334155;
  color: #bfdbfe;
}

body.theme-dark .ai-msg-option-btn:hover,
body.theme-dark .ai-help-quick-action-btn:hover {
  background: #1e293b;
  border-color: #475569;
}

body.theme-dark .ai-help-composer {
  background: #0f172a;
  border-color: #334155;
}

body.theme-dark .ai-help-composer input {
  color: #e2e8f0;
}

body.theme-dark .ai-help-composer input::placeholder {
  color: #94a3b8;
}

/* ===== Inbound Channels (Aligned With Shared UI) ===== */
.inbound-integration-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -10px 0 12px;
}

.inbound-integration-strip .integration-label {
  color: #6b7280;
  font-size: 15px;
  font-weight: 500;
}

.inbound-integration-strip .integration-pill {
  border: 1px solid #dbe3f1;
  border-radius: 999px;
  height: 36px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.inbound-integration-strip .integration-pill.active {
  color: #ffffff;
  background: #3f51d7;
  border-color: #3f51d7;
}

.inbound-integration-strip .integration-pill i {
  font-size: 8px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.inbound-integration-strip .integration-pill.active i {
  opacity: 1;
}

#inbound-channels #inboundItemsPerPageSelect {
  display: inline-block;
}

body.theme-dark .inbound-integration-strip .integration-label {
  color: #a5b0c2;
}

body.theme-dark .inbound-integration-strip .integration-pill {
  border-color: #2a3344;
  background: #1f2937;
  color: #c8d4e6;
}

body.theme-dark .inbound-integration-strip .integration-pill.active {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #ffffff;
}





