/* WEB03 R31: accessible, server-rendered monthly statistics. */
.r31-stats {
  margin: 1.5rem auto;
  max-width: 68rem;
  padding: 1rem;
  border: 1px solid #71717a;
  background: #fff;
  color: #18181b;
}

.r31-stats .r31-disclaimer {
  padding: .65rem;
  background: #fff4cf;
  color: #422006;
  border-left: 3px solid #a16207;
}

.r31-stats .r31-controls {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.r31-stats button {
  border: 2px solid #1d4ed8;
  background: #fff;
  color: #1e3a8a;
  padding: .45rem .8rem;
  cursor: pointer;
}

.r31-stats button[aria-pressed="true"] {
  background: #1e3a8a;
  color: #fff;
}

.r31-stats button:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 3px;
}

.r31-stats .r31-table {
  border-collapse: collapse;
  width: 100%;
  color: #18181b;
}

.r31-stats .r31-table caption {
  font-weight: bold;
  text-align: left;
  margin-bottom: .4rem;
}

.r31-stats .r31-table th,
.r31-stats .r31-table td {
  border-bottom: 1px solid #d4d4d8;
  padding: .45rem;
  text-align: left;
}

.r31-stats .r31-table progress {
  width: 100%;
  max-width: 30rem;
  height: 1.1rem;
  accent-color: #1d4ed8;
}

.r31-stats [hidden] {
  display: none !important;
}

/* Legacy controls are superseded by accessible R31 controls. */
#btnChartSwitchToPdf,
#btnChartSwitchToDownload {
  display: none !important;
}
