:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #191c20;
  background: #f7f8fa;
  font-synthesis: none;
  --accent: #1554e8;
  --line: #e5e7eb;
  --refund: #f97316;
  --refund-soft: #fff4e8;
  --refund-line: #fdba74;
  --refund-count: #ffdfbf;
  --refund-shadow: rgb(249 115 22 / 18%);
  --fee: #dc2626;
  --fee-soft: #fff1f2;
  --fee-line: #fca5a5;
  --fee-count: #fee2e2;
  --fee-shadow: rgb(220 38 38 / 18%);
  --markup: #7c3aed;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  height: 76px;
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 36px;
  gap: 32px;
}
.wordmark {
  font-size: 26px;
  letter-spacing: -1px;
  font-weight: 900;
  color: #111318;
  text-decoration: none;
}
.mark {
  color: #1554e8;
  margin-left: 6px;
}
header > span {
  font-size: 13px;
  color: #68777d;
  flex: 1;
}
.shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: calc(100vh - 76px);
}
aside {
  padding: 38px 20px;
  border-right: 1px solid var(--line);
  background: #fff;
  display: flex;
  flex-direction: column;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: #6a7a7e;
  font-weight: bold;
  margin: 0 16px 18px;
}
nav {
  display: grid;
  gap: 8px;
}
nav button {
  border: 0;
  text-align: left;
  background: transparent;
  color: #525966;
}
nav button.selected {
  background: #edf2ff;
  color: #1554e8;
}
.aside-note {
  margin-top: auto;
  padding: 24px 14px 4px;
  font-size: 12px;
  line-height: 1.7;
  color: #788784;
}
main {
  padding: 48px;
  max-width: 1400px;
  width: 100%;
}
h1 {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -1.5px;
  margin: 0 0 12px;
}
h2 {
  font-size: 19px;
  margin: 0 0 20px;
}
.muted,
.subtitle {
  color: #68777d;
  line-height: 1.6;
}
.subtitle {
  margin: 0 0 30px;
  font-size: 14px;
}
.topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.topline h1 {
  margin-bottom: 0;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 24px;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.stack {
  display: grid;
  gap: 18px;
}
label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}
input,
select,
textarea {
  font: inherit;
  font-size: 14px;
  border: 1px solid #cbd6d6;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  width: 100%;
  color: inherit;
}
textarea {
  min-height: 86px;
  resize: vertical;
}
button,
.button {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 12px 17px;
  border: 1px solid #cad6d0;
  border-radius: 12px;
  color: var(--accent);
  background: white;
  cursor: pointer;
  text-decoration: none;
}
button.primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:hover {
  filter: brightness(0.96);
}
:focus-visible {
  outline: 3px solid #1554e8;
  outline-offset: 3px;
}
.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 20px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th {
  text-align: left;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #6c7e7a;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 18px 12px;
  border-bottom: 1px solid #eef1f1;
}
.pill {
  display: inline-block;
  background: #f0f3ed;
  padding: 7px 10px;
  border-radius: 5px;
  font-size: 11px;
  color: #496044;
}
.empty {
  padding: 64px 24px;
  text-align: center;
}
.empty .icon {
  font-size: 32px;
  color: #8ca59d;
  margin-bottom: 16px;
}
.empty h2 {
  margin: 0 0 10px;
}
.empty p {
  max-width: 430px;
  margin: 0 auto;
  color: #74817e;
  font-size: 14px;
  line-height: 1.7;
}
#notice:not(:empty) {
  background: #fff3d7;
  border: 1px solid #ecd6a4;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 14px;
}
.login {
  max-width: 460px;
  margin: 36px auto;
}
.applicant {
  border-left: 3px solid #d9e6de;
  padding-left: 15px;
  margin: 15px 0;
}
.secret {
  word-break: break-all;
  background: #f1f5f3;
  padding: 16px;
  user-select: all;
  font-family: monospace;
}
.local-label {
  color: #9a6525;
}
.table-wrap {
  overflow-x: auto;
}
details {
  margin-top: 24px;
}
summary {
  cursor: pointer;
  color: var(--accent);
  font-size: 14px;
}
.portal aside {
  display: none;
}
.portal .shell {
  display: block;
}
.portal main {
  max-width: 820px;
  margin: 0 auto;
}
.progress {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  font-size: 12px;
  color: #6d837a;
}
.progress span {
  padding: 8px 12px;
  background: #e8efeb;
  border-radius: 5px;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}
small {
  color: #68777d;
}
@media (max-width: 1000px) {
  header {
    padding: 0 20px;
    gap: 16px;
    height: 72px;
  }
  .shell {
    display: block;
  }
  aside {
    padding: 14px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  aside .eyebrow,
  .aside-note {
    display: none;
  }
  nav {
    display: flex;
  }
  main {
    padding: 28px 20px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .topline {
    align-items: flex-start;
    flex-direction: column;
  }
  .panel {
    padding: 20px;
  }
  h1 {
    font-size: 28px;
  }
  header > span {
    font-size: 11px;
  }
}

/* Shared workspace and access states, release 8.13.1. */
body {
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
[hidden] {
  display: none !important;
}
header {
  gap: 24px;
}
header .release {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 600;
  color: #414956;
  background: #f1f3f6;
  padding: 7px 11px;
  border-radius: 999px;
}
.wordmark {
  font-weight: 850;
  letter-spacing: -1.2px;
}
button,
.button {
  min-height: 44px;
  transition: background-color 0.12s ease;
}
nav button {
  border-radius: 12px;
  padding: 14px 16px;
}
nav button:hover {
  background: #f1f4fa;
}
nav button.selected {
  font-weight: 700;
}
nav button.selected::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 10px;
  vertical-align: middle;
}
main {
  min-width: 0;
}
.topline select {
  max-width: 280px;
}
.panel {
  box-shadow: 0 2px 8px rgb(20 30 55 / 2%);
}
input,
select,
textarea {
  min-height: 46px;
}
input:hover,
select:hover,
textarea:hover {
  border-color: #8a94a6;
}
th {
  color: #606a7b;
}
td {
  overflow-wrap: anywhere;
}
.pill {
  border-radius: 999px;
}
.signed-out aside {
  display: none;
}
.signed-out .shell {
  display: block;
}
.signed-out main {
  max-width: 740px;
  margin: 0 auto;
  padding-top: 72px;
}
.signed-out h1,
.signed-out .subtitle {
  text-align: center;
}
.login {
  padding: 32px;
}
.login h2 {
  font-size: 23px;
  letter-spacing: -0.5px;
}
.login .muted {
  font-size: 14px;
}
.login form {
  margin-top: 26px;
}
.login form button {
  width: 100%;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 10;
  background: #111;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
}
.skip-link:focus-visible {
  top: 12px;
}
#app:focus {
  outline: none;
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
@media (max-width: 1000px) {
  nav {
    overflow-x: auto;
    padding-bottom: 4px;
  }
  nav button {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  header {
    flex-wrap: wrap;
    height: auto;
    min-height: 76px;
    padding: 16px 20px;
    gap: 12px;
  }
  header #environment {
    order: 3;
    flex-basis: 100%;
  }
  .wordmark {
    margin-right: auto;
  }
  .signed-out main {
    padding-top: 38px;
  }
  .signed-out h1 {
    font-size: 32px;
  }
  .login {
    padding: 24px;
    margin-top: 24px;
  }
  .topline select {
    max-width: none;
  }
}

/* Account dashboard follows the supplied Word handover's information hierarchy. */
body:not(.signed-out):not(.portal) {
  background: white;
}
body:not(.signed-out):not(.portal) header {
  margin-left: 210px;
  height: 74px;
  padding: 0 26px;
}
body:not(.signed-out):not(.portal) header .wordmark {
  display: none;
}
body:not(.signed-out):not(.portal) .shell {
  display: block;
  margin-left: 210px;
}
body:not(.signed-out):not(.portal) aside {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 210px;
  padding: 24px 14px;
  overflow-y: auto;
}
.sidebar-brand {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -1.6px;
  text-decoration: none;
  color: #131b2b;
  margin: 0 10px 42px;
}
.sidebar-footer {
  margin-top: auto;
  padding-top: 36px;
  color: #536581;
  font-size: 12px;
}
.sidebar-footer select {
  font-size: 13px;
}
#identity {
  color: #202b40;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.aside-note {
  margin-top: 0;
  font-size: 10px;
  padding: 10px 0;
}
aside .eyebrow {
  display: none;
}
nav button {
  font-weight: 400;
  font-size: 13px;
  color: #41516c;
  padding: 13px 12px;
  border-radius: 5px;
}
nav button.selected {
  background: #eaf0ff;
  color: #164ade;
}
#breadcrumb {
  font-size: 13px;
  color: #354560;
}
header #environment {
  font-size: 10px;
  text-align: right;
}
main {
  max-width: none;
  padding: 26px;
}
.signed-out #breadcrumb,
.portal #breadcrumb {
  display: none;
}
.signed-out .sidebar-brand {
  display: none;
}
.dashboard-selectors {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: end;
  margin-bottom: 22px;
}
.dashboard-selectors label {
  font-size: 11px;
  color: #637493;
  min-width: 200px;
}
.dashboard-selectors select {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 6px;
  max-width: 360px;
  font-size: 12px;
}
.source-caption {
  font-size: 10px;
  letter-spacing: 1px;
  color: #647698;
  margin: 0 0 13px;
}
.account-hero {
  border: 1px solid #dfe5ef;
  border-radius: 7px;
  padding: 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.account-hero h1 {
  font-size: 23px;
  letter-spacing: -0.6px;
  margin-bottom: 10px;
}
.account-hero p {
  font-size: 12px;
  margin: 6px 0;
}
.account-iban {
  letter-spacing: 0.4px;
  overflow-wrap: anywhere;
}
.hero-balance {
  text-align: right;
}
.hero-balance strong {
  font-size: 30px;
  letter-spacing: -1px;
}
.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0 26px;
}
.metric {
  border: 1px solid #dfe5ef;
  border-radius: 7px;
  padding: 18px 22px;
  min-width: 0;
}
.metric p {
  font-size: 11px;
  margin: 0 0 10px;
}
.metric strong {
  display: block;
  font-size: 24px;
  letter-spacing: -0.7px;
  margin-bottom: 10px;
  overflow-wrap: anywhere;
}
.credit {
  color: #087358;
}
.debit {
  color: #bc3345;
}
.dashboard-tabs {
  display: flex;
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid #dfe5ef;
  margin: 0 0 18px;
  overflow-x: auto;
}
.dashboard-tabs button {
  border: none;
  padding: 12px 0;
  font-size: 12px;
  color: #41516c;
  font-weight: 400;
  white-space: nowrap;
}
.active-tab {
  color: #2051e9;
  border-bottom: 3px solid #2051e9;
  padding: 15px 0;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.history-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 305px;
  gap: 17px;
  align-items: start;
}
.history-panel,
.transaction-detail {
  border: 1px solid #dfe5ef;
  border-radius: 7px;
  min-width: 0;
}
.history-filters {
  display: flex;
  gap: 9px;
  padding: 14px;
}
.history-filters input,
.history-filters select {
  font-size: 12px;
  min-height: 36px;
  border-radius: 6px;
  padding: 8px;
}
.history-filters select {
  width: 140px;
}
.history-filters button {
  min-height: 36px;
  font-size: 12px;
  border-radius: 6px;
}
.history-panel table {
  font-size: 10px;
}
.history-panel th {
  text-transform: none;
  font-size: 10px;
  letter-spacing: 0;
  padding: 13px 12px;
  background: #f7f9fd;
}
.history-panel td {
  padding: 14px 12px;
  vertical-align: top;
}
.history-panel td:nth-child(4) {
  white-space: nowrap;
  font-weight: 650;
}
.history-panel td button {
  border: 0;
  padding: 0;
  text-align: left;
  min-height: 26px;
  font-size: 11px;
  font-weight: 400;
  color: #1f2d46;
  background: transparent;
}
.history-panel tr.chosen {
  background: #edf2ff;
}
.history-pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px;
  color: #637493;
  font-size: 10px;
}
.history-pagination span {
  flex: 1;
}
.history-pagination button {
  min-height: 30px;
  padding: 5px 8px;
  font-size: 10px;
  border-radius: 5px;
}
.history-empty {
  padding: 35px 22px;
  color: #61718c;
  font-size: 13px;
  line-height: 1.7;
}
.transaction-detail {
  padding: 20px;
  min-height: 360px;
}
.transaction-detail h2 {
  font-size: 15px;
}
.detail-amount {
  display: block;
  font-size: 29px;
  letter-spacing: -1px;
  margin: 18px 0;
  overflow-wrap: anywhere;
}
.transaction-detail h3 {
  font-size: 12px;
  border-top: 1px solid #e5e9f1;
  padding-top: 20px;
  margin-top: 22px;
}
.transaction-detail p,
.transaction-detail .pill {
  font-size: 10px;
}
.transaction-detail dl {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 13px 8px;
  font-size: 10px;
}
.transaction-detail dt {
  color: #657795;
}
.transaction-detail dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.dashboard-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 322px 14px 0;
}
.dashboard-bottom h3 {
  font-size: 12px;
  margin: 0 0 12px;
}
.dashboard-bottom button {
  padding: 6px 0;
  min-height: 30px;
  border: 0;
  font-size: 11px;
}
.dashboard-footnote {
  color: #667997;
  font-size: 10px;
  line-height: 1.7;
}
.dashboard-warning {
  background: #fff5df;
  padding: 14px;
  border-radius: 6px;
}
@media (max-width: 1100px) {
  .history-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .dashboard-bottom {
    margin-right: 0;
  }
  .dashboard-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 1000px) {
  body:not(.signed-out):not(.portal) header {
    margin-left: 0;
    height: auto;
  }
  body:not(.signed-out):not(.portal) header .wordmark {
    display: inline;
  }
  body:not(.signed-out):not(.portal) .shell {
    margin-left: 0;
  }
  body:not(.signed-out):not(.portal) aside {
    position: static;
    width: auto;
    padding: 12px 20px;
  }
  .sidebar-brand,
  .sidebar-footer {
    display: none;
  }
  #breadcrumb {
    display: none;
  }
  .account-hero {
    align-items: flex-start;
    flex-direction: column;
  }
  .hero-balance {
    text-align: left;
  }
  .dashboard-selectors {
    flex-direction: column;
    align-items: stretch;
  }
  .dashboard-selectors label {
    min-width: 0;
  }
  .dashboard-selectors select {
    max-width: none;
  }
  .dashboard-bottom {
    grid-template-columns: 1fr;
  }
  .dashboard-metrics {
    gap: 10px;
  }
  .metric {
    padding: 15px;
  }
  .metric strong {
    font-size: 21px;
  }
  .history-filters {
    flex-wrap: wrap;
  }
  .history-filters input {
    flex-basis: 100%;
  }
  .history-filters select {
    flex: 1;
  }
  .transaction-detail {
    min-height: 0;
  }
}

@media (max-width: 1000px) {
  .sidebar-footer {
    display: block;
    padding-top: 12px;
  }
  .sidebar-footer #identity {
    display: none;
  }
  .transaction-detail.has-selection {
    position: fixed;
    inset: 0;
    z-index: 30;
    overflow-y: auto;
    background: white;
    border-radius: 0;
    padding: 24px;
  }
}

/* Reference dashboard alignment, 8.13.4. */
nav button {
  display: flex;
  align-items: center;
  gap: 12px;
}
nav button.selected::before {
  display: none;
}
.nav-icon {
  width: 15px;
  flex: 0 0 15px;
  text-align: center;
  font-size: 16px;
}
.dashboard-source-controls {
  margin-top: 18px;
  border-top: 1px solid #dfe5ef;
  padding-top: 16px;
}
.dashboard-source-controls summary {
  font-size: 12px;
}
.dashboard-source-controls .dashboard-selectors {
  margin-top: 18px;
}
.transaction-type,
.reference-missing {
  display: inline-block;
  font-size: 9px;
  padding: 5px 7px;
  border-radius: 3px;
  white-space: nowrap;
}
.transaction-type {
  color: #465979;
  background: #f0f3f9;
}
.transaction-type.outbound {
  color: #ab263c;
  background: #f8f0f2;
}
.reference-missing {
  color: #895400;
  background: #fff5df;
}
.reference-text {
  display: block;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.history-panel td:nth-child(4),
.history-panel th:nth-child(4) {
  text-align: right;
}
.history-panel td:nth-child(2) {
  white-space: nowrap;
}
.hero-balance strong {
  font-weight: 750;
}
.metric strong {
  font-weight: 700;
}
@media (min-width: 1101px) {
  .history-layout {
    grid-template-columns: minmax(0, 1fr) 316px;
  }
  .dashboard-bottom {
    margin-right: 333px;
  }
}

body {
  font-family:
    Arial,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
nav {
  gap: 4px;
}
nav button {
  padding: 12px 14px;
}
.account-hero h1 {
  font-size: 22px;
}
.account-hero p {
  line-height: 1.4;
}
.metric p {
  line-height: 1.4;
}
.metric p:last-child {
  margin-bottom: 0;
}
.metric strong {
  font-size: 22px;
}
.history-column {
  min-width: 0;
}
.history-column .dashboard-bottom {
  margin: 14px 0 0;
}
.transaction-detail > button {
  float: right;
  min-height: 30px;
  padding: 4px 8px;
  font-size: 10px;
}
.transaction-detail .detail-amount {
  clear: both;
}

.history-selection {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: #f9fbff;
  font-size: 12px;
}
.selection-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.selection-actions > p {
  margin: 0 auto 0 0;
  font-weight: 600;
}
.selection-actions button,
.history-selection button {
  min-height: 34px;
  padding: 6px 9px;
  font-size: 11px;
}
.selection-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin: 14px 0;
}
.selection-totals dt {
  color: #52627b;
  font-size: 11px;
}
.selection-totals dd {
  margin: 6px 0 0;
  font-weight: 700;
  font-size: 16px;
}
.selection-note {
  color: #52627b;
  font-size: 10px;
  line-height: 1.5;
  margin-bottom: 0;
}
.history-panel input.row-select {
  display: block;
  width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.history-panel th:first-child,
.history-panel td:first-child {
  width: 36px;
  padding-right: 2px;
}

.history-advanced {
  margin: 0;
  padding: 0 14px 12px;
}
.history-advanced summary {
  font-size: 12px;
}
.history-filter-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.history-filter-fields label {
  font-size: 11px;
  color: #52627b;
}
.history-filter-fields input,
.history-filter-fields select {
  min-width: 0;
  min-height: 38px;
  padding: 8px;
  font-size: 12px;
  border-radius: 6px;
}
.history-filter-fields [aria-invalid="true"] {
  border-color: #b32636;
  outline-color: #b32636;
}
.filter-help,
.filter-status {
  font-size: 11px;
  line-height: 1.5;
  color: #52627b;
}
.filter-status {
  margin: 0;
  padding: 0 14px 12px;
}
.filter-error {
  margin: 0 14px 12px;
  color: #a31c30;
  font-size: 12px;
  line-height: 1.5;
}
@media (max-width: 1000px) {
  .history-filter-fields {
    grid-template-columns: 1fr;
  }
}
.history-filter-fields .filter-error {
  margin: 0;
  font-weight: 400;
}

.order-portfolio-strip.account-directory-summary {
  margin: 18px 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-radius: 10px;
}
.account-directory-summary > * {
  min-width: 0;
  padding: 20px;
  border-left: 1px solid rgb(255 255 255 / 14%);
}
.account-directory-summary > *:first-child {
  border-left: 0;
}
.account-directory-toolbar {
  display: grid;
  grid-template-columns:
    minmax(240px, 1fr) minmax(160px, 210px) minmax(140px, 190px)
    auto;
  align-items: end;
  gap: 12px;
  margin: 18px 0 12px;
}
.account-directory-toolbar label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}
.account-directory-filter-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-height: 46px;
}
.account-directory-result {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.account-directory-filter-actions button {
  white-space: nowrap;
}
.account-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 20px 0;
}
.account-directory-card {
  border: 1px solid #dfe5ef;
  border-radius: 8px;
  padding: 24px;
  min-width: 0;
}
.account-card-top {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;
}
.account-card-top h2 {
  margin-bottom: 18px;
}
.account-directory-card dl {
  display: grid;
  grid-template-columns: 95px minmax(0, 1fr);
  gap: 14px 10px;
  font-size: 12px;
}
.account-directory-card dt {
  color: #52627b;
}
.account-directory-card dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.transaction-workspace .account-hero {
  margin-bottom: 18px;
}
@media (max-width: 1000px) {
  .order-portfolio-strip.account-directory-summary,
  .account-directory {
    grid-template-columns: 1fr;
  }
  .account-directory-summary > * {
    border-top: 1px solid rgb(255 255 255 / 14%);
    border-left: 0;
  }
  .account-directory-summary > *:first-child {
    border-top: 0;
  }
  .account-directory-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 759px) {
  .account-directory-toolbar {
    grid-template-columns: 1fr;
  }
  .account-directory-filter-actions {
    justify-content: space-between;
  }
}

