#page-reports-monthly {
  flex-direction: column;
  gap: 14px;
}

#page-reports-monthly.active {
  display: flex;
}

.report-header {
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

.report-controls {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.report-controls .form-group {
  margin-bottom: 0;
  min-width: 220px;
}

#monthly-report-bed-capacity {
  min-width: 120px;
}

.report-controls .form-control {
  min-height: 42px;
}

.report-controls .btn {
  min-height: 42px;
  padding-top: 0;
  padding-bottom: 0;
}

.report-shared-filter-note {
  align-self: flex-end;
  margin-bottom: 6px;
  padding: 6px 10px;
  border: 1px dashed var(--slate-300);
  border-radius: 999px;
  background: var(--slate-50);
  color: var(--slate-600);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.report-page-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy-800);
  letter-spacing: 0.2px;
}

.report-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.report-table th,
.report-table td {
  border: 1px solid var(--slate-300);
  padding: 8px 10px;
  vertical-align: top;
}

.report-table th {
  background: var(--navy-800);
  color: var(--white);
  font-weight: 700;
  text-align: left;
}

.report-table tbody tr:nth-child(even) td {
  background: var(--slate-50);
}

.report-table tfoot th {
  background: var(--slate-200);
  color: var(--navy-900);
}

.report-table-compact td,
.report-table-compact th {
  font-size: 11.5px;
}

.report-kv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.report-kv-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--slate-50);
}

.report-kv-item span {
  color: var(--slate-600);
  font-size: 12px;
}

.report-kv-item strong {
  color: var(--navy-800);
  font-size: 13px;
  font-family: 'IBM Plex Mono', monospace;
}

.report-note {
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--slate-500);
}

@media (max-width: 1100px) {
  .report-grid-2 {
    grid-template-columns: 1fr;
  }

  .report-controls {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .report-header {
    align-items: stretch;
  }

  .report-controls .form-group {
    min-width: 100%;
  }

  .report-shared-filter-note {
    min-width: 100%;
    white-space: normal;
    border-radius: 8px;
  }

  .report-controls .btn {
    min-width: calc(50% - 5px);
    justify-content: center;
  }
}

@media print {
  .sidebar,
  .topbar,
  .no-print,
  #monthly-report-refresh-btn,
  #monthly-report-print-btn,
  #expired-report-refresh-btn,
  #expired-report-print-btn {
    display: none !important;
  }

  .main-content {
    margin: 0 !important;
    padding: 0 !important;
  }

  .page {
    display: none !important;
  }

  #page-reports-monthly.active {
    display: flex !important;
    padding: 0;
    gap: 8px;
  }

  .card {
    box-shadow: none !important;
    border: 1px solid #b9c3d1 !important;
  }

  .report-table th,
  .report-table td {
    border-color: #9aa8bd !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
