/*
 * Shared high-contrast status labels for the CRM and every installed module.
 * This file is loaded after module styles so light theme overrides cannot
 * leave pale text on pale backgrounds.
 */

body .label.label-default,
body span.label-default {
  background-color: #475569 !important;
  border-color: #334155 !important;
  color: #ffffff !important;
}

body .label.label-primary,
body span.label-primary {
  background-color: #1d4ed8 !important;
  border-color: #1e40af !important;
  color: #ffffff !important;
}

body .label.label-success,
body span.label-success {
  background-color: #166534 !important;
  border-color: #14532d !important;
  color: #ffffff !important;
}

body .label.label-info,
body span.label-info {
  background-color: #075985 !important;
  border-color: #0c4a6e !important;
  color: #ffffff !important;
}

body .label.label-warning,
body span.label-warning {
  background-color: #92400e !important;
  border-color: #78350f !important;
  color: #ffffff !important;
}

body .label.label-danger,
body span.label-danger {
  background-color: #b91c1c !important;
  border-color: #991b1b !important;
  color: #ffffff !important;
}

body a.label-default:hover,
body a.label-default:focus {
  background-color: #334155 !important;
}

body a.label-primary:hover,
body a.label-primary:focus {
  background-color: #1e40af !important;
}

body a.label-success:hover,
body a.label-success:focus {
  background-color: #14532d !important;
}

body a.label-info:hover,
body a.label-info:focus {
  background-color: #0c4a6e !important;
}

body a.label-warning:hover,
body a.label-warning:focus {
  background-color: #78350f !important;
}

body a.label-danger:hover,
body a.label-danger:focus {
  background-color: #991b1b !important;
}

body .label a,
body .label i,
body .label .fa,
body .label .fas,
body .label .far,
body .label .fab {
  color: inherit !important;
}

body .single-ticket-status-label {
  background-color: #475569 !important;
  border-color: #334155 !important;
  color: #ffffff !important;
}

/* Core record-status chips styled separately by the office theme. */
body span.project-status-3,
body span[task-status-table="1"],
body span.proposal-status-5 {
  background-color: #92400e !important;
  border-color: #78350f !important;
  color: #ffffff !important;
}

body span.project-status-4,
body span[task-status-table="2"],
body span[task-status-table="5"] {
  background-color: #166534 !important;
  border-color: #14532d !important;
  color: #ffffff !important;
}

body span.project-status-2,
body span[task-status-table="4"] {
  background-color: #1d4ed8 !important;
  border-color: #1e40af !important;
  color: #ffffff !important;
}

body span.project-status-5,
body span.invoice-status-5 {
  background-color: #b91c1c !important;
  border-color: #991b1b !important;
  color: #ffffff !important;
}

body span.project-status-1,
body span.proposal-status-1,
body span.proposal-status-6,
body span.invoice-status-6,
body span[task-status-table="3"] {
  background-color: #475569 !important;
  border-color: #334155 !important;
  color: #ffffff !important;
}
