/* Rates & availability month grid. Density for per-inventory calendars lives only here. */
.month-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.dow { font-size: 11px; color: var(--muted); text-align: center; padding: 2px 0; }
.daycell { border: 1px solid var(--line); border-radius: 6px; padding: 4px; background: #fff; display: flex; flex-direction: column; gap: 2px; cursor: pointer; min-height: 48px; }
.daycell.empty { background: transparent; border-color: transparent; cursor: default; min-height: 0; }
.daycell.open { background: #ecfdf3; }
.daycell.closed { background: #fef2f2; }
.daycell.selected { outline: 2px solid var(--ink); outline-offset: 1px; }
.daycell .d { font-size: 11px; color: var(--muted); line-height: 1.2; }
.daycell .preview { font-size: 11px; font-weight: 600; }
.day-overlay {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  z-index: 100;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, .28);
}
.day-overlay.is-open { display: block !important; }
.mask.is-open { display: block !important; z-index: 90; }
.day-overlay h3 { margin: 16px 0 8px; font-size: 1rem; }
.day-overlay .check { display: flex; align-items: center; gap: 8px; margin: 10px 0; }
.day-overlay .check input { width: auto; }
.room-cal { margin-bottom: 10px; padding: 12px; }
.room-cal h2 { font-size: 1rem; margin: 0; }
.room-cal .cal-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; cursor: pointer; }
.room-cal.collapsed .month-grid,
.room-cal.collapsed .cal-save { display: none; }
.cal-summary { font-size: 13px; }
.cal-save { margin: 8px 0 0; }

@media (max-width: 900px) {
  .month-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}
