/* Pivoteka ERP 2.31.0.127 — MAX / agents readability.
   2.31.0.124 used a .max-agents-list ancestor that is not present in the
   current renderAgents() markup. These selectors target the actual cards. */

/* MAX page heading / fallback block */
body #screen > .row-card.card .section-title,
body #screen > .row-card.card .field-line__label,
body #screen > .row-card.card .detail-row,
body #screen > .row-card.card .detail-row b {
  color: #1d3550 !important;
  -webkit-text-fill-color: #1d3550 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}
body #screen > .row-card.card .section-subtitle {
  color: #607891 !important;
  -webkit-text-fill-color: #607891 !important;
  opacity: 1 !important;
}

/* Supplier cards on MAX / agents. */
body #screen .agent-supplier-card {
  color: #1d3550 !important;
  -webkit-text-fill-color: #1d3550 !important;
  opacity: 1 !important;
  filter: none !important;
  text-shadow: none !important;
  background: #ffffff !important;
  border-color: #d8e3ee !important;
}
body #screen .agent-supplier-card > .row-card__header .row-card__title,
body #screen .agent-supplier-card > .row-card__header h3.row-card__title {
  color: #172b45 !important;
  -webkit-text-fill-color: #172b45 !important;
  opacity: 1 !important;
  font-weight: 850 !important;
  text-shadow: none !important;
}
body #screen .agent-supplier-card > .row-card__header .row-card__meta {
  color: #617890 !important;
  -webkit-text-fill-color: #617890 !important;
  opacity: 1 !important;
}

/* Summary tiles. */
body #screen .agent-supplier-card .mini-summary-card {
  background: #f8fbf9 !important;
  border-color: #d8e5df !important;
  opacity: 1 !important;
  filter: none !important;
}
body #screen .agent-supplier-card .mini-summary-card .field-line__label,
body #screen .agent-supplier-card .field-line__label {
  color: #314b66 !important;
  -webkit-text-fill-color: #314b66 !important;
  opacity: 1 !important;
  font-weight: 800 !important;
}
body #screen .agent-supplier-card .mini-summary-card__value {
  color: #0f3328 !important;
  -webkit-text-fill-color: #0f3328 !important;
  opacity: 1 !important;
  font-weight: 900 !important;
}
body #screen .agent-supplier-card .mini-summary-card .row-card__meta {
  color: #6a7f95 !important;
  -webkit-text-fill-color: #6a7f95 !important;
  opacity: 1 !important;
}

/* Expanded agent and invite cards. */
body #screen .agent-supplier-card .agent-card,
body #screen .agent-supplier-card .invite-card {
  background: #ffffff !important;
  border-color: #d8e2ec !important;
  color: #1d3550 !important;
  -webkit-text-fill-color: #1d3550 !important;
  opacity: 1 !important;
  filter: none !important;
  text-shadow: none !important;
}
body #screen .agent-supplier-card .agent-card .row-card__title,
body #screen .agent-supplier-card .invite-card .row-card__title {
  color: #172b45 !important;
  -webkit-text-fill-color: #172b45 !important;
  opacity: 1 !important;
  font-weight: 850 !important;
}
body #screen .agent-supplier-card .agent-card .row-card__meta,
body #screen .agent-supplier-card .invite-card .row-card__meta,
body #screen .agent-supplier-card .mono {
  color: #5f758d !important;
  -webkit-text-fill-color: #5f758d !important;
  opacity: 1 !important;
}

/* Do not let generic disabled/light-theme rules wash out MAX names. */
body #screen .agent-supplier-card[aria-disabled="false"],
body #screen .agent-supplier-card:not([aria-disabled="true"]),
body #screen .agent-supplier-card:not([aria-disabled="true"]) * {
  text-shadow: none !important;
}