/* 8.13.193: source-backed Dashboard coverage and original-file visibility. */
.dashboard-source-coverage {
  display: grid;
  gap: 18px;
  margin-top: 24px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  background:
    radial-gradient(circle at 94% 8%, rgb(21 84 232 / 8%), transparent 28%),
    #fff;
}
.dashboard-source-coverage-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 4px 20px;
}
.dashboard-source-coverage-heading .section-kicker,
.dashboard-source-coverage-heading h2,
.dashboard-source-coverage-heading p {
  grid-column: 1;
  margin: 0;
}
.dashboard-source-coverage-heading h2 {
  font-size: 1.08rem;
}
.dashboard-source-coverage-heading button {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
}
.dashboard-source-coverage-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.dashboard-source-coverage-metric {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 14px;
  border: 1px solid #dbe3ef;
  border-top: 3px solid #8fa0b8;
  border-radius: 11px;
  background: rgb(248 250 252 / 88%);
}
.dashboard-source-coverage-metric.complete {
  border-top-color: #15906f;
}
.dashboard-source-coverage-metric.critical {
  border-top-color: var(--fee);
  background: var(--fee-soft);
}
.dashboard-source-coverage-metric span,
.dashboard-source-coverage-metric small {
  color: #52627a;
  font-size: 0.72rem;
  line-height: 1.35;
}
.dashboard-source-coverage-metric strong {
  color: #172238;
  font-size: 1.45rem;
  line-height: 1.1;
}
.dashboard-source-coverage-files {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.dashboard-rf-quality {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  scroll-margin-top: 76px;
}
.dashboard-rf-quality-heading {
  grid-column: 1 / -1;
}
.dashboard-rf-quality-heading h3,
.dashboard-rf-quality-heading p {
  margin: 0;
}
.dashboard-rf-quality-heading h3 {
  color: #172238;
  font-size: 0.9rem;
  scroll-margin-top: 116px;
}
.dashboard-rf-quality-heading p {
  margin-top: 3px;
  font-size: 0.74rem;
}
.dashboard-rf-comparison {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.dashboard-rf-comparison-item {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid #c9e8de;
  border-radius: 11px;
  background: #f4fbf8;
}
.dashboard-rf-comparison-item.attention {
  border-color: #f1d9bc;
  background: #fff9f1;
}
.dashboard-rf-comparison-item.authority {
  border-color: #cad5e4;
  background: #f5f7fa;
}
.dashboard-rf-comparison-item span,
.dashboard-rf-comparison-item small {
  color: #607087;
  font-size: 0.7rem;
  line-height: 1.4;
}
.dashboard-rf-comparison-item strong {
  color: #172238;
  font-size: 0.84rem;
}
.dashboard-rf-comparison > p {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.7rem;
}
.dashboard-rf-intake {
  display: grid;
  min-width: 0;
  gap: 9px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}
.dashboard-rf-intake-title {
  display: grid;
  gap: 2px;
}
.dashboard-rf-intake-title strong {
  color: #172238;
  font-size: 0.84rem;
}
.dashboard-rf-intake-title span,
.dashboard-rf-intake small {
  color: #607087;
  font-size: 0.7rem;
  line-height: 1.4;
}
.dashboard-rf-authority {
  padding-top: 8px;
  border-top: 1px solid #e4e9f1;
  color: #46566e !important;
}
.dashboard-rf-intake progress {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #e9eef5;
  accent-color: #15906f;
}
.dashboard-rf-intake progress::-webkit-progress-bar {
  border-radius: 999px;
  background: #e9eef5;
}
.dashboard-rf-intake progress::-webkit-progress-value {
  border-radius: 999px;
  background: #15906f;
}
.dashboard-rf-intake > button {
  justify-self: start;
}
.dashboard-rf-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.dashboard-rf-facts span {
  padding: 3px 7px;
  border-radius: 999px;
  background: #eef2f7;
  color: #52627a;
  font-size: 0.66rem;
  font-weight: 700;
}
.dashboard-rf-facts .complete {
  background: #e8f7f2;
  color: #087357;
}
.dashboard-rf-facts .missing,
.dashboard-rf-facts .invalid {
  background: var(--fee-soft);
  color: var(--fee);
}
.dashboard-source-file {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.dashboard-source-file strong {
  overflow-wrap: anywhere;
  color: #172238;
  font-size: 0.84rem;
}
.dashboard-source-file span,
.dashboard-source-file small {
  color: #607087;
  font-size: 0.72rem;
  line-height: 1.4;
}
.dashboard-source-coverage-files > button {
  grid-column: 1 / -1;
  justify-self: start;
}
@media (max-width: 1040px) {
  .dashboard-source-coverage-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .dashboard-rf-quality {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 759px) {
  .dashboard-source-coverage {
    margin-top: 18px;
    padding: 18px;
  }
  .dashboard-source-coverage-heading {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
  .dashboard-source-coverage-heading button {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
    margin-top: 8px;
  }
  .dashboard-source-coverage-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-source-coverage-metric:last-child {
    grid-column: 1 / -1;
  }
  .dashboard-source-coverage-files {
    grid-template-columns: minmax(0, 1fr);
  }
  .dashboard-rf-quality {
    grid-template-columns: minmax(0, 1fr);
  }
  .dashboard-rf-comparison {
    grid-template-columns: minmax(0, 1fr);
  }
  .dashboard-source-coverage-files > button {
    width: 100%;
  }
}

/* Keep the product descriptor visually centered under the STRATOS wordmark. */
.sidebar-brand > span:last-child,
.sidebar-brand small {
  text-align: center;
}
.sidebar-brand small {
  justify-self: center;
  width: 100%;
}
.recognition-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0;
}
.recognition-values > section {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8faff;
}
.recognition-aliases {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.recognition-editor-disclosure {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.recognition-editor-disclosure > summary {
  padding: 12px 14px;
  color: var(--accent);
  font-weight: 750;
  cursor: pointer;
}
.recognition-editor-disclosure > form {
  margin: 0 12px 12px;
}
@media (max-width: 759px) {
  .recognition-values {
    grid-template-columns: 1fr;
  }
}

/* 8.13.168: make governed statement intake directly discoverable. */
.statement-upload-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(280px, 1.28fr) auto;
  align-items: end;
  gap: 14px;
  margin: 20px 0;
  padding: 20px;
  border: 1px solid #dce4f1;
  border-radius: 12px;
  background: linear-gradient(135deg, #f7faff 0%, #fff 72%);
}
.statement-upload-card h3,
.statement-upload-card > p {
  grid-column: 1 / -1;
  margin: 0;
}
.statement-upload-card .statement-upload-status {
  min-height: 20px;
  padding: 9px 11px;
  border-radius: 7px;
  background: #f3f6fb;
  font-size: 12px;
}
.statement-upload-card .statement-upload-status.is-error {
  color: #9f2d25;
  background: #fff0ee;
}
.statement-upload-card .statement-upload-status.is-success {
  color: #087450;
  background: #eaf8f1;
}
.statement-upload-card label {
  min-width: 0;
}
.statement-upload-card input[type="file"],
.statement-upload-card select {
  width: 100%;
}
@media (max-width: 759px) {
  .statement-upload-card {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .statement-upload-card h3,
  .statement-upload-card > p {
    grid-column: 1;
  }
  .statement-upload-card > button {
    width: 100%;
  }
}

.directory-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.account-directory-card .actions {
  gap: 8px;
}
.unassigned-account-discovery {
  display: grid;
  gap: 18px;
  margin-top: 38px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.unassigned-account-discovery-heading h2,
.unassigned-account-discovery-heading p,
.unassigned-account-discovery-error h2,
.unassigned-account-discovery-error p {
  margin: 0;
}
.unassigned-account-discovery-heading p,
.unassigned-account-discovery-error p {
  max-width: 78ch;
  margin-top: 7px;
  color: var(--muted);
}
.unassigned-account-discovery .financial-table td:first-child {
  min-width: 240px;
}
.unassigned-account-discovery .financial-table td:nth-child(2) {
  min-width: 210px;
}
.unassigned-account-discovery-error {
  gap: 0;
}
@media (max-width: 759px) {
  .unassigned-account-discovery .financial-table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }
  .unassigned-account-discovery .financial-table,
  .unassigned-account-discovery .financial-table tbody {
    display: grid;
    gap: 14px;
    width: 100%;
    min-width: 0;
  }
  .unassigned-account-discovery .financial-table thead {
    display: none;
  }
  .unassigned-account-discovery .financial-table tr {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
  }
  .unassigned-account-discovery .financial-table td,
  .unassigned-account-discovery .financial-table td:first-child,
  .unassigned-account-discovery .financial-table td:nth-child(2) {
    display: grid;
    grid-template-columns: minmax(92px, 0.42fr) minmax(0, 1fr);
    gap: 12px;
    min-width: 0;
    padding: 12px 16px;
    border-top: 1px solid var(--line);
    overflow-wrap: anywhere;
  }
  .unassigned-account-discovery .financial-table td:first-child {
    border-top: 0;
  }
  .unassigned-account-discovery .financial-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 650;
  }
  .unassigned-account-discovery .financial-table td > small,
  .unassigned-account-discovery .financial-table td > strong {
    grid-column: 2;
  }
  .unassigned-account-discovery .financial-table td:last-child button {
    width: 100%;
  }
}
.account-form {
  margin-top: 20px;
  max-width: 680px;
}
.account-form .muted {
  font-size: 13px;
}
.account-confirmation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  line-height: 1.5;
}
.account-confirmation input {
  width: 22px;
  min-width: 22px;
  height: 22px;
  min-height: 22px;
}
.verification-record {
  margin: 18px 0;
  border-left: 3px solid #dfe5ef;
  padding-left: 16px;
  overflow-wrap: anywhere;
  font-size: 12px;
}

/* Dashboard parity: source-scoped search and compact reference controls. */
#breadcrumb {
  flex: 1;
  min-width: 0;
}
#workspace-search {
  width: 300px;
  min-width: 180px;
  min-height: 38px;
  border: 1px solid #dfe5ef;
  border-radius: 6px;
  font-size: 12px;
}
#user-avatar {
  flex: 0 0 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #edf1f7;
  color: #172033;
  font-size: 12px;
  font-weight: 700;
}
body:not(.signed-out):not(.portal) header {
  gap: 16px;
}
body:not(.signed-out):not(.portal) header #environment {
  display: none;
}
.dashboard-metrics {
  gap: 12px;
}
.dashboard-tabs .report-date-range {
  margin-left: auto;
  border: 1px solid #dfe5ef;
  border-radius: 5px;
  padding: 7px 10px;
  min-height: 32px;
  font-size: 11px;
}
.history-panel table {
  min-width: 620px;
}
.history-panel tbody tr:hover {
  background: #f5f8ff;
}
.history-advanced {
  padding-bottom: 8px;
}
.history-selection {
  background: white;
  padding: 8px 14px;
}
.transaction-detail {
  min-height: 530px;
}
.history-empty {
  min-height: 240px;
  display: grid;
  place-content: center;
}
@media (min-width: 1001px) and (max-width: 1250px) {
  body:not(.signed-out):not(.portal) aside {
    width: 180px;
  }
  body:not(.signed-out):not(.portal) header,
  body:not(.signed-out):not(.portal) .shell {
    margin-left: 180px;
  }
  .sidebar-brand {
    font-size: 28px;
  }
  nav button {
    padding-inline: 8px;
    gap: 9px;
  }
  #workspace-search {
    width: 250px;
  }
}
@media (max-width: 1000px) {
  #workspace-search {
    width: 100%;
    order: 4;
  }
  #user-avatar {
    margin-left: auto;
  }
  .dashboard-tabs {
    flex-wrap: wrap;
    gap: 8px 18px;
  }
  .dashboard-tabs .report-date-range {
    margin: 0 0 10px;
  }
  .transaction-detail {
    min-height: 0;
  }
  .history-empty {
    min-height: 160px;
  }
}

@media (max-width: 1000px) {
  header .wordmark {
    order: -1;
  }
}

.history-empty-action {
  padding: 0 22px 22px;
  text-align: center;
}
#workspace-search:disabled {
  background: #f7f9fc;
  color: #64748b;
  opacity: 1;
  cursor: not-allowed;
}

.report-progress {
  border: 1px solid #dfe5ef;
  border-radius: 7px;
  padding: 20px;
  margin: 18px 0;
  background: #f8faff;
}
.report-progress h2 {
  font-size: 16px;
  margin-bottom: 10px;
}
.report-progress p {
  font-size: 12px;
  color: #52627b;
  line-height: 1.6;
}
.report-progress-item {
  border-top: 1px solid #dfe5ef;
  padding-top: 14px;
  margin-top: 14px;
}
.report-progress-item strong {
  font-size: 13px;
  overflow-wrap: anywhere;
  margin-right: 12px;
}
.report-progress-item .pill {
  background: #edf1f7;
  color: #41516c;
}

.integration-controls {
  display: flex;
  align-items: end;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.integration-account {
  max-width: 460px;
  flex: 1;
  min-width: 200px;
}
[aria-label="PULSE connection status"] {
  border: 1px solid #dfe5ef;
  border-radius: 8px;
  padding: 24px;
}
.integration-summary {
  display: flex;
  gap: 16px;
  align-items: baseline;
  flex-wrap: wrap;
}
.integration-summary h2 {
  margin: 0;
}
.integration-facts {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px 24px;
  margin: 28px 0;
  font-size: 13px;
}
.integration-facts dt {
  color: #536581;
}
.integration-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.integration-notes {
  border-top: 1px solid #dfe5ef;
  padding-top: 12px;
  font-size: 13px;
  line-height: 1.6;
  color: #536581;
}
.integration-notes h3 {
  color: #202b40;
  font-size: 14px;
}
.integration-notes li {
  margin: 10px 0;
}
.integration-mapping-workspace {
  margin: 0 0 24px;
  padding: 24px;
  border: 1px solid #dfe5ef;
  border-radius: 12px;
  background: #fff;
}
.integration-mapping-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.integration-mapping-header h2 {
  margin: 4px 0 6px;
}
.integration-mapping-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 22px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.integration-mapping-facts dt,
.integration-mapping-facts dd {
  min-width: 0;
  padding: 10px 14px;
  overflow-wrap: anywhere;
}
.integration-mapping-facts dt {
  color: var(--muted);
  background: var(--surface);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.integration-mapping-facts dd {
  margin: 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.84rem;
}
.integration-boundary,
.integration-mapping-empty {
  margin: 18px 0 0;
  padding: 16px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  line-height: 1.55;
}
.integration-boundary strong {
  color: var(--ink);
}
.integration-mapping-empty h3,
.integration-mapping-empty p {
  margin: 0 0 6px;
}
.integration-mapping-history {
  margin-top: 18px;
}
.integration-mapping-history ol {
  display: grid;
  gap: 12px;
  padding-left: 22px;
}
.integration-mapping-history li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.integration-mapping-history li > * {
  display: block;
  margin: 3px 0;
}
.integration-mapping-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}
.integration-mapping-form label:not(.check-row) {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}
.integration-mapping-form label:nth-of-type(2),
.integration-mapping-form label:nth-of-type(6),
.integration-mapping-form > p,
.integration-mapping-form > button,
.integration-mapping-form > [role="status"] {
  grid-column: 1 / -1;
}
.integration-mapping-form input,
.integration-mapping-form textarea {
  width: 100%;
}
.integration-mapping-form textarea {
  min-height: 92px;
  resize: vertical;
}
@media (max-width: 600px) {
  .integration-facts {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .integration-facts dd {
    margin-bottom: 12px;
  }
  .integration-mapping-workspace {
    padding: 20px;
  }
  .integration-mapping-header,
  .integration-mapping-form {
    display: grid;
    grid-template-columns: 1fr;
  }
  .integration-mapping-facts {
    grid-template-columns: 1fr;
  }
  .integration-mapping-form > * {
    grid-column: 1 !important;
  }
}

/* STRATOS command center — dense, calm banking hierarchy. */
body:not(.signed-out):not(.portal) {
  background: #f3f6fb;
}
body:not(.signed-out):not(.portal) header {
  margin-left: 232px;
  height: 72px;
  padding: 0 32px;
  border-color: #e6eaf1;
  background: rgb(255 255 255 / 96%);
}
body:not(.signed-out):not(.portal) .shell {
  margin-left: 232px;
}
body:not(.signed-out):not(.portal) aside {
  width: 232px;
  padding: 26px 16px 20px;
  border: 0;
  background: #101828;
  color: #d9e1ef;
}
.sidebar-brand {
  margin: 0 12px 38px;
  color: #fff;
  font-size: 26px;
  letter-spacing: -1.2px;
}
body:not(.signed-out):not(.portal) aside nav {
  gap: 4px;
}
body:not(.signed-out):not(.portal) aside nav button {
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #aebbd0;
}
body:not(.signed-out):not(.portal) aside nav button:hover {
  background: #182338;
  color: #fff;
  filter: none;
}
body:not(.signed-out):not(.portal) aside nav button.selected {
  background: #fff;
  color: #14213d;
  box-shadow: 0 8px 24px rgb(0 0 0 / 18%);
}
body:not(.signed-out):not(.portal) aside .nav-icon,
body:not(.signed-out):not(.portal) aside nav button > span:first-child {
  color: #7f94b6;
}
body:not(.signed-out):not(.portal) aside nav button.selected .nav-icon,
body:not(.signed-out):not(.portal)
  aside
  nav
  button.selected
  > span:first-child {
  color: var(--accent);
}
.sidebar-footer {
  color: #93a4bf;
}
.sidebar-footer label,
.sidebar-footer #identity {
  color: #c9d4e5;
}
.sidebar-footer select {
  border-color: #34425a;
  background: #182338;
  color: #fff;
}
body:not(.signed-out):not(.portal) aside .aside-note {
  color: #7f8fa9;
}
body:not(.signed-out):not(.portal) main {
  min-height: calc(100vh - 72px);
  padding: 32px clamp(24px, 3vw, 48px) 56px;
}
#breadcrumb {
  color: #394861;
  font-weight: 550;
}
#user-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #dce3ee;
  background: #f0f4fa;
  color: #1a2943;
  font-weight: 700;
}
.operations-home {
  max-width: 1480px;
  margin: 0 auto;
}
.operations-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 34px 36px;
  border-radius: 18px;
  background: #12213f;
  color: #fff;
  box-shadow: 0 18px 44px rgb(18 33 63 / 16%);
}
.page-kicker {
  margin: 0 0 14px;
  color: #8eafff;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.12em;
}
.operations-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(30px, 3.2vw, 48px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}
.operations-lead {
  max-width: 700px;
  margin: 16px 0 0;
  color: #bdc9dc;
  font-size: 15px;
}
.operations-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}
.workspace-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border: 1px solid #405170;
  border-radius: 999px;
  color: #d7e0ef;
  font-size: 11px;
  font-weight: 650;
}
.workspace-badge-safe::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #5ee4ad;
  box-shadow: 0 0 0 3px rgb(94 228 173 / 12%);
}
.operations-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.operations-shortcuts button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 14px 18px;
  border-color: #dfe5ef;
  background: #fff;
  color: #253550;
  box-shadow: 0 4px 14px rgb(24 39 75 / 4%);
}
.operations-shortcuts button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
.operations-shortcuts button span {
  font-size: 18px;
}
.operations-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.operations-metric {
  min-width: 0;
  padding: 20px;
  border: 1px solid #dfe5ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 14px rgb(24 39 75 / 3%);
}
.operations-metric > span,
.operations-metric small {
  display: block;
  color: #66758c;
  font-size: 11px;
}
.operations-metric strong {
  display: block;
  margin: 10px 0 8px;
  color: #12213f;
  font-size: 28px;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}
.operations-grid {
  gap: 16px;
}
.operations-section {
  min-width: 0;
  margin: 0;
  padding: 24px;
  border-color: #dfe5ef;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgb(24 39 75 / 3%);
}
.operations-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e7ebf2;
}
.operations-section-header h2 {
  margin: 0;
  font-size: 17px;
}
.operations-section-header button {
  min-height: 32px;
  padding: 6px 10px;
  border: 0;
  background: transparent;
}
.operations-count {
  margin: 20px 0 12px;
  color: #12213f;
  font-size: 20px;
}
.operations-record {
  position: relative;
  margin: 0;
  padding: 14px 30px 14px 0;
  border: 0;
  border-bottom: 1px solid #edf0f5;
  border-radius: 0;
  color: #1d2b43;
  background: transparent;
}
.operations-record::after {
  content: "›";
  position: absolute;
  right: 6px;
  top: 50%;
  color: #8190a7;
  font-size: 20px;
  transform: translateY(-50%);
}
.operations-record:hover {
  background: #f7f9fd;
  filter: none;
}

