/* Boolean / tri-state word pills (GLANCE v2). Replaces circle check / X chips. */

.ec-bool-status {
  --ec-bool-status-check-bg: #dcfce7;
  --ec-bool-status-check-fg: #15803d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.375rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  vertical-align: middle;
  flex-shrink: 0;
  line-height: 1.2;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ec-bool-status--yes,
.ec-bool-status--active {
  background: var(--ec-bool-status-check-bg);
  color: var(--ec-bool-status-check-fg);
}

.ec-bool-status--no {
  background: #fee2e2;
  color: #b91c1c;
}

.ec-bool-status--empty {
  background: #f1f5f9;
  color: #94a3b8;
  text-transform: none;
  font-weight: 600;
}

.ec-bool-status--warning {
  background: #ffedd5;
  color: #c2410c;
}

.ec-bool-status--info {
  background: #dbeafe;
  color: #1d4ed8;
}

.ec-bool-status--lg {
  min-height: 1.5rem;
  padding: 0.15rem 0.55rem;
  font-size: 0.72rem;
}

.ec-bool-status--xl {
  min-height: 1.75rem;
  padding: 0.18rem 0.65rem;
  font-size: 0.8125rem;
}

.ec-bool-status--2xl {
  min-height: 2rem;
  padding: 0.22rem 0.75rem;
  font-size: 0.875rem;
}

table.model-list td .ec-bool-status:not(.ec-bool-status--lg):not(.ec-bool-status--xl):not(.ec-bool-status--2xl) {
  min-height: 1.5rem;
  padding: 0.14rem 0.5rem;
  font-size: 0.72rem;
}

.ec-bool-status-row {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

/* Legacy Font Awesome check / minus / plus circles → word pills in tables */
table td .fa.fa-check-circle,
table td .fa.fa-minus-circle,
table td .fa.fa-plus-circle,
table td .fa.fa-times-circle,
table td .fa.fa-check,
.access-checkbox-column .fa.fa-check-circle,
.access-checkbox-column .fa.fa-minus-circle,
.access-checkbox-column .fa.fa-times-circle,
.access-checkbox-column .fa.fa-check,
td.text-center .fa.fa-check-circle,
td.text-center .fa.fa-minus-circle,
span.fa.fa-check-circle,
span.fa.fa-minus-circle,
.icon-minus-sign:not(.ec-bool-status),
.icon-ok-circle:not(.ec-bool-status),
.icon-plus-sign:not(.ec-bool-status) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.375rem;
  width: auto;
  height: auto;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  vertical-align: middle;
  line-height: 1.2;
  font-size: 0 !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

table.model-list td .fa.fa-check-circle,
table.model-list td .fa.fa-minus-circle,
table.model-list td .fa.fa-plus-circle,
table.model-list td .fa.fa-times-circle,
table.model-list td .fa.fa-check {
  min-height: 1.5rem;
  padding: 0.14rem 0.5rem;
}

.icon-minus-sign .fa,
.icon-minus-sign .glyphicon,
.icon-ok-circle .fa,
.icon-ok-circle .glyphicon,
.icon-plus-sign .fa,
.icon-plus-sign .glyphicon {
  display: none;
}

.icon-minus-sign:not(.ec-bool-status) {
  background: #fee2e2;
  color: #b91c1c;
}

.icon-minus-sign:not(.ec-bool-status)::after {
  content: 'No';
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  color: #b91c1c;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.icon-ok-circle:not(.ec-bool-status) {
  background: var(--ec-bool-status-check-bg, #dcfce7);
  color: var(--ec-bool-status-check-fg, #15803d);
}

.icon-ok-circle:not(.ec-bool-status)::after {
  content: 'Yes';
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ec-bool-status-check-fg, #15803d);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.icon-plus-sign:not(.ec-bool-status) {
  background: var(--ec-bool-status-check-bg, #dcfce7);
  color: var(--ec-bool-status-check-fg, #15803d);
}

.icon-plus-sign:not(.ec-bool-status)::after {
  content: 'Yes';
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ec-bool-status-check-fg, #15803d);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

table td .fa.fa-check-circle::before,
table td .fa.fa-check::before,
.access-checkbox-column .fa.fa-check-circle::before,
.access-checkbox-column .fa.fa-check::before,
td.text-center .fa.fa-check-circle::before,
span.fa.fa-check-circle::before,
table.model-list td .fa.fa-check-circle::before,
table.model-list td .fa.fa-check::before,
table.model-list td .fa.fa-plus-circle::before,
table td .fa.fa-plus-circle::before,
.icon-ok-circle.fa::before {
  content: 'Yes' !important;
  font-family: inherit !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  color: var(--ec-bool-status-check-fg, #15803d) !important;
}

table td .fa.fa-minus-circle::before,
table td .fa.fa-times-circle::before,
.access-checkbox-column .fa.fa-minus-circle::before,
.access-checkbox-column .fa.fa-times-circle::before,
td.text-center .fa.fa-minus-circle::before,
span.fa.fa-minus-circle::before,
table.model-list td .fa.fa-minus-circle::before,
table.model-list td .fa.fa-times-circle::before,
.icon-minus-sign.fa::before {
  content: 'No' !important;
  font-family: inherit !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  color: #b91c1c !important;
}

table td .fa.fa-ban::before,
.access-checkbox-column .fa.fa-ban::before {
  content: 'Alert' !important;
  font-family: inherit !important;
  font-size: 0.62rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  color: #c2410c !important;
}

table td .fa.fa-check-circle,
table td .fa.fa-check,
.access-checkbox-column .fa.fa-check-circle,
.access-checkbox-column .fa.fa-check,
td.text-center .fa.fa-check-circle,
span.fa.fa-check-circle,
table td .fa.fa-plus-circle,
.icon-ok-circle:not(.ec-bool-status),
.icon-plus-sign:not(.ec-bool-status) {
  background: var(--ec-bool-status-check-bg, #dcfce7);
}

table td .fa.fa-minus-circle,
table td .fa.fa-times-circle,
.access-checkbox-column .fa.fa-minus-circle,
.access-checkbox-column .fa.fa-times-circle,
td.text-center .fa.fa-minus-circle,
span.fa.fa-minus-circle,
.icon-minus-sign:not(.ec-bool-status) {
  background: #fee2e2;
}

table td .fa.fa-ban,
.access-checkbox-column .fa.fa-ban {
  background: #ffedd5;
}

html.glance-v2-theme-dark .ec-bool-status--yes,
html.glance-v2-theme-dark .ec-bool-status--active {
  background: rgba(45, 212, 191, 0.15);
  color: #5eead4;
}

html.glance-v2-theme-dark .ec-bool-status--no {
  background: rgba(248, 113, 113, 0.15);
  color: #fca5a5;
}

html.glance-v2-theme-dark .ec-bool-status--empty {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
}

html.glance-v2-theme-dark .ec-bool-status--warning {
  background: rgba(251, 146, 60, 0.2);
  color: #fdba74;
}

html.glance-v2-theme-dark .ec-bool-status--info {
  background: rgba(96, 165, 250, 0.18);
  color: #93c5fd;
}

html.glance-v2-theme-dark table td .fa.fa-check-circle,
html.glance-v2-theme-dark table td .fa.fa-check,
html.glance-v2-theme-dark table td .fa.fa-plus-circle,
html.glance-v2-theme-dark .access-checkbox-column .fa.fa-check-circle,
html.glance-v2-theme-dark .access-checkbox-column .fa.fa-check {
  background: rgba(45, 212, 191, 0.15);
}

html.glance-v2-theme-dark table td .fa.fa-check-circle::before,
html.glance-v2-theme-dark table td .fa.fa-check::before,
html.glance-v2-theme-dark table td .fa.fa-plus-circle::before,
html.glance-v2-theme-dark .access-checkbox-column .fa.fa-check-circle::before,
html.glance-v2-theme-dark .access-checkbox-column .fa.fa-check::before {
  color: #5eead4 !important;
}

html.glance-v2-theme-dark table td .fa.fa-minus-circle,
html.glance-v2-theme-dark table td .fa.fa-times-circle,
html.glance-v2-theme-dark .access-checkbox-column .fa.fa-minus-circle,
html.glance-v2-theme-dark .access-checkbox-column .fa.fa-times-circle {
  background: rgba(248, 113, 113, 0.15);
}

html.glance-v2-theme-dark table td .fa.fa-minus-circle::before,
html.glance-v2-theme-dark table td .fa.fa-times-circle::before,
html.glance-v2-theme-dark .access-checkbox-column .fa.fa-minus-circle::before,
html.glance-v2-theme-dark .access-checkbox-column .fa.fa-times-circle::before {
  color: #fca5a5 !important;
}

p > .fa.fa-check-circle:first-child,
.validation-ok .fa.fa-check-circle {
  margin-right: 0.35rem;
}
