/* ── Currency Positions — Page-level styles
   Reusable on any treasury/positions page in the portal.
   Follows the same conventions as style.css (Bootstrap 5.3).
   ───────────────────────────────────────────────────────── */

/* ── KPI summary cards ───────────────────────────────────── */
.kpi-card {
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius-lg);
  background-color: var(--bs-body-bg);
  padding: 1rem 1.25rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.kpi-card .kpi-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #385a7c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi-card .kpi-value {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi-card .kpi-sub {
  font-size: 0.6875rem;
  color: var(--bs-secondary-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi-card .kpi-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--bs-border-radius);
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  font-size: 0.9rem;
  -ms-flex-negative: 0;
  flex-shrink: 0;
}

.kpi-card .kpi-icon-img {
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: start !important;
  -webkit-box-pack: start;
  -ms-flex-pack: start;
  justify-content: start !important;
  background-color: transparent !important;
}

/* ── KPI card status variants ────────────────────────────── */
/* ── KPI card status variants ────────────────────────────── */

.kpi-card.kpi-card-ok {
  border-left: 3px solid #22c55e;
}

.kpi-card.kpi-card-ok .kpi-icon {
  background-color: #dcfce7;
  color: #166534;
}

.kpi-card.kpi-card-ok .kpi-value-emphasis {
  color: #166534;
}

.kpi-card.kpi-card-watch {
  border-left: 3px solid #f97316;
}

.kpi-card.kpi-card-watch .kpi-icon {
  background-color: #ffedd5;
  color: #9a3412;
}

.kpi-card.kpi-card-watch .kpi-value-emphasis {
  color: #9a3412;
}

.kpi-card.kpi-card-risk {
  border-left: 3px solid #dc3545;
}

.kpi-card.kpi-card-risk .kpi-icon {
  background-color: #fee2e2;
  color: #991b1b;
}

.kpi-card.kpi-card-risk .kpi-value-emphasis {
  color: #991b1b;
}

.kpi-card.kpi-card-info {
  border-left: 3px solid var(--bs-primary);
}

.kpi-card.kpi-card-info .kpi-icon {
  background-color: var(--bs-primary-bg-subtle);
  color: var(--bs-primary);
}

.kpi-card.kpi-card-info .kpi-value-emphasis {
  color: var(--bs-primary);
}

.kpi-card.kpi-card-neutral {
  border-left: 3px solid var(--bs-border-color);
}

.kpi-card.kpi-card-neutral .kpi-icon {
  background-color: var(--bs-secondary-bg);
  color: var(--bs-secondary-color);
}

.kpi-card.kpi-card-neutral .kpi-value-emphasis {
  color: var(--bs-body-color);
}

.kpi-inline-label {
  font-size: 0.75rem;
  line-height: 1;
  color: var(--bs-secondary-color);
}

/* ── 7-day funding grid ──────────────────────────────────── */
.funding-grid-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.funding-grid {
  min-width: 900px;
  font-size: 0.775rem;
}

.funding-grid thead th {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--bs-secondary-color);
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0.5rem 0.65rem;
  background-color: #eaf1f7;
  border-bottom: 0;
  vertical-align: middle;
  position: sticky;
  top: 0;
  z-index: 2;
}

.funding-grid thead th.th-day {
  text-align: right;
  min-width: 78px;
}

.funding-grid thead th.th-currency {
  min-width: 100px;
}

.funding-grid thead th.th-opening {
  min-width: 82px;
  text-align: right;
  color: #274c6d;
  background-color: #d5e4f0;
  border-left: 2px solid #6f99bd;
  border-right: 2px solid #6f99bd;
}

.funding-grid thead th.th-opening span {
  display: block;
}

.funding-grid thead th.th-low {
  min-width: 82px;
  text-align: right;
}

.funding-grid tbody td {
  padding: 0.4rem 0.65rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--bs-border-color-translucent);
  white-space: nowrap;
}

.funding-grid tbody tr:last-child td {
  border-bottom: none;
}

.funding-grid tbody tr:hover td {
  background-color: var(--bs-tertiary-bg);
}

.funding-grid tbody td.opening-balance-cell {
  font-weight: 700;
  color: #274c6d;
  background-color: #f0f5f9;
  border-left: 2px solid #9bb8ce;
  border-right: 2px solid #9bb8ce;
}

.funding-grid tbody tr:hover td.opening-balance-cell {
  background-color: #e2edf5;
}

.currency-overview-grid th.position-group-start,
.currency-overview-grid td.position-group-start {
  border-left: 3px solid #6f99bd;
}

.currency-overview-grid th.movement-group-start,
.currency-overview-grid td.movement-group-start {
  border-left: 3px solid #9bb8ce;
}

