/* Validateur de FEC (092-fec-check.php). */
.budgetic-fec-check {
  margin: 28px 0 40px;
}

.budgetic-fec-check input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.budgetic-fec-check .bfc-drop {
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 44px 20px;
  border: 2px dashed var(--budgetic-line, #dfe6e8);
  border-radius: 16px;
  background: var(--budgetic-soft, #f3f7f6);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.budgetic-fec-check .bfc-drop:hover,
.budgetic-fec-check .bfc-drop.is-over,
.budgetic-fec-check input[type="file"]:focus-visible + .bfc-drop {
  border-color: var(--budgetic-accent, #167565);
  background: var(--budgetic-paper, #fff);
}

.budgetic-fec-check .bfc-drop__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--budgetic-ink, #071338);
}

.budgetic-fec-check .bfc-drop__sub,
.budgetic-fec-check .bfc-privacy {
  color: var(--budgetic-muted, #526078);
}

.budgetic-fec-check .bfc-privacy {
  margin: 10px 0 0;
  font-size: 0.9rem;
}

.budgetic-fec-check .bfc-progress {
  height: 6px;
  margin-top: 18px;
  border-radius: 3px;
  background: var(--budgetic-line, #dfe6e8);
  overflow: hidden;
}

.budgetic-fec-check .bfc-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--budgetic-accent, #167565);
  transition: width 0.2s;
}

.budgetic-fec-check .bfc-output {
  scroll-margin-top: 90px;
}

.budgetic-fec-check .bfc-verdict {
  margin: 24px 0 4px;
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: 700;
}

.budgetic-fec-check .bfc-verdict.is-ok {
  background: #e3f3ee;
  color: #0d594d;
}

.budgetic-fec-check .bfc-verdict.is-error {
  background: #fbe9e5;
  color: #8f2d18;
}

.budgetic-fec-check .bfc-name {
  margin: 8px 0 0;
  color: var(--budgetic-muted, #526078);
}

.budgetic-fec-check .bfc-name.is-warning {
  color: #8a5a00;
}

.budgetic-fec-check .bfc-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
  margin: 18px 0 0;
}

.budgetic-fec-check .bfc-stats div {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--budgetic-line, #dfe6e8);
  border-radius: 12px;
}

.budgetic-fec-check .bfc-stats dt {
  font-size: 0.8rem;
  color: var(--budgetic-muted, #526078);
}

.budgetic-fec-check .bfc-stats dd {
  margin: 4px 0 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.budgetic-fec-check .bfc-stats--key dd {
  font-size: 1.3rem;
  color: var(--budgetic-accent-dark, #0d594d);
}

.budgetic-fec-check .bfc-table {
  overflow-x: auto;
}

.budgetic-fec-check .bfc-table td {
  vertical-align: top;
}

.budgetic-fec-check .bfc-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.budgetic-fec-check tr.is-error .bfc-tag {
  background: #fbe9e5;
  color: #8f2d18;
}

.budgetic-fec-check tr.is-warning .bfc-tag {
  background: #fdf1d8;
  color: #8a5a00;
}

.budgetic-fec-check tr.is-info .bfc-tag {
  background: var(--budgetic-soft, #f3f7f6);
  color: var(--budgetic-muted, #526078);
}