/* Pivoteka ERP 2.31.0.130 — Infrastructure / 1C agents light-theme readability. */
body #screen .infra-summary-grid,
body #screen .infra-enrollment-card,
body #screen .infra-computer,
body #screen .infra-computer.card {
  color:#172033 !important;
  -webkit-text-fill-color:#172033 !important;
  opacity:1 !important;
  filter:none !important;
  text-shadow:none !important;
}
body #screen .infra-computer {
  background:#fff !important;
  border-color:#d9e3ed !important;
}
body #screen .infra-computer__title h3,
body #screen .infra-columns h4,
body #screen .infra-connection > b,
body #screen .infra-tasks summary,
body #screen .infra-configurator summary,
body #screen .infra-next-step,
body #screen .infra-next-step span {
  color:#172b45 !important;
  -webkit-text-fill-color:#172b45 !important;
  opacity:1 !important;
  text-shadow:none !important;
}
body #screen .infra-computer__title p,
body #screen .infra-computer__meta,
body #screen .infra-computer__meta span,
body #screen .infra-computer__meta b,
body #screen .infra-computer__state small,
body #screen .infra-task small {
  color:#5b7087 !important;
  -webkit-text-fill-color:#5b7087 !important;
  opacity:1 !important;
}
body #screen .infra-computer__meta b {
  color:#31475e !important;
  -webkit-text-fill-color:#31475e !important;
  font-weight:800 !important;
}
body #screen .infra-columns {
  border-top-color:#e3e9f0 !important;
}
body #screen .infra-status-pill {
  color:#52677e !important;
  -webkit-text-fill-color:#52677e !important;
  background:#edf2f7 !important;
  opacity:1 !important;
}
body #screen .status-online .infra-status-pill {
  color:#157044 !important;
  -webkit-text-fill-color:#157044 !important;
  background:#e8f8ef !important;
}
body #screen .status-error .infra-status-pill {
  color:#b42318 !important;
  -webkit-text-fill-color:#b42318 !important;
  background:#fff0ef !important;
}
body #screen .infra-chip {
  color:#40566d !important;
  -webkit-text-fill-color:#40566d !important;
  background:#eef2f6 !important;
  opacity:1 !important;
  font-weight:750 !important;
}
body #screen .infra-chip.is-ok {
  color:#167247 !important;
  -webkit-text-fill-color:#167247 !important;
  background:#eaf8f0 !important;
}
body #screen .infra-chip.is-warn {
  color:#946200 !important;
  -webkit-text-fill-color:#946200 !important;
  background:#fff6dd !important;
}
body #screen .infra-chip.is-error {
  color:#b42318 !important;
  -webkit-text-fill-color:#b42318 !important;
  background:#fff0ef !important;
}
body #screen .infra-connection {
  background:#f7f9fc !important;
  border:1px solid #e1e8f0 !important;
  color:#172033 !important;
  -webkit-text-fill-color:#172033 !important;
  opacity:1 !important;
}
body #screen .infra-connection > b {
  font-weight:850 !important;
  color:#172b45 !important;
  -webkit-text-fill-color:#172b45 !important;
}
body #screen .infra-connection > span,
body #screen .infra-connection > small,
body #screen .infra-connection span,
body #screen .infra-connection small {
  color:#5b7087 !important;
  -webkit-text-fill-color:#5b7087 !important;
  opacity:1 !important;
}
body #screen .infra-connection--error > small,
body #screen .infra-connection--error > span {
  color:#a72c25 !important;
  -webkit-text-fill-color:#a72c25 !important;
}
body #screen .infra-connection details summary {
  color:#344b63 !important;
  -webkit-text-fill-color:#344b63 !important;
  opacity:1 !important;
}
body #screen .infra-configurator {
  background:#f8fafc !important;
  border-color:#dbe5ef !important;
  color:#172033 !important;
}
body #screen .infra-config-grid label,
body #screen .infra-config-grid .infra-check {
  color:#405970 !important;
  -webkit-text-fill-color:#405970 !important;
  opacity:1 !important;
  font-weight:750 !important;
}
body #screen .infra-config-grid input,
body #screen .infra-config-grid select {
  background:#fff !important;
  color:#172033 !important;
  -webkit-text-fill-color:#172033 !important;
  border-color:#cad6e3 !important;
  opacity:1 !important;
}
body #screen .infra-config-grid option {
  background:#fff !important;
  color:#172033 !important;
}
body #screen .infra-tasks summary {
  color:#405970 !important;
  -webkit-text-fill-color:#405970 !important;
}
body #screen .infra-task {
  background:#f7f9fc !important;
  color:#293f56 !important;
  -webkit-text-fill-color:#293f56 !important;
}
body #screen .infra-next-step {
  background:#f8fafc !important;
  border-color:#dce5ee !important;
}
