/* Litex Bookings — calendar + request dialog (site and admin). Colors follow the site: dark blue #0d2946, blue #0e7eb4, green #35b34a. */

.litex-cal {
	--lc-dark: #0d2946;
	--lc-blue: #0e7eb4;
	--lc-green: #35b34a;
	--lc-line: #dfe3e8;
	--lc-muted: #8a94a0;
	font-size: 16px;
	line-height: 1.3;
	color: #1b1b1b;
	margin: 0 0 20px;
}
.litex-cal * { box-sizing: border-box; }

.litex-cal__head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.litex-cal__title { flex: 1; margin: 0 !important; text-align: center; font-size: 26px !important; line-height: 1.2 !important; }
.litex-cal__nav, .litex-cal__today {
	border: 1px solid var(--lc-line); background: #fff; color: var(--lc-dark);
	height: 40px; min-width: 40px; padding: 0 12px; border-radius: 3px; cursor: pointer; font-size: 20px; line-height: 1;
	margin: 0 !important; box-shadow: none !important;
}
.litex-cal__today { font-size: 15px; }
.litex-cal__nav:hover, .litex-cal__today:hover { border-color: var(--lc-blue); color: var(--lc-blue); }

.litex-cal__weekdays, .litex-cal__week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.litex-cal__weekday { text-align: center; font-size: 14px; color: var(--lc-muted); padding: 4px 0; text-transform: uppercase; letter-spacing: 1px; }
.litex-cal__grid { border-top: 1px solid var(--lc-line); border-left: 1px solid var(--lc-line); }
.litex-cal.is-loading .litex-cal__grid { opacity: .6; }