@media (max-width: 1100px) {
  .operations-shortcuts,
  .operations-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 759px) {
  body:not(.signed-out):not(.portal) header {
    margin-left: 0;
  }
  body:not(.signed-out):not(.portal) .shell {
    margin-left: 0;
  }
  body.navigation-open:not(.signed-out):not(.portal) aside {
    background: #101828;
  }
  body:not(.signed-out):not(.portal) main {
    padding: 18px 14px 40px;
  }
  .operations-hero {
    align-items: flex-start;
    flex-direction: column;
    padding: 26px 22px;
    border-radius: 14px;
  }
  .operations-badges {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .operations-shortcuts {
    grid-template-columns: 1fr;
  }
  .operations-shortcuts > button {
    width: 100%;
  }
  .operations-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .operations-metric {
    padding: 16px;
  }
  .operations-metric strong {
    font-size: 23px;
  }
}

.notification-center-header {
  padding-bottom: 0.25rem;
}
.notification-center-header h2,
.notification-operational h2,
.notification-channels h2,
.notification-delivery h2 {
  margin-bottom: 0.3rem;
}
.notification-metrics,
.notification-channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
}
.notification-metrics > .loading-state {
  grid-column: 1 / -1;
}
.notification-metric,
.notification-channel {
  display: grid;
  align-content: start;
  gap: 0.25rem;
  min-height: 7.1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.notification-metric span,
.notification-channel span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.notification-metric strong {
  margin: 0.15rem 0;
  font-size: 1.7rem;
  line-height: 1;
}
.notification-channel strong {
  margin: 0.2rem 0;
  font-size: 1rem;
}
.notification-metric small,
.notification-channel small {
  color: var(--muted);
  line-height: 1.35;
}
.notification-metric.is-critical {
  border-top: 3px solid #d85353;
}
.notification-metric.is-warning {
  border-top: 3px solid #d99a2b;
}
.notification-channel-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.notification-channel.is-ready {
  border-left: 3px solid #21a179;
}
.notification-channel.is-pending {
  border-left: 3px solid #d99a2b;
}
.notification-channel.is-restricted {
  border-left: 3px solid var(--line);
}
.notification-operational,
.notification-channels,
.notification-delivery {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.notification-table-wrap {
  margin-top: 1rem;
}
.notification-table-wrap .financial-table {
  min-width: 760px;
}
.notification-table-wrap td strong,
.notification-table-wrap td small {
  display: block;
}
.notification-table-wrap td small {
  max-width: 30rem;
  margin-top: 0.25rem;
  color: var(--muted);
}
.notification-priority {
  font-weight: 700;
  white-space: nowrap;
}
.notification-priority.is-critical {
  color: #b52e2e;
}
.notification-priority.is-warning {
  color: #966110;
}
.notification-empty {
  padding: 1rem;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
}
.failure-workspace-header {
  margin-bottom: 1.25rem;
}
.failure-workspace-header h2 {
  margin: 0.2rem 0 0.35rem;
  font-size: 1.45rem;
}
.failure-toolbar {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(240px, 1.4fr) minmax(
      190px,
      1fr
    );
  align-items: end;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.failure-toolbar label {
  display: grid;
  gap: 0.35rem;
  margin: 0;
}
.failure-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}
.failure-metric {
  display: grid;
  gap: 0.25rem;
  min-height: 6.6rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.failure-metric span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.failure-metric strong {
  font-size: 1.65rem;
  line-height: 1;
}
.failure-metric small {
  color: var(--muted);
  line-height: 1.35;
}
.failure-metric.is-warning {
  border-top: 3px solid #d99a2b;
}
.failure-notice {
  min-height: 1.25rem;
  color: var(--muted);
  font-size: 0.82rem;
}
.failure-empty {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  padding: 2.5rem 1.5rem;
  border: 1px dashed var(--line);
  border-radius: 12px;
  text-align: center;
  background: #fff;
}
.failure-empty h3,
.failure-empty p {
  margin: 0;
}
.failure-empty p {
  max-width: 42rem;
}
.failure-empty-icon {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 999px;
  color: #087a55;
  background: #e7f7f0;
  font-weight: 800;
}
.failure-empty-icon.is-warning {
  color: #8a5400;
  background: #fff1ce;
}
.failure-empty.is-error {
  justify-items: start;
  text-align: left;
  border-color: #e8b4b4;
  background: #fff8f8;
}
.failure-empty-inline {
  padding: 1.25rem;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
}
.failure-table-wrap .financial-table {
  min-width: 930px;
}
.failure-table-wrap td strong,
.failure-table-wrap td small {
  display: block;
}
.failure-table-wrap td small {
  margin-top: 0.2rem;
  color: var(--muted);
}
.failure-paging {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}
.receipt-workspace-header {
  display: grid;
  gap: 0.45rem;
}
.receipt-workspace-header h2,
.receipt-workspace-header p {
  margin: 0;
}
.receipt-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(210px, 0.7fr);
  gap: 0.75rem;
  align-items: end;
  margin: 1.25rem 0;
}
.receipt-toolbar label {
  display: grid;
  gap: 0.35rem;
  margin: 0;
}
.receipt-summary {
  margin-top: 0;
}
.receipt-summary .failure-metric strong {
  overflow-wrap: anywhere;
  font-size: 1.35rem;
}
.receipt-empty {
  margin-top: 1rem;
}
.receipt-table-wrap .financial-table {
  min-width: 1040px;
}
.receipt-table-wrap td p {
  margin: 0 0 0.25rem;
}
.receipt-table-wrap td:last-child {
  display: grid;
  gap: 0.45rem;
}
.receipt-table-wrap td:last-child button {
  width: 100%;
}
@media (max-width: 1050px) {
  .notification-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .failure-toolbar {
    grid-template-columns: 1fr 1fr;
  }
  .receipt-toolbar {
    grid-template-columns: 1fr 1fr;
  }
  .failure-summary {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 720px) {
  .notification-metrics,
  .notification-channel-grid {
    grid-template-columns: 1fr 1fr;
  }
  .notification-metric,
  .notification-channel {
    min-height: auto;
  }
  .failure-toolbar,
  .receipt-toolbar,
  .failure-summary {
    grid-template-columns: 1fr;
  }
  .failure-metric {
    min-height: auto;
  }
  .notification-table-wrap {
    overflow: visible;
    border: 0;
  }
  .notification-table-wrap .financial-table,
  .notification-table-wrap .financial-table tbody {
    display: block;
    min-width: 0;
  }
  .notification-table-wrap .financial-table thead {
    display: none;
  }
  .notification-table-wrap .financial-table tr {
    display: grid;
    gap: 0;
    margin-bottom: 12px;
    padding: 6px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
  }
  .notification-table-wrap .financial-table td {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px;
    min-width: 0;
    padding: 9px 0;
    border: 0;
    border-top: 1px solid var(--line);
    white-space: normal;
  }
  .notification-table-wrap .financial-table td:first-child {
    border-top: 0;
  }
  .notification-table-wrap .financial-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.055em;
    text-transform: uppercase;
  }
  .notification-table-wrap .financial-table td:last-child button {
    width: 100%;
  }
  .receipt-table-wrap {
    overflow: visible;
    max-height: none;
    border: 0;
  }
  .receipt-table-wrap .financial-table,
  .receipt-table-wrap .financial-table tbody {
    display: block;
    min-width: 0;
  }
  .receipt-table-wrap .financial-table thead {
    display: none;
  }
  .receipt-table-wrap .financial-table tr {
    display: grid;
    gap: 0;
    margin-bottom: 12px;
    padding: 6px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
  }
  .receipt-table-wrap .financial-table td {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    min-width: 0;
    max-width: none;
    padding: 9px 0;
    border: 0;
    border-top: 1px solid var(--line);
    text-align: left;
    white-space: normal;
  }
  .receipt-table-wrap .financial-table td:first-child {
    border-top: 0;
  }
  .receipt-table-wrap .financial-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.055em;
    text-transform: uppercase;
  }
  .receipt-table-wrap .financial-table td:last-child {
    display: grid;
    grid-template-columns: 1fr;
  }
}
@media (max-width: 460px) {
  .notification-channel-grid {
    grid-template-columns: 1fr;
  }
  .notification-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .notification-metric {
    padding: 0.85rem;
  }
}

/* Transaction correction layer: imported financial facts remain read-only. */
.transaction-corrected {
  color: #075f42;
  background: #e8f7f0;
  border-color: #b8e5d2;
}
.corrected-row {
  box-shadow: inset 3px 0 0 #0f9f6e;
}
.transaction-correction-host:not(:empty) {
  margin: 16px 0;
}
.transaction-correction-form {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid #d9dee8;
  border-radius: 8px;
  background: #f8f9fb;
}
.correction-heading {
  display: grid;
  gap: 5px;
}
.correction-heading h3,
.correction-heading p,
.correction-status,
.correction-event p {
  margin: 0;
}
.correction-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.transaction-correction-form label {
  display: grid;
  gap: 6px;
  color: #424955;
  font-size: 12px;
  font-weight: 680;
}
.transaction-correction-form input,
.transaction-correction-form select,
.transaction-correction-form textarea {
  width: 100%;
  border: 1px solid #cbd1dc;
  border-radius: 6px;
  background: #fff;
}
.correction-section-title {
  grid-column: 1 / -1;
  margin: 4px 0 -2px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
}
.correction-section-title:first-child {
  padding-top: 0;
  border-top: 0;
}
.transaction-correction-form textarea {
  resize: vertical;
}
.correction-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.correction-status.error {
  color: #a32020;
}
.correction-history {
  margin: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.correction-history summary {
  padding: 13px 0;
  cursor: pointer;
  font-weight: 700;
}
.correction-event {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.correction-event span {
  overflow-wrap: anywhere;
  font-size: 12px;
}
.original-values span {
  line-height: 1.55;
}
@media (max-width: 759px) {
  .correction-grid {
    grid-template-columns: 1fr;
  }
  .transaction-correction-form {
    padding: 14px;
  }
}

/* 8.13.97 organization identity and explicit communication routes. */
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-brand > span:last-child {
  display: grid;
}
.sidebar-brand small {
  margin-top: 2px;
  color: #6d7890;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0;
}
#tenant-brand-logo {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  font-size: 15px;
  font-weight: 800;
}
#tenant-brand-logo img,
.organization-logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
.account-admin-page {
  display: grid;
  gap: 18px;
}
.account-admin-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}
.account-admin-header h2 {
  margin: 2px 0 6px;
  font-size: clamp(25px, 3vw, 34px);
  letter-spacing: -0.035em;
}
.account-admin-header p {
  margin: 0;
}
.account-admin-summary {
  margin: 0;
}
.account-admin-summary section {
  min-height: 96px;
  min-width: 0;
  padding: 20px;
  border-left: 1px solid rgb(255 255 255 / 14%);
}
.account-admin-summary section:first-child {
  border-left: 0;
}
.account-admin-summary span,
.account-admin-summary small {
  display: block;
  color: #aebbd0;
  font-size: 11px;
}
.account-admin-summary strong {
  display: block;
  margin: 7px 0 5px;
  color: #fff;
  font-size: 22px;
  letter-spacing: -0.5px;
}
.account-admin-summary small {
  line-height: 1.35;
}
.account-admin-tabs {
  position: sticky;
  z-index: 4;
  top: 0;
  margin: 0;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: 0 8px 22px rgb(27 36 52 / 7%);
  backdrop-filter: blur(12px);
}
.account-admin-tabs button {
  min-height: 40px;
}
.account-admin-page [role="tabpanel"] {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.account-admin-page [role="tabpanel"][hidden] {
  display: none;
}
.transactions-data-workspace,
.transactions-data-panel,
.unassigned-activity-workspace {
  min-width: 0;
}
.banking-page-heading {
  margin: 0 0 18px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--line);
}
.banking-page-heading h1,
.banking-page-heading p {
  margin: 0;
}
.banking-page-heading h1 {
  color: var(--ink);
  font-size: 27px;
  letter-spacing: -0.025em;
}
.banking-page-heading p {
  margin-top: 5px;
  font-size: 13px;
}
.governance-page {
  min-width: 0;
}
.governance-page-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px 24px;
}
.governance-page-heading > button {
  min-height: 40px;
  white-space: nowrap;
}
.governance-page > .orders-tabs {
  margin-bottom: 14px;
}
.governance-page > .case-workspace-intro,
.governance-page > .access-intro {
  margin: 0 0 18px;
}
.transactions-data-tabs {
  margin-bottom: 22px;
}
.transaction-source-controls {
  margin: 0 0 18px;
  border: 0;
}
.transaction-source-controls > summary {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 13px;
  border: 1px solid #cdd8ef;
  border-radius: 6px;
  color: #173f9d;
  background: var(--accent-soft);
  font-size: 12px;
  font-weight: 700;
}
.transaction-source-controls[open] > summary {
  margin-bottom: 12px;
}
.transaction-account-title {
  margin: 0 0 5px;
  color: var(--ink);
  font-size: 18px;
  letter-spacing: -0.015em;
}
.transactions-data-panel[hidden] {
  display: none;
}
.unassigned-activity-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}
.unassigned-activity-workspace > * {
  min-width: 0;
  max-width: 100%;
}
.unassigned-activity-header {
  display: grid;
  gap: 5px;
}
.unassigned-activity-header h2,
.unassigned-activity-header p {
  margin: 0;
}
.unassigned-activity-header h2 {
  font-size: clamp(23px, 2.7vw, 31px);
  letter-spacing: -0.03em;
}
.unassigned-activity-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-radius: 10px;
}
.unassigned-activity-summary section {
  min-width: 0;
  min-height: 104px;
  padding: 20px;
  border-left: 1px solid rgb(255 255 255 / 14%);
}
.unassigned-activity-summary section:first-child {
  border-left: 0;
}
.unassigned-activity-summary span,
.unassigned-activity-summary small {
  display: block;
  color: #aebbd0;
  font-size: 11px;
}
.unassigned-activity-summary strong {
  display: block;
  margin: 7px 0 5px;
  color: #fff;
  font-size: 22px;
}
.unassigned-activity-filters {
  display: grid;
  grid-template-columns:
    minmax(260px, 1fr) minmax(130px, 180px) minmax(120px, 160px)
    minmax(130px, 170px) auto;
  align-items: end;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.unassigned-activity-count {
  margin: -5px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.unassigned-activity-register {
  margin: 0;
}
.unassigned-activity-register .financial-table {
  min-width: 1180px;
}
.unassigned-activity-dialog pre {
  max-width: 100%;
  padding: 14px;
  overflow: auto;
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* 8.13.149: exact unassigned statement activity on the Dashboard. */
.dashboard-source-activity-host {
  min-width: 0;
}
.dashboard-source-activity {
  display: grid;
  gap: 14px;
  min-width: 0;
  margin-top: 20px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.dashboard-source-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 4px 20px;
}
.dashboard-source-heading .section-kicker,
.dashboard-source-heading h2,
.dashboard-source-heading p {
  grid-column: 1;
  margin: 0;
}
.dashboard-source-heading h2 {
  font-size: clamp(21px, 2.3vw, 28px);
  letter-spacing: -0.025em;
}
.dashboard-source-heading p {
  max-width: 820px;
}
.dashboard-source-heading > button {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
}
.dashboard-source-body {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.dashboard-source-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border-radius: 10px;
  color: #fff;
  background: #18243a;
}
.dashboard-source-metrics section {
  min-width: 0;
  padding: 16px 18px;
  border-left: 1px solid rgb(255 255 255 / 14%);
}
.dashboard-source-metrics section:first-child {
  border-left: 0;
}
.dashboard-source-metrics span,
.dashboard-source-metrics small {
  display: block;
  color: #b7c2d3;
  font-size: 11px;
}
.dashboard-source-metrics strong {
  display: block;
  margin: 6px 0 3px;
  font-size: 22px;
}
.dashboard-source-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.dashboard-source-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 18px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
}
.dashboard-source-title {
  grid-column: 1 / -1;
  display: grid;
  gap: 3px;
  min-width: 0;
}
.dashboard-source-title strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 14px;
}
.dashboard-source-title span {
  color: var(--muted);
  font-size: 11px;
}
.dashboard-source-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 16px;
  min-width: 0;
  margin: 0;
}
.dashboard-source-card .source-fact {
  min-width: 0;
}
.dashboard-source-card dt {
  color: var(--muted);
  font-size: 10px;
}
.dashboard-source-card dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}
.dashboard-source-card > button {
  align-self: end;
  white-space: nowrap;
}
@media (max-width: 1000px) {
  .dashboard-source-list {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 759px) {
  .dashboard-source-activity {
    padding: 16px;
  }
  .dashboard-source-heading {
    grid-template-columns: 1fr;
  }
  .dashboard-source-heading > button {
    grid-column: 1;
    grid-row: auto;
    justify-self: stretch;
  }
  .dashboard-source-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-source-metrics section:nth-child(3) {
    border-left: 0;
    border-top: 1px solid rgb(255 255 255 / 14%);
  }
  .dashboard-source-metrics section:nth-child(4) {
    border-top: 1px solid rgb(255 255 255 / 14%);
  }
  .dashboard-source-card {
    grid-template-columns: 1fr;
  }
  .dashboard-source-card dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-source-card > button {
    width: 100%;
  }
}
.account-create-panel {
  display: grid;
  gap: 5px;
  border-style: dashed;
  background: linear-gradient(135deg, #f8faff 0%, var(--surface) 65%);
}
.account-create-panel h3,
.account-create-panel p {
  margin: 0;
}
.account-create-panel > details {
  margin-top: 10px;
}
.account-admin-account {
  position: relative;
  overflow: hidden;
}
.account-admin-account::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent);
  content: "";
}
.account-admin-account > h2 {
  margin-bottom: 5px;
}
.account-admin-account > p {
  overflow-wrap: anywhere;
}
.approved-account-templates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.approved-account-templates > :is(.section-kicker, h3, p) {
  grid-column: 1 / -1;
}
.approved-account-template {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
}
.approved-account-template :is(p, small) {
  margin: 0;
  overflow-wrap: anywhere;
}
.approved-account-template button {
  justify-self: start;
  margin-top: 8px;
}
.organization-profile {
  display: grid;
  gap: 26px;
}
.organization-profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
}
.organization-profile-header h2,
.organization-branding h3,
.organization-pipelines h3,
.organization-sweep-rules h3 {
  margin: 0 0 5px;
}
.organization-profile-header p,
.organization-branding p,
.organization-pipelines > p,
.organization-sweep-rules > p {
  margin: 0;
}
.organization-logo-preview {
  display: grid;
  place-items: center;
  flex: 0 0 66px;
  width: 66px;
  height: 66px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--accent);
  background: #f1f5ff;
  font-size: 24px;
  font-weight: 800;
}
.organization-profile-form {
  display: grid;
  justify-items: start;
  gap: 18px;
}
.organization-profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}
.organization-profile-grid label:first-child,
.organization-profile-grid label:nth-child(2),
.organization-profile-grid label:nth-child(5) {
  grid-column: span 2;
}
.organization-branding {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 420px) auto;
  align-items: end;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.organization-branding input {
  padding: 9px;
}
.product-owner {
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.product-owner a {
  color: var(--accent);
}
.organization-sweep-rules {
  display: grid;
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.account-admin-page .organization-sweep-rules.panel,
.account-admin-page .organization-pipelines.panel {
  padding-top: var(--panel-padding, 24px);
  border-top: 1px solid var(--line);
}
.sweep-rule-list {
  display: grid;
  gap: 10px;
}
.sweep-rule-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: start;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.sweep-rule-copy,
.sweep-rule-meta {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.sweep-rule-copy span,
.sweep-rule-meta span:not(.pill) {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.sweep-destination {
  color: var(--ink) !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px !important;
}
.sweep-rule-history {
  grid-column: 1/-1;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.sweep-rule-history summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 700;
}
.sweep-rule-history ol {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding-left: 20px;
}
.sweep-rule-history li {
  padding-left: 4px;
}
.sweep-rule-history li > span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}
.sweep-rule-history li p {
  margin: 5px 0 0;
}
.sweep-rule-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.sweep-rule-form textarea {
  min-height: 84px;
  resize: vertical;
}
.sweep-rule-form > label:nth-child(3),
.sweep-rule-form > label:nth-last-of-type(1) {
  grid-column: span 2;
}
.sweep-rule-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sweep-rule-form .correction-status {
  grid-column: 1/-1;
  margin: 0;
}
.sweep-rule-editor:empty {
  display: none;
}
.organization-pipelines {
  display: grid;
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.organization-pipelines h4 {
  margin: 8px 0 0;
}
.system-email-route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}
.system-email-route-copy {
  display: grid;
  gap: 4px;
}
.system-email-route-copy span {
  color: var(--muted);
  font-size: 12px;
}
.email-pipeline-form {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr)) auto;
  align-items: end;
  gap: 12px;
}
.email-pipeline-list {
  display: grid;
  gap: 8px;
}
.email-pipeline-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.email-pipeline-row > div {
  display: grid;
  gap: 4px;
}
.email-pipeline-row span:not(.pill) {
  color: var(--muted);
  font-size: 12px;
}
.empty-inline {
  margin: 0;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
}
@media (max-width: 980px) {
  .unassigned-activity-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .unassigned-activity-filters input,
  .unassigned-activity-filters button {
    grid-column: 1 / -1;
  }
  .account-admin-tabs {
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: thin;
  }
  .account-admin-tabs button {
    flex: 0 0 auto;
  }
  .organization-profile-grid,
  .email-pipeline-form,
  .sweep-rule-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .organization-profile-grid label,
  .organization-profile-grid label:first-child,
  .organization-profile-grid label:nth-child(2),
  .organization-profile-grid label:nth-child(5) {
    grid-column: auto;
  }
  .organization-branding {
    grid-template-columns: 1fr;
    align-items: start;
  }
}
@media (max-width: 560px) {
  .unassigned-activity-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .unassigned-activity-summary section {
    min-height: 96px;
  }
  .unassigned-activity-summary section:nth-child(3) {
    border-top: 1px solid rgb(255 255 255 / 14%);
    border-left: 0;
  }
  .unassigned-activity-summary section:nth-child(4) {
    border-top: 1px solid rgb(255 255 255 / 14%);
  }
  .unassigned-activity-filters {
    grid-template-columns: 1fr;
  }
  .unassigned-activity-filters > * {
    grid-column: auto;
  }
  .account-admin-page {
    gap: 14px;
  }
  .account-admin-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .account-admin-summary section {
    min-height: 88px;
  }
  .account-admin-summary section:nth-child(3) {
    border-top: 1px solid rgb(255 255 255 / 14%);
    border-left: 0;
  }
  .account-admin-summary section:nth-child(4) {
    border-top: 1px solid rgb(255 255 255 / 14%);
  }
  .account-admin-tabs {
    margin-inline: -2px;
  }
  .organization-profile-grid,
  .email-pipeline-form,
  .sweep-rule-form {
    grid-template-columns: 1fr;
  }
  .email-pipeline-row {
    grid-template-columns: 1fr auto;
  }
  .email-pipeline-row > div {
    grid-column: 1/-1;
  }
  .sweep-rule-row {
    grid-template-columns: 1fr auto;
  }
  .sweep-rule-copy {
    grid-column: 1/-1;
  }
  .sweep-rule-form > label:nth-child(3),
  .sweep-rule-form > label:nth-last-of-type(1) {
    grid-column: auto;
  }
}

/* 8.13.95: Unlimit-referenced banking shell and Transactions workspace. */
:root {
  --accent: #1554e8;
  --accent-soft: #edf3ff;
  --ink: #15181e;
  --muted: #697386;
  --surface: #f6f7f9;
  --line: #e5e7eb;
}
body:not(.signed-out):not(.portal) {
  background: #fff;
}
body:not(.signed-out):not(.portal) aside {
  width: 220px;
  padding: 22px 18px 18px;
  border-right: 1px solid #e7e8eb;
  color: var(--ink);
  background: #f5f5f4;
}
body:not(.signed-out):not(.portal) header {
  height: 70px;
  margin-left: 220px;
  padding: 0 32px;
  border-color: #ececef;
  background: #fff;
  box-shadow: none;
}
body:not(.signed-out):not(.portal) .shell {
  margin-left: 220px;
}
.sidebar-brand {
  margin: 0 10px 28px;
  color: #111318;
  font-size: 25px;
  font-weight: 900;
}
body:not(.signed-out):not(.portal) aside .eyebrow {
  display: none;
}
body:not(.signed-out):not(.portal) aside nav {
  gap: 1px;
}
body:not(.signed-out):not(.portal) aside nav button {
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 6px;
  color: #626770;
  font-size: 12px;
  font-weight: 570;
}
body:not(.signed-out):not(.portal) aside nav button:hover {
  color: #17233b;
  background: #eceef2;
}
body:not(.signed-out):not(.portal) aside nav button.selected {
  color: #153d9f;
  background: #e8efff;
  box-shadow: inset 3px 0 0 var(--accent);
  font-weight: 750;
}
body:not(.signed-out):not(.portal) aside .nav-icon,
body:not(.signed-out):not(.portal) aside nav button > span:first-child,
body:not(.signed-out):not(.portal) aside nav button.selected .nav-icon,
body:not(.signed-out):not(.portal)
  aside
  nav
  button.selected
  > span:first-child {
  color: currentColor;
}
.sidebar-footer {
  color: #737780;
}
.sidebar-footer label,
.sidebar-footer #identity {
  color: #525760;
}
.sidebar-footer select {
  border-color: #d4d6db;
  color: #1e2229;
  background: #fff;
}
.sidebar-product-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #dfe3e9;
  font-size: 11px;
  line-height: 1.45;
}
.sidebar-product-footer p {
  margin: 0 0 6px;
}
.sidebar-product-footer a,
.sidebar-legal button {
  color: #41516c;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.sidebar-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
}
.sidebar-legal button {
  width: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
}
.product-disclaimer-dialog {
  width: min(92vw, 560px);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 28px 80px rgba(18, 34, 65, 0.24);
}
.product-disclaimer-dialog::backdrop {
  background: rgba(16, 28, 52, 0.58);
  backdrop-filter: blur(5px);
}
.product-disclaimer-dialog h2 {
  margin: 4px 0 14px;
}
.product-disclaimer-dialog p {
  line-height: 1.6;
}
.product-disclaimer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}
.product-disclaimer-actions a {
  color: var(--accent);
  font-weight: 650;
}
.user-profile-dialog {
  width: min(92vw, 640px);
  max-height: min(90vh, 760px);
  padding: 24px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 28px 80px rgba(18, 34, 65, 0.24);
}
.user-profile-dialog::backdrop {
  background: rgba(16, 28, 52, 0.58);
  backdrop-filter: blur(5px);
}
.user-profile-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.user-profile-heading h2,
.user-profile-heading p {
  margin: 2px 0;
}
#user-profile-preview {
  display: grid;
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #dce4f1;
  border-radius: 50%;
  color: #153d9f;
  background: var(--accent-soft);
  font-size: 20px;
  font-weight: 750;
}
#user-profile-preview img,
#user-avatar-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.user-profile-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.user-profile-fields label {
  min-width: 0;
  font-weight: 650;
}
.user-profile-fields input,
.user-profile-fields select {
  width: 100%;
  margin-top: 7px;
}
#user-profile-status {
  min-height: 42px;
  margin: 16px 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f3f6fb;
  font-size: 12px;
}
#user-profile-status.is-error {
  color: #9f2d25;
  background: #fff0ee;
}
#user-profile-status.is-success {
  color: #087450;
  background: #eaf8f1;
}
.user-profile-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
body:not(.signed-out):not(.portal) header #user-avatar {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  width: auto;
  height: 44px;
  min-height: 44px;
  padding: 4px 10px 4px 4px;
  border: 1px solid #dfe5ee;
  border-radius: 999px;
  color: #172033;
  background: #fff;
  box-shadow: 0 4px 14px rgba(18, 34, 65, 0.06);
}
body:not(.signed-out):not(.portal) header #user-avatar:hover {
  border-color: #b9c8e2;
  background: #f7f9fc;
}
#user-avatar-media {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: #153d9f;
  background: var(--accent-soft);
  font-size: 11px;
  font-weight: 750;
}
.user-profile-header-copy {
  display: grid;
  min-width: 0;
  text-align: left;
  line-height: 1.15;
}
.user-profile-header-copy strong {
  max-width: 140px;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-profile-header-copy small {
  color: #6b778c;
  font-size: 10px;
  font-weight: 500;
}
@media (max-width: 900px) {
  .user-profile-header-copy {
    display: none;
  }
  body:not(.signed-out):not(.portal) header #user-avatar {
    width: 44px;
    padding: 4px;
  }
}
@media (max-width: 759px) {
  .user-profile-fields {
    grid-template-columns: 1fr;
  }
  .user-profile-actions > button {
    flex: 1;
  }
}
body:not(.signed-out):not(.portal) aside .aside-note {
  color: #858992;
}
body:not(.signed-out):not(.portal) main {
  max-width: none;
  min-height: calc(100vh - 70px);
  padding: 22px 32px 48px;
  background: #fff;
}
#breadcrumb {
  color: #242830;
  font-size: 18px;
  font-weight: 720;
}
#workspace-search {
  min-height: 36px;
  border-radius: 5px;
}
#user-avatar {
  border-radius: 50%;
  background: var(--accent-soft);
  color: #153d9f;
}
.dashboard-source-controls {
  margin: 0 0 18px;
  border: 0;
  background: transparent;
}
.dashboard-source-controls summary {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 13px;
  border: 1px solid #cdd8ef;
  border-radius: 5px;
  color: #173f9d;
  background: var(--accent-soft);
  font-size: 12px;
  font-weight: 700;
}
.dashboard-source-controls[open] summary {
  margin-bottom: 12px;
}
.dashboard-source-controls .dashboard-selectors {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fafbfc;
}
.account-hero {
  align-items: flex-start;
  margin: 0 0 18px;
  padding: 0 0 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: #fff;
  box-shadow: none;
}
.account-hero h1 {
  margin: 0 0 5px;
  color: var(--ink);
  font-size: 27px;
  letter-spacing: -0.025em;
}
.account-hero .muted,
.account-hero p,
.account-hero .account-iban {
  color: var(--muted);
}
.account-hero .account-iban {
  margin-bottom: 0;
  font-size: 12px;
  font-weight: 550;
}
.hero-balance {
  color: var(--ink);
}
.hero-balance strong {
  color: var(--ink);
  font-size: 26px;
}
.dashboard-metrics {
  gap: 0;
  margin: 0 0 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
.metric {
  min-height: 108px;
  padding: 17px 20px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}
.metric:last-child {
  border-right: 0;
}
.metric strong {
  font-size: 22px;
}
.cashflow-workspace {
  margin: 0 0 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: none;
}
.cashflow-heading {
  padding: 20px 22px 14px;
}
.cashflow-chart {
  min-width: 0;
  padding: 4px 22px 20px;
}
.cashflow-plot {
  min-width: 0;
  height: auto;
  padding: 0;
  background: transparent;
}
.cashflow-line-chart {
  display: block;
  width: 100%;
  min-width: 620px;
  height: 270px;
  overflow: visible;
}
.chart-grid-line {
  stroke: #e7e9ed;
  stroke-width: 1;
  stroke-dasharray: 2 5;
}
.cashflow-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.credit-line {
  stroke: var(--accent);
}
.debit-line {
  stroke: #9aa9c2;
}
.cashflow-date-axis {
  display: flex;
  justify-content: space-between;
  min-width: 620px;
  padding: 0 3px;
  color: var(--muted);
}
.cashflow-split {
  background: #fbfbfc;
}
.flow-ring {
  background: conic-gradient(
    var(--accent) 0 var(--credit-share),
    #cad3e3 var(--credit-share) 100%
  );
}
.transaction-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 12px;
  border: 0;
}
.transaction-actions,
.transaction-status-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
}
.transaction-actions button,
.transaction-status-tabs button {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 4px;
  color: #252a32;
  font-size: 11px;
  background: #fff;
}
.transaction-actions button.primary {
  color: #fff;
  background: var(--accent);
}
.transaction-status-tabs {
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.transaction-status-tabs button {
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  letter-spacing: 0.035em;
}
.transaction-status-tabs button:last-child {
  border-right: 0;
}
.transaction-status-tabs button.selected {
  color: #1648bd;
  background: var(--accent-soft);
}
.transaction-workspace .history-layout,
.transaction-workspace .history-column,
.transaction-workspace .history-panel {
  width: 100%;
}
.transaction-workspace .history-panel {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.transaction-workspace .history-filters {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 190px auto;
  gap: 10px;
  padding: 10px 0 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.transaction-workspace .history-filters input,
.transaction-workspace .history-filters select,
.transaction-workspace .history-filters button {
  min-height: 36px;
  border-radius: 4px;
}
.transaction-workspace .history-advanced {
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.transaction-workspace .table-wrap {
  max-height: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  overflow-x: auto;
}
.transaction-workspace .financial-table {
  min-width: 1180px;
  font-size: 12px;
}
.transaction-workspace .financial-table th {
  position: sticky;
  top: 0;
  padding: 13px 12px;
  color: #606773;
  background: #f7f7f8;
  font-size: 11px;
  text-transform: none;
  letter-spacing: 0;
}
.transaction-workspace .financial-table td {
  padding: 12px;
  border-bottom: 1px dotted #d9dce2;
  vertical-align: middle;
  white-space: nowrap;
}
.transaction-workspace .financial-table tbody tr:hover {
  background: #f7f9ff;
}
.transaction-workspace .financial-table td:nth-child(8),
.transaction-workspace .financial-table td:nth-child(9) {
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.transaction-id-link,
.transaction-workspace .financial-table td button.transaction-id-link {
  min-height: 28px;
  padding: 0;
  border: 0;
  color: #2059bc;
  background: transparent;
  font-weight: 600;
}
.transaction-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid #c7d3e7;
  border-radius: 999px;
  color: #34537f;
  background: #f3f6fb;
  font-size: 10px;
  font-weight: 700;
}
.status-valid {
  border-color: #9fc9b4;
  color: #17613d;
  background: #edf8f1;
}
.status-missing,
.status-invalid,
.status-conflicting {
  border-color: #e4c88b;
  color: #7a5210;
  background: #fff8e8;
}
.status-refund-due {
  border-color: #e1a39b;
  color: #8c2e24;
  background: #fff3f1;
}
.status-refund-case {
  border-color: #9eaed0;
  color: #2d4778;
  background: #f1f4fb;
}
.refund-case-host {
  margin-top: 1rem;
}
.refund-case-panel {
  padding: 1rem;
  border: 1px solid #cfd8e9;
  border-radius: 8px;
  background: #f8faff;
}
.refund-case-heading,
.refund-case-state {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.refund-case-heading h3 {
  margin: 0.2rem 0 0.75rem;
}
.refund-case-state {
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}
.refund-case-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.refund-case-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}
.refund-case-form textarea {
  min-height: 76px;
}
.refund-case-history {
  margin-top: 1rem;
}
.refund-case-event {
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}
.refund-case-event p {
  margin: 0.25rem 0 0;
}
.transaction-workspace .history-pagination {
  justify-content: flex-start;
  gap: 10px;
  padding: 18px 0;
}
.transaction-workspace .history-pagination span {
  margin-right: auto;
  color: var(--muted);
  font-size: 12px;
}
.transaction-customization-dialog {
  width: min(440px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 24px 80px rgb(24 34 51 / 22%);
}
.transaction-customization-dialog::backdrop {
  background: rgb(20 27 40 / 34%);
  backdrop-filter: blur(2px);
}
.transaction-customization-dialog .drawer-heading {
  padding: 24px 24px 18px;
  border-bottom: 1px solid var(--line);
}
.transaction-customization-dialog .drawer-heading h2 {
  margin: 0 0 8px;
}
.transaction-column-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 20px 24px 24px;
  border: 0;
}
.transaction-column-options legend {
  width: 100%;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.transaction-column-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #26344d;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.transaction-column-option:has(input:checked) {
  border-color: #9db7ed;
  background: var(--accent-soft);
}
.transaction-column-option input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
}
.transaction-customization-dialog .dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  background: #f8f9fb;
}
.transaction-customization-dialog .dialog-actions button:first-child {
  margin-right: auto;
}
.payment-type-cell,
.payer-country-cell {
  color: #26344d;
  font-weight: 650;
}
.payer-country-inline {
  display: block;
  margin-top: 3px;
  color: #68758a;
  font-size: 10px;
  font-weight: 650;
}
@media (max-width: 1000px) {
  body:not(.signed-out):not(.portal) header,
  body:not(.signed-out):not(.portal) .shell {
    margin-left: 180px;
  }
  body:not(.signed-out):not(.portal) aside {
    width: 180px;
  }
  .transaction-list-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 759px) {
  .transaction-column-options {
    grid-template-columns: 1fr;
  }
  .transaction-customization-dialog .dialog-actions {
    flex-wrap: wrap;
  }
  .transaction-customization-dialog .dialog-actions button:first-child {
    width: 100%;
    margin: 0 0 4px;
  }
  body:not(.signed-out):not(.portal) header,
  body:not(.signed-out):not(.portal) .shell {
    margin-left: 0;
  }
  body:not(.signed-out):not(.portal) main {
    padding: 16px 14px 36px;
  }
  .transaction-actions,
  .transaction-status-tabs {
    width: 100%;
    overflow-x: auto;
  }
  .transaction-actions button,
  .transaction-status-tabs button {
    flex: 0 0 auto;
  }
  .transaction-workspace .history-filters {
    grid-template-columns: 1fr;
  }
  .transaction-workspace .table-wrap {
    overflow: visible;
  }
  .transaction-workspace .financial-table,
  .transaction-workspace .financial-table tbody {
    display: block;
    min-width: 0;
  }
  .transaction-workspace .financial-table thead {
    display: none;
  }
  .transaction-workspace .financial-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 14px;
    margin-bottom: 12px;
    padding: 7px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
  }
  .transaction-workspace .financial-table td {
    display: grid;
    gap: 4px;
    min-width: 0;
    max-width: none;
    padding: 9px 0;
    border: 0;
    border-top: 1px solid var(--line);
    overflow: visible;
    text-align: left;
    text-overflow: clip;
    white-space: normal;
  }
  .transaction-workspace .financial-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: 0.055em;
    text-transform: uppercase;
  }
  .transaction-workspace
    .financial-table
    td[data-transaction-column="selection"] {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    gap: 9px;
    border-top: 0;
  }
  .transaction-workspace
    .financial-table
    td[data-transaction-column="selection"]::before {
    content: "Select transaction";
  }
  .transaction-workspace .financial-table td[data-transaction-column="status"],
  .transaction-workspace
    .financial-table
    td[data-transaction-column="counterparty"],
  .transaction-workspace
    .financial-table
    td[data-transaction-column="rfReference"],
  .transaction-workspace
    .financial-table
    td[data-transaction-column="originalInboundDate"],
  .transaction-workspace
    .financial-table
    td[data-transaction-column="actions"] {
    grid-column: 1 / -1;
  }
  .transaction-workspace
    .financial-table
    td[data-transaction-column="actions"] {
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }
  .transaction-workspace
    .financial-table
    td[data-transaction-column="actions"]::before {
    margin-right: auto;
  }
  .transaction-workspace .financial-table td[hidden] {
    display: none;
  }
  .transaction-workspace .financial-table td button:not(.provenance-action) {
    width: fit-content;
    max-width: 100%;
    text-align: left;
    white-space: normal;
  }
  .dashboard-activity-register {
    overflow: visible;
  }
  .dashboard-activity-register .financial-table,
  .dashboard-activity-register .financial-table tbody {
    display: block;
    min-width: 0;
  }
  .dashboard-activity-register .financial-table thead {
    display: none;
  }
  .dashboard-activity-register .financial-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 14px;
    margin-bottom: 10px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
  }
  .dashboard-activity-register .financial-table td {
    display: grid;
    gap: 4px;
    min-width: 0;
    width: auto;
    max-width: none;
    padding: 9px 0;
    border: 0;
    border-top: 1px solid var(--line);
    overflow-wrap: anywhere;
    text-align: left;
    white-space: normal;
  }
  .history-panel .dashboard-activity-register .financial-table td:first-child {
    width: auto;
    padding-right: 0;
  }
  .dashboard-activity-register .financial-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: 0.055em;
    text-transform: uppercase;
  }
  .dashboard-activity-register
    .financial-table
    td[data-transaction-column="selection"],
  .dashboard-activity-register
    .financial-table
    td[data-dashboard-column="counterparty"],
  .dashboard-activity-register
    .financial-table
    td[data-dashboard-column="bankReference"],
  .dashboard-activity-register
    .financial-table
    td[data-dashboard-column="rfReference"],
  .dashboard-activity-register
    .financial-table
    td[data-dashboard-column="actions"] {
    grid-column: 1 / -1;
  }
  .dashboard-activity-register
    .financial-table
    td[data-dashboard-column="actions"] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    max-width: none !important;
  }
  .dashboard-activity-register
    .financial-table
    td[data-dashboard-column="actions"]::before {
    margin-right: auto;
  }
  .transaction-workspace .history-pagination {
    position: sticky;
    bottom: 0;
    z-index: 2;
    margin: 0 -14px;
    padding: 12px 14px;
    border-top: 1px solid var(--line);
    background: rgb(255 255 255 / 96%);
    backdrop-filter: blur(8px);
  }
  .dashboard-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .metric:nth-child(2) {
    border-right: 0;
  }
  .metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .cashflow-chart {
    overflow-x: auto;
  }
}