.currency-overview-grid th.receivable-cp-group-start,
.currency-overview-grid td.receivable-cp-group-start {
  border-left: 2px solid #86b99b;
  background-color: rgba(25, 135, 84, 0.035);
}

.currency-overview-grid th.receivable-cp-group,
.currency-overview-grid td.receivable-cp-group {
  background-color: rgba(25, 135, 84, 0.035);
}

.currency-overview-grid th.payable-cp-group-start,
.currency-overview-grid td.payable-cp-group-start {
  border-left: 2px solid #d7a0a5;
  background-color: rgba(220, 53, 69, 0.035);
}

.currency-overview-grid th.payable-cp-group,
.currency-overview-grid td.payable-cp-group {
  background-color: rgba(220, 53, 69, 0.035);
}

.treasury-directional-grid th.open-exposure-column,
.treasury-directional-grid td.open-exposure-column {
  color: #274c6d;
  font-weight: 700;
  background-color: #f0f5f9;
  border-left: 3px solid #6f99bd;
  border-right: 2px solid #9bb8ce;
}

.treasury-directional-grid th.position-components-start,
.treasury-directional-grid td.position-components-start {
  border-left: 3px solid #c6d3dd;
}

.treasury-directional-grid tbody tr:hover td.open-exposure-column {
  background-color: #e2edf5;
}

.drawer-header-metrics {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  color: var(--bs-secondary-color);
  font-size: 0.6875rem;
  font-variant-numeric: tabular-nums;
}

.drawer-header-metrics strong {
  color: #385a7c;
  font-weight: 700;
}

.treasury-net-total-row td {
  border-top: 2px solid #6f99bd !important;
  border-bottom: 2px solid #6f99bd !important;
  background-color: #eaf1f7 !important;
  font-weight: 700;
}

/* Day balance cells */
.day-cell {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.day-cell.bal-ok {
  color: var(--bs-body-color);
}

.day-cell.bal-watch {
  color: #b45309;
  background-color: #fefce8;
}

.day-cell.bal-at-risk {
  color: #9a3412;
  background-color: #fff7ed;
}

.day-cell.bal-unfunded {
  color: #991b1b;
  background-color: #fef2f2;
  font-weight: 600;
}

.day-cell.bal-positive {
  color: #166534;
}

/* Currency cell with flag */
.currency-cell {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 0.5rem;
}

.currency-cell .flag-img {
  border-radius: 2px;
  -ms-flex-negative: 0;
  flex-shrink: 0;
}

.currency-cell .currency-code {
  font-weight: 600;
  font-size: 0.8125rem;
}

.currency-cell .currency-name {
  font-size: 0.6875rem;
  color: var(--bs-secondary-color);
}

/* Currency cell with flag right*/
.currency-cell-right {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;

  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;

  -webkit-box-pack: end;
  -ms-flex-pack: end;
  justify-content: flex-end;

  gap: 0.5rem;
}

.currency-cell-right .flag-img {
  border-radius: 2px;
  -ms-flex-negative: 0;
  flex-shrink: 0;
}

.currency-cell-right .currency-code {
  font-weight: 600;
  font-size: 0.8125rem;
}

.currency-cell-right .currency-name {
  font-size: 0.6875rem;
  color: var(--bs-secondary-color);
}

/* ── Risk badges ─────────────────────────────────────────── */
/* Unified semantic status scale and neutral category palette */
.badge-status,
.badge-status-good,
.badge-status-caution,
.badge-status-danger,
.badge-category-blue,
.badge-category-slate,
.badge-category-cyan,
.badge-category-teal,
.badge-category-violet,
.badge-category-rose {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 0.25rem;
  border: 1px solid transparent;
  border-radius: 0.3rem;
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.22rem 0.48rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.badge-status-good {
  color: #17613a !important;
  background-color: #e5f5ec !important;
  border-color: #b8dfc8 !important;
}

.badge-status-caution {
  color: #805b09 !important;
  background-color: #fff5d9 !important;
  border-color: #ecd38d !important;
}

.badge-status-danger {
  color: #962f3d !important;
  background-color: #fbe9ec !important;
  border-color: #e6b7bf !important;
}

.badge-category-blue {
  color: #285d8d !important;
  background-color: #e8f1f8 !important;
  border-color: #bdd2e4 !important;
}

.badge-category-slate {
  color: #526273 !important;
  background-color: #eef1f4 !important;
  border-color: #d2d9df !important;
}

.badge-category-cyan {
  color: #246979 !important;
  background-color: #e6f4f6 !important;
  border-color: #b8dce2 !important;
}

.badge-category-teal {
  color: #28695e !important;
  background-color: #e7f4f1 !important;
  border-color: #b9ddd6 !important;
}

.badge-category-violet {
  color: #65518a !important;
  background-color: #f0ecf7 !important;
  border-color: #d4c9e6 !important;
}

.badge-category-rose {
  color: #8b5068 !important;
  background-color: #f7ebf0 !important;
  border-color: #e3c6d2 !important;
}

.badge-lg {
  border-radius: 0.4rem;
  font-size: 0.75rem;
  padding: 0.32rem 0.65rem;
  letter-spacing: 0.02em;
}

/* ── Estimate label (informational, not a warning) ────────── */
.estimate-label {
  font-size: 0.6875rem;
  color: var(--bs-secondary-color);
  font-style: italic;
}

.estimate-label-neutral {
  font-size: 0.6875rem;
  color: var(--bs-body-color);
}

/* ── Filter bar ──────────────────────────────────────────── */
.filter-bar {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background-color: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius-lg);
  margin-bottom: 1rem;
}

.filter-bar .filter-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bs-secondary-color);
  white-space: nowrap;
}