.litex-cal__day {
	position: relative; min-height: 112px; padding: 4px 4px 6px;
	border-right: 1px solid var(--lc-line); border-bottom: 1px solid var(--lc-line);
	background: #fff; cursor: pointer; overflow: hidden;
}
.litex-cal__day:hover { background: #f4f9fc; }
.litex-cal__day.is-other { background: #fafafa; }
.litex-cal__day.is-other .litex-cal__num { color: #b9c0c7; }
.litex-cal__day.is-weekend:not(.is-other) { background: #fcfcfd; }
.litex-cal__day.is-disabled { cursor: default; background: #f5f5f5; }
.litex-cal__day.is-disabled:hover { background: #f5f5f5; }
.litex-cal__day.is-disabled .litex-cal__num { color: #c4c9ce; }

.litex-cal__daybtn {
	display: block; width: 100%; border: 0 !important; background: none !important; padding: 0 !important; margin: 0 !important;
	text-align: right; cursor: inherit; color: inherit; box-shadow: none !important; min-height: 0; line-height: 1;
}
.litex-cal__daybtn:focus-visible { outline: 2px solid var(--lc-blue); outline-offset: 2px; }
.litex-cal__num { display: inline-block; min-width: 28px; height: 28px; line-height: 28px; text-align: center; font-size: 16px; border-radius: 50%; }
.litex-cal__day.is-today .litex-cal__num { background: var(--lc-green); color: #fff; }

.litex-cal__events { list-style: none !important; margin: 4px 0 0 !important; padding: 0 !important; }
.litex-cal__event {
	--ev-color: var(--lc-blue);
	margin: 0 0 3px !important; padding: 2px 5px; font-size: 13px; line-height: 17px;
	border-left: 3px solid var(--ev-color); background: color-mix(in srgb, var(--ev-color) 12%, #fff);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: 2px; list-style: none !important;
}
.litex-cal__event.is-inquiry { background: repeating-linear-gradient(135deg, #fff, #fff 4px, color-mix(in srgb, var(--ev-color) 14%, #fff) 4px, color-mix(in srgb, var(--ev-color) 14%, #fff) 8px); }
.litex-cal__event.is-rejected { opacity: .45; text-decoration: line-through; }
.litex-cal__eventbtn {
	all: unset; display: block; width: 100%; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.litex-cal__eventbtn:hover { text-decoration: underline; }
.litex-cal__eventbtn:focus-visible { outline: 2px solid var(--lc-blue); }
.litex-cal__more { font-size: 12px; color: var(--lc-muted); list-style: none !important; }
.litex-cal__dots { display: none; }
.litex-cal__status { min-height: 20px; font-size: 14px; color: var(--lc-muted); padding-top: 6px; }

/* Phones: compact grid with colored dots, tap a day to see its slots in the dialog. */
@media (max-width: 767px) {
	.litex-cal__title { font-size: 20px !important; }
	.litex-cal__weekday { font-size: 11px; letter-spacing: 0; }
	.litex-cal__day { min-height: 54px; padding: 2px; }
	.litex-cal__daybtn { text-align: center; }
	.litex-cal__num { font-size: 14px; min-width: 26px; height: 26px; line-height: 26px; }
	.litex-cal__events { display: none; }
	.litex-cal__dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; margin-top: 3px; }
	.litex-cal__dot { width: 7px; height: 7px; border-radius: 50%; }
}

/* ---------- Public page: intro, legend ---------- */
.litex-bk__intro { margin-bottom: 15px; }
.litex-bk__legend { list-style: none !important; margin: 0 0 20px !important; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 18px; font-size: 15px; }
.litex-bk__legend li { list-style: none !important; margin: 0 !important; display: flex; align-items: center; gap: 6px; }
.litex-bk__legend-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }

/* ---------- Request dialog ---------- */
.litex-bk-dialog {
	width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 0; border-radius: 4px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .35); color: #1b1b1b;
}
.litex-bk-dialog::backdrop { background: rgba(7, 19, 35, .6); }
.litex-bk-form { position: relative; padding: 24px 26px 18px; font-size: 16px; line-height: 1.35; }
.litex-bk-form h3 { margin: 0 34px 14px 0 !important; font-size: 24px !important; line-height: 1.2 !important; }
.litex-bk-close { position: absolute; top: 8px; right: 10px; width: 36px; height: 36px; border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: #555; margin: 0 !important; padding: 0 !important; box-shadow: none !important; }
.litex-bk-close:hover { color: #000; }

.litex-bk-busy { background: #f4f6f8; border-left: 3px solid #071323; padding: 8px 12px; margin-bottom: 14px; font-size: 15px; }
.litex-bk-busy ul { margin: 4px 0 0 18px !important; padding: 0 !important; }
.litex-bk-busy li { margin: 0 !important; }

.litex-bk-rooms { border: 0; padding: 0; margin: 0 0 12px; }
.litex-bk-rooms legend { font-weight: 600; padding: 0; margin-bottom: 4px; }
.litex-bk-group { display: block; font-size: 13px; color: #8a94a0; text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }
.litex-bk-room { display: inline-flex; align-items: center; gap: 4px; margin: 2px 18px 2px 0; cursor: pointer; }

.litex-bk-row { display: flex; gap: 12px; }
.litex-bk-field { margin: 0 0 10px !important; flex: 1; }
.litex-bk-field label { display: block; font-size: 15px; margin-bottom: 3px; }
.litex-bk-field small { display: block; color: #8a94a0; font-size: 13px; }
.litex-bk-field input, .litex-bk-field select, .litex-bk-field textarea {
	width: 100% !important; max-width: none; margin: 0 !important; padding: 7px 9px !important; font-size: 16px !important;
	border: 1px solid #cfd6dd !important; border-radius: 3px; background: #fff !important; color: #1b1b1b !important; box-shadow: none !important;
}
.litex-bk-field input:focus, .litex-bk-field select:focus, .litex-bk-field textarea:focus { border-color: #0e7eb4 !important; outline: none; }

.litex-bk-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.litex-bk-privacy { font-size: 13px; color: #6b7682; margin: 4px 0 10px !important; }

.litex-bk-msg:empty { display: none; }
.litex-bk-msg { padding: 8px 12px; margin: 0 0 10px; border-radius: 3px; font-size: 15px; }
.litex-bk-msg.is-error { background: #fdecea; color: #a12622; }
.litex-bk-msg.is-ok { background: #e8f6ea; color: #1e6b2b; }

.litex-bk-actions { display: flex; gap: 10px; margin: 6px 0 0 !important; }
.litex-bk-submit, .litex-bk-cancel {
	border: 0; border-radius: 3px; padding: 10px 22px !important; font-size: 17px !important; cursor: pointer; margin: 0 !important; line-height: 1.2 !important;
}
.litex-bk-submit { background: #071323 !important; color: #fff !important; }
.litex-bk-submit:hover { background: #0e7eb4 !important; }
.litex-bk-submit:disabled { opacity: .6; cursor: wait; }
.litex-bk-cancel { background: #e9edf1 !important; color: #1b1b1b !important; }

@media (max-width: 767px) {
	.litex-bk-dialog { width: 100vw; max-width: 100vw; height: 100%; max-height: 100%; border-radius: 0; }
	.litex-bk-form { padding: 18px 16px; }
	.litex-bk-row { gap: 8px; }
}

/* ---------- Classic skin: the look of the 2017 site calendar (FullCalendar 1.6 + jQuery UI "cupertino") ----------
 * Header: two square buttons with round arrows | big month title | empty cell, separated by faint lines.
 * Grid: "№" week column, Пон…Нед headers with a light-blue rule, grey day lines, no outer frame, today outlined in yellow. */
.litex-cal--classic { --lc-head: #aed0ea; --lc-line: #ddd; font-size: 20px; color: #362b36; }
.litex-cal--classic .litex-cal__head { display: flex; align-items: stretch; gap: 0; height: 60px; margin: 0 0 5px; }
.litex-cal--classic .litex-cal__hleft { width: 115px; flex: none; display: flex; gap: 10px; align-items: flex-start; border-right: 1px solid rgba(0, 0, 0, .08); }
.litex-cal--classic .litex-cal__hright { width: 136px; flex: none; border-left: 1px solid rgba(0, 0, 0, .08); text-align: right; }
.litex-cal--classic .litex-cal__title { font-size: 35px !important; line-height: 35px !important; font-weight: 300; color: #232323; align-self: flex-start; }
.litex-cal--classic .litex-cal__nav {
	width: 42px; height: 40px; min-width: 0; padding: 0; border: 1px solid var(--lc-head); border-radius: 0; background: #fff;
	font-size: 0; color: transparent; position: relative;
}
.litex-cal--classic .litex-cal__nav::before { /* grey circle with a white triangle, like ui-icon-circle-triangle-w/e */
	content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #8c8c8c;
}
.litex-cal--classic .litex-cal__nav::after {
	content: ""; position: absolute; left: 50%; top: 50%; width: 0; height: 0; margin-top: -3px;
	border-top: 3px solid transparent; border-bottom: 3px solid transparent;
}
.litex-cal--classic .litex-cal__nav:first-child::after { margin-left: -2px; border-right: 4px solid #fff; }
.litex-cal--classic .litex-cal__nav:last-child::after { margin-left: -1px; border-left: 4px solid #fff; }
.litex-cal--classic .litex-cal__nav:hover { border-color: #79b7e7; background: #d0e5f5; }
.litex-cal--classic .litex-cal__nav:hover::before { background: #2779aa; }

.litex-cal--classic .litex-cal__weekdays .litex-cal__weekday {
	font-size: 20px; line-height: 25px; color: #222; text-transform: none; letter-spacing: 0; padding: 0;
	border-bottom: 1px solid var(--lc-head); border-right: 1px solid var(--lc-head);
}
.litex-cal--classic .litex-cal__weekdays .litex-cal__weekday:last-child { border-right: 0; }
.litex-cal--classic .litex-cal__grid { border: 0; }
.litex-cal--classic .litex-cal__day {
	min-height: 62px; padding: 0 2px; background: #fff; border-right: 1px solid var(--lc-line); border-bottom: 1px solid var(--lc-line);
}
.litex-cal--classic .litex-cal__week > :last-child { border-right: 0; }
.litex-cal--classic .litex-cal__week:last-child > * { border-bottom: 0; min-height: 66px; }
.litex-cal--classic .litex-cal__day.is-other, .litex-cal--classic .litex-cal__day.is-weekend:not(.is-other) { background: #fff; }
.litex-cal--classic .litex-cal__day.is-other .litex-cal__num { color: inherit; opacity: .3; }
.litex-cal--classic .litex-cal__day.is-disabled, .litex-cal--classic .litex-cal__day.is-disabled:hover { background: #fff; }
.litex-cal--classic .litex-cal__day.is-disabled .litex-cal__num { color: inherit; }
.litex-cal--classic .litex-cal__day:not(.is-disabled):hover { background: #f4f9fc; }
.litex-cal--classic .litex-cal__num { font-size: 20px; line-height: 25px; height: auto; min-width: 0; border-radius: 0; font-weight: 200; }
.litex-cal--classic .litex-cal__day.is-today { outline: 1px solid #fcefa1; outline-offset: -1px; }
.litex-cal--classic .litex-cal__day.is-today .litex-cal__num { background: none; color: #363636; }
.litex-cal--classic .litex-cal__status { font-size: 15px; }

/* Week number column */
.litex-cal--weeks .litex-cal__weekdays, .litex-cal--weeks .litex-cal__week { grid-template-columns: 23px repeat(7, minmax(0, 1fr)); }
.litex-cal__weekno { text-align: center; font-size: 20px; line-height: 25px; color: inherit; padding: 0 2px; border-right: 1px solid var(--lc-line); border-bottom: 1px solid var(--lc-line); }
.litex-cal__weekdays .litex-cal__weekno { border-color: var(--lc-head); }

@media (max-width: 767px) {
	.litex-cal--classic { font-size: 16px; }
	.litex-cal--classic .litex-cal__head { height: auto; margin-bottom: 10px; }
	.litex-cal--classic .litex-cal__hleft { width: auto; padding-right: 10px; }
	.litex-cal--classic .litex-cal__hright { display: none; }
	.litex-cal--classic .litex-cal__title { font-size: 24px !important; line-height: 40px !important; }
	.litex-cal--classic .litex-cal__weekdays .litex-cal__weekday, .litex-cal--classic .litex-cal__num, .litex-cal__weekno { font-size: 14px; line-height: 20px; }
	.litex-cal--classic .litex-cal__day { min-height: 46px; }
	.litex-cal--classic .litex-cal__week:last-child > * { min-height: 46px; }
	.litex-cal--weeks .litex-cal__weekdays, .litex-cal--weeks .litex-cal__week { grid-template-columns: 20px repeat(7, minmax(0, 1fr)); }
	.litex-cal__weekno { padding: 0; font-size: 12px; }
}
/* Classic: the calendar was 70% of the column, centred, 25px below the top (as on the old page). Past days look like the others. */
@media (min-width: 768px) { .litex-cal--classic { max-width: 70%; margin: 0 auto 20px; padding-top: 25px; } }
.litex-cal--classic .litex-cal__daybtn:disabled { opacity: 1; color: inherit; }
@media (min-width: 768px) { .litex-cal--classic ~ .litex-bk__legend { max-width: 70%; margin-left: auto !important; margin-right: auto !important; } }
/* Classic: busy slots as solid blocks with wrapped white text (like the old calendar), coloured by room. */
.litex-cal--classic .litex-cal__events { margin: 2px 0 0 !important; }
.litex-cal--classic .litex-cal__event {
	background: var(--ev-color) !important; color: #fff; border-left: 0; border-radius: 0;
	white-space: pre-line; overflow: visible; text-overflow: clip; text-align: center;
	font-size: 15px; line-height: 19px; padding: 2px 3px; margin: 0 0 2px !important;
}
.litex-cal--classic .litex-cal__event.is-inquiry { opacity: .75; }
/* Day numbers on hover: site blue (the theme turns hovered buttons white). */
.litex-cal__daybtn:hover, .litex-cal__daybtn:focus { color: inherit !important; background: none !important; }
.litex-cal__day:not(.is-disabled):hover .litex-cal__daybtn { color: #0e7eb4 !important; }
.litex-cal__day:not(.is-disabled):hover .litex-cal__num { color: #0e7eb4; opacity: 1; }
