/*
 * Zestia OS internal light-surface contract.
 *
 * This is deliberately limited to large reading/work surfaces in Negocio.
 * Compact actions, selected states, badges, modals and technical media/code
 * panes may still use a dark high-contrast treatment.
 */

body[data-zestia-os-surface="light"] .admin-workspace__header {
  background: linear-gradient(120deg, #ffffff 0%, #eef8f6 100%) !important;
  border: 1px solid #d8e4ea !important;
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.05) !important;
  color: #172033 !important;
}

body[data-zestia-os-surface="light"] .admin-workspace__header :where(h1, h2, p) {
  color: #172033 !important;
}

body[data-zestia-os-surface="light"] .admin-workspace__header p {
  color: #5d6b7d !important;
}

body[data-zestia-os-surface="light"] .admin-workspace__header .section-kicker {
  color: #0f766e !important;
}

body[data-zestia-os-surface="light"] .admin-workspace__header .ghost-button {
  background: #ffffff !important;
  border-color: #cbd7e4 !important;
  color: #253247 !important;
}

body[data-zestia-os-surface="light"] .stock-console .stock-hero {
  background: linear-gradient(120deg, #ffffff 0%, #eef9f5 100%) !important;
  border-color: #d7e5df !important;
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.05) !important;
  color: #172033 !important;
}

body[data-zestia-os-surface="light"] .stock-console .stock-hero h1 {
  color: #172033 !important;
}

body[data-zestia-os-surface="light"] .stock-console .stock-hero > div > p:not(.eyebrow) {
  color: #5d6b7d !important;
}

body[data-zestia-os-surface="light"] .stock-console .stock-hero .eyebrow {
  color: #0f766e !important;
}

body[data-zestia-os-surface="light"] .stock-console .stock-hero__actions .ghost-button {
  background: #ffffff !important;
  border-color: #cbd7e4 !important;
  color: #253247 !important;
}

body[data-zestia-os-surface="light"].app-frame .telephony-console .voice-agent-card {
  background: linear-gradient(135deg, #ffffff 0%, #eef6ff 100%) !important;
  border-color: #cfdeed !important;
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.06) !important;
  color: #172033 !important;
}

body[data-zestia-os-surface="light"].app-frame .telephony-console .voice-agent-card :where(h1, p) {
  color: #172033 !important;
}

body[data-zestia-os-surface="light"].app-frame .telephony-console .voice-agent-card > header p,
body[data-zestia-os-surface="light"].app-frame .telephony-console .voice-agent-card__health {
  color: #5d6b7d !important;
}

body[data-zestia-os-surface="light"].app-frame .telephony-console .voice-agent-card blockquote {
  background: #ffffff !important;
  border-color: #d8e3ee !important;
  color: #334155 !important;
}

body[data-zestia-os-surface="light"].app-frame .telephony-console .voice-agent-card__title span {
  background: #e8f1ff !important;
  border-color: #bdd2f2 !important;
  color: #245ca6 !important;
}

body[data-zestia-os-surface="light"].app-frame .telephony-console .voice-status-pill.is-online {
  background: #dcfce7 !important;
  border-color: #bbf7d0 !important;
  color: #166534 !important;
}

body[data-zestia-os-surface="light"].app-frame .telephony-console .voice-status-pill.is-review {
  background: #fff7df !important;
  border-color: #f1d18d !important;
  color: #8a4b08 !important;
}

body[data-zestia-os-surface="light"].app-frame .telephony-console .voice-status-pill.is-offline {
  background: #fff1f2 !important;
  border-color: #fecdd3 !important;
  color: #9f1239 !important;
}

body[data-zestia-os-surface="light"] .totp-hero {
  background: linear-gradient(135deg, #ffffff 0%, #eef6ff 100%) !important;
  border: 1px solid #d6e2ef !important;
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.06) !important;
  color: #172033 !important;
}

body[data-zestia-os-surface="light"] .totp-hero :where(h1, p) {
  color: #172033 !important;
}

body[data-zestia-os-surface="light"] .totp-hero p {
  color: #5d6b7d !important;
}

body[data-zestia-os-surface="light"] .totp-status {
  background: #ffffff !important;
  border-color: #cfdae6 !important;
  color: #253247 !important;
}

body[data-zestia-os-surface="light"] .totp-status small {
  color: #64748b !important;
}

body[data-zestia-os-surface="light"].app-frame :where(.rush-row--head, .future-order-row--head) {
  background: #eef3f8 !important;
  border-color: #d6e0ea !important;
  color: #253247 !important;
}

body[data-zestia-os-surface="light"].app-frame :where(.rush-row--head, .future-order-row--head) :where(strong, span, small) {
  color: #425168 !important;
}

body[data-zestia-os-surface="light"].app-frame .future-order-group__head {
  background: #f3f7fa !important;
  border-bottom-color: #dce5ed !important;
  color: #253247 !important;
}

body[data-zestia-os-surface="light"].app-frame .future-order-group__head span {
  color: #64748b !important;
}

body[data-zestia-os-surface="light"] th,
body[data-zestia-os-surface="light"] .ledger-table th {
  background: #eef3f8 !important;
  border-bottom: 1px solid #d6e0ea !important;
  color: #334155 !important;
}

body[data-zestia-os-surface="light"] .offer-exclusive-rule {
  background: linear-gradient(150deg, #edfaf7 0%, #ffffff 100%) !important;
  border-color: #a9ded3 !important;
  color: #172033 !important;
}

body[data-zestia-os-surface="light"] .offer-exclusive-rule .section-kicker {
  color: #0f766e !important;
}

body[data-zestia-os-surface="light"] .offer-exclusive-rule > p,
body[data-zestia-os-surface="light"] .offer-exclusive-rule small {
  color: #5d6b7d !important;
}

body[data-zestia-os-surface="light"] .offer-exclusive-rule > div {
  background: #ffffff !important;
  border-color: #d7e5e1 !important;
}

body[data-zestia-os-surface="light"] .offer-exclusive-rule i {
  background: #d7f5ed !important;
  color: #0f766e !important;
}

@media (max-width: 720px) {
  body[data-zestia-os-surface="light"] :where(.admin-workspace__header, .stock-hero, .totp-hero) {
    min-width: 0;
  }
}