.filter-bar .form-select,
.filter-bar .form-control {
  font-size: 0.8125rem;
}

/* ── Detail drawer (offcanvas) ───────────────────────────── */
.drawer-offcanvas {
  width: 480px !important;
}

@media (max-width: 575px) {
  .drawer-offcanvas {
    width: 100% !important;
  }
}

.drawer-offcanvas .offcanvas-header {
  border-bottom: 1px solid var(--bs-border-color);
  padding: 1rem 1.25rem 0.75rem;
}

.drawer-offcanvas .offcanvas-body {
  padding: 1.25rem;
  overflow-y: auto;
}

.drawer-section-title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bs-secondary-color);
  margin-bottom: 0.5rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--bs-border-color-translucent);
}

/* ── Position stat row in drawer ─────────────────────────── */
.detail-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}

.detail-stat {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 0.1rem;
}

.detail-stat .detail-stat-label {
  font-size: 0.6875rem;
  color: var(--bs-secondary-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.detail-stat .detail-stat-value {
  font-size: 0.9375rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.detail-stat .detail-stat-sub {
  font-size: 0.6875rem;
  color: var(--bs-secondary-color);
}

/* ── Numeric formatting helpers ──────────────────────────── */
.num-positive {
  color: #166534 !important;
}

.num-negative {
  color: #991b1b !important;
}

.num-watch {
  color: #b45309 !important;
}

.num-neutral {
  color: var(--bs-body-color) !important;
}

.num-tabular {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ── GBP secondary value ─────────────────────────────────── */
.gbp-secondary {
  font-size: 0.6875rem;
  color: var(--bs-secondary-color);
  font-variant-numeric: tabular-nums;
}

.change-secondary {
  font-size: 0.625rem;
  color: var(--bs-secondary-color);
  font-variant-numeric: tabular-nums;
}

.view-settings-menu {
  width: 250px;
  min-width: 250px;
  padding: 0.45rem 0;
  font-size: 0.75rem;
}

.view-settings-menu .view-settings-heading {
  padding: 0.25rem 0.75rem 0.2rem;
  color: var(--bs-secondary-color);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.view-settings-menu .view-settings-option {
  min-height: 1.35rem;
  margin: 0;
  padding: 0.3rem 0.75rem 0.3rem 2.65rem;
}

.view-settings-menu .form-check-input {
  margin-top: 0.12rem;
  margin-left: -1.9rem;
}

.view-settings-menu .form-check-label {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
}

.view-settings-menu .view-settings-help {
  margin-top: 0.15rem;
  color: var(--bs-secondary-color);
  font-size: 0.625rem;
  line-height: 1.25;
}

.view-settings-menu .dropdown-divider {
  margin: 0.35rem 0;
}

/* ── Section surface (matches settlements pattern) ───────── */
.page-surface {
  background-color: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius-lg);
  overflow: hidden;
}

/* ── off canvas day selector ─────────────────────────── */

.forecast-day-pill {
  min-width: 58px;
  line-height: 1.1;
}

.forecast-day-pill .day-label {
  font-size: 0.7rem;
  font-weight: 600;
}

.forecast-day-pill .day-date {
  font-size: 0.625rem;
}

/* Dashboard operational overview */
.dashboard-grid {
  margin-top: 0.25rem;
}

.operations-card {
  border: 1px solid var(--bs-border-color);
  border-top: 2px solid #6f99bd;
  border-left-width: 4px;
  border-radius: 0.45rem;
  background-color: var(--bs-body-bg);
  -webkit-box-shadow: 0 0.35rem 1.4rem rgba(33, 37, 41, 0.04);
  box-shadow: 0 0.35rem 1.4rem rgba(33, 37, 41, 0.04);
}

.operations-card-info {
  border-left-color: #527fa6;
}

.operations-card-ok {
  border-left-color: #22c55e;
}

.operations-card-watch {
  border-left-color: #f59e0b;
}

.operations-card-danger {
  border-left-color: #dc3545;
}

.operations-card-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1.15rem 0.8rem;
  border-bottom: 1px solid var(--bs-border-color-translucent);
  background-color: #fbfcfd;
}

.operations-card-body {
  padding: 1rem 1.15rem 1.1rem;
}

.metric-hero {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: end;
  -ms-flex-align: end;
  align-items: flex-end;
  gap: 1rem;
  padding-bottom: 0.95rem;
}

.metric-label {
  color: var(--bs-secondary-color);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.metric-value {
  margin-top: 0.15rem;
  color: var(--bs-body-color);
  font-size: 1.75rem;
  font-weight: 750;
  line-height: 1.1;
}

.metric-value-compact {
  font-size: 1.45rem;
}

.metric-context {
  color: var(--bs-secondary-color);
  font-size: 0.75rem;
  line-height: 1.35;
  text-align: right;
}

.metric-context strong,
.metric-context span {
  display: block;
}

.operations-breakdowns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--bs-border-color-translucent);
}

.operations-split {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
  gap: 0;
}

.breakdown-column,
.operations-split > div {
  min-width: 0;
  padding: 0 1rem;
}

.breakdown-column:first-child,
.operations-split > div:first-child {
  padding-left: 0;
}

.breakdown-column:last-child,
.operations-split > div:last-child {
  padding-right: 0;
}

.breakdown-column + .breakdown-column,
.operations-split > div + div {
  border-left: 1px solid var(--bs-border-color-translucent);
}

.operations-stack > div + div {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--bs-border-color-translucent);
}

.breakdown-title {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0;
  padding: 0.42rem 0.5rem;
  border-top: 1px solid var(--bs-border-color-translucent);
  border-bottom: 1px solid var(--bs-border-color-translucent);
  background-color: #f5f8fb;
  color: #385a7c;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-transform: uppercase;
}

.breakdown-title a {
  color: var(--bs-secondary-color);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: none;
}

.breakdown-title a:hover,
.risk-summary-link:hover .metric-label {
  color: var(--bs-primary);
}

.mini-list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 0;
}