.productivity-intelligence {
  margin: 0 0 28px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
.productivity-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 4px 18px;
  margin-bottom: 18px;
}
.productivity-heading .section-kicker,
.productivity-heading h2,
.productivity-heading p {
  margin: 0;
}
.productivity-heading .section-kicker,
.productivity-heading h2 {
  grid-column: 1;
}
.productivity-heading p {
  grid-column: 2;
  grid-row: 1 / 3;
  max-width: 540px;
  text-align: right;
  font-size: 12px;
}
.productivity-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.productivity-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px 12px;
  min-height: 126px;
  padding: 15px 16px;
  border-color: var(--line);
  border-radius: 5px;
  color: var(--ink);
  text-align: left;
  background: #fafbfc;
}
.productivity-card > span,
.productivity-card > small {
  grid-column: 1 / -1;
  color: var(--muted);
}
.productivity-card > span {
  font-size: 11px;
  font-weight: 700;
}
.productivity-card > strong {
  font-size: 27px;
  letter-spacing: -0.03em;
}
.productivity-card > b {
  align-self: end;
  color: var(--accent);
  font-size: 10px;
}
.productivity-card.attention {
  border-color: #e7cc91;
  background: #fffbf1;
}
.productivity-card.critical {
  border-color: #e3aaa2;
  background: #fff5f3;
}
.productivity-alert {
  margin: 0 0 14px;
  padding: 10px 13px;
  border-left: 3px solid #d97a27;
  color: #704314;
  background: #fff7e9;
  font-size: 12px;
  font-weight: 650;
}
@media (max-width: 980px) {
  .productivity-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 759px) {
  .productivity-heading {
    display: block;
  }
  .productivity-heading p {
    margin-top: 8px;
    text-align: left;
  }
  .productivity-cards {
    grid-template-columns: 1fr;
  }
}

.missing-rf-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin: 24px 0 18px;
}
.missing-rf-heading h3 {
  margin: 0 0 6px;
  font-size: 1.35rem;
}
.integration-state {
  display: grid;
  gap: 7px;
  max-width: 420px;
  padding: 14px 16px;
  border: 1px solid #d5dce7;
  border-radius: 10px;
  background: #f7f9fc;
}
.integration-state small {
  color: var(--muted);
  line-height: 1.45;
}
.missing-rf-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0;
}
.missing-rf-summary > * {
  padding: 20px;
  border-left: 1px solid rgb(255 255 255 / 14%);
}
.missing-rf-summary > *:first-child {
  border-left: 0;
}
.missing-rf-table th:first-child,
.missing-rf-table td:first-child {
  width: 42px;
  min-width: 42px;
  text-align: center;
}
.missing-rf-table td:nth-child(2) {
  font-weight: 650;
}
.missing-rf-table td:nth-child(3) {
  min-width: 190px;
}
.missing-rf-request-bar {
  display: grid;
  grid-template-columns: auto minmax(240px, 1fr) auto auto auto;
  align-items: end;
  gap: 12px;
  padding: 16px 18px;
  margin: 14px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.missing-rf-request-bar .section-kicker {
  grid-column: 1 / -1;
}
.missing-rf-request-bar > strong {
  align-self: center;
  font-size: 14px;
}
.missing-rf-request-bar label {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}
.missing-rf-request-bar select {
  display: block;
  width: 100%;
  margin-top: 6px;
}
.missing-rf-queue-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(190px, 240px) auto auto;
  align-items: end;
  gap: 12px;
  margin: 14px 0;
}
.missing-rf-queue-toolbar label {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}
.missing-rf-queue-toolbar input,
.missing-rf-queue-toolbar select {
  display: block;
  width: 100%;
  margin-top: 6px;
}
.missing-rf-queue-count {
  align-self: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}
.missing-rf-tools {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}
.missing-rf-tools > button {
  justify-self: start;
}
.missing-rf-request-history {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.missing-rf-request-history h4,
.missing-rf-request-history p {
  margin: 0;
}
.missing-rf-request-history .financial-table-wrap {
  margin-top: 8px;
}
.missing-rf-request-history .source-provenance {
  margin: 0;
}
.missing-rf-request-history .source-provenance > summary {
  width: 34px;
  min-height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  list-style: none;
}
.missing-rf-request-history
  .source-provenance
  > summary::-webkit-details-marker {
  display: none;
}
.email-preview,
.reply-review {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.email-preview > summary {
  cursor: pointer;
  font-weight: 700;
}
.email-preview label {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}
.email-preview input,
.email-preview textarea,
.reply-review textarea {
  width: 100%;
  box-sizing: border-box;
}
.reply-review h4 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}
.reply-result {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(220px, 1fr) minmax(
      180px,
      auto
    );
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.reply-result strong,
.reply-result span {
  overflow-wrap: anywhere;
}
.status-history {
  margin: 10px 0 0;
  padding-left: 20px;
  min-width: 250px;
}
.status-history li {
  margin: 6px 0;
}
.lifecycle-rfid_missing {
  color: #8a3d12;
  background: #fff2e8;
  border-color: #f4c8ac;
}
.lifecycle-rfid_completed {
  color: #5d4500;
  background: #fff8d8;
  border-color: #e6d37c;
}
.lifecycle-payment_received {
  color: #075b42;
  background: #e7f8f1;
  border-color: #9ad9c3;
}
.cashflow-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 0;
  margin: 22px 0 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.cashflow-heading {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px 20px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--line);
}
.cashflow-heading .section-kicker,
.cashflow-heading h2,
.cashflow-heading p {
  margin: 0;
}
.cashflow-heading .section-kicker,
.cashflow-heading h2,
.cashflow-heading p {
  grid-column: 1;
}
.cashflow-heading h2 {
  font-size: 1.35rem;
  letter-spacing: -0.025em;
}
.cashflow-heading .chart-link {
  grid-column: 2;
  grid-row: 1 / span 3;
}
.cashflow-chart {
  min-width: 0;
  padding: 18px 24px 22px;
}
.chart-legend {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
}
.chart-legend span::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 2px;
}
.legend-credit::before {
  background: #3c6fce;
}
.legend-debit::before {
  background: #c5cfdf;
}
.cashflow-plot {
  display: grid;
  grid-template-columns: repeat(14, minmax(22px, 1fr));
  align-items: end;
  gap: 8px;
  height: 210px;
  padding: 10px 0 0;
  background: repeating-linear-gradient(
    to bottom,
    #edf1f6 0 1px,
    transparent 1px 52px
  );
}
.cashflow-day {
  display: grid;
  grid-template-rows: 174px auto;
  align-items: end;
  gap: 8px;
  min-width: 0;
  text-align: center;
}
.cashflow-bars {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 3px;
  height: 174px;
}
.cashflow-bar {
  width: min(12px, 42%);
  min-height: 0;
  border-radius: 3px 3px 1px 1px;
}
.credit-bar {
  background: #3c6fce;
}
.debit-bar {
  background: #c5cfdf;
}
.cashflow-day small {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}
.cashflow-split {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 20px;
  padding: 26px 22px;
  border-left: 1px solid var(--line);
  background: #f8fafc;
}
.flow-ring {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: conic-gradient(
    #3c6fce 0 var(--credit-share),
    #c5cfdf var(--credit-share) 100%
  );
  position: relative;
}
.flow-ring::after {
  content: "Flow";
  position: absolute;
  inset: 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  background: #fff;
}
.flow-split-values {
  width: 100%;
}
.flow-split-values p,
.flow-split-values strong {
  margin: 0;
}
.flow-split-values strong {
  display: block;
  margin: 2px 0 12px;
  font-size: 1.05rem;
}
.flow-split-values small {
  color: var(--muted);
}
@media (max-width: 759px) {
  .missing-rf-heading {
    display: grid;
  }
  .missing-rf-summary {
    grid-template-columns: 1fr;
  }
  .missing-rf-summary > * {
    border-left: 0;
    border-top: 1px solid rgb(255 255 255 / 14%);
  }
  .missing-rf-summary > *:first-child {
    border-top: 0;
  }
  .missing-rf-request-bar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .missing-rf-request-bar .section-kicker {
    grid-column: 1;
  }
  .missing-rf-request-bar button {
    width: 100%;
  }
  .missing-rf-queue-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .missing-rf-queue-toolbar button {
    width: 100%;
  }
  .missing-rf-queue-count {
    white-space: normal;
  }
  .reply-result {
    grid-template-columns: 1fr;
  }
  .reply-result button {
    width: 100%;
  }
  .cashflow-workspace {
    grid-template-columns: 1fr;
  }
  .cashflow-heading {
    grid-template-columns: 1fr;
  }
  .cashflow-heading .chart-link {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    margin-top: 10px;
  }
  .cashflow-chart {
    overflow-x: auto;
    padding-left: 20px;
    padding-right: 20px;
  }
  .cashflow-plot {
    min-width: 680px;
  }
  .cashflow-split {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

/* 8.13.93: unified merchant-banking shell and account workspace. */
:root {
  --accent: #1858e8;
  --ink: #101828;
  --muted: #61708a;
  --surface: #f5f7fb;
  --line: #dfe5ee;
  --radius: 12px;
}
body {
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: #f4f6fa;
}
body:not(.signed-out):not(.portal) header {
  height: 68px;
  margin-left: 244px;
  padding: 0 28px;
  border-color: var(--line);
  box-shadow: 0 1px 0 rgb(16 24 40 / 2%);
}
body:not(.signed-out):not(.portal) .shell {
  margin-left: 244px;
}
body:not(.signed-out):not(.portal) aside {
  width: 244px;
  padding: 24px 16px 18px;
  background: #0d1729;
}
.sidebar-brand {
  margin: 2px 12px 30px;
  font-size: 25px;
  letter-spacing: -0.04em;
}
body:not(.signed-out):not(.portal) aside nav {
  gap: 2px;
}
body:not(.signed-out):not(.portal) aside nav button {
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 8px;
  color: #aebbd0;
  font-size: 12.5px;
}
body:not(.signed-out):not(.portal) aside nav button:nth-child(5),
body:not(.signed-out):not(.portal) aside nav button:nth-child(10),
body:not(.signed-out):not(.portal) aside nav button:nth-child(13) {
  margin-top: 10px;
  padding-top: 11px;
  border-top: 1px solid rgb(255 255 255 / 9%);
  border-radius: 0 0 8px 8px;
}
body:not(.signed-out):not(.portal) aside nav button.selected {
  color: #fff;
  background: #1b3158;
  box-shadow: none;
}
body:not(.signed-out):not(.portal) aside nav button.selected .nav-icon,
body:not(.signed-out):not(.portal)
  aside
  nav
  button.selected
  > span:first-child {
  color: #76a1ff;
}
.sidebar-footer {
  padding-top: 24px;
}
body:not(.signed-out):not(.portal) main {
  max-width: 1640px;
  min-height: calc(100vh - 68px);
  padding: 30px clamp(24px, 3vw, 44px) 56px;
}
#breadcrumb {
  font-size: 13px;
  font-weight: 650;
}
#workspace-search {
  max-width: 420px;
  min-height: 40px;
  border-radius: 8px;
}
#user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.source-caption {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0 0 14px;
  padding: 5px 10px;
  border: 1px solid #d7dfeb;
  border-radius: 999px;
  color: #485a76;
  background: #fff;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0;
}
.source-caption::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #ed9b23;
}
.account-hero {
  padding: 26px 28px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(118deg, #101d35 0%, #172b50 70%, #1b3970 100%);
  box-shadow: 0 14px 34px rgb(16 29 53 / 14%);
}
.account-hero h1 {
  margin-bottom: 8px;
  color: #fff;
  font-size: 26px;
  letter-spacing: -0.035em;
}
.account-hero .muted,
.account-hero p {
  color: #becae0;
}
.account-hero .account-iban {
  color: #fff;
  font-weight: 600;
}
.hero-balance p {
  margin: 4px 0;
}
.hero-balance strong {
  color: #fff;
  font-size: 34px;
}
.dashboard-metrics {
  gap: 12px;
  margin: 14px 0 24px;
}
.metric {
  min-height: 126px;
  padding: 18px 20px;
  border-color: var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 12px rgb(19 37 73 / 3%);
}
.metric p {
  font-size: 12px;
}
.metric strong {
  margin: 8px 0;
  font-size: 25px;
}
.dashboard-tabs {
  gap: 26px;
  margin-bottom: 16px;
}
.dashboard-tabs button,
.active-tab {
  min-height: 44px;
  font-size: 13px;
}
.history-layout {
  display: block;
}
.history-panel {
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 12px rgb(19 37 73 / 3%);
}
.history-filters {
  padding: 16px;
}
.history-panel table {
  font-size: 12px;
}
.history-panel th {
  padding: 13px 14px;
  font-size: 11px;
}
.history-panel td {
  padding: 15px 14px;
}
.history-panel td button {
  font-size: 12px;
  font-weight: 600;
}
.transaction-type,
.reference-missing {
  font-size: 10px;
}
.transaction-detail:not(.has-selection) {
  display: none;
}
@media (min-width: 760px) {
  .transaction-detail.has-selection {
    position: fixed;
    inset: 68px 0 0 auto;
    z-index: 20;
    display: block;
    width: min(460px, calc(100vw - 244px));
    min-height: 0;
    padding: 28px;
    overflow-y: auto;
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
    background: #fff;
    box-shadow: -16px 0 42px rgb(16 24 40 / 16%);
  }
  .transaction-detail.has-selection > button {
    min-height: 36px;
    padding: 7px 11px;
    font-size: 12px;
  }
  .transaction-detail.has-selection h2 {
    font-size: 20px;
  }
  .transaction-detail.has-selection p,
  .transaction-detail.has-selection .pill,
  .transaction-detail.has-selection dl {
    font-size: 12px;
  }
}
.dashboard-bottom {
  margin-right: 0;
}
.dashboard-bottom > * {
  border-radius: 12px;
  background: #fff;
}
.dashboard-footnote {
  font-size: 11px;
}
.source-record,
.source-conflict {
  max-width: 190px;
  color: var(--muted);
  font-size: 11px;
}
.source-conflict {
  color: #a33a2b;
  font-weight: 650;
}
.provenance-action-cell {
  width: 56px;
  max-width: 56px !important;
  text-align: right;
}
.financial-table .provenance-action {
  min-width: 32px;
  min-height: 32px;
  padding: 0 8px;
  border-color: transparent;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-size: 20px;
  line-height: 1;
}
.financial-table .provenance-action:hover,
.financial-table .provenance-action:focus-visible {
  color: var(--accent);
  background: #eef4ff;
}
.provenance-dialog .section-kicker {
  margin-bottom: 4px;
}
.provenance-records {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}
.provenance-record {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  overflow-wrap: anywhere;
}
@media (max-width: 1000px) {
  body:not(.signed-out):not(.portal) header,
  body:not(.signed-out):not(.portal) .shell {
    margin-left: 180px;
  }
  body:not(.signed-out):not(.portal) aside {
    width: 180px;
  }
}
@media (max-width: 759px) {
  body:not(.signed-out):not(.portal) header,
  body:not(.signed-out):not(.portal) .shell {
    margin-left: 0;
  }
  body:not(.signed-out):not(.portal) main {
    padding: 18px 14px 40px;
  }
  .account-hero {
    padding: 22px;
  }
  .account-hero h1 {
    font-size: 22px;
  }
  .hero-balance strong {
    font-size: 29px;
  }
  .metric {
    min-height: 114px;
    padding: 16px;
  }
  .metric strong {
    font-size: 21px;
  }
  .dashboard-tabs {
    gap: 18px;
  }
}

.integration-history {
  margin-top: 28px;
}
.integration-history > .muted {
  font-size: 12px;
}
.refresh-history-table-wrap {
  margin-top: 14px;
}
.refresh-history-table {
  min-width: 900px;
}
.refresh-history-outcome strong,
.refresh-history-outcome small {
  display: block;
}
.refresh-history-outcome small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}
.refresh-history-dialog {
  width: min(680px, 100%);
}
.refresh-history-dialog code {
  display: block;
  margin-top: 12px;
  overflow-wrap: anywhere;
}
.refresh-record {
  border: 1px solid #dfe5ef;
  border-radius: 8px;
  padding: 20px;
  margin: 14px 0;
}
.refresh-record h3 {
  font-size: 14px;
  margin-top: 0;
}
.refresh-record p {
  font-size: 12px;
  line-height: 1.6;
  color: #536581;
}
.refresh-record .integration-facts {
  margin: 18px 0;
}
.refresh-record code {
  font-size: 11px;
  overflow-wrap: anywhere;
}
@media (max-width: 759px) {
  .refresh-history-table-wrap {
    overflow: visible;
    border: 0;
  }
  .refresh-history-table,
  .refresh-history-table tbody {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100%;
  }
  .refresh-history-table thead {
    display: none;
  }
  .refresh-history-table tr {
    display: grid;
    width: 100%;
    margin-bottom: 12px;
    padding: 6px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
  }
  .refresh-history-table td {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    min-width: 0;
    padding: 9px 0;
    border: 0;
    border-top: 1px solid var(--line);
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .refresh-history-table td:first-child {
    border-top: 0;
  }
  .refresh-history-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.055em;
    text-transform: uppercase;
  }
  .refresh-history-table .provenance-action-cell {
    width: auto;
    max-width: none !important;
  }
  .refresh-history-table .provenance-action {
    justify-self: end;
  }
}

/* Preserve the reference account composition in the embedded desktop pane. */
.dashboard-processing {
  padding: 12px 16px;
  margin: 0 0 18px;
  background: #f8faff;
}
.dashboard-processing summary {
  font-size: 12px;
  color: #41516c;
  cursor: pointer;
  line-height: 1.6;
}
.metric-unavailable {
  color: #637493;
}
@media (min-width: 760px) and (max-width: 1000px) {
  body:not(.signed-out):not(.portal) aside {
    position: fixed;
    inset: 0 auto 0 0;
    width: 180px;
    padding: 24px 12px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }
  body:not(.signed-out):not(.portal) .shell,
  body:not(.signed-out):not(.portal) header {
    margin-left: 180px;
  }
  body:not(.signed-out):not(.portal) header {
    min-height: 74px;
    padding: 12px 20px;
    gap: 10px;
  }
  body:not(.signed-out):not(.portal) header .wordmark {
    display: none;
  }
  .sidebar-brand {
    display: block;
    font-size: 28px;
    margin: 0 0 34px;
  }
  aside nav {
    display: grid;
    overflow: visible;
    gap: 4px;
  }
  aside nav button {
    white-space: normal;
    padding: 11px 8px;
    gap: 9px;
  }
  .sidebar-footer {
    display: block;
    margin-top: auto;
    padding-top: 24px;
  }
  .sidebar-footer #identity {
    display: block;
  }
  #breadcrumb {
    display: block;
    flex: 1 1 160px;
  }
  #workspace-search {
    width: 100%;
    order: 4;
  }
  #user-avatar {
    margin-left: 0;
  }
  main {
    padding: 20px;
  }
  .account-hero {
    flex-direction: row;
    align-items: center;
    padding: 20px;
  }
  .account-hero h1 {
    font-size: 19px;
  }
  .hero-balance {
    text-align: right;
    flex: 0 0 130px;
  }
  .dashboard-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 20px;
  }
  .metric {
    padding: 14px 10px;
  }
  .metric strong {
    font-size: 19px;
  }
  .metric p {
    font-size: 10px;
  }
  .dashboard-tabs {
    gap: 8px 16px;
  }
}
@media (min-width: 1001px) {
  .dashboard-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 759px) {
  .account-hero {
    padding: 20px;
    gap: 12px;
  }
  .account-hero h1 {
    font-size: 20px;
  }
  .hero-balance strong {
    font-size: 26px;
  }
  .dashboard-processing {
    margin-bottom: 12px;
  }
}

