body {
  background: #f6f7f9;
}

.card {
  border-radius: 8px;
}

.table td,
.table th {
  padding: 0.9rem;
}

.calendar-frame {
  aspect-ratio: 4 / 3;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.calendar-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.summary-link {
  color: inherit;
  display: block;
  text-decoration: none;
}

.summary-link:hover {
  background: #f8f9fa;
}

.report-role-grid {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.report-role-option {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  margin: 0;
  padding: 0.65rem 0.8rem 0.65rem 2.2rem;
  background: #fff;
}

.report-contact-result {
  cursor: pointer;
}

.report-contact-result:hover {
  background: #eef5ff;
}

.room-option-disabled {
  background: #fff5f5;
  border-color: #f1aeb5;
  color: #842029;
  cursor: not-allowed;
}

.room-option-disabled .form-check-input {
  pointer-events: none;
}

.room-reserved-message {
  display: block;
  margin-top: 0.25rem;
}

.room-conflict-blink {
  animation: room-conflict-blink 1s ease-in-out infinite;
}

@keyframes room-conflict-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.growth-map {
  min-height: 360px;
  height: 100%;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(130px, 1fr));
  gap: 1px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  overflow-x: auto;
  background: #dee2e6;
}

.calendar-heading {
  display: grid;
  gap: 0.35rem;
}

.calendar-mode-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.calendar-mode-buttons .btn {
  min-width: 150px;
}

.calendar-arrow-btn {
  width: 2.6rem;
  height: 2.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 1.5rem;
  line-height: 1;
}

.calendar-weekday {
  min-width: 130px;
  padding: 0.75rem;
  font-weight: 600;
  background: #f8f9fa;
}

.calendar-day {
  min-width: 130px;
  min-height: 150px;
  padding: 0.65rem;
  background: #fff;
}

.calendar-week .calendar-day {
  min-height: 420px;
}

.calendar-day-muted {
  background: #f8f9fa;
  color: #6c757d;
}

.calendar-today {
  box-shadow: inset 0 0 0 2px #0d6efd;
}

.calendar-day-reserved {
  background: #fff5f5;
  box-shadow: inset 0 0 0 2px #dc3545;
}

.calendar-day-reserved .calendar-day-header {
  color: #b02a37;
}

.calendar-day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.calendar-items {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.calendar-item {
  display: grid;
  gap: 0.15rem;
  padding: 0.45rem 0.5rem;
  border: 1px solid #b6d4fe;
  border-left: 4px solid #0d6efd;
  border-radius: 6px;
  background: #f0f6ff;
  color: inherit;
  text-decoration: none;
}

.calendar-day-reserved .calendar-item {
  border-color: #f1aeb5;
  border-left-color: #dc3545;
  background: #fff;
}

.calendar-day-reserved .calendar-item:hover {
  background: #fff0f1;
}

.calendar-item:hover {
  background: #e7f1ff;
}

.calendar-item-room {
  border-color: #badbcc;
  border-left-color: #198754;
  background: #f0fff6;
}

.calendar-item-time,
.calendar-item-detail,
.calendar-empty {
  font-size: 0.82rem;
  color: #6c757d;
}

.calendar-item-title {
  font-weight: 600;
}

@media (max-width: 900px) {
  .calendar-grid {
    grid-template-columns: repeat(7, 160px);
  }
}