.mini-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.2rem;
  padding: 0.42rem 0.45rem;
  border-bottom: 1px solid var(--bs-border-color-translucent);
}

.mini-list-row-large {
  min-height: 2.6rem;
}

.mini-list-row:last-child {
  border-bottom: 0;
}

.mini-list-label {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  font-size: 0.8125rem;
  font-weight: 700;
}

.mini-list-label .flag-img {
  border-radius: 2px;
  -ms-flex-negative: 0;
  flex-shrink: 0;
}

.mini-list-text {
  min-width: 0;
}

.mini-list-primary {
  overflow: hidden;
  color: var(--bs-body-color);
  font-size: 0.8125rem;
  font-weight: 650;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-list-secondary {
  overflow: hidden;
  color: var(--bs-secondary-color);
  font-size: 0.6875rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-list-value {
  color: var(--bs-body-color);
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
}

.mini-list-empty {
  padding: 0.75rem 0;
  color: var(--bs-secondary-color);
  font-size: 0.75rem;
}

.risk-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.risk-summary-item,
.risk-detail-card {
  min-width: 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--bs-border-color-translucent);
  border-left-width: 4px;
  border-radius: 0.4rem;
  background-color: #fff;
  color: inherit;
  text-decoration: none;
}

.status-card-ok {
  border-left-color: #22c55e;
}

.status-card-watch {
  border-left-color: #f59e0b;
}

.status-card-danger {
  border-left-color: #dc3545;
}

.risk-summary-item .metric-context,
.risk-detail-card .metric-context {
  margin-top: 0.25rem;
  text-align: left;
}

.risk-status {
  margin-top: 0.35rem;
}

@media (max-width: 1199.98px) {
  .dashboard-side-column {
    margin-top: 1rem;
  }
}

@media (max-width: 991.98px) {
  .operations-breakdowns,
  .operations-split {
    grid-template-columns: 1fr;
  }

  .breakdown-column,
  .operations-split > div {
    padding: 0.85rem 0 0;
  }

  .breakdown-column:first-child,
  .operations-split > div:first-child {
    padding-top: 0;
  }

  .breakdown-column + .breakdown-column,
  .operations-split > div + div {
    border-top: 1px solid var(--bs-border-color-translucent);
    border-left: 0;
    margin-top: 0.85rem;
  }
}

@media (max-width: 575.98px) {
  .operations-card-header,
  .metric-hero {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
  }

  .metric-context {
    text-align: left;
  }

  .metric-value {
    font-size: 1.45rem;
  }
}