.evidence-comparison {
  margin: 24px 0;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.comparison-controls {
  margin: 18px 0;
  max-width: 620px;
}
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.comparison-grid > section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  min-width: 0;
}
.comparison-grid h4 {
  margin: 0 0 12px;
  font-size: 15px;
}
.comparison-grid p,
.comparison-fact {
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.comparison-fact {
  margin: 12px 0;
}
.comparison-fact dt {
  color: #637493;
}
.comparison-fact dd {
  margin: 2px 0 0;
}
.comparison-warning {
  background: #fff7e8;
  border-radius: 6px;
  padding: 14px;
  font-size: 12px;
  line-height: 1.6;
}
.comparison-candidate {
  border-top: 1px solid var(--line);
  margin-top: 16px;
}
@media (max-width: 1100px) {
  .comparison-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 8.13.15: keep the reference composition in compact desktop windows. */
body:not(.signed-out):not(.portal) {
  color: #151d2e;
  --line: #dfe5ef;
}
.sidebar-footer .release {
  display: inline-block;
  font-size: 11px;
  color: #637493;
  margin-right: 12px;
}
.sidebar-footer #logout {
  min-height: 36px;
  padding: 6px 0;
  border: 0;
  font-size: 11px;
  color: #41516c;
}
.sidebar-footer select {
  border-radius: 6px;
  border-color: #dfe5ef;
  min-height: 40px;
  padding: 9px 11px;
}
.dashboard .muted {
  color: #637493;
}
.dashboard button {
  border-color: #dfe5ef;
  border-radius: 6px;
}
.dashboard-tabs button {
  border-radius: 0;
}
.account-hero h1 {
  line-height: 1.25;
}
.history-empty {
  min-height: 150px;
  margin: 0;
  padding: 28px 20px 16px;
}
.history-empty-action button {
  font-size: 12px;
  min-height: 36px;
  padding: 8px 12px;
}
@media (min-width: 760px) {
  body:not(.signed-out):not(.portal) header {
    flex-wrap: nowrap;
    height: 74px;
    min-height: 74px;
    padding-block: 0;
  }
  #breadcrumb {
    flex: 1 1 auto;
    font-size: 12px;
  }
  #workspace-search {
    order: 0;
    width: clamp(210px, 23vw, 300px);
    min-width: 0;
    flex: 0 1 300px;
  }
  .history-layout {
    grid-template-columns: minmax(0, 1fr) 316px;
    align-items: stretch;
  }
  .transaction-detail.has-selection {
    position: static;
    overflow: visible;
    border-radius: 7px;
    padding: 20px;
    z-index: auto;
  }
  .transaction-detail {
    min-height: 360px;
  }
  .dashboard-bottom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .history-filters {
    flex-wrap: nowrap;
  }
  .history-filters input {
    flex: 1 1 0;
    min-width: 0;
  }
  .history-filters select {
    flex: 0 0 112px;
  }
  .history-filters button {
    padding: 7px 12px;
    font-weight: 400;
    color: #151d2e;
  }
}
@media (min-width: 760px) and (max-width: 1100px) {
  .history-layout {
    grid-template-columns: minmax(0, 1fr) 200px;
    gap: 12px;
  }
  .history-panel table {
    min-width: 0;
    table-layout: fixed;
  }
  .history-panel th,
  .history-panel td {
    padding: 12px 5px;
    font-size: 9px;
  }
  .history-panel th:first-child,
  .history-panel td:first-child {
    width: 25px;
    padding-left: 6px;
  }
  .history-panel th:nth-child(2) {
    width: 65px;
  }
  .history-panel th:nth-child(3) {
    width: 49px;
  }
  .history-panel th:nth-child(4) {
    width: 65px;
  }
  .history-panel th:nth-child(n + 6),
  .history-panel td:nth-child(n + 6) {
    display: none;
  }
  .history-panel td button {
    font-size: 10px;
  }
  .transaction-type {
    padding: 4px 3px;
    font-size: 8px;
  }
  .transaction-detail,
  .transaction-detail.has-selection {
    padding: 16px;
  }
  .transaction-detail dl {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .transaction-detail dd {
    margin-bottom: 9px;
  }
  .history-filters {
    flex-wrap: wrap;
    padding: 10px;
  }
  .history-filters input {
    flex-basis: 100%;
  }
  .history-filters select {
    flex: 1;
  }
  .dashboard-bottom {
    gap: 10px;
  }
  .dashboard-tabs {
    gap: 8px 14px;
  }
}
@media (max-width: 759px) {
  .sidebar-footer .release {
    margin-left: 0;
  }
}

/* 8.13.98: transaction details are a contextual drawer, never a table column. */
.transaction-workspace .history-layout {
  display: block;
}
.transaction-workspace .transaction-detail:not(.has-selection) {
  display: none;
}
@media (min-width: 760px) {
  .transaction-workspace .transaction-detail.has-selection {
    position: fixed;
    inset: 74px 0 0 auto;
    z-index: 50;
    display: block;
    width: min(480px, calc(100vw - 220px));
    min-height: 0;
    padding: 28px 30px 44px;
    overflow: auto;
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
    background: #fff;
    box-shadow: -18px 0 46px rgb(16 24 40 / 18%);
  }
  .transaction-workspace
    .transaction-detail.has-selection
    > button:first-child {
    position: sticky;
    top: 0;
    z-index: 1;
    float: right;
    background: #fff;
  }
}
@media (max-width: 759px) {
  .banking-page-heading {
    margin-bottom: 14px;
    padding-bottom: 14px;
  }
  .banking-page-heading h1 {
    font-size: 25px;
  }
  .governance-page-heading {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }
  .governance-page-heading p {
    max-width: 220px;
  }
  .governance-page-heading > button {
    min-height: 36px;
    padding-inline: 10px;
    font-size: 12px;
  }
  .transactions-data-tabs {
    margin-bottom: 14px;
  }
  .transaction-source-controls > summary {
    width: 100%;
    justify-content: space-between;
  }
  .transaction-workspace .transaction-detail.has-selection {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: block;
    width: 100%;
    min-height: 100dvh;
    padding: 22px 20px 40px;
    overflow: auto;
    border: 0;
    border-radius: 0;
    background: #fff;
  }
}

/* Transaction documents stay close to the selected financial record. */
.transaction-document-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 18px 0 4px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.transaction-document-actions button {
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 11px;
}
.transaction-document-status {
  flex-basis: 100%;
  min-height: 15px;
  color: var(--muted);
  font-size: 10px;
}
.transaction-receipt-preview {
  margin: 18px 0 4px;
  padding: 18px;
  border: 1px solid #d7e1f3;
  border-radius: 10px;
  background: linear-gradient(145deg, #f8fbff, #fff);
  box-shadow: 0 10px 26px rgb(18 48 94 / 8%);
}
.transaction-receipt-preview .receipt-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.12em;
}
.transaction-receipt-preview .receipt-amount {
  display: block;
  margin-bottom: 10px;
  color: #111d34;
  font-size: 23px;
  letter-spacing: -0.03em;
}
.transaction-receipt-preview .receipt-facts {
  margin: 18px 0;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}
.transaction-receipt-preview .receipt-note {
  line-height: 1.55;
}
.transaction-receipt-preview > button {
  float: none;
  width: 100%;
  min-height: 38px;
  margin-top: 8px;
}
.compact-provenance {
  position: relative;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.compact-provenance > summary {
  display: grid;
  place-items: center;
  width: 34px;
  min-height: 30px;
  margin-left: auto;
  border-radius: 7px;
  color: var(--muted);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  list-style: none;
}
.compact-provenance > summary::-webkit-details-marker {
  display: none;
}
.compact-provenance:not([open]) > :not(summary) {
  display: none !important;
}
.compact-provenance > summary:hover,
.compact-provenance > summary:focus-visible {
  color: var(--accent);
  background: #eef4ff;
}
.compact-provenance .provenance-records {
  gap: 6px;
  margin-top: 10px;
}
.compact-provenance .provenance-record {
  gap: 3px;
  padding: 9px 10px;
  font-size: 9px;
}

/* Statement batches remain readable without overflowing long bank filenames. */
.statement-imports .statement-import {
  display: flex;
  width: 100%;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 16px 0;
  text-align: left;
  color: #202b40;
}
.statement-import strong {
  font-size: 12px;
  font-weight: 500;
  overflow-wrap: anywhere;
  min-width: 0;
}
.statement-import span {
  flex: 0 0 150px;
  color: #637493;
  font-size: 11px;
  font-weight: 400;
}
@media (max-width: 759px) {
  .statement-imports .statement-import {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .statement-import span {
    flex-basis: auto;
  }
}

.source-comparison h2,
.source-comparison h3,
.source-comparison p {
  overflow-wrap: anywhere;
}
.source-comparison-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0;
}
.source-comparison-pair > section {
  padding: 16px;
  border: 1px solid #e7e9ef;
  border-radius: 12px;
  background: #fafbfe;
}
@media (max-width: 759px) {
  .source-comparison-pair {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Preserve reviewed source text and long document hashes on narrow screens. */
.document-observations {
  min-width: 0;
  overflow-wrap: anywhere;
}
.document-observations p {
  white-space: pre-wrap;
}

/* 8.13.91: payment orders are one banking workspace with focused data views. */
.orders-workspace {
  min-width: 0;
}
.orders-tabs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  margin: -4px 0 24px;
  overflow-x: auto;
}
.orders-tabs button {
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  padding: 14px 0 12px;
  color: #536175;
  white-space: nowrap;
}
.orders-tabs button[aria-selected="true"] {
  color: #1554e8;
  border-bottom-color: #1554e8;
  font-weight: 650;
}
.orders-tab-panel[hidden] {
  display: none;
}
.orders-view-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}
.orders-view-header h2 {
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: -0.4px;
}
.orders-view-header p {
  margin: 0;
}
.orders-view-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}
.order-source-bar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 16px;
  border: 1px solid #d9e1f0;
  border-radius: 8px 8px 0 0;
  background: #f5f8ff;
  color: #536175;
  font-size: 12px;
}
.order-source-bar strong {
  color: #17233b;
}
.order-source-bar span {
  text-align: right;
  overflow-wrap: anywhere;
}
.order-portfolio-strip {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
  background: #17233b;
  color: white;
  border-radius: 0 0 10px 10px;
  margin: 0 0 20px;
}
.order-portfolio-strip > div {
  padding: 20px;
  border-left: 1px solid rgb(255 255 255 / 14%);
  min-width: 0;
}
.order-portfolio-strip > div:first-child {
  border-left: 0;
}
.order-portfolio-strip span,
.order-portfolio-strip small {
  display: block;
  color: #aebbd0;
  font-size: 11px;
}
.order-portfolio-strip strong {
  display: block;
  margin: 7px 0 5px;
  font-size: 22px;
  letter-spacing: -0.5px;
  overflow-wrap: anywhere;
}
.order-list-toolbar {
  display: flex;
  gap: 10px;
  padding: 0 0 14px;
}
.order-list-toolbar input {
  flex: 1;
  min-width: 180px;
}
.order-list-toolbar select {
  width: 180px;
}
.order-list-count {
  margin: 0 0 10px;
  color: #637493;
  font-size: 12px;
}
.created-order-reconciliation .financial-table {
  min-width: 920px;
}
.created-order-reconciliation .financial-table th,
.created-order-reconciliation .financial-table td {
  padding: 14px 12px;
}
.order-primary strong,
.order-primary small,
.created-order-reconciliation .status-cell small {
  display: block;
}
.order-primary small,
.created-order-reconciliation .status-cell small {
  margin-top: 5px;
  color: #637493;
  font-size: 10px;
}
.order-dialog-heading {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.order-dialog-heading p,
.order-dialog-heading h2 {
  margin: 0 0 8px;
}
.order-record-dialog {
  width: min(680px, 100%);
  box-shadow: -24px 0 70px rgb(15 23 42 / 16%);
}
.order-dialog-heading h2 {
  font-size: 30px;
  letter-spacing: -0.035em;
}
.order-detail-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0 22px;
}
.order-detail-summary-item {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-top-width: 3px;
  border-radius: 9px;
  background: #f8fafc;
}
.order-detail-summary-item.complete {
  border-top-color: #168269;
  background: #f1fbf7;
}
.order-detail-summary-item.attention {
  border-top-color: #d69a1f;
  background: #fff9ed;
}
.order-detail-summary-item.critical {
  border-top-color: #d94c5b;
  background: #fff3f4;
}
.order-detail-summary-item span,
.order-detail-summary-item small {
  color: var(--muted);
  font-size: 10px;
}
.order-detail-summary-item strong {
  overflow-wrap: anywhere;
  font-size: 14px;
  text-transform: capitalize;
}
.order-detail-section {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.order-detail-section h3 {
  margin: 0 0 16px;
  font-size: 15px;
}
.order-source-fields {
  margin-top: 6px;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
}
.order-source-fields summary {
  cursor: pointer;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}
.order-source-fields > p {
  margin: 10px 0 18px;
  overflow-wrap: anywhere;
}
.order-source-fields .record-fields {
  padding-bottom: 16px;
}
.order-provenance {
  list-style: none;
  padding: 4px 0 4px 22px;
  margin: 22px 0;
  border-left: 2px solid #dfe5ef;
}
.order-provenance li {
  position: relative;
  padding: 0 0 22px 12px;
}
.order-provenance li:last-child {
  padding-bottom: 0;
}
.order-provenance li::before {
  content: "";
  position: absolute;
  left: -19px;
  top: 2px;
  width: 10px;
  height: 10px;
  border: 3px solid white;
  border-radius: 50%;
  background: #e0a526;
  box-shadow: 0 0 0 1px #cbd3e0;
}
.order-provenance li.complete::before {
  background: #168269;
}
.order-provenance strong,
.order-provenance span {
  display: block;
}
@media (max-width: 759px) {
  .order-dialog-heading h2 {
    font-size: 26px;
  }
  .order-detail-summary {
    grid-template-columns: 1fr;
  }
}
.overview-operations {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.overview-operations > summary {
  width: fit-content;
  color: #41516c;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.overview-operations[open] > summary {
  margin-bottom: 20px;
}
.overview-operations .operations-hero {
  margin-top: 0;
}
.order-provenance span {
  margin-top: 4px;
  color: #637493;
  font-size: 11px;
}
@media (max-width: 759px) {
  .orders-tabs {
    gap: 20px;
  }
  .orders-view-header,
  .order-source-bar,
  .order-list-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .orders-view-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .orders-view-actions button {
    min-width: 0;
    padding-inline: 8px;
  }
  .order-source-bar span {
    text-align: left;
  }
  .order-portfolio-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .order-portfolio-strip > div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid rgb(255 255 255 / 14%);
  }
  .order-portfolio-strip > div:nth-child(4) {
    border-top: 1px solid rgb(255 255 255 / 14%);
  }
  .order-portfolio-strip strong {
    font-size: 18px;
  }
  .order-list-toolbar select {
    width: 100%;
  }
}
.document-observations details {
  margin-block: 1rem;
}
.document-observations select {
  max-width: 100%;
}

.association-history {
  min-width: 0;
  overflow-wrap: anywhere;
  margin-block: 1rem;
}
.association-history dd {
  white-space: pre-wrap;
}
.association-history details {
  margin-block: 1rem;
}

.session-history {
  min-width: 0;
  overflow-wrap: anywhere;
  margin-block: 1rem;
}
.session-history details {
  margin-block: 1rem;
}

@media (max-width: 600px) {
  .evidence-list {
    overflow: visible;
  }
  .evidence-list table {
    display: block;
    min-width: 0;
    width: 100%;
  }
  .evidence-list tbody {
    display: block;
  }
  .evidence-list tr:first-child {
    display: none;
  }
  .evidence-list tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.8rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
  }
  .evidence-list td {
    display: block;
    padding: 0;
    border: 0;
    overflow-wrap: anywhere;
  }
  .evidence-list td:first-child,
  .evidence-list td:last-child {
    grid-column: 1 / -1;
  }
  .evidence-list td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.25rem;
  }
}

.order-associations {
  min-width: 0;
  overflow-wrap: anywhere;
}
.order-associations select {
  max-width: 100%;
}
.order-associations pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.order-associations article {
  margin-block: 1rem;
}

.reservation-panel {
  min-width: 0;
  overflow-wrap: anywhere;
  margin-block: 1.5rem;
}
.reservation-panel article {
  margin-block: 1rem;
}

