/* OMNL product UIs — Central Bank, Office 24, Binance-style trade */

.cb-page,
.o24-page,
.dash-page {
  min-height: calc(100vh - 56px);
}

.cb-card,
.o24-card,
.dash-card {
  background: #1e2329;
  border: 1px solid #2b3139;
  border-radius: 8px;
  padding: 1.25rem;
}

.dash-page-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: #eaecef;
  line-height: 1.2;
}

.dash-page-subtitle {
  margin-top: 0.35rem;
  color: #848e9c;
  font-size: 0.95rem;
  max-width: 42rem;
}

.dash-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.dash-badge--blue {
  background: rgba(56, 97, 251, 0.18);
  color: #3861fb;
}

.dash-badge--green {
  background: rgba(14, 203, 129, 0.18);
  color: #0ecb81;
}

.dash-badge--gold {
  background: rgba(240, 185, 11, 0.18);
  color: #f0b90b;
}

.dash-banner {
  border-radius: 8px;
  padding: 1rem 1.15rem;
  border: 1px solid #2b3139;
}

.dash-banner__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #eaecef;
  margin-bottom: 0.25rem;
}

.dash-banner__detail {
  font-size: 0.85rem;
  color: #848e9c;
  line-height: 1.45;
}

.dash-banner--ok {
  background: rgba(14, 203, 129, 0.08);
  border-color: rgba(14, 203, 129, 0.35);
}

.dash-banner--ok .dash-banner__title {
  color: #0ecb81;
}

.dash-banner--warn {
  background: rgba(240, 185, 11, 0.08);
  border-color: rgba(240, 185, 11, 0.35);
}

.dash-banner--warn .dash-banner__title {
  color: #f0b90b;
}

.dash-banner--error {
  background: rgba(246, 70, 93, 0.08);
  border-color: rgba(246, 70, 93, 0.35);
}

.dash-banner--error .dash-banner__title {
  color: #f6465d;
}

.dash-banner--loading {
  background: #1e2329;
}

.dash-stat-label {
  font-size: 0.7rem;
  color: #848e9c;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.dash-stat-value {
  font-size: 1.65rem;
  font-weight: 700;
  color: #eaecef;
  font-variant-numeric: tabular-nums;
}

.dash-stat-hint {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: #848e9c;
}

.dash-section-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #eaecef;
}

.dash-section-subtitle {
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: #848e9c;
}

.dash-kv {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  font-size: 0.875rem;
  border-bottom: 1px solid #2b3139;
}

.dash-kv:last-child {
  border-bottom: none;
}

.dash-kv dt {
  color: #848e9c;
  flex-shrink: 0;
}

.dash-kv dd {
  color: #eaecef;
  text-align: right;
  word-break: break-word;
}

.dash-kv .dash-kv-value--ok {
  color: #0ecb81;
  font-weight: 500;
}

.dash-quick-links__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #848e9c;
  margin-bottom: 0.5rem;
}

.dash-quick-links__chip {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #eaecef;
  background: #2b3139;
  border: 1px solid #474d57;
  transition: background 0.15s, border-color 0.15s;
}

.dash-quick-links__chip:hover {
  background: #474d57;
  border-color: #f0b90b;
  color: #f0b90b;
}

.dash-btn {
  width: 100%;
  padding: 0.55rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  background: #2b3139;
  color: #eaecef;
  transition: background 0.15s;
}

.dash-btn:hover {
  background: #474d57;
}

.dash-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Binance-style trade terminal */
.trade-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  grid-template-rows: 1fr;
  min-height: calc(100vh - 56px);
  background: #0b0e11;
}

@media (max-width: 1023px) {
  .trade-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
  }
}

@media (min-width: 1024px) {
  .trade-layout {
    grid-template-columns: 240px 1fr 320px;
  }
}

.trade-center {
  min-height: 0;
}

.trade-market-row:hover {
  background: #2b3139;
}

.trade-market-row--active {
  background: #2b3139;
  border-left: 2px solid #f0b90b;
}

.trade-orderbook {
  max-height: 360px;
  overflow-y: auto;
}

.omnl-app-header {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
