/* ================================
   DATE & TIME PICKER MODALS
   ================================ */

/* Date picker container matches time picker behavior */
/* ================================
   MODAL OVERLAY / CONTAINER
   ================================ */
#date-dropdown-container,
#time-picker {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1000;
}
#date-dropdown-container::before,
#time-picker::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}


/* ================================
   MODAL DIALOG (shared)
   ================================ */
.date-picker-dialog,
.time-picker-dialog {
  position: relative;          /* relative to container */
  margin: 5vh auto;            /* vertically center-ish with margin */
  max-height: 80vh;
  width: 90%;
  max-width: 400px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;            /* container hides overflow, body scrolls */
  z-index: 1001;
}

/* ================================
   HEADERS
   ================================ */
.date-picker-header,
.time-picker-header {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #ddd;
  font-weight: 600;
}
.date-picker-close,
.time-picker-close {
  background: none;
  border: none;
  font-size: .8rem;
  cursor: pointer;
}

/* ================================
   BODY (scrollable)
   ================================ */
.date-picker-dialog .date-picker-body,
.time-picker-dialog .time-picker-body {
  flex: 1 1 auto;      /* grow to fill remaining space */
  overflow-y: auto;
  padding: 10px;
  overscroll-behavior: contain;
}

/* ================================
   ROWS / BLOCKS
   ================================ */
.date-row,
.time-block {
  display: block;
  padding: 6px 0;
  border-bottom: 1px solid #eee;
}

.date-row:last-child,
.time-block:last-child {
  border-bottom: none;
}

/* ================================
   LABELS
   ================================ */
.date-row > label,
.date-block label,
.time-block label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

/* ================================
   DATE-ONLY EXPANSIONS
   ================================ */
.date-options {
  display: none;
  margin-top: 6px;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  font-size: var(--font-small, 0.85rem);
}

.date-row.active .date-options {
  display: flex;
}

/* ================================
   BUTTONS
   ================================ */
.choose-times-btn {
  font-size: var(--font-small, 0.85rem);
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.skip-btn
{
    background-color: var(--skip-color) !important;
}

.waiver-section
{
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.space-below
{
    margin-bottom: 15px;
}

#teacher-info .btn
{
    margin: 5px;
}

.left-right
{
    display: flex;
    justify-content: space-between;
}

.left-right-rev
{
    flex-direction: row-reverse;
}

.last-year-classes th
{
    vertical-align: top;
}

.class-checkbox
{
    margin-bottom: 0px !important;
}

.date-block input
{
    margin: 0 !important;
}

.date-row button
{
    margin-top: 0;
}

.time-picker-controls
{
    margin-left: 15px;
}

.time-picker-controls button
{
    padding-left: 15px;
    padding-right: 15px;
}

#id_phone, #agree-waiver {
    margin: 0 !important;
}

.right-aligned {
    text-align: right;
    margin-right: 10px;
}