.obs-oc-page .obs-oc-section {
  margin-bottom: 2rem;
}

.obs-oc-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
  margin: 0 0 0.75rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.obs-oc-count {
  font-weight: 600;
  color: #64748b;
}

.obs-oc-table-wrap {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.obs-oc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.obs-oc-table th,
.obs-oc-table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.obs-oc-table th {
  font-weight: 600;
  background: #f8fafc;
  color: #475569;
}

.obs-oc-table tbody tr:last-child td {
  border-bottom: none;
}

.obs-oc-table tbody tr:hover {
  background: #f8fafc;
}

.obs-oc-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.obs-oc-badge-Open {
  background: #fef3c7;
  color: #b45309;
}

.obs-oc-badge-Closed {
  background: #d1fae5;
  color: #047857;
}

.obs-oc-empty {
  margin: 0;
  padding: 1.5rem;
  text-align: center;
  color: #64748b;
}

.obs-oc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.obs-oc-time-filter {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.obs-oc-time-filter-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary, #64748b);
}

.obs-oc-time-select {
  min-width: 140px;
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary, #0f172a);
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
}

.obs-oc-time-select:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ========== Dark theme – Observations Open vs Closed page ========== */
body.night-mode .obs-oc-section-title,
.night-mode .obs-oc-section-title {
  color: rgba(255, 255, 255, 0.98);
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

body.night-mode .obs-oc-count,
.night-mode .obs-oc-count {
  color: rgba(255, 255, 255, 0.75);
}

body.night-mode .obs-oc-table-wrap,
.night-mode .obs-oc-table-wrap {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

body.night-mode .obs-oc-table th,
body.night-mode .obs-oc-table td,
.night-mode .obs-oc-table th,
.night-mode .obs-oc-table td {
  border-bottom-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

body.night-mode .obs-oc-table th,
.night-mode .obs-oc-table th {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.95);
}

body.night-mode .obs-oc-table tbody tr:hover,
.night-mode .obs-oc-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.06);
}

body.night-mode .obs-oc-badge-Open,
.night-mode .obs-oc-badge-Open {
  background: rgba(248, 113, 113, 0.25);
  color: #fca5a5;
}

body.night-mode .obs-oc-badge-Closed,
.night-mode .obs-oc-badge-Closed {
  background: rgba(34, 197, 94, 0.25);
  color: #86efac;
}

body.night-mode .obs-oc-empty,
.night-mode .obs-oc-empty {
  color: rgba(255, 255, 255, 0.88);
}

body.night-mode .obs-oc-time-filter-label,
.night-mode .obs-oc-time-filter-label {
  color: rgba(255, 255, 255, 0.8);
}

body.night-mode .obs-oc-time-select,
.night-mode .obs-oc-time-select {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.95);
}

body.night-mode .obs-oc-time-select option,
.night-mode .obs-oc-time-select option {
  background: #3a3838;
  color: rgba(255, 255, 255, 0.95);
}
