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

.ec-bool-status {
  --ec-bool-status-check-bg: #CCEDEB;
  --ec-bool-status-check-fg: #00615B;
  --ec-bool-status-danger-bg: #fde8e3;
  --ec-bool-status-danger-fg: #E32900;
  --ec-bool-status-empty-bg: #F1F4F9;
  --ec-bool-status-empty-fg: #A7AAB2;
  --ec-bool-status-warn-bg: #fffce8;
  --ec-bool-status-warn-fg: #717379;
  --ec-bool-status-info-bg: #e8f8ff;
  --ec-bool-status-info-fg: #5D60FF;
  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: var(--ec-bool-status-danger-bg);
  color: var(--ec-bool-status-danger-fg);
}

.ec-bool-status--empty {
  background: var(--ec-bool-status-empty-bg);
  color: var(--ec-bool-status-empty-fg);
  text-transform: none;
  font-weight: 600;
}

.ec-bool-status--warning {
  background: var(--ec-bool-status-warn-bg);
  color: var(--ec-bool-status-warn-fg);
}

.ec-bool-status--info {
  background: var(--ec-bool-status-info-bg);
  color: var(--ec-bool-status-info-fg);
}

.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: var(--ec-bool-status-danger-bg);
  color: var(--ec-bool-status-danger-fg);
}

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

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

.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);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.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);
  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) !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: var(--ec-bool-status-danger-fg) !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: var(--ec-bool-status-warn-fg) !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);
}

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: var(--ec-bool-status-danger-bg);
}

table td .fa.fa-ban,
.access-checkbox-column .fa.fa-ban {
  background: var(--ec-bool-status-warn-bg);
}

html.glance-v2-theme-dark .ec-bool-status--yes,
html.glance-v2-theme-dark .ec-bool-status--active {
  background: rgba(0, 255, 193, 0.15);
  color: #00FFC1;
}

html.glance-v2-theme-dark .ec-bool-status--no {
  background: rgba(227, 41, 0, 0.15);
  color: #f5b8a8;
}

html.glance-v2-theme-dark .ec-bool-status--empty {
  background: rgba(167, 170, 178, 0.15);
  color: #A7AAB2;
}

html.glance-v2-theme-dark .ec-bool-status--warning {
  background: rgba(254, 234, 70, 0.2);
  color: #FEEA46;
}

html.glance-v2-theme-dark .ec-bool-status--info {
  background: rgba(53, 234, 255, 0.18);
  color: #35EAFF;
}

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(0, 255, 193, 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: #00FFC1 !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(227, 41, 0, 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: #f5b8a8 !important;
}

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