/* ── Atendimentos ──────────────────────────────────────────────────────── */
.stats { grid-template-columns: repeat(4, 1fr); }
.month-bar { display: flex; align-items: center; justify-content: space-between; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; }
.month-nav-group { display: flex; align-items: center; gap: 10px; }
.month-label { font-family: var(--mono); font-size: 14px; font-weight: 500; min-width: 150px; text-align: center; }
.nav-btn { width: 32px; height: 32px; border-radius: 7px; border: 1px solid var(--border); background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; transition: all .12s; }
.nav-btn:hover { background: var(--surface2); color: var(--text); border-color: var(--border2); }
.today-btn { font-family: var(--mono); font-size: 11px; padding: 6px 12px; border-radius: 6px; border: 1px solid var(--border); background: transparent; color: var(--muted); cursor: pointer; transition: all .12s; }
.today-btn:hover { background: var(--surface2); color: var(--text); }
.status-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.dot-green { background: #2d7a3a; }
.dot-amber { background: #b07a00; animation: blink 1s infinite; }
.dot-red   { background: #c0392b; }
@keyframes blink { 0%,100%{ opacity:1 } 50%{ opacity:.3 } }
.next-update { font-family: var(--mono); font-size: 11px; color: var(--muted2); display: flex; align-items: center; gap: 5px; }
.countdown { font-weight: 500; color: var(--muted); }
.prog-wrap { height: 2px; background: var(--border); border-radius: 1px; margin-bottom: 16px; overflow: hidden; }
.prog-bar { height: 100%; background: var(--green); border-radius: 1px; transition: width 1s linear; }
.table-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; }
thead th { background: var(--surface2); padding: 10px 16px; text-align: left; font-size: 11px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--border); }
th:nth-child(1) { width: 100px; }
th:nth-child(2) { width: auto; }
th:nth-child(3) { width: 140px; }
th:nth-child(4) { width: 100px; text-align: right; }
th:nth-child(5) { width: 145px; text-align: right; }
tbody tr { border-bottom: 1px solid var(--border); transition: background .1s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--surface2); }
td { padding: 12px 16px; vertical-align: middle; }
td.date { font-family: var(--mono); font-size: 12px; color: var(--muted); }
td.valor { text-align: right; font-family: var(--mono); font-size: 13px; font-weight: 500; }
td.repasse { text-align: right; font-family: var(--mono); font-size: 13px; color: var(--green); white-space: nowrap; }
td.repasse.na { color: var(--muted2); font-size: 12px; white-space: nowrap; }
.today-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-right: 5px; vertical-align: middle; }
.empty-row td { text-align: center; padding: 48px; color: var(--muted); font-size: 13px; }

@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stats .stat:last-child { grid-column: 1 / -1; }
  .stat { padding: 12px 14px; }
  .month-bar { padding: 10px 12px; }
  .month-label { font-size: 13px; min-width: 110px; }
  .status-bar { flex-direction: column; align-items: flex-start; gap: 4px; }
  .next-update { font-size: 10px; }
  .table-card { border-radius: 8px; overflow-x: auto; }
  table { table-layout: auto; min-width: 480px; }
  th, td { padding: 9px 10px; font-size: 12px; }
  th:nth-child(1) { width: 80px; }
  th:nth-child(5) { width: 80px; }
}
