/* Visual availability calendar (overlay/js/portal-availability.js). Reuses the month-grid shell from
   free-call.css (.fc-cal, .fc-cal__head/__month/__nav/__grid/__dow) but each day here is colour-coded by
   status rather than "has times" - so it gets its own day-cell styling instead of .fc-cal__day. */
.av-cal__day { position: relative; display: grid; place-items: center; aspect-ratio: 1; border: 0; border-radius: 50%; font: 400 15px "Poppins", sans-serif; cursor: pointer; transition: background .15s, color .15s, transform .12s; }
.av-cal__day:hover { transform: scale(1.06); }
.av-cal__day:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 2px; }
.av-cal__day.is-today::after { content: ""; position: absolute; bottom: 16%; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .8; }
.av-cal__day--open { background: #eaf4ec; color: #2b6b3d; }
.av-cal__day--custom { background: #f6efe0; color: #4c5b61; border: 1.5px solid var(--gold); }
.av-cal__day--blocked { background: #f8e4e0; color: #a33a2c; text-decoration: line-through; }
.av-cal__day--closed { background: #f0ede8; color: #b6afa4; }
.av-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 16px; font-size: 12px; color: var(--ink-soft); }
.av-legend__dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.av-legend__dot--open { background: #2b6b3d; }
.av-legend__dot--custom { background: var(--gold); }
.av-legend__dot--blocked { background: #a33a2c; }
.av-legend__dot--closed { background: #c7c0b4; }

/* Admin's master calendar (overlay/js/portal-auth.js, masterCalendarHTML) - read-only month grid, a day either
   has confirmed bookings or it doesn't, no open/blocked states like the availability calendar. */
.mc-cal__day { position: relative; display: grid; place-items: center; aspect-ratio: 1; border: 0; border-radius: 50%; font: 400 15px "Poppins", sans-serif; cursor: pointer; transition: background .15s, color .15s, transform .12s; }
.mc-cal__day:hover { transform: scale(1.06); }
.mc-cal__day:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 2px; }
.mc-cal__day--empty { background: #f0ede8; color: #b6afa4; cursor: default; }
.mc-cal__day--empty:hover { transform: none; }
.mc-cal__day--has { background: #f6efe0; color: var(--gold-dark); font-weight: 500; }
.mc-cal__day.is-today::after { content: ""; position: absolute; bottom: 14%; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .8; }
.mc-cal__day.is-selected { background: var(--ink); color: #fff; }
.mc-cal__dot { position: absolute; top: -2px; right: -2px; min-width: 16px; height: 16px; padding: 0 3px; border-radius: 999px; background: var(--gold-dark); color: #fff; font-size: 9px; font-weight: 600; display: grid; place-items: center; }
.mc-cal__day.is-selected .mc-cal__dot { background: var(--gold); color: var(--ink); }

/* Availability page layout: the same width as the dashboard on a wide screen, weekly hours on the left and the calendar on the right.
   The weekly hours stay a simple list of days (one row each) - the seven-across week strip used on project pages needs more room than a
   half-width column has, which is why Sunday used to be cut off. */
.av-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
/* grid items default to min-width:auto, so the 7-column month grid and its round day buttons forced the whole page wider than a narrow
   screen; letting the column and the grids shrink fixes the overflow (and so the phone layout) */
.av-layout .av-col, .av-layout .pa-panel { min-width: 0; }
.av-layout .fc-cal__grid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.av-layout .av-cal__day { width: 100%; max-width: 54px; justify-self: center; font-size: 14px; }
.av-layout .fc-cal__dow { font-size: 10px; letter-spacing: .06em; overflow: hidden; }
.av-layout .pa-avail-day__times { flex-wrap: wrap; }
.av-layout .pa-avail-day input[type=time] { min-width: 0; }
.av-layout .pa-inline .sv-field { flex: 1 1 140px; min-width: 0; }
@media (min-width: 900px) {
  .av-layout { grid-template-columns: minmax(320px, 440px) minmax(0, 1fr); gap: 20px; align-items: start; }
  .av-layout .av-col > .pa-panel:first-child { margin-top: 0; }
  .av-layout .fc-cal { max-width: 540px; margin: 0 auto; }
  .pa-availgrid.pa-availgrid--list { flex-direction: column; border: 0; border-radius: 0; overflow: visible; }
  .pa-availgrid--list .pa-avail-day { flex: none; flex-direction: row; justify-content: flex-start; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); border-left: 0; text-align: left; }
  .pa-availgrid--list .pa-avail-day:first-child { border-top: 0; }
  .pa-availgrid--list .pa-avail-day label.pa-check { flex: 0 0 60px; font-weight: 400; }
  .pa-availgrid--list .pa-avail-day__times { flex-direction: row; gap: 10px; }
  .pa-availgrid--list .pa-avail-day input[type=time] { width: auto; font-size: 14px; padding: 0 8px; }
}
