* {
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  margin: 0;
  background: #f3f5f9;
  color: #1e293b;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px;
}

h1 {
  margin-bottom: 6px;
}

header p {
  margin-top: 0;
  color: #475569;
}

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  background: #ffffff;
  border: 1px solid #dbe2ea;
  border-radius: 10px;
  padding: 14px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

.hidden {
  display: none !important;
}

input,
select,
button {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px;
  font-size: 14px;
}

button {
  cursor: pointer;
  background: #0f766e;
  color: #fff;
  border: 0;
}

.actions {
  display: flex;
  gap: 10px;
  align-items: end;
}

#resetBtn {
  background: #64748b;
}

.summary {
  margin: 16px 0;
  color: #334155;
  font-weight: 600;
}

.results {
  display: grid;
  gap: 14px;
}

.hospital-card {
  background: #fff;
  border: 1px solid #dbe2ea;
  border-radius: 10px;
  padding: 14px;
}

.hospital-card h2 {
  margin: 0 0 10px 0;
  font-size: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 8px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 14px;
}

th {
  color: #0f172a;
  background: #f8fafc;
}

.empty {
  background: #fff;
  border: 1px dashed #94a3b8;
  border-radius: 10px;
  padding: 18px;
  color: #475569;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar-header {
  font-weight: 700;
  text-align: center;
  background: #e2e8f0;
  padding: 8px;
  border-radius: 8px;
}

.calendar-cell {
  min-height: 120px;
  background: #fff;
  border: 1px solid #dbe2ea;
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.calendar-cell.today {
  border: 2px solid #0f766e;
}

.calendar-cell.empty-cell {
  background: transparent;
  border: 0;
}

.calendar-date {
  font-weight: 700;
  color: #0f172a;
}

.calendar-entry {
  font-size: 12px;
  color: #334155;
  background: #f8fafc;
  border-radius: 6px;
  padding: 3px 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calendar-more {
  font-size: 12px;
  color: #475569;
  font-weight: 700;
}

.calendar-none {
  font-size: 12px;
  color: #94a3b8;
}

.calendar-toggle {
  margin-top: auto;
  font-size: 12px;
  padding: 5px 8px;
  border-radius: 6px;
  border: 0;
  background: #0f766e;
  color: #fff;
  cursor: pointer;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 16px;
}

.modal-card {
  width: min(900px, 96vw);
  max-height: 88vh;
  overflow: auto;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #dbe2ea;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2);
  padding: 14px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.modal-header h2 {
  margin: 0;
  font-size: 20px;
}

.modal-close {
  background: #64748b;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}

.modal-body {
  display: grid;
  gap: 12px;
}

.modal-section {
  border: 1px solid #dbe2ea;
  border-radius: 10px;
  padding: 10px;
}

.modal-section h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
}

.modal-line {
  font-size: 14px;
  padding: 6px 0;
  border-bottom: 1px solid #eef2f7;
}

.modal-line:last-child {
  border-bottom: 0;
}