.operations-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0;
}
.operations-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.operations-section {
  margin: 0;
  min-width: 0;
}
.operations-count {
  display: block;
  font-size: 1.4rem;
  margin: 1rem 0;
}
.operations-record {
  display: flex;
  flex-direction: column;
  text-align: left;
  width: 100%;
  gap: 0.35rem;
  margin: 0.5rem 0;
  overflow-wrap: anywhere;
  white-space: normal;
}
.operations-record span {
  font-size: 0.85rem;
  color: #536175;
}
.operations-alert {
  padding: 1rem;
  border-left: 3px solid #b7791f;
  background: #fffbeb;
  color: #704c16;
}
.operations-home > .muted {
  margin: 1rem 0 2rem;
}
.activity-list details {
  padding: 1rem 0;
  border-bottom: 1px solid #e2e8f0;
  overflow-wrap: anywhere;
}
.activity-list pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.audit-workspace {
  min-width: 0;
}
.audit-heading h2,
.audit-heading p {
  margin: 0;
}
.audit-heading .muted {
  max-width: 74ch;
  margin-top: 8px;
}
.audit-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 24px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.audit-summary > div {
  display: grid;
  gap: 5px;
  padding: 17px 18px;
  border-left: 1px solid var(--line);
}
.audit-summary > div:first-child {
  border-left: 0;
}
.audit-summary span,
.audit-summary small {
  color: var(--muted);
  font-size: 11px;
}
.audit-summary strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.1;
}
.audit-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) minmax(180px, 0.7fr) auto;
  gap: 12px;
  align-items: end;
}
.audit-toolbar label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}
.audit-toolbar input,
.audit-toolbar select {
  width: 100%;
  color: var(--ink);
  background: #fff;
}
.audit-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.audit-result-count,
.audit-end,
.audit-note,
.audit-error {
  margin: 12px 0;
  color: var(--muted);
  font-size: 12px;
}
.audit-error:not(:empty) {
  padding: 12px 14px;
  border: 1px solid #edc8c4;
  border-radius: 8px;
  color: #8e2f2a;
  background: #fff7f6;
}
.audit-table-wrap {
  max-height: 610px;
  margin: 0;
}
.audit-table {
  min-width: 980px;
}
.audit-table td:first-child {
  width: 170px;
  white-space: nowrap;
}
.audit-table td:nth-child(2) {
  width: 120px;
}
.audit-table td:nth-child(3) {
  min-width: 220px;
}
.audit-table td:nth-child(4),
.audit-table td:nth-child(5) {
  min-width: 170px;
}
.audit-table td:last-child {
  width: 58px;
  text-align: right;
}
.audit-table td:last-child button {
  min-width: 38px;
  font-size: 18px;
  line-height: 1;
}
.audit-event-dialog > .status-label {
  margin-bottom: 10px;
}
.audit-event-dialog h2 {
  margin: 0 0 24px;
  overflow-wrap: anywhere;
}
.audit-event-dialog h3 {
  margin: 30px 0 12px;
}
.audit-core-fields {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.audit-detail-fields {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1.8fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.audit-detail-fields dt,
.audit-detail-fields dd {
  margin: 0;
  padding: 11px 13px;
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.audit-detail-fields dt:first-of-type,
.audit-detail-fields dt:first-of-type + dd {
  border-top: 0;
}
.audit-detail-fields dt {
  color: var(--muted);
  background: var(--surface);
  font-size: 11px;
  font-weight: 650;
  text-transform: capitalize;
}
.audit-detail-fields dd {
  color: var(--ink);
  font-size: 12px;
}
.audit-raw-event {
  margin-top: 24px;
}
.audit-raw-event pre {
  max-height: 340px;
  overflow: auto;
  padding: 14px;
  border-radius: 8px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #26324a;
  background: var(--surface);
  font-size: 11px;
}
.audit-export-result:not(:empty) {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid #cfe2d6;
  border-radius: 9px;
  background: #f5fbf7;
}
.audit-export-result p {
  margin-top: 0;
}
@media (max-width: 700px) {
  .operations-grid {
    grid-template-columns: 1fr;
  }
  .operations-shortcuts > button {
    flex: 1 1 45%;
    white-space: normal;
  }
  .audit-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .audit-summary > div:nth-child(odd) {
    border-left: 0;
  }
  .audit-summary > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .audit-toolbar {
    grid-template-columns: 1fr;
  }
  .audit-toolbar-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .audit-toolbar-actions button {
    width: 100%;
  }
  .audit-workspace .audit-table-wrap {
    max-height: none;
    overflow: visible;
    border: 0;
  }
  .audit-workspace .audit-table,
  .audit-workspace .audit-table tbody {
    display: grid;
    gap: 14px;
    width: 100%;
    min-width: 0;
  }
  .audit-table thead {
    display: none;
  }
  .audit-table tr {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
  }
  .audit-table td,
  .audit-table td:first-child,
  .audit-table td:nth-child(2),
  .audit-table td:nth-child(3),
  .audit-table td:nth-child(4),
  .audit-table td:nth-child(5),
  .audit-table td:last-child {
    display: grid;
    grid-template-columns: minmax(78px, 0.36fr) minmax(0, 1fr);
    gap: 12px;
    width: auto;
    max-width: none;
    min-width: 0;
    padding: 11px 14px;
    border-top: 1px solid var(--line);
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .audit-table td:first-child {
    border-top: 0;
  }
  .audit-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 650;
  }
  .audit-table td > strong,
  .audit-table td > small {
    grid-column: 2;
  }
  .audit-table td:last-child button {
    width: 100%;
  }
  .audit-detail-fields,
  .audit-core-fields {
    grid-template-columns: 1fr;
  }
  .audit-detail-fields dt,
  .audit-detail-fields dd,
  .audit-detail-fields dt:first-of-type + dd {
    border-top: 1px solid var(--line);
  }
  .audit-detail-fields dt:first-of-type {
    border-top: 0;
  }
}

.order-detail {
  min-width: 0;
  overflow-wrap: anywhere;
}
.order-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.order-detail dl {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) minmax(0, 2fr);
  gap: 0.5rem 1rem;
  margin: 1rem 0;
}
.order-detail dt {
  color: #536175;
}
.order-detail dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.order-record {
  padding: 1rem 0;
  border-bottom: 1px solid #e2e8f0;
}
@media (max-width: 850px) {
  .order-detail-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 450px) {
  .order-detail dl {
    grid-template-columns: 1fr;
  }
  .order-detail dd {
    margin-bottom: 0.5rem;
  }
}

.operations-health .operations-grid {
  margin-top: 1rem;
}
.operations-status-card > summary {
  position: relative;
  display: grid;
  gap: 8px;
  padding-right: 28px;
  cursor: pointer;
  list-style: none;
}
.operations-status-card > summary::-webkit-details-marker {
  display: none;
}
.operations-status-card > summary::after {
  position: absolute;
  top: 2px;
  right: 0;
  color: var(--muted);
  content: "+";
  font-size: 20px;
  line-height: 1;
}
.operations-status-card[open] > summary::after {
  content: "−";
}
.operations-status-card > summary h3,
.operations-status-card > summary strong {
  margin: 0;
}
.operations-status-card[open] > summary {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.queue-summary {
  padding: 1rem 0;
  border-top: 1px solid #e2e8f0;
}
.queue-summary dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.queue-summary dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.operations-health {
  min-width: 0;
  overflow-wrap: anywhere;
}
.operations-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.operations-heading-copy {
  min-width: 0;
}
.operations-heading-copy h3,
.operations-heading-copy p {
  margin-top: 0;
}
.operations-heading-copy h3 {
  margin-bottom: 6px;
  font-size: 1.25rem;
}
.operations-heading-copy .section-kicker {
  margin-bottom: 7px;
}
.operations-attention,
.operations-restore-history {
  margin-top: 18px;
}
.operations-attention-list {
  display: grid;
  gap: 10px;
}
.operations-attention-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid #f0c879;
  border-left: 4px solid #d99516;
  border-radius: 10px;
  background: #fffaf0;
}
.operations-attention-item.critical {
  border-color: #f5b9bd;
  border-left-color: var(--fee);
  background: var(--fee-soft);
}
.operations-attention-copy h4,
.operations-attention-copy p {
  margin: 0;
}
.operations-attention-copy strong {
  display: block;
  margin-top: 5px;
  color: #8a4b00;
  font-size: 0.82rem;
}
.operations-attention-item.critical .operations-attention-copy strong {
  color: var(--fee);
}
.operations-attention-copy p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}
.operations-clear-state,
.operations-empty-state {
  margin: 0;
  padding: 24px 20px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
  text-align: center;
  background: var(--surface);
}
.operations-history-table td:nth-child(2),
.operations-history-table td:nth-child(3) {
  min-width: 180px;
}
.operations-history-table td:nth-child(n + 4):nth-child(-n + 6) {
  min-width: 135px;
}
.operations-restore-dialog {
  width: min(620px, 100%);
}
.operations-restore-fields {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(0, 1fr);
  margin: 20px 0 0;
}
.operations-restore-fields dt,
.operations-restore-fields dd {
  margin: 0;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}
.operations-restore-fields dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}
.operations-restore-fields dd {
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
@media (max-width: 759px) {
  .operations-section-heading {
    display: grid;
    gap: 10px;
  }
  .operations-section-heading > .status-label {
    justify-self: start;
  }
  .operations-attention-item {
    grid-template-columns: 1fr;
  }
  .operations-attention-item button {
    width: 100%;
  }
  .operations-history-table-wrap {
    max-height: none;
    overflow: visible;
    border: 0;
    background: transparent;
  }
  .operations-history-table {
    display: block;
    width: 100%;
    min-width: 0;
  }
  .operations-history-table caption {
    padding: 12px 0;
    text-align: left;
  }
  .operations-history-table thead {
    display: none;
  }
  .operations-history-table tbody {
    display: grid;
    gap: 12px;
  }
  .operations-history-table tr {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
  }
  .operations-history-table td {
    display: grid;
    grid-template-columns: minmax(112px, 0.44fr) minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    width: 100%;
    min-width: 0 !important;
    padding: 11px 14px;
    border-top: 1px solid var(--line);
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .operations-history-table td:first-child {
    border-top: 0;
  }
  .operations-history-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .operations-history-table .provenance-action {
    width: 100%;
  }
  .operations-restore-fields {
    grid-template-columns: 1fr;
  }
  .operations-restore-fields dt {
    padding-bottom: 3px;
  }
  .operations-restore-fields dd {
    padding-top: 0;
    border-top: 0;
  }
}

.import-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 14px;
  align-items: end;
}
.import-filters label {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.import-filters input,
.import-filters select {
  width: 100%;
  min-width: 0;
}
.statement-filter-shell {
  margin-bottom: 18px;
}
.statement-filter-toggle-bar {
  display: none;
}
.statement-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.statement-active-filters[hidden] {
  display: none;
}
.statement-active-filters button {
  min-height: 34px;
  padding: 6px 10px;
  border-color: #cbd7ed;
  border-radius: 999px;
  background: #f5f8ff;
  color: var(--accent);
  font-size: 12px;
}

.statement-register-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}
.statement-workspace-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.statement-workspace-shortcuts button {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 5px;
  min-height: 76px;
  padding: 14px 16px;
  border-color: #dce5f1;
  background: linear-gradient(135deg, #fff, #f7f9fd);
  color: #17315a;
  text-align: left;
  white-space: normal;
}
.statement-workspace-shortcuts button:hover {
  border-color: #b8c9e8;
  box-shadow: 0 8px 22px rgb(24 88 232 / 8%);
}
.statement-workspace-shortcuts strong {
  font-size: 14px;
}
.statement-workspace-shortcuts small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}
#statement-register:focus,
#statement-upload:focus,
#statement-unassigned-sources:focus,
#statement-reviewed-receipts:focus {
  outline: 3px solid rgb(24 88 232 / 24%);
  outline-offset: 4px;
}
.reconciliation-access-boundary {
  display: grid;
  gap: 10px;
  padding: 8px 0;
}
.reconciliation-access-boundary h2,
.reconciliation-access-boundary p {
  margin: 0;
}
.reconciliation-access-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 12px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
}
.reconciliation-access-facts > div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 16px;
  border-right: 1px solid var(--line);
}
.reconciliation-access-facts > div:last-child {
  border-right: 0;
}
.reconciliation-access-facts dt,
.reconciliation-access-facts small {
  color: var(--muted);
  font-size: 11px;
}
.reconciliation-access-facts dt {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.reconciliation-access-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-weight: 720;
}
@media (max-width: 759px) {
  .reconciliation-access-facts {
    grid-template-columns: 1fr;
  }
  .reconciliation-access-facts > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .reconciliation-access-facts > div:last-child {
    border-bottom: 0;
  }
  .reconciliation-access-boundary .actions button {
    width: 100%;
  }
}
.statement-register-heading h2,
.statement-register-heading p {
  margin: 0;
}
.statement-register-heading p {
  margin-top: 6px;
  color: var(--muted);
}
.filter-help {
  margin: 12px 0 18px;
  color: var(--muted);
  font-size: 13px;
  max-width: 78ch;
}
.statement-register-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}
.statement-register-summary > div {
  padding: 15px 18px;
  border-right: 1px solid var(--line);
}
.statement-register-summary > div:last-child {
  border-right: 0;
}
.statement-register-summary dt {
  color: var(--muted);
  font-size: 12px;
}
.statement-register-summary dd {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.statement-register-table {
  min-width: 0;
  max-width: 100%;
  margin-bottom: 16px;
}
.statement-register-scroll {
  max-width: 100%;
}
.statement-table td:first-child {
  min-width: 220px;
}
.statement-table td:nth-child(3) {
  min-width: 190px;
}
.statement-table td:nth-child(4) {
  min-width: 165px;
}
.statement-table td:nth-child(5) {
  min-width: 230px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.statement-table td:nth-child(6) {
  min-width: 135px;
}
.statement-table td:last-child {
  min-width: 150px;
}
.statement-table .status-label {
  white-space: normal;
  line-height: 1.35;
}
.processing-stage {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.statement-register-empty {
  padding: 38px 24px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  text-align: center;
  background: var(--surface);
}
.statement-register-empty p {
  margin: 8px auto 0;
  color: var(--muted);
  max-width: 52ch;
}
.statement-register-pagination {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  margin: 4px 0 10px;
}
.statement-register-pagination[hidden] {
  display: none;
}
.statement-register-pagination button {
  min-height: 38px;
}
.statement-page-status {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.unassigned-sources {
  display: grid;
  gap: 18px;
  margin: 40px 0 32px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.unassigned-source-heading h2,
.unassigned-source-heading p,
.unassigned-source-count {
  margin: 0;
}
.unassigned-source-heading p {
  margin-top: 6px;
  max-width: 78ch;
}
.unassigned-source-list {
  min-width: 0;
}
.unassigned-source-list .financial-table td:first-child {
  min-width: 240px;
}
.unassigned-source-list .financial-table td:nth-child(2) {
  min-width: 150px;
}
.unassigned-source-detail-heading {
  margin-bottom: 24px;
}
.unassigned-source-detail-heading h2,
.unassigned-source-detail-heading p {
  margin: 0;
  overflow-wrap: anywhere;
}
.unassigned-source-detail-heading h2 {
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -0.25px;
}
.unassigned-source-detail-heading .muted {
  margin-top: 8px;
}
.unassigned-source-dialog .record-fields {
  margin-bottom: 28px;
}
.unassigned-source-dialog .history-filters {
  padding: 0 0 14px;
}
.unassigned-source-dialog .financial-table-wrap {
  max-height: 50vh;
}
@media (max-width: 759px) {
  .statement-workspace-shortcuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 14px 0 18px;
  }
  .statement-workspace-shortcuts button {
    min-height: 88px;
    padding: 12px;
  }
  .statement-register-pagination {
    grid-template-columns: 1fr 1fr;
  }
  .statement-register-pagination .statement-page-status {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .statement-register-pagination button {
    width: 100%;
  }
  .statement-filter-toggle-bar {
    display: flex;
    justify-content: flex-end;
  }
  .statement-filter-toggle {
    width: 100%;
  }
  .statement-filter-shell:not(.expanded) .import-filters,
  .statement-filter-shell:not(.expanded) .filter-help {
    display: none;
  }
  .statement-filter-shell.expanded .statement-filter-toggle-bar {
    margin-bottom: 14px;
  }
  .statement-active-filters {
    margin-top: 10px;
  }
  .statement-register-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .statement-register-scroll .statement-table {
    min-width: 0;
    max-width: 100%;
  }
  .statement-register-summary > div:nth-child(2) {
    border-right: 0;
  }
  .statement-register-summary > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .statement-table thead {
    display: none;
  }
  .statement-table,
  .statement-table tbody,
  .statement-table tr,
  .statement-table td {
    display: block;
    width: 100%;
  }
  .statement-table tr {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
  }
  .statement-table td,
  .statement-table td:first-child,
  .statement-table td:nth-child(3),
  .statement-table td:nth-child(4),
  .statement-table td:nth-child(5),
  .statement-table td:nth-child(6),
  .statement-table td:last-child {
    min-width: 0;
    max-width: none;
    padding: 7px 0 7px 42%;
    border: 0;
    position: relative;
  }
  .statement-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    top: 7px;
    width: 38%;
    color: var(--muted);
    font-size: 12px;
  }
  .statement-table td:last-child button {
    width: 100%;
  }
  .unassigned-source-filters button {
    width: 100%;
  }
  .unassigned-source-dialog .history-filters input,
  .unassigned-source-dialog .history-filters select {
    width: 100%;
    flex: 1 0 100%;
  }
  .unassigned-source-detail-heading h2 {
    font-size: 18px;
  }
}

.dashboard-selectors > [role="status"] {
  flex-basis: 100%;
  order: 2;
  margin: 0;
}

.source-report-register {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid var(--line, #dce3ed);
  border-radius: 12px;
  overflow-wrap: anywhere;
}
.source-report-register details {
  padding: 0.65rem 0;
}
.source-report-register summary {
  cursor: pointer;
  font-weight: 600;
}
.source-report-register p {
  line-height: 1.5;
}

.investigation-files {
  min-width: 0;
  overflow-wrap: anywhere;
}
.investigation-files select {
  max-width: 100%;
}

.order-imports {
  min-width: 0;
  overflow-wrap: anywhere;
}
.order-imports > [role="status"]:empty {
  display: none;
}
.order-imports .orders-view-header {
  margin-bottom: 8px;
}
.order-imports .source-notice {
  margin: 8px 0;
  padding: 8px 12px;
}
.order-imports .source-provenance {
  margin: 3px 0;
}
.order-imports input {
  max-width: 100%;
}
.pulse-order-upload-card {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(260px, 0.8fr) auto;
  align-items: end;
  gap: 10px 14px;
  margin: 12px 0 10px;
  padding: 14px 16px;
  border: 1px solid #dce4f1;
  border-radius: 12px;
  background: linear-gradient(135deg, #f7faff 0%, #fff 72%);
}
.pulse-order-upload-heading,
.pulse-order-intake-details {
  grid-column: 1 / -1;
}
.pulse-order-upload-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 4px 12px;
}
.pulse-order-upload-heading .section-kicker,
.pulse-order-upload-heading h3,
.pulse-order-upload-heading p {
  margin: 0;
}
.pulse-order-upload-heading p {
  grid-column: 1 / -1;
  font-size: 13px;
}
.pulse-order-upload-card label {
  min-width: 0;
  font-weight: 600;
}
.pulse-order-upload-card input[type="file"] {
  display: block;
  width: 100%;
  margin-top: 8px;
}
.pulse-order-upload-status {
  min-height: 44px;
  margin: 0;
  padding: 11px 12px;
  border-radius: 8px;
  background: #f3f6fb;
  font-size: 12px;
}
.pulse-order-intake-details {
  color: #617087;
  font-size: 12px;
}
.pulse-order-intake-details summary {
  width: max-content;
  cursor: pointer;
  color: #2456bc;
  font-weight: 650;
}
.pulse-order-intake-details p {
  max-width: 90ch;
  margin: 8px 0 0;
}
.pulse-order-upload-status.is-error {
  color: #9f2d25;
  background: #fff0ee;
}
.pulse-order-upload-status.is-success {
  color: #087450;
  background: #eaf8f1;
}
.order-import-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}
@media (max-width: 759px) {
  .pulse-order-upload-card {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .pulse-order-upload-heading,
  .pulse-order-intake-details {
    grid-column: 1;
  }
  .pulse-order-upload-heading {
    grid-template-columns: 1fr;
  }
  .pulse-order-upload-heading p {
    grid-column: 1;
  }
  .pulse-order-upload-card > button,
  .order-import-actions > button {
    width: 100%;
  }
}

/* Financial workspace rules: white canvas, blue actions, comparable rows. */
:root {
  --ink: #17233b;
  --muted: #536175;
  --surface: #f5f7fb;
  --line: #e1e6ef;
  --accent: #1554e8;
}
body {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
main {
  min-width: 0;
}
button:disabled {
  cursor: not-allowed;
}
button,
input,
select {
  min-height: 44px;
}
main > #app p {
  line-height: 1.55;
}
.table-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.import-intake {
  flex: 1;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.import-intake summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 600;
}
.import-intake p {
  max-width: 75ch;
}
.import-intake input {
  margin-bottom: 12px;
}
.order-imports {
  margin-block: 24px 36px;
}
.order-imports h3 {
  font-size: 21px;
  margin-bottom: 8px;
}
.source-notice {
  background: #fff7e8;
  color: #71501d;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
}
.source-provenance {
  font-size: 13px;
  color: var(--muted);
  margin: 12px 0;
}
.source-provenance summary {
  cursor: pointer;
}
.order-export-filters {
  display: grid;
  grid-template-columns: minmax(280px, 2fr) minmax(190px, 1fr) auto auto;
  align-items: end;
  gap: 12px;
  margin: 18px 0 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.order-export-filters label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}
.order-export-filters input,
.order-export-filters select {
  width: 100%;
  color: var(--ink);
  background: #fff;
}
.order-export-filters button {
  justify-self: start;
}
.order-export-more-filters {
  grid-column: 1 / -1;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.order-export-more-filters > summary {
  cursor: pointer;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}
.order-export-more-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}
.financial-table-wrap {
  width: 100%;
  overflow: auto;
  max-height: 650px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 16px 0;
}
.financial-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  font-size: 13px;
}
.financial-table caption {
  text-align: left;
  padding: 12px 16px;
  color: var(--muted);
  background: #fff;
}
.financial-table th {
  position: sticky;
  top: 0;
  background: var(--surface);
  color: var(--muted);
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  z-index: 1;
}
.financial-table th,
.financial-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.financial-table tbody tr:hover {
  background: #f8faff;
}
.financial-table td {
  overflow-wrap: anywhere;
  max-width: 260px;
}
.financial-table td strong,
.financial-table td small {
  display: block;
}
.financial-table td small {
  color: var(--muted);
  margin-top: 6px;
}
.financial-table .amount-cell {
  text-align: right;
  white-space: nowrap;
  font-weight: 600;
}
.financial-table button {
  white-space: nowrap;
  padding: 8px 12px;
}
.status-label {
  display: inline-block;
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 8px;
  background: var(--surface);
  font-size: 12px;
}
.payment-order-status.is-success,
.payment-order-status-control.is-success {
  color: #166534;
  border-color: #86efac;
  background: #f0fdf4;
}
.payment-order-status.is-pending,
.payment-order-status-control.is-pending {
  color: #92400e;
  border-color: #fcd34d;
  background: #fffbeb;
}
.payment-order-status.is-error,
.payment-order-status-control.is-error {
  color: #991b1b;
  border-color: #fca5a5;
  background: #fef2f2;
}
.payment-order-status.is-neutral,
.payment-order-status-control.is-neutral {
  color: #334155;
  border-color: #cbd5e1;
  background: #f8fafc;
}
.record-dialog {
  margin: 0 0 0 auto;
  height: 100dvh;
  max-height: 100dvh;
  width: min(560px, 100%);
  max-width: 100%;
  border: 0;
  padding: 28px;
  overflow: auto;
  color: var(--ink);
}
.record-dialog::backdrop {
  background: rgb(23 35 59 / 35%);
}
.record-dialog > button:first-child {
  display: block;
  margin-left: auto;
  margin-bottom: 24px;
}
.record-fields {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(0, 2fr);
  gap: 12px 20px;
}
.record-fields dt {
  color: var(--muted);
}
.record-fields dd {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
#navigation-toggle {
  display: none;
}
@media (max-width: 759px) {
  body:not(.signed-out):not(.portal) #navigation-toggle {
    display: block;
    flex: 0 0 auto;
  }
  body:not(.signed-out):not(.portal) header {
    position: sticky;
    top: 0;
    z-index: 5;
    height: auto;
    min-height: 68px;
    padding: 12px 16px;
    gap: 12px;
  }
  body:not(.signed-out):not(.portal) #breadcrumb {
    display: block;
    flex: 1;
    font-size: 12px;
  }
  body:not(.signed-out):not(.portal) header .wordmark {
    display: none;
  }
  body:not(.signed-out):not(.portal) aside {
    display: none;
  }
  body.navigation-open:not(.signed-out):not(.portal) aside {
    display: flex;
    position: fixed;
    top: 68px;
    left: 0;
    bottom: 0;
    width: min(320px, 100%);
    z-index: 6;
    overflow: auto;
    box-shadow: 10px 0 30px rgb(23 35 59 / 15%);
    padding: 20px;
  }
  body.navigation-open aside nav {
    display: grid;
    overflow: visible;
  }
  body.navigation-open .sidebar-footer {
    display: block;
  }
  body.navigation-open .sidebar-brand {
    display: none;
  }
  main {
    padding: 24px 16px;
  }
  .table-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .order-export-filters {
    grid-template-columns: 1fr;
  }
  .order-export-filters button {
    width: 100%;
  }
  .order-export-more-filters {
    grid-column: auto;
  }
  .order-export-more-fields {
    grid-template-columns: 1fr;
  }
  .financial-table-wrap {
    max-height: 580px;
  }
  .record-dialog {
    padding: 20px;
  }
  .record-fields {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .record-fields dd {
    margin-bottom: 14px;
  }
}

.payment-workspace {
  border: 0;
  border-radius: 0;
  padding: 0;
}
.payment-orders-page,
.payment-account-context,
.payment-account-context-body {
  min-width: 0;
}
.payment-account-context {
  margin: 0 0 22px;
  border: 0;
}
.payment-account-context > summary {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 13px;
  border: 1px solid #cdd8ef;
  border-radius: 6px;
  color: #173f9d;
  background: var(--accent-soft);
  font-size: 12px;
  font-weight: 700;
}
.payment-account-context[open] > summary {
  margin-bottom: 12px;
}
.payment-account-context-body {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbfcfe;
}
.payment-account-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.payment-account-heading h2,
.payment-account-heading p {
  margin: 0;
}
.payment-account-heading h2 {
  font-size: 18px;
}
.payment-account-heading p {
  margin-top: 4px;
  font-size: 12px;
}
.connection-disclosure {
  color: var(--muted);
  font-size: 13px;
  margin: 12px 0 20px;
}
@media (max-width: 759px) {
  .payment-account-context > summary {
    width: 100%;
    justify-content: space-between;
  }
  .payment-account-context-body {
    padding: 14px;
  }
  .payment-account-heading {
    flex-direction: column;
  }
  .payment-account-heading button {
    width: 100%;
  }
}
.connection-disclosure summary {
  cursor: pointer;
  color: var(--accent);
}
.financial-table th {
  text-transform: none;
  letter-spacing: normal;
}

/* Applicant evidence is a review queue, with claims kept distinct from funds. */
.evidence-workspace-panel {
  padding: 0;
  overflow: hidden;
}
.evidence-workspace-panel > h2,
.evidence-workspace-panel > .evidence-workspace-intro,
.evidence-workspace-panel > label,
.evidence-workspace-panel > .evidence-status-tabs,
.evidence-workspace-panel > .actions {
  margin-left: 28px;
  margin-right: 28px;
}
.evidence-workspace-panel > h2 {
  margin-top: 28px;
  margin-bottom: 8px;
}
.evidence-workspace-intro {
  max-width: 760px;
  margin-top: 0;
  margin-bottom: 20px;
}
.evidence-workspace-panel > label {
  max-width: 360px;
  margin-bottom: 18px;
}
.evidence-status-tabs {
  width: fit-content;
  max-width: calc(100% - 56px);
  margin-bottom: 18px;
  overflow-x: auto;
}
.evidence-workspace-panel .financial-table-wrap {
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  margin-bottom: 0;
}
.evidence-table caption {
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.evidence-list caption {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.payment-feed {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.created-order-reconciliation {
  box-shadow: 0 16px 40px rgb(24 45 84 / 6%);
}
.order-reconciliation-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.order-reconciliation-metrics .metric {
  padding: 16px 18px;
  background: var(--surface);
}
.order-reconciliation-metrics .metric p {
  margin: 5px 0 0;
}
.order-reconciliation-metrics .metric strong {
  margin: 4px 0 0;
  font-size: 28px;
}
.created-order-reconciliation > [role="status"] {
  margin: 16px 0;
  color: var(--muted);
  font-size: 13px;
}
.workspace-heading {
  max-width: 820px;
  margin-bottom: 22px;
}
.workspace-heading h3 {
  margin: 4px 0 8px;
  font-size: 24px;
}
.workspace-heading p {
  margin: 0;
  color: var(--muted);
}
.section-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.payment-filters {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(2, minmax(170px, 1fr));
  gap: 12px;
  padding: 18px;
  margin: 22px 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.payment-filters label {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.payment-filters input,
.payment-filters select {
  display: block;
  width: 100%;
  margin-top: 6px;
  background: #fff;
}
.payment-toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.payment-feed > [aria-label="Stored order amounts"] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}
.payment-feed > [aria-label="Stored order amounts"] > h4,
.payment-feed > [aria-label="Stored order amounts"] > p {
  grid-column: 1 / -1;
}
.order-summary-card {
  margin: 0;
  padding: 18px;
}
.payment-detail-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  margin: 18px 0;
  border-radius: 16px;
  color: #fff;
  background: #101b33;
}
.payment-detail-header h2 {
  margin: 6px 0 12px;
  color: #fff;
  font-size: clamp(30px, 5vw, 46px);
}
.payment-detail-header .section-kicker {
  color: #8fb2ff;
}
.payment-detail-header .status-label {
  color: #fff;
  border-color: rgb(255 255 255 / 25%);
  background: rgb(255 255 255 / 10%);
}
.payment-detail-identity {
  display: grid;
  gap: 5px;
  min-width: 240px;
  text-align: right;
}
.payment-detail-identity span {
  color: #aab6cb;
  font-size: 12px;
}
.payment-detail-identity strong {
  overflow-wrap: anywhere;
}
.payment-fact-panel {
  margin-bottom: 18px;
}
.payment-fact-panel dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.payment-fact-panel dt {
  color: var(--muted);
  font-size: 12px;
}
.payment-fact-panel dd {
  margin: 6px 0 0;
  overflow-wrap: anywhere;
  font-weight: 600;
}
.sidebar-footer #logout {
  width: 100%;
  color: #d7dfec;
  border-color: rgb(255 255 255 / 18%);
  background: transparent;
}
.evidence-table td:last-child,
.evidence-table th:last-child {
  text-align: right;
}
.evidence-empty {
  margin: 0 28px 8px;
  padding: 32px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.evidence-empty h3 {
  margin: 0 0 8px;
  font-size: 16px;
}
.evidence-empty p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.evidence-empty button {
  margin-top: 18px;
}
.evidence-case-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.evidence-case-header h2 {
  overflow-wrap: anywhere;
}
.evidence-applicants {
  padding: 16px;
  margin: 18px 0 24px;
  border-radius: 10px;
  background: var(--surface);
}
.evidence-applicants h3,
.evidence-applicants p {
  margin: 0;
}
.evidence-applicants p {
  margin-top: 8px;
}
.evidence-file-row {
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.portal input[type="file"] {
  padding: 10px;
  border-style: dashed;
  background: var(--surface);
}

@media (max-width: 600px) {
  .payment-feed {
    padding: 20px;
  }
  .payment-filters {
    grid-template-columns: 1fr;
  }
  .order-reconciliation-metrics {
    grid-template-columns: 1fr;
  }
  .payment-toolbar,
  .payment-detail-header {
    align-items: stretch;
    flex-direction: column;
  }
  .payment-toolbar button {
    flex: 1;
  }
  .payment-detail-identity {
    min-width: 0;
    text-align: left;
  }
  .payment-fact-panel dl {
    grid-template-columns: 1fr 1fr;
  }
  .evidence-workspace-panel > h2,
  .evidence-workspace-panel > .evidence-workspace-intro,
  .evidence-workspace-panel > label,
  .evidence-workspace-panel > .evidence-status-tabs,
  .evidence-workspace-panel > .actions {
    margin-left: 20px;
    margin-right: 20px;
  }
  .evidence-workspace-panel > h2 {
    margin-top: 22px;
  }
  .evidence-status-tabs {
    width: calc(100% - 40px);
    max-width: none;
  }
  .evidence-workspace-panel .financial-table-wrap {
    max-height: none;
    overflow: visible;
  }
  .evidence-list thead {
    display: none;
  }
  .evidence-list caption {
    padding: 12px 20px;
  }
  .evidence-list tr {
    padding: 18px 20px;
  }
  .evidence-list td:last-child {
    text-align: left;
  }
  .evidence-list td:last-child button {
    width: 100%;
  }
  .evidence-empty {
    margin: 0 20px 8px;
    padding: 24px 20px;
  }
  .evidence-case-header {
    flex-direction: column;
  }
  .evidence-file-row {
    align-items: stretch;
    flex-direction: column;
  }
}

.case-workspace-header,
.access-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}
.case-workspace-intro {
  max-width: 76ch;
  margin: 0 0 8px;
}
.case-workspace-header h2,
.access-header h2 {
  margin: 4px 0 6px;
  font-size: clamp(1.55rem, 2.2vw, 2.1rem);
  letter-spacing: -0.035em;
}
.case-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(180px, 240px);
  gap: 12px;
  margin: 16px 0 4px;
}
.case-summary,
.access-summary {
  margin: 18px 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-radius: 10px;
}
.case-summary > *,
.access-summary > * {
  padding: 20px;
  border-left: 1px solid rgb(255 255 255 / 14%);
  min-width: 0;
}
.case-summary > *:first-child,
.access-summary > *:first-child {
  border-left: 0;
}
.case-table td:first-child {
  min-width: 220px;
}
.case-table td:nth-child(2),
.case-table td:nth-child(4) {
  min-width: 150px;
}
.refund-review-dialog {
  width: min(640px, 100%);
}
.refund-review-detail {
  display: grid;
  gap: 18px;
}
.refund-review-heading h2 {
  margin: 4px 0 6px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.04em;
}
.refund-review-heading p,
.refund-review-detail > h3 {
  margin: 0;
}
.refund-review-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}
.refund-review-summary section {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 16px;
  border-left: 1px solid var(--line);
}
.refund-review-summary section:first-child {
  border-left: 0;
}
.refund-review-summary span {
  color: var(--muted);
  font-size: 12px;
}
.refund-review-summary strong {
  overflow-wrap: anywhere;
}
.refund-review-actions {
  position: sticky;
  bottom: -28px;
  margin: 0 -28px -28px;
  padding: 16px 28px 28px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
@media (max-width: 759px) {
  .refund-review-summary {
    grid-template-columns: 1fr;
  }
  .refund-review-summary section {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .refund-review-summary section:first-child {
    border-top: 0;
  }
  .refund-review-actions {
    bottom: -20px;
    margin: 0 -20px -20px;
    padding: 16px 20px 20px;
  }
}
.investigation-dialog {
  width: min(680px, 100%);
}
.investigation-detail {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.investigation-detail > h2,
.investigation-detail > h3,
.investigation-detail > p {
  margin: 0;
}
.investigation-detail > label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}
.investigation-detail > label input,
.investigation-detail > label select,
.investigation-detail > label textarea {
  width: 100%;
}
.investigation-detail > label textarea {
  min-height: 120px;
  resize: vertical;
}
.investigation-basis {
  margin: 6px 0;
}
.investigation-basis h3,
.investigation-basis p {
  margin-top: 0;
}
.investigation-history {
  display: grid;
  gap: 12px;
}
.investigation-history-event {
  margin: 0;
}
.investigation-history-event h4,
.investigation-history-event p {
  margin-top: 0;
}
.investigation-history-event pre,
.investigation-history-event textarea {
  max-width: 100%;
  overflow: auto;
}
#disputes-tab {
  padding: 28px 0 20px;
}
.dispute-header h3 {
  margin: 0.2rem 0 0.35rem;
  font-size: 1.35rem;
}
.dispute-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0;
}
.dispute-metrics article {
  display: grid;
  gap: 0.25rem;
  min-height: 6.4rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.dispute-metrics span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.dispute-metrics strong {
  font-size: 1.65rem;
  line-height: 1;
}
.dispute-metrics small {
  color: var(--muted);
  line-height: 1.35;
}
.dispute-empty {
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  padding: 2.25rem 1.5rem;
  border: 1px dashed var(--line);
  border-radius: 12px;
  text-align: center;
  background: #fff;
}
.dispute-empty h3,
.dispute-empty p {
  margin: 0;
}
.dispute-empty p {
  max-width: 44rem;
}
.dispute-requirements {
  margin-top: 1.25rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.dispute-requirements h4 {
  margin: 0 0 0.35rem;
}
.dispute-requirements ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}
.dispute-requirements li {
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
  border-radius: 10px;
  background: var(--surface);
}
.dispute-requirements li span {
  color: var(--muted);
  line-height: 1.45;
}
.case-empty-illustration {
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border: 1px solid #cbd3df;
  border-radius: 18px;
  background:
    linear-gradient(
      135deg,
      transparent 48%,
      var(--ink) 49%,
      var(--ink) 52%,
      transparent 53%
    ),
    var(--surface);
}
.access-boundary {
  min-width: 0;
  margin-top: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.access-boundary h3 {
  margin-top: 0;
}
.access-boundary .status-label {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.permission-list {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}
.permission-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.permission-list code,
.subject-value {
  overflow-wrap: anywhere;
}
.access-tabs {
  margin-bottom: 12px;
}
.access-intro {
  max-width: 70ch;
  margin: 0 0 8px;
}
.access-live-status {
  margin: 8px 0;
  padding: 7px 10px;
  font-size: 12px;
}
.access-status-tabs {
  width: fit-content;
  margin: 18px 0 0;
}
.access-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(170px, 220px) auto;
  align-items: end;
  gap: 12px;
  margin: 18px 0 12px;
}
.access-toolbar label,
.access-edit-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}
.access-toolbar input,
.access-toolbar select,
.access-edit-form select,
.access-edit-form textarea {
  width: 100%;
}
.access-filter-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-height: 42px;
}
.access-filter-result {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.access-filter-actions button {
  white-space: nowrap;
}
.access-edit-form {
  display: grid;
  gap: 14px;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.access-edit-form textarea {
  min-height: 96px;
  resize: vertical;
}
.access-self-note {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.access-history td:nth-child(5) {
  min-width: 260px;
  white-space: normal;
}
@media (max-width: 1099px) {
  .access-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 759px) {
  .case-workspace-header,
  .access-header {
    display: grid;
  }
  .case-toolbar {
    grid-template-columns: 1fr;
  }
  .investigation-dialog {
    width: 100%;
  }
  .case-summary,
  .dispute-requirements ul {
    grid-template-columns: 1fr;
  }
  .dispute-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dispute-metrics article {
    min-height: auto;
  }
  .case-summary > * {
    border-left: 0;
    border-top: 1px solid rgb(255 255 255 / 14%);
  }
  .case-summary > *:first-child {
    border-top: 0;
  }
  .access-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .access-summary > * {
    padding: 12px 10px;
    border-top: 0;
    border-left: 1px solid rgb(255 255 255 / 14%);
  }
  .access-summary > *:first-child {
    border-left: 0;
  }
  .access-summary small {
    display: none;
  }
  .case-workspace-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    width: 100%;
    overflow: visible;
  }
  .case-workspace-tabs button {
    width: 100%;
    min-height: 46px;
    padding: 8px 6px;
    white-space: normal;
  }
  .permission-list li {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .access-toolbar {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: 10px;
  }
  .access-filter-actions {
    grid-column: 1 / -1;
  }
  .access-status-tabs {
    width: 100%;
  }
  .access-status-tabs button {
    flex: 1;
  }
  .access-filter-actions {
    justify-content: space-between;
  }
  .access-table-wrap {
    max-height: none;
    overflow: visible;
    border: 0;
    background: transparent;
  }
  .access-table {
    display: block;
    width: 100%;
    min-width: 0;
  }
  .access-table caption {
    padding: 12px 0;
    text-align: left;
  }
  .access-table thead {
    display: none;
  }
  .access-table tbody {
    display: grid;
    gap: 12px;
  }
  .access-table tr {
    display: grid;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
  }
  .access-table td {
    display: grid;
    grid-template-columns: minmax(108px, 0.42fr) minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    width: 100%;
    min-width: 0;
    padding: 11px 14px;
    border-top: 1px solid var(--line);
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .access-table td:first-child {
    border-top: 0;
  }
  .access-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .access-table .order-primary strong,
  .access-table .order-primary small {
    grid-column: 2;
  }
  .access-table .provenance-action-cell {
    text-align: left;
  }
  .access-table .provenance-action {
    width: 100%;
  }
  .access-table .access-empty-row {
    display: block;
    padding: 24px 18px;
    text-align: center;
  }
  .access-table .access-empty-row::before {
    content: none;
  }
}

/* 8.13.95 final precedence: the reference shell stays consistent. */
.loading-state {
  width: min(100%, 1180px);
  min-height: 280px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  padding: 34px 0;
}
.loading-state.compact {
  min-height: 150px;
}
.loading-mark {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 6px solid rgb(21 84 232 / 18%);
  border-top-color: var(--accent);
  animation: stratos-load 1s linear infinite;
}
.loading-label {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}
.workspace-error-state {
  width: min(100%, 680px);
  margin: clamp(36px, 9vh, 110px) auto;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid #f0c879;
  border-radius: 16px;
  background: linear-gradient(145deg, #fffdf8, #fff8e8);
  box-shadow: 0 18px 50px rgb(78 52 16 / 10%);
  outline: 0;
}
.workspace-error-state h1 {
  margin: 8px 0 10px;
  font-size: clamp(24px, 4vw, 36px);
  letter-spacing: -0.035em;
}
.workspace-error-state > p {
  max-width: 56ch;
}
.workspace-error-state .section-kicker {
  margin-top: 18px;
  color: #8a5a08;
}
.workspace-error-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  color: #7a4c00;
  background: #ffe3a3;
  font-size: 22px;
  font-weight: 800;
}
.workspace-error-state button {
  margin-top: 10px;
}
.workspace-recovery-status {
  min-height: 22px;
  margin: 16px 0 0;
  color: #71501d;
  font-size: 13px;
  font-weight: 650;
}

/* 8.13.191: keep operational intelligence readable as banking work queues. */
.productivity-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
body:not(.signed-out):not(.portal) main .productivity-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "label value"
    "note note"
    "action action";
  align-items: start;
  justify-content: stretch;
  gap: 7px 14px;
  min-height: 132px !important;
  padding: 16px 18px !important;
}
.productivity-card > span {
  grid-area: label;
  align-self: center;
  color: #42516a;
  font-size: 12px;
  line-height: 1.4;
}
.productivity-card > strong {
  grid-area: value;
  align-self: center;
  color: var(--ink);
  font-size: 30px;
  line-height: 1;
}
.productivity-card > small {
  grid-area: note;
  min-height: 36px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}
.productivity-card > b {
  grid-area: action;
  align-self: end;
  justify-self: end;
  color: var(--accent);
  font-size: 11px;
  line-height: 1.3;
  white-space: nowrap;
}
@media (max-width: 1199px) {
  .productivity-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 980px) {
  .productivity-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 759px) {
  .productivity-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  body:not(.signed-out):not(.portal) main .productivity-card {
    min-height: 152px !important;
    padding: 12px !important;
    gap: 7px 8px;
  }
  .productivity-card > span {
    font-size: 10.5px;
  }
  .productivity-card > strong {
    font-size: 24px;
  }
  .productivity-card > small {
    min-height: 48px;
    font-size: 9.5px;
    line-height: 1.45;
  }
  .productivity-card > b {
    font-size: 10px;
  }
  .productivity-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* 8.13.192: keep PULSE order state separate from transaction matching. */
.order-association-summary {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}
.order-association-summary > summary {
  cursor: pointer;
  color: #173f9d;
  font-size: 12px;
  font-weight: 750;
}
.order-association-body {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}
.order-association-heading h4,
.order-association-heading p {
  margin: 0;
}
.order-association-heading h4 {
  margin-top: 4px;
  font-size: 17px;
}
.order-association-heading p {
  margin-top: 6px;
  line-height: 1.5;
}
.order-association-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.order-association-metric {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-top-width: 3px;
  border-radius: 9px;
  background: #fff;
}
.order-association-metric.complete {
  border-top-color: #168269;
}
.order-association-metric.attention {
  border-top-color: #d69a1f;
}
.order-association-metric.neutral {
  border-top-color: #8b97aa;
}
.order-association-metric span {
  align-self: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.order-association-metric strong {
  font-size: 24px;
  line-height: 1;
}
.order-association-metric small {
  grid-column: 1 / -1;
  color: var(--muted);
  line-height: 1.4;
}
.order-import-table-wrap td:nth-child(5) .status-label {
  margin-top: 5px;
}
.order-detail-summary.has-transaction-match {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 759px) {
  .order-association-summary {
    padding: 13px 14px;
  }
  .order-association-metrics {
    grid-template-columns: 1fr;
  }
  .order-detail-summary.has-transaction-match {
    grid-template-columns: 1fr;
  }
}
.loading-skeleton {
  display: grid;
  gap: 9px;
  width: min(100%, 760px);
  margin-top: 4px;
}
.loading-skeleton span {
  height: 13px;
  border-radius: 3px;
  background: linear-gradient(90deg, #eef0f4 20%, #f8f9fb 45%, #eef0f4 70%);
  background-size: 220% 100%;
  animation: stratos-shimmer 1.15s linear infinite;
}
.loading-skeleton span:nth-child(2n) {
  width: 84%;
}
.loading-skeleton span:nth-child(3n) {
  width: 67%;
}
@keyframes stratos-load {
  to {
    transform: rotate(360deg);
  }
}
@keyframes stratos-shimmer {
  to {
    background-position: -220% 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .loading-mark,
  .loading-skeleton span {
    animation: none;
  }
}
body:not(.signed-out):not(.portal) aside {
  width: 220px;
  padding: 22px 18px 18px;
  border-right: 1px solid #e7e8eb;
  color: var(--ink);
  background: #f5f5f4;
}
body:not(.signed-out):not(.portal) header {
  height: 70px;
  margin-left: 220px;
  padding: 0 32px;
  background: #fff;
  box-shadow: none;
}
body:not(.signed-out):not(.portal) .shell {
  margin-left: 220px;
}
.sidebar-brand {
  margin: 0 10px 28px;
  color: #111318;
  font-size: 25px;
}
body:not(.signed-out):not(.portal) aside nav button {
  min-height: 38px;
  padding: 8px 10px;
  color: #626770;
  background: transparent;
}
body:not(.signed-out):not(.portal) aside nav button:hover {
  color: #17233b;
  background: #eceef2;
}
body:not(.signed-out):not(.portal) aside nav button.selected {
  color: #153d9f;
  background: #e8efff;
  box-shadow: inset 3px 0 0 var(--accent);
}
.sidebar-footer,
.sidebar-footer label,
.sidebar-footer #identity,
body:not(.signed-out):not(.portal) aside .aside-note {
  color: #676c75;
}
.sidebar-footer select {
  border-color: #d4d6db;
  color: #1e2229;
  background: #fff;
}
body:not(.signed-out):not(.portal) main {
  max-width: none;
  padding: 22px 32px 48px;
  background: #fff;
}
#breadcrumb {
  color: #242830;
  font-size: 18px;
  font-weight: 720;
}
.account-hero {
  margin: 0 0 18px;
  padding: 0 0 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: #fff;
  box-shadow: none;
}
.account-hero h1,
.account-hero .account-iban {
  color: var(--ink);
}
.account-hero h1 {
  font-size: 27px;
}
.account-hero .muted,
.account-hero p {
  color: var(--muted);
}
.hero-balance strong {
  color: var(--ink);
  font-size: 26px;
}
.dashboard-metrics {
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.metric {
  min-height: 108px;
  padding: 17px 20px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}
.metric:last-child {
  border-right: 0;
}
.cashflow-workspace {
  border-radius: 6px;
  box-shadow: none;
}
.cashflow-plot {
  display: block;
  min-width: 0;
  height: auto;
  padding: 0;
  background: transparent;
}
.cashflow-chart {
  min-width: 0;
}
@media (max-width: 1000px) {
  body:not(.signed-out):not(.portal) header,
  body:not(.signed-out):not(.portal) .shell {
    margin-left: 180px;
  }
  body:not(.signed-out):not(.portal) aside {
    width: 180px;
  }
}
@media (max-width: 759px) {
  body:not(.signed-out):not(.portal) header,
  body:not(.signed-out):not(.portal) .shell {
    margin-left: 0;
  }
  body:not(.signed-out):not(.portal) main {
    padding: 16px 14px 36px;
  }
}

/* Final 8.13.129 shell and dashboard overrides. */
@media (min-width: 760px) {
  body:not(.signed-out):not(.portal) #navigation-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 7px 11px;
    border-color: #dfe5ee;
    color: #263650;
    background: #fff;
    font-size: 11px;
    font-weight: 700;
  }
  body:not(.signed-out):not(.portal) header,
  body:not(.signed-out):not(.portal) .shell,
  body:not(.signed-out):not(.portal) aside {
    transition:
      margin-left 180ms ease,
      width 180ms ease,
      padding 180ms ease;
  }
  body.navigation-collapsed:not(.signed-out):not(.portal) header,
  body.navigation-collapsed:not(.signed-out):not(.portal) .shell {
    margin-left: 76px;
  }
  body.navigation-collapsed:not(.signed-out):not(.portal) aside {
    width: 76px;
    padding-right: 10px;
    padding-left: 10px;
  }
  body.navigation-collapsed .sidebar-brand {
    justify-content: center;
    margin-right: 0;
    margin-left: 0;
  }
  body.navigation-collapsed .sidebar-brand > span:last-child,
  body.navigation-collapsed .sidebar-footer,
  body.navigation-collapsed aside .eyebrow,
  body.navigation-collapsed .nav-label {
    display: none;
  }
  body.navigation-collapsed:not(.signed-out):not(.portal) aside nav button {
    justify-content: center;
    min-width: 48px;
    padding-right: 8px;
    padding-left: 8px;
  }
  body.navigation-collapsed aside .nav-icon {
    margin: 0;
    font-size: 17px;
  }
}
.chart-legend .chart-series-link {
  min-height: 30px;
  padding: 4px 8px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 650;
}
.chart-legend .chart-series-link::before,
.flow-value-inbound::before,
.flow-value-refund::before,
.flow-value-sweep::before,
.flow-value-fee::before,
.flow-value-markup::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 2px;
}
.legend-inbound::before,
.flow-value-inbound::before {
  background: #1858e8;
}
.legend-refund::before,
.flow-value-refund::before {
  background: #f97316;
}
.legend-sweep::before,
.flow-value-sweep::before {
  background: #14a38b;
}
.flow-value-fee::before {
  background: #dc2626;
}
.flow-value-markup::before {
  background: #7c3aed;
}
.inbound-line {
  stroke: #1858e8;
}
.refund-line {
  stroke: #f97316;
}
.sweep-line {
  stroke: #14a38b;
}
.flow-ring {
  background: conic-gradient(
    #1858e8 0 var(--inbound-share),
    #f97316 var(--inbound-share) var(--refund-end),
    #14a38b var(--refund-end) 100%
  );
}
.flow-ring::after {
  content: "Activity";
}

/* 8.13.139: inspect the exact imported values behind each activity date. */
.cashflow-day-picker {
  display: flex;
  gap: 6px;
  margin-top: 14px;
  padding: 4px 0 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.cashflow-day-picker button {
  flex: 0 0 auto;
  min-width: 54px;
  min-height: 32px;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
}
.cashflow-day-picker button:hover {
  color: var(--ink);
  background: #f2f5fa;
}
.cashflow-day-picker button[aria-selected="true"] {
  border-color: #b9cbf7;
  color: #1746a2;
  background: #edf3ff;
}
.cashflow-day-picker button:focus-visible {
  outline: 3px solid rgb(24 88 232 / 22%);
  outline-offset: 1px;
}
.cashflow-day-detail {
  margin-top: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}
.cashflow-day-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2px 16px;
}
.cashflow-day-heading .section-kicker,
.cashflow-day-heading h3,
.cashflow-day-heading p {
  margin: 0;
}
.cashflow-day-heading .section-kicker,
.cashflow-day-heading h3 {
  grid-column: 1;
}
.cashflow-day-heading h3 {
  font-size: 16px;
}
.cashflow-day-heading p {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-size: 11px;
}
.cashflow-day-values {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.cashflow-day-value {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-radius: 9px;
  text-align: left;
  background: #fff;
}
.cashflow-day-value.inbound {
  border-left-color: #1858e8;
}
.cashflow-day-value.refund {
  border-left-color: #f97316;
}
.cashflow-day-value.sweep {
  border-left-color: #14a38b;
}
.cashflow-day-value.fee {
  border-left-color: #dc2626;
}
.cashflow-day-value.markup {
  border-left-color: #7c3aed;
}
.cashflow-day-value span,
.cashflow-day-value small {
  color: var(--muted);
  font-size: 10px;
}
.cashflow-day-value strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 14px;
}
@media (max-width: 1100px) and (min-width: 760px) {
  .cashflow-day-values {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 759px) {
  .cashflow-day-heading {
    grid-template-columns: 1fr;
  }
  .cashflow-day-heading p {
    grid-column: 1;
    grid-row: auto;
  }
  .cashflow-day-values {
    grid-template-columns: 1fr;
  }
}

/* 8.13.138: bounded tenant search across saved operational records. */
#global-search-toggle {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 7px 13px;
  border-color: #dfe5ee;
  color: #263650;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
}
.global-search-dialog {
  width: min(960px, calc(100% - 32px));
  max-width: 960px;
  max-height: min(860px, calc(100dvh - 32px));
  padding: 0;
  border: 0;
  border-radius: 16px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 24px 80px rgb(15 23 42 / 24%);
}
.global-search-dialog::backdrop {
  background: rgb(15 23 42 / 42%);
}
.global-search-heading {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 26px 18px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.global-search-title h2,
.global-search-title p {
  margin: 0;
}
.global-search-title .muted {
  margin-top: 7px;
  max-width: 70ch;
}
.global-search-form {
  display: grid;
  grid-template-columns: minmax(180px, 0.75fr) minmax(280px, 2fr) auto;
  gap: 12px;
  align-items: end;
  padding: 20px 26px 12px;
}
.global-search-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.global-search-form input,
.global-search-form select {
  width: 100%;
  min-width: 0;
}
.global-search-status {
  margin: 0;
  padding: 2px 26px 14px;
  color: var(--muted);
}
.global-search-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0 26px 26px;
}
.global-search-group {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.global-search-group h3 {
  margin: 0 0 10px;
  font-size: 14px;
}
.global-search-group ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.global-search-group li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.global-search-group li:first-child {
  border-top: 0;
}
.global-search-group li > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}
.global-search-group strong,
.global-search-group span,
.global-search-group small {
  overflow-wrap: anywhere;
}
.global-search-group span,
.global-search-group small {
  color: var(--muted);
  font-size: 12px;
}
.global-search-group button {
  min-height: 34px;
  padding: 7px 10px;
  white-space: nowrap;
}
@media (max-width: 759px) {
  body.navigation-collapsed:not(.signed-out):not(.portal) header,
  body.navigation-collapsed:not(.signed-out):not(.portal) .shell {
    margin-left: 0;
  }
  body.navigation-open .nav-label {
    display: inline;
  }
  .chart-legend {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .cashflow-chart {
    overflow-x: visible;
  }
  .cashflow-plot,
  .cashflow-line-chart,
  .cashflow-date-axis {
    width: 100%;
    min-width: 0;
  }
  #global-search-toggle {
    padding: 7px 9px;
  }
  .global-search-dialog {
    width: 100%;
    max-width: none;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
  }
  .global-search-heading {
    padding: 18px 16px 14px;
  }
  .global-search-form {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .global-search-form button {
    width: 100%;
  }
  .global-search-status {
    padding: 0 16px 14px;
  }
  .global-search-results {
    grid-template-columns: 1fr;
    padding: 0 16px 24px;
  }
  .global-search-group li {
    grid-template-columns: 1fr;
  }
  .global-search-group li button {
    width: 100%;
  }
}

/* 8.13.152 final Payment Orders register alignment. */
.payment-workspace .payment-feed {
  padding: 0;
  border: 0;
  border-radius: 0;
}
.payment-order-status-tabs {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 12px;
  overflow-x: auto;
}
.payment-order-control-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.payment-order-control-bar .order-list-toolbar {
  flex: 1;
  margin: 0;
  padding: 0;
}
.payment-order-control-bar .payment-order-status-tabs {
  margin: 0;
}
.payment-workspace .order-export-filters,
.payment-workspace .payment-filters {
  margin: 0 0 12px;
  padding: 10px 0 12px;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  background: #fff;
}
.payment-workspace .payment-feed > .payment-filters {
  grid-template-columns: minmax(220px, 2fr) minmax(170px, 1fr);
}
.payment-workspace .financial-table-wrap {
  border-radius: 0;
}
.provider-order-summary {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}
.provider-order-summary > h4,
.provider-order-summary > p {
  margin: 0;
}
.provider-order-zero-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 4px 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 4px solid #8b97aa;
  border-radius: 10px;
  background: #f8fafc;
}
.provider-order-zero-summary strong {
  grid-row: 1 / span 2;
  color: var(--ink);
  font-size: 34px;
  line-height: 1;
}
.provider-order-zero-summary span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}
.provider-order-zero-summary p {
  margin: 0;
  font-size: 12px;
}
.payment-workspace .provider-record-list {
  border: 0;
}
.payment-order-empty-state {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: clamp(28px, 6vw, 56px) 24px;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  text-align: center;
  background: #fbfcfe;
}
.payment-order-empty-state h4,
.payment-order-empty-state p {
  margin: 0;
}
.payment-order-empty-state p {
  max-width: 64ch;
}
.payment-order-empty-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  color: #52627a;
  background: #e9eef6;
  font-size: 20px;
  font-weight: 800;
}
.payment-order-empty-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}
.payment-order-drawer.order-detail {
  padding: 28px;
}
@media (max-width: 759px) {
  .payment-workspace .orders-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    overflow: visible;
  }
  .payment-workspace .orders-tabs button {
    min-width: 0;
    padding: 11px 4px 10px;
    font-size: 11px;
    line-height: 1.25;
    white-space: normal;
  }
  .payment-order-status-tabs {
    width: 100%;
  }
  .payment-order-control-bar {
    align-items: stretch;
    flex-direction: column;
  }
  .payment-workspace .payment-feed > .payment-filters {
    grid-template-columns: 1fr;
  }
  .payment-order-empty-actions {
    display: grid;
    width: 100%;
  }
  .payment-workspace .order-import-table-wrap {
    overflow: visible;
    max-height: none;
    border: 0;
  }
  .payment-workspace .order-import-table-wrap .financial-table,
  .payment-workspace .order-import-table-wrap .financial-table tbody {
    display: block;
    min-width: 0;
  }
  .payment-workspace .order-import-table-wrap .financial-table caption {
    display: block;
    margin-bottom: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
  }
  .payment-workspace .order-import-table-wrap .financial-table thead {
    display: none;
  }
  .payment-workspace .order-import-table-wrap .financial-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 14px;
    margin-bottom: 12px;
    padding: 7px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
  }
  .payment-workspace .order-import-table-wrap .financial-table td {
    display: grid;
    gap: 4px;
    min-width: 0;
    max-width: none;
    padding: 9px 0;
    border: 0;
    border-top: 1px solid var(--line);
    overflow-wrap: anywhere;
    text-align: left;
    white-space: normal;
  }
  .payment-workspace .order-import-table-wrap .financial-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: 0.055em;
    text-transform: uppercase;
  }
  .payment-workspace
    .order-import-table-wrap
    .financial-table
    td[data-label="PULSE order ID"],
  .payment-workspace
    .order-import-table-wrap
    .financial-table
    td[data-label="Applicant / PRN"],
  .payment-workspace
    .order-import-table-wrap
    .financial-table
    td[data-label="Business reference"],
  .payment-workspace
    .order-import-table-wrap
    .financial-table
    td[data-label="Details"] {
    grid-column: 1 / -1;
  }
  .payment-workspace
    .order-import-table-wrap
    .financial-table
    td[data-label="PULSE order ID"] {
    border-top: 0;
  }
  .payment-workspace
    .order-import-table-wrap
    .financial-table
    td[data-label="Details"] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    max-width: none !important;
  }
  .payment-workspace
    .order-import-table-wrap
    .financial-table
    td[data-label="Details"]::before {
    margin-right: auto;
  }
}

/* 8.13.163 shared controls, fixed navigation and order actions. */
#navigation-toggle[hidden] {
  display: none !important;
}
@media (min-width: 760px) {
  body:not(.signed-out):not(.portal) #navigation-toggle {
    position: fixed;
    top: 27px;
    left: 205px;
    z-index: 9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    min-width: 30px;
    height: 30px;
    min-height: 30px;
    padding: 0 0 2px;
    border: 1px solid #d8dee9;
    border-radius: 50%;
    color: #475569;
    background: #fff;
    box-shadow: 0 4px 14px rgb(15 23 42 / 10%);
    font-size: 20px;
    line-height: 1;
    transition:
      left 180ms ease,
      color 160ms ease,
      box-shadow 160ms ease,
      transform 160ms ease;
  }
  body:not(.signed-out):not(.portal) #navigation-toggle:hover {
    color: var(--accent);
    box-shadow: 0 6px 18px rgb(21 84 232 / 18%);
    transform: translateY(-1px);
  }
  body.navigation-collapsed:not(.signed-out):not(.portal) #navigation-toggle {
    left: 61px;
  }
  body.navigation-collapsed .sidebar-brand > span:last-child,
  body.navigation-collapsed .sidebar-footer,
  body.navigation-collapsed aside .eyebrow,
  body.navigation-collapsed .nav-label {
    display: none;
  }
  body.navigation-collapsed .sidebar-brand {
    justify-content: center;
    margin-right: 0;
    margin-left: 0;
  }
  body.navigation-collapsed:not(.signed-out):not(.portal) aside nav button {
    justify-content: center;
    min-width: 48px;
    padding-right: 8px;
    padding-left: 8px;
  }
  @media (max-width: 1000px) {
    body:not(.signed-out):not(.portal) #navigation-toggle {
      left: 165px;
    }
    body.navigation-collapsed:not(.signed-out):not(.portal) #navigation-toggle {
      left: 61px;
    }
  }
}
#tenant-brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 3px;
  overflow: hidden;
  border: 1px solid #dce4f1;
  border-radius: 50%;
  background: #fff;
}
#tenant-brand-logo img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.organization-logo-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.organization-logo-preview {
  padding: 5px;
  border-radius: 50%;
}
.logo-crop-dialog {
  width: min(92vw, 520px);
  max-height: min(90vh, 720px);
  padding: 22px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(18, 34, 65, 0.24);
}
.logo-crop-dialog::backdrop {
  background: rgba(16, 28, 52, 0.58);
  backdrop-filter: blur(5px);
}
.logo-crop-heading,
.logo-crop-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.logo-crop-heading h2,
.logo-crop-dialog > p {
  margin: 0;
}
.logo-crop-stage {
  display: grid;
  place-items: center;
  margin: 20px auto;
}
.logo-crop-canvas {
  width: min(72vw, 340px);
  height: min(72vw, 340px);
  border: 8px solid #fff;
  border-radius: 50%;
  background: #e9eef7;
  box-shadow:
    0 0 0 1px var(--line),
    0 14px 34px rgba(18, 34, 65, 0.16);
  cursor: grab;
  touch-action: none;
}
.logo-crop-canvas.is-dragging {
  cursor: grabbing;
}
.logo-crop-zoom {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  font-weight: 700;
}
.logo-crop-zoom input {
  width: 100%;
}
.logo-crop-status {
  min-height: 20px;
  margin: 12px 0;
  font-size: 12px;
}
.logo-crop-actions {
  justify-content: flex-end;
}
@media (max-width: 520px) {
  .logo-crop-dialog {
    width: calc(100vw - 20px);
    padding: 18px;
  }
  .logo-crop-actions button {
    flex: 1;
  }
}
body:not(.signed-out):not(.portal)
  main
  :where(
    input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
    select
  ) {
  height: 40px;
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 20px;
}
body:not(.signed-out):not(.portal) main textarea {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 20px;
}
body:not(.signed-out):not(.portal)
  main
  :where(button, .button):not(.provenance-action):not(.transaction-id-link):not(
    .chart-series-link
  ) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  height: auto;
  margin-left: 0;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 20px;
}
.transaction-status-tabs button,
.orders-tabs button,
.dashboard-tabs button {
  min-height: 36px !important;
  padding: 7px 12px !important;
}
.order-dialog-actions,
.order-detail-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}
.order-dialog-actions + .order-dialog-heading {
  margin-top: 0;
}
@media (max-width: 759px) {
  .order-dialog-actions,
  .order-detail-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .order-dialog-actions button,
  .order-detail-actions button {
    width: 100%;
  }
}

