/* ==========================================================================
   CALENDAR & DATEPICKER
   ========================================================================== */

.calendar-menu {
  /* Let it be handled by dropdown__menu, but override width */
  width: 320px;
}

.calendar-menu.is-range {
  width: 520px;
}

.calendar-sidebar {
  width: 180px;
  flex-shrink: 0;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px 0;
  text-align: center;
}

.calendar-day-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Responsive Layout */
@media (max-width: 576px) {
  .calendar-menu,
  .calendar-menu.is-range {
    width: calc(100vw - 32px);
    max-width: 350px;
    flex-direction: column !important;
  }
  
  .calendar-sidebar {
    width: 100% !important;
    border-right: none !important;
    border-bottom: 1px solid var(--border);
    flex-direction: row !important;
    overflow-x: auto;
    padding-bottom: 8px !important;
  }
  
  .calendar-sidebar button {
    white-space: nowrap;
    width: auto !important;
    flex-shrink: 0;
  }
  
  .calendar-grid {
    gap: 2px 0;
  }
  
  .calendar-day-btn {
    width: 28px;
    height: 28px;
  }
}
