/* Reports (views/reports.js): two compact boxes (Download, Nightly email), then one row a day
   with its counts per length and its file. Small type, as the rest of Orbit's monitoring pages. */
.rep { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; font-size: 13px; }
.rep .panel { padding: 10px 12px; border-radius: 8px; }
.rep .panel-head { margin: 0 0 8px; }
.rep .panel-head h2 { font-size: 15px; }
.rep .panel-sub { font-size: 12px; }

.rep-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 10px; margin: 0 0 10px; }
.rep-card { min-width: 0; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); }
.rep-card-edit { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.rep-card h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 6px; font-size: 13px; font-weight: 700; }
.rep-edit { margin-left: auto; font-size: 12px; }
.rep-badge { padding: 1px 7px; border-radius: 9px; font-size: 11px; font-weight: 700; }
.rep-badge.on { background: var(--ok-pale); color: var(--ok); }
.rep-badge.off { background: var(--off-pale); color: var(--slate); }
.rep-line { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 2px 8px; align-items: baseline; padding: 3px 0; }
.rep-k { color: var(--slate); font-size: 12px; font-weight: 700; }
.rep-v { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; min-width: 0; overflow-wrap: anywhere; }
.rep-check { display: inline-flex; align-items: center; gap: 5px; min-height: 26px; font-size: 13px; cursor: pointer; white-space: nowrap; }
.rep-check input { width: 15px; height: 15px; margin: 0; }
.rep-quick { display: inline-flex; gap: 10px; margin-left: 2px; font-size: 12px; }
.rep-quick .btn-link { font-size: 12px; }
.rep-input { width: min(100%, 420px); min-height: 30px; padding: 0 8px; border: 1px solid var(--rule-btn); border-radius: 6px; background: var(--paper); color: var(--ink); font: inherit; }
.rep-note { margin: 4px 0 0; color: var(--slate); font-size: 12px; }
.rep-btns-left { justify-content: flex-start; margin-top: 6px; }

.rep-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rep-table th, .rep-table td { padding: 5px 10px 5px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: middle; white-space: nowrap; }
.rep-table thead th { color: var(--slate); font-size: 12px; font-weight: 700; }
.rep-table th.num, .rep-table td.num { text-align: right; }
.rep-table tbody th { font-weight: 700; }
.rep-on { color: var(--ink); font-weight: 700; }
.rep-table td.num:not(.rep-on):not(.rep-file) { color: var(--slate); }
.rep-file { font-weight: 700; }
.rep-calls { color: var(--slate); }
.rep-wait { color: var(--slate); }
.rep-bad { color: var(--bad); white-space: normal; }
.rep-mail { display: block; color: var(--slate); font-size: 11px; font-weight: 400; }
.rep-table tr.rep-all th, .rep-table tr.rep-all td { border-bottom: 2px solid var(--ink); background: var(--off-pale); }
.rep-table td.rep-na { color: var(--slate); font-size: 11px; }
.rep-table tr.rep-all th .rep-mail { white-space: normal; min-width: 9em; }
.rep-act { width: 1%; padding-right: 0; }
.rep-btns { display: flex; justify-content: flex-end; gap: 6px; }
.rep .btn { min-height: 30px; padding: 0 10px; font-size: 13px; }

/* A phone: the day, what is in your file, and the file. */
@media (max-width: 719px) {
  .rep-cards { grid-template-columns: minmax(0, 1fr); }
  .rep-table th:nth-child(n+2):nth-child(-n+6), .rep-table td.num:not(.rep-file), .rep-table .rep-calls { display: none; }
  .rep-table th, .rep-table td { padding-right: 6px; }
  .rep-btns { flex-direction: column; align-items: stretch; }
  .rep .btn { padding: 0 8px; }
}

/* Save, under the Download box's ticks. */
.rep-save { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--rule); }
.rep-save .rep-note { margin: 0; flex: 1 1 220px; }
.rep-unsaved { color: var(--warn-text); font-weight: 700; }