/* 8.13.164 animated, source-backed Dashboard visuals. */
.dashboard-metrics {
  overflow: hidden;
  border: 1px solid #dfe6f1;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff 0%, #f8faff 100%);
  box-shadow: 0 12px 34px rgb(24 48 88 / 7%);
}
.dashboard-metric {
  position: relative;
  overflow: hidden;
}
.dashboard-metric::after {
  content: "";
  position: absolute;
  right: -26px;
  bottom: -34px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(24 88 232 / 11%), transparent 68%);
  transform: scale(0.8);
  transition: transform 220ms ease;
}
.dashboard-metric:hover::after {
  transform: scale(1.18);
}
.dashboard-metric strong {
  letter-spacing: -0.035em;
}
.productivity-card {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}
.productivity-card:hover {
  z-index: 1;
  border-color: #bfd0f8;
  box-shadow: 0 10px 28px rgb(24 88 232 / 10%);
  transform: translateY(-2px);
}
.cashflow-workspace {
  grid-template-columns: minmax(0, 1fr) 285px;
  border-color: #dce5f1;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 48px rgb(30 55 95 / 9%);
}
.cashflow-heading {
  padding: 24px 26px 18px;
  background: linear-gradient(115deg, #f8faff 0%, #fff 54%, #f4fbf9 100%);
}
.cashflow-heading h2 {
  font-size: 1.5rem;
}
.cashflow-chart {
  padding: 18px 26px 24px;
}
.cashflow-plot {
  overflow: hidden;
  padding: 14px 10px 2px;
  border: 1px solid #edf1f7;
  border-radius: 14px;
  background:
    radial-gradient(circle at 14% 4%, rgb(24 88 232 / 7%), transparent 34%),
    linear-gradient(180deg, #fcfdff, #fff);
}
.cashflow-line-chart {
  min-width: 0;
  height: 290px;
}
.cashflow-amchart {
  width: 100%;
  height: 340px;
}
.cashflow-area {
  opacity: 0;
  animation: chart-area-enter 700ms ease 260ms forwards;
}
.cashflow-line {
  stroke-width: 3.25;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  filter: drop-shadow(0 3px 5px rgb(15 23 42 / 10%));
  animation: chart-line-draw 1.05s cubic-bezier(0.35, 0, 0.2, 1) forwards;
}
.refund-line.cashflow-line {
  animation-delay: 100ms;
}
.sweep-line.cashflow-line {
  animation-delay: 180ms;
}
.cashflow-point {
  fill: #fff;
  stroke: currentColor;
  stroke-width: 3;
}
.cashflow-point-halo {
  fill: currentColor;
  opacity: 0.13;
  transform-box: fill-box;
  transform-origin: center;
  animation: chart-point-pulse 2.2s ease-out infinite;
}
.cashflow-point.inbound-line,
.cashflow-point-halo.inbound-line {
  color: #1858e8;
}
.cashflow-point.refund-line,
.cashflow-point-halo.refund-line {
  color: #f97316;
}
.cashflow-point.sweep-line,
.cashflow-point-halo.sweep-line {
  color: #14a38b;
}
.cashflow-moving-point {
  stroke: #fff;
  stroke-width: 2.5;
  filter: drop-shadow(0 3px 7px currentColor);
}
.cashflow-moving-point.inbound-line {
  fill: #1858e8;
  color: #1858e8;
}
.cashflow-moving-point.refund-line {
  fill: #f97316;
  color: #f97316;
}
.cashflow-moving-point.sweep-line {
  fill: #14a38b;
  color: #14a38b;
}
.cashflow-cursor {
  stroke: #94a3b8;
  stroke-width: 1;
  stroke-dasharray: 4 5;
  transition:
    x1 240ms ease,
    x2 240ms ease;
}
.cashflow-split {
  gap: 22px;
  padding: 30px 24px;
  background:
    radial-gradient(circle at 50% 12%, rgb(24 88 232 / 8%), transparent 28%),
    linear-gradient(180deg, #f8faff, #fbfcff);
}
.flow-composition {
  display: grid;
  align-content: center;
  width: 218px;
  min-height: 216px;
  padding: 16px 16px 10px;
  border: 1px solid #dfe7f4;
  border-radius: 14px;
  background: rgb(255 255 255 / 78%);
  box-shadow: 0 12px 30px rgb(24 88 232 / 10%);
}
.flow-composition-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2px 8px;
}
.flow-composition-summary span:first-child {
  grid-column: 1 / -1;
  color: #41618f;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.flow-composition-summary strong {
  color: #10213d;
  font-size: 28px;
  letter-spacing: -0.045em;
  line-height: 1;
}
.flow-composition-summary span:last-child {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.flow-composition-chart {
  width: 100%;
  height: 142px;
}
.flow-split-values p {
  margin-top: 14px;
}
.flow-split-values strong {
  display: inline-block;
  margin: 3px 7px 1px 0;
  color: #10213d;
  font-size: 1.08rem;
}
.flow-change {
  display: inline-flex;
  align-items: center;
  padding: 3px 6px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 750;
  white-space: nowrap;
}
.flow-change.positive {
  color: #087358;
  background: #e8f8f2;
}
.flow-change.negative {
  color: #b83247;
  background: #fff0f2;
}
.flow-change.neutral {
  color: #64748b;
  background: #eef2f7;
}
.flow-split-values > small {
  display: block;
  margin-top: 18px;
}
.cashflow-day-value {
  display: grid !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  gap: 4px;
  min-height: 112px !important;
  padding: 12px 14px !important;
  text-align: left;
  overflow: hidden;
  box-shadow: 0 5px 16px rgb(15 23 42 / 5%);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}
.cashflow-day-value strong {
  overflow-wrap: normal;
  font-size: 18px;
  line-height: 1.25;
  white-space: nowrap;
}
.cashflow-day-value small {
  line-height: 1.35;
}
.cashflow-day-value:hover {
  box-shadow: 0 10px 24px rgb(15 23 42 / 10%);
  transform: translateY(-2px);
}
.cashflow-micro-track {
  display: block;
  appearance: none;
  width: 100%;
  height: 4px;
  margin-top: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9eef6;
  transform-origin: left;
  animation: micro-bar-enter 620ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}
.cashflow-micro-track::-webkit-progress-bar {
  border-radius: inherit;
  background: #e9eef6;
}
.cashflow-micro-track::-webkit-progress-value {
  border-radius: inherit;
  background: currentColor;
}
.cashflow-day-value.inbound .cashflow-micro-track {
  color: #1858e8;
}
.cashflow-day-value.refund .cashflow-micro-track {
  color: var(--refund);
}
.cashflow-day-value.sweep .cashflow-micro-track {
  color: #14a38b;
}
.cashflow-day-value.fee .cashflow-micro-track {
  color: var(--fee);
}
.cashflow-day-value.markup .cashflow-micro-track {
  color: var(--markup);
}
.financial-table .markup-cell,
.transaction-detail [data-field-label="Markup"] {
  color: var(--markup);
  font-weight: 700;
}
.financial-table .fee-cell,
.financial-table .transaction-category-transfer_fee .amount-cell,
.financial-table .transaction-category-transfer_fee .transaction-id-link,
.transaction-detail [data-field-label="Fees"],
.transaction-status.status-fee {
  color: var(--fee);
  font-weight: 700;
}
.financial-table
  .transaction-category-refund
  .amount-cell:not(.markup-cell):not(.fee-cell),
.financial-table .transaction-category-refund .transaction-id-link,
.transaction-status.status-refund {
  color: var(--refund);
  font-weight: 700;
}
.transaction-workspace .financial-table th[data-transaction-column="markup"] {
  color: var(--markup);
}
.transaction-workspace .financial-table th[data-transaction-column="fees"] {
  color: var(--fee);
}
.transaction-workspace
  .financial-table
  .transaction-category-refund
  > td:first-child {
  box-shadow: inset 3px 0 var(--refund);
}
.transaction-workspace
  .financial-table
  .transaction-category-transfer_fee
  > td:first-child {
  box-shadow: inset 3px 0 var(--fee);
}
.transaction-status.status-refund {
  border-color: var(--refund-line);
  background: var(--refund-soft);
}
.transaction-status.status-fee {
  border-color: var(--fee-line);
  background: var(--fee-soft);
}
@keyframes chart-line-draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes chart-area-enter {
  to {
    opacity: 1;
  }
}
@keyframes micro-bar-enter {
  from {
    transform: scaleX(0);
  }
}
@media (max-width: 1000px) {
  .cashflow-workspace {
    grid-template-columns: 1fr;
  }
  .cashflow-split {
    grid-template-columns: auto minmax(0, 1fr);
    justify-items: stretch;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}
@media (max-width: 759px) {
  .cashflow-heading,
  .cashflow-chart {
    padding-right: 16px;
    padding-left: 16px;
  }
  .cashflow-line-chart {
    height: 230px;
  }
  .cashflow-amchart {
    height: 360px;
  }
  .cashflow-split {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .flow-split-values {
    max-width: 280px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dashboard-metric,
  .productivity-card,
  .cashflow-area,
  .cashflow-line,
  .cashflow-point-halo,
  .flow-composition,
  .cashflow-micro-track {
    animation: none;
  }
  .cashflow-line {
    stroke-dashoffset: 0;
  }
  .cashflow-area {
    opacity: 1;
  }
}

/* Transaction queues remain visible instead of becoming a clipped strip. */
.transaction-list-toolbar {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 10px;
}
.transaction-list-toolbar .transaction-actions {
  justify-content: flex-end;
}
.transaction-list-toolbar .transaction-status-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  overflow: visible;
  border: 0;
  border-radius: 0;
}
.transaction-queue-group {
  min-width: 0;
  padding: 10px;
  border: 1px solid #e1e6ef;
  border-radius: 10px;
  background: #f8fafc;
}
.transaction-queue-group-label {
  margin: 0 0 7px;
  color: #66738a;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}
.transaction-queue-group-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.transaction-queue-group:first-child .transaction-queue-group-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.transaction-list-toolbar .transaction-status-tabs button {
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  min-height: 46px !important;
  padding: 7px 10px !important;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  color: #536077;
  background: #fff;
  letter-spacing: 0;
  text-align: left;
}
.transaction-list-toolbar .transaction-status-tabs button span {
  font-size: 10px;
  line-height: 1.25;
  white-space: normal;
}
.transaction-list-toolbar .transaction-status-tabs button strong {
  flex: 0 0 auto;
  min-width: 24px;
  padding: 2px 6px;
  border-radius: 999px;
  color: #43516a;
  background: #eef2f7;
  font-size: 10px;
  text-align: center;
}
.transaction-list-toolbar .transaction-status-tabs button.selected {
  border-color: #9eb8f6;
  color: #1746a2;
  background: #edf3ff;
  box-shadow: 0 4px 12px rgb(24 88 232 / 10%);
}
.transaction-list-toolbar .transaction-status-tabs button.selected strong {
  color: #fff;
  background: var(--accent);
}
.transaction-list-toolbar
  .transaction-status-tabs
  button[data-transaction-queue="refund"],
.transaction-list-toolbar
  .transaction-status-tabs
  button[data-transaction-queue^="refund_"] {
  border-color: var(--refund-line);
  color: var(--refund);
  background: var(--refund-soft);
}
.transaction-list-toolbar
  .transaction-status-tabs
  button[data-transaction-queue="refund"]
  strong,
.transaction-list-toolbar
  .transaction-status-tabs
  button[data-transaction-queue^="refund_"]
  strong {
  color: var(--refund);
  background: var(--refund-count);
}
.transaction-list-toolbar
  .transaction-status-tabs
  button[data-transaction-queue="transfer_fee"] {
  border-color: var(--fee-line);
  color: var(--fee);
  background: var(--fee-soft);
}
.transaction-list-toolbar
  .transaction-status-tabs
  button[data-transaction-queue="transfer_fee"]
  strong {
  color: var(--fee);
  background: var(--fee-count);
}
.transaction-list-toolbar
  .transaction-status-tabs
  button[data-transaction-queue="refund"].selected,
.transaction-list-toolbar
  .transaction-status-tabs
  button[data-transaction-queue^="refund_"].selected {
  box-shadow: 0 4px 12px var(--refund-shadow);
}
.transaction-list-toolbar
  .transaction-status-tabs
  button[data-transaction-queue="refund"].selected
  strong,
.transaction-list-toolbar
  .transaction-status-tabs
  button[data-transaction-queue^="refund_"].selected
  strong {
  color: #fff;
  background: var(--refund);
}
.transaction-list-toolbar
  .transaction-status-tabs
  button[data-transaction-queue="transfer_fee"].selected {
  box-shadow: 0 4px 12px var(--fee-shadow);
}
.transaction-list-toolbar
  .transaction-status-tabs
  button[data-transaction-queue="transfer_fee"].selected
  strong {
  color: #fff;
  background: var(--fee);
}
@media (max-width: 759px) {
  .transactions-data-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    overflow: visible;
  }
  .transactions-data-tabs button {
    min-width: 0;
    padding: 11px 6px 10px !important;
    font-size: 11px;
    line-height: 1.25;
    white-space: normal;
  }
  .transaction-list-toolbar .transaction-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
  }
  .transaction-list-toolbar .transaction-actions button {
    width: 100%;
    min-height: 44px !important;
    border: 1px solid var(--line);
    background: #fff;
  }
  .transaction-list-toolbar .transaction-actions button.primary {
    border-color: var(--accent);
    background: var(--accent);
  }
  .transaction-list-toolbar
    .transaction-actions
    button:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  .transaction-list-toolbar .transaction-status-tabs {
    grid-template-columns: 1fr;
  }
  .transaction-queue-group:first-child .transaction-queue-group-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 8.13.196: keep real transaction rows in the first desktop viewport. */
@media (min-width: 1200px) {
  .transaction-list-toolbar .transaction-status-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }
  .transaction-queue-group {
    padding: 8px;
  }
  .transaction-queue-group-options,
  .transaction-queue-group:first-child .transaction-queue-group-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }
  .transaction-list-toolbar .transaction-status-tabs button {
    min-height: 40px !important;
    padding: 6px 8px !important;
  }
  .transaction-list-toolbar .transaction-status-tabs button span {
    font-size: 9px;
  }
}
@media (max-width: 759px) {
  .transaction-workspace .history-panel .financial-table td:first-child {
    width: auto;
    padding-right: 0;
  }
  .transaction-workspace
    .history-panel
    .financial-table
    td[data-transaction-column="actions"] {
    width: auto;
    max-width: none;
  }
  .transaction-workspace
    .history-panel
    .financial-table
    td[data-transaction-column="actions"]::before {
    white-space: nowrap;
  }
}

/* 8.13.186 final precedence: restore history is a complete mobile register. */
@media (max-width: 759px) {
  .operations-health .operations-history-table-wrap {
    max-height: none;
    overflow: visible;
    border: 0;
    background: transparent;
  }
  .operations-health .operations-history-table {
    display: block;
    width: 100%;
    min-width: 0;
  }
  .operations-health .operations-history-table caption {
    display: block;
    width: 100%;
    white-space: normal;
  }
  .operations-health .operations-history-table thead {
    display: none;
  }
  .operations-health .operations-history-table tbody {
    display: grid;
    width: 100%;
    gap: 12px;
  }
  .operations-health .operations-history-table tbody tr {
    display: grid;
    width: 100%;
  }
  .operations-health .operations-history-table td {
    display: grid;
    width: 100%;
    max-width: none;
    min-width: 0;
  }
  .operations-health .operations-history-table .provenance-action-cell,
  .operations-health .operations-history-table .provenance-action {
    min-width: 0;
    width: 100%;
  }
}

/* 8.13.187: unassigned MT originals and parsed entries become mobile cards. */
@media (max-width: 759px) {
  .unassigned-source-table-wrap,
  .unassigned-entry-table-wrap {
    max-height: none !important;
    overflow: visible;
    border: 0;
    background: transparent;
  }
  .unassigned-source-table,
  .unassigned-entry-table {
    display: block;
    width: 100%;
    min-width: 0;
  }
  .unassigned-source-table thead,
  .unassigned-entry-table thead {
    display: none;
  }
  .unassigned-source-table tbody,
  .unassigned-entry-table tbody {
    display: grid;
    width: 100%;
    gap: 12px;
  }
  .unassigned-source-table tr,
  .unassigned-entry-table tr {
    display: grid;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
  }
  .unassigned-source-table td,
  .unassigned-entry-table td,
  .unassigned-source-list .unassigned-source-table td:first-child,
  .unassigned-source-list .unassigned-source-table td:nth-child(2) {
    position: static;
    display: grid;
    grid-template-columns: minmax(112px, 0.44fr) minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    width: 100%;
    max-width: none;
    min-width: 0;
    padding: 11px 14px;
    border: 0;
    border-top: 1px solid var(--line);
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .unassigned-source-table td:first-child,
  .unassigned-entry-table td:first-child {
    border-top: 0;
  }
  .unassigned-source-table td::before,
  .unassigned-entry-table td::before {
    position: static;
    width: auto;
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .unassigned-source-table td strong,
  .unassigned-source-table td small,
  .unassigned-source-table .status-label {
    grid-column: 2;
  }
  .unassigned-source-table td button {
    width: 100%;
  }
  .unassigned-entry-table .unassigned-table-empty {
    display: block;
    padding: 24px 18px;
    text-align: center;
  }
  .unassigned-entry-table .unassigned-table-empty::before {
    content: none;
  }
}

/* 8.13.189: keep every Applicant receipts state visible on mobile. */
@media (max-width: 759px) {
  .evidence-workspace-panel > .evidence-status-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: calc(100% - 40px);
    overflow: visible;
    border: 0;
    background: transparent;
  }
  .evidence-workspace-panel > .evidence-status-tabs button {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    white-space: normal;
  }
  .evidence-workspace-panel > .evidence-status-tabs button:first-child {
    grid-column: 1 / -1;
  }
}

/* 8.13.223: preserve every Missing RFID field in bounded mobile cards. */
@media (max-width: 759px) {
  .missing-rf-table-wrap {
    max-height: none;
    overflow: visible;
    border: 0;
    background: transparent;
  }
  .missing-rf-table {
    display: block;
    width: 100%;
    min-width: 0;
  }
  .missing-rf-table tbody {
    display: grid;
    gap: 12px;
    width: 100%;
  }
  .missing-rf-table caption,
  .missing-rf-table thead {
    display: none;
  }
  .missing-rf-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 14px;
    width: 100%;
    padding: 8px 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
  }
  .missing-rf-table td,
  .missing-rf-table td:first-child,
  .missing-rf-table td:nth-child(2),
  .missing-rf-table td:nth-child(3) {
    position: static;
    display: grid;
    gap: 4px;
    width: auto;
    min-width: 0;
    max-width: none;
    padding: 10px 0;
    border: 0;
    border-top: 1px solid var(--line);
    overflow-wrap: anywhere;
    text-align: left;
    white-space: normal;
  }
  .missing-rf-table td::before {
    position: static;
    width: auto;
    content: attr(data-label);
    color: var(--muted);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: 0.055em;
    text-transform: uppercase;
  }
  .missing-rf-table td[data-label="Select transaction"] {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    gap: 9px;
    border-top: 0;
  }
  .missing-rf-table td[data-label="Select transaction"]::before {
    margin-right: auto;
  }
  .missing-rf-table td[data-label="Reference no."],
  .missing-rf-table td[data-label="Name"],
  .missing-rf-table td[data-label="RFID"],
  .missing-rf-table td[data-label="Status"],
  .missing-rf-table td[data-label="History"] {
    grid-column: 1 / -1;
  }
  .missing-rf-table .amount-cell {
    text-align: left;
  }
}
