/* dmarcboard app — failures module styles (uses tokens.css variables). */
.fl-intro p { max-width: 78ch; }
.fl-intro > * + * { margin-top: 12px; }
.fl-privacy { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--pass-bd); background: var(--pass-bg); border-radius: var(--r-sm); }
.fl-privacy .i { color: var(--pass); flex: none; margin-top: 2px; }
.fl-privacy p { margin: 0; }

.fl-steps { margin: 0; padding-left: 22px; }
.fl-steps > li + li { margin-top: 16px; }
.fl-steps > li > p { margin: 2px 0 8px; }

/* Daily bars */
.fl-chart { margin-top: 12px; }
.fl-chart-axis, .fl-chart-x { display: flex; justify-content: space-between; gap: 12px; }
.fl-bars { display: flex; align-items: flex-end; gap: 2px; height: 180px; padding: 6px 0 0; border-bottom: 1px solid var(--chart-axis);
  background-image: linear-gradient(to bottom, var(--chart-grid) 1px, transparent 1px); background-size: 100% 25%; }
.fl-col { flex: 1 1 0; min-width: 1px; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.fl-bar { display: block; width: 100%; max-width: 28px; background: var(--chart-fail); border-radius: 2px 2px 0 0; }
.fl-bar-zero { background: transparent; }
.fl-col:hover .fl-bar { filter: brightness(.85); }
.fl-chart-x { margin-top: 6px; }
.fl-chart .chart-table { margin-top: 12px; }

/* Breakdown by failure type */
.fl-type-list { list-style: none; margin: 0; padding: 0; }
.fl-type { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; border-top: 1px solid var(--border); }
.fl-type:first-child { border-top: 0; }
.fl-type-main { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.fl-type-n { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 3ch; text-align: right; }

/* Reports table */
.fl-types { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.fl-table td { vertical-align: top; }
.fl-src .mono { font-size: 13px; }
.fl-del-sm { display: none; margin-top: 6px; }
.fl-more { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 24px; border-top: 1px solid var(--border); }
.fl-more[hidden], .fl-more [hidden] { display: none; }

@media (max-width: 640px) {
  .fl-bars { height: 140px; gap: 1px; }
  .fl-type { padding: 12px 16px; }
  .fl-steps { padding-left: 18px; }
  .fl-del-sm { display: block; }
  .fl-more { padding: 12px 16px; }
}

/* Domain names wrap at dots/hyphens rather than mid-label where possible. */
.fl-table td.break, .fl-table .fl-src .break { word-break: normal; overflow-wrap: break-word; }

/* Phones: each report becomes a compact two-column card (time + source | failure type + result). */
@media (max-width: 640px) {
  .fl-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .fl-table, .fl-table tbody { display: block; }
  .fl-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
  .fl-table td:not(.hide-sm):not(.hide-md) { display: block; padding: 0; border: 0; }
  .fl-table td.fl-time { grid-column: 1; grid-row: 1; }
  .fl-table td.fl-src { grid-column: 1; grid-row: 2; }
  .fl-table td.fl-typecell { grid-column: 2; grid-row: 1 / span 2; text-align: right; }
  .fl-typecell .fl-types { justify-content: flex-end; }
  .fl-hour { display: inline; margin-left: 6px; }
}
/* Keep flush card heads flush on phones (the shared mobile .card-head padding would indent them). */
.card-head.card-head-flush.fl-flush { padding: 0 0 4px; }
