/* Τένις Ύδρας: the booking pages under the new rules, on top of booking.css, admin.css and schedule.css (its amber for
   «outside the schedule», and its parts for who booked, the players and the code). A booking outside the schedule is
   an extra time among the day's, amber and dashed like the board's, seen only by its players and the Municipality.
   Closing a whole day is a form over the day's times that names the bookings it leaves alone. Players are emails,
   added one at a time: by the resident in step 2, and by the Municipality when it books for someone. */

/* ---------------------------------------------------------------- the times */
.bk-time[data-st="out"]{border:1.5px dashed var(--sc-out-line);background:var(--sc-out-bg)}
.bk-time[data-st="out"] .bk-time-s{color:var(--sc-out);font-weight:650}
.bk-time[data-st="out"]:hover{border-style:solid;border-color:var(--sc-out-line)}
.bk-time[aria-pressed="true"][data-st="out"]{border-style:solid;border-color:var(--sc-out);background:var(--sc-out-bg);box-shadow:inset 0 0 0 1px var(--sc-out)}
.bk-time[aria-pressed="true"][data-st="out"] .bk-time-t{color:var(--ink)}
.bk-time-tag{position:absolute;top:9px;right:10px;font-size:10.5px;font-weight:700;letter-spacing:.05em;line-height:1;color:var(--sc-out)}
.bk-time[data-st="mine"] .bk-time-tag{color:var(--mine-ink);opacity:.8}
.bk-time[data-st="booked"] .adm-s .tx-ico{color:var(--accent)}
.bk-time[data-st="taken"]{cursor:default;border-style:dashed;border-color:var(--line-2);background:transparent;color:var(--off-ink)}
.bk-time[data-st="taken"]:hover{border-color:var(--line-2)}
.bk-time[data-st="taken"]:active{transform:none}
.bk-time[data-st="taken"] .bk-time-s{color:var(--off-ink)}
.bk-time[data-st="shut"]{border-color:var(--closed-line);background:var(--closed-bg)}
.bk-time[data-st="shut"]:hover{border-color:var(--closed-line)}
.bk-time[data-st="shut"]:active{transform:none}
.bk-time[data-st="shut"] .bk-time-s{color:var(--closed);font-weight:650}
/* a day with bookings outside the schedule: the dot in amber (the Municipality's week) */
.bk-day[data-out="true"] .bk-day-dot{background:var(--sc-out-line)}
.bk-day[aria-pressed="true"][data-out="true"] .bk-day-dot{background:var(--mine-ink)}
.bk-legend .sc-sw{width:14px;height:14px}

/* the day's head with its one action, closing the whole day */
.ab-dayhead{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px}
.ab-dayhead .bk-dayhead{flex:1 1 220px;min-width:0}
.ab-dayhead .bk-btn .tx-ico{width:17px;height:17px}

/* ---------------------------------------------------------------- the panel under a time (.ab-pn: booking.css) */
.ab-acts{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding-top:12px;border-top:1px solid var(--line)}
.ab-acts .adm-danger{margin-left:auto}
.ab-acts--end{justify-content:flex-end;border-top:0;padding-top:0}
.ab-field{display:grid;gap:8px;min-width:0}
.ab-field .adm-chips .adm-chip{min-height:40px;font-size:14px}
/* players added one at a time, by the Municipality when it books for someone and by a resident in step 2 of the
   booking: a chip each (the Municipality's shows a name when the email has an account), the field to add more */
.ab-chips{display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none}
.ab-chip{display:inline-flex;align-items:center;gap:2px;min-height:38px;max-width:100%;padding:0 3px 0 12px;border-radius:999px;background:var(--sel-bg);color:var(--sel-ink);font-size:14px;font-weight:600;line-height:1.2;animation:bk-drop .2s cubic-bezier(.2,.8,.2,1) both}
.ab-chip span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* your own chip on the booking page's players, which stays: no × */
.ab-chip--me{padding-right:12px}
.ab-chip button{display:grid;place-items:center;flex:none;width:32px;height:32px;margin:0;padding:0;border:0;border-radius:50%;background:none;color:inherit;cursor:pointer}
.ab-chip button:hover{background:color-mix(in srgb,var(--sel-ink) 13%,transparent)}
.tx .ab-chip button:focus-visible{outline:2px solid var(--focus);outline-offset:0}
.ab-chip .tx-ico{width:15px;height:15px;stroke-width:2.2}
.ab-add{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.ab-add .bk-btn{min-height:50px}
.ab-done{display:grid;gap:14px}
.ab-done .bk-code{gap:10px}

/* closing the whole day: the bookings it leaves alone, each with its own cancel */
.ab-off{display:grid;gap:16px;padding:18px 16px;border-radius:18px;background:var(--card);box-shadow:var(--shadow);animation:bk-drop .25s cubic-bezier(.2,.8,.2,1) both;container-type:inline-size}
@media (min-width:720px){.ab-off{padding:22px 24px}}
.ab-off-h{font-family:'GFS Didot',Georgia,'Times New Roman',serif;font-weight:400;font-size:1.5rem;line-height:1.12;text-wrap:balance}
.ab-off-bk{display:grid;gap:6px;padding:12px 14px 6px;border-radius:14px;background:var(--sc-out-bg);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--sc-out-line) 45%,transparent)}
.ab-off-list{display:grid;margin:0;padding:0;list-style:none}
.ab-off-list li{display:grid;grid-template-columns:52px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:52px;border-top:1px solid color-mix(in srgb,var(--sc-out-line) 28%,transparent)}
.ab-off-list li:first-child{border-top:0}
.ab-off-list b{font-size:15px;font-weight:650;font-variant-numeric:tabular-nums lining-nums}
.ab-off-list span{min-width:0;font-size:14px;line-height:1.35;color:var(--ink);overflow-wrap:anywhere}
.ab-off-list li[data-gone="true"] b,.ab-off-list li[data-gone="true"] span{color:var(--muted);text-decoration:line-through}
.ab-off-list small{font-size:13px;font-weight:600;color:var(--muted)}
.ab-dayoff{display:grid;gap:10px}
.ab-dayoff .bk-closed{padding:18px 18px 14px}
.ab-dayoff .bk-closed .bk-btn{margin-top:4px}

/* ---------------------------------------------------------------- the resident's side */
/* the one who booked, in the open booking: «you», a name, or «the administrator» (never the administrator's name) */
.pl-by{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:4px 12px;padding:12px 14px;border-radius:14px;background:var(--sel-bg)}
.pl-by p{font-size:14.5px;line-height:1.45;color:var(--ink);text-wrap:pretty}
.pl-by .sc-av-adm{background:var(--card)}
.pl-sent{display:grid;gap:8px}
.pl-sent .sc-pl li{background:var(--card);box-shadow:inset 0 0 0 1px var(--line-2)}
.pl-sent .sc-pl .tx-ico{width:14px;height:14px;color:var(--ok-ink)}
