/* HOC5 Room Booking — [hr-room-booking]. Everything is scoped under .hrb-app. */

.hrb-app {
	--hrb-ink: #1c2330;
	--hrb-ink2: #3a4250;
	--hrb-muted: #5b6472;
	--hrb-line: #dce0e6;
	--hrb-line2: #c6ccd5;
	--hrb-accent: #1d4e89;
	--hrb-accent-ink: #fff;
	--hrb-slot: #3d8fd1;
	--hrb-booked: #d3d5d9;
	--hrb-booked-hover: #bfc3ca;
	--hrb-mine: #f5e2a8;
	--hrb-mine-hover: #ecd288;
	--hrb-free-hover: #dceaf9;
	--hrb-danger: #b42318;
	color: var(--hrb-ink);
	font-size: 15px;
	line-height: 1.45;
	position: relative;
}

.hrb-app *,
.hrb-app *::before,
.hrb-app *::after {
	box-sizing: border-box;
}

.hrb-app button,
.hrb-app input,
.hrb-app select,
.hrb-app textarea {
	font: inherit;
	color: inherit;
	letter-spacing: normal;
	text-transform: none;
}

.hrb-notice {
	padding: 16px 20px;
	border: 1px solid #dce0e6;
	border-radius: 8px;
	background: #f6f7f9;
}

/* Layout: filter panel + main. Container queries switch to the stacked layout. */
.hrb-row {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	align-items: flex-start;
	container-type: inline-size;
	container-name: hrbrow;
}

.hrb-panel {
	flex: 1 1 270px;
	max-width: 330px;
	background: #fff;
	border: 1px solid var(--hrb-line);
	border-radius: 10px;
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.hrb-main {
	flex: 999 1 560px;
	min-width: 0;
	background: #fff;
	border: 1px solid var(--hrb-line);
	border-radius: 10px;
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.hrb-filters {
	display: flex;
	flex-direction: column;
	gap: 18px;
	min-width: 0;
}

.hrb-month1 {
	display: none;
	flex-direction: column;
	gap: 6px;
}

.hrb-months3 {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

@container hrbrow (max-width: 859px) {
	.hrb-panel {
		flex-basis: 100%;
		max-width: none;
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 28px;
		align-items: start;
	}
	.hrb-months3 { display: none; }
	.hrb-month1 { display: flex; }
}

@container hrbrow (max-width: 540px) {
	.hrb-panel {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}
}

/* Fields */
.hrb-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.hrb-label {
	font-size: 13px;
	font-weight: 600;
	color: var(--hrb-ink2);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.hrb-flabel {
	font-size: 14px;
	font-weight: 600;
}

.hrb-app .hrb-input {
	width: 100%;
	min-height: 44px;
	border: 1px solid var(--hrb-line2);
	border-radius: 8px;
	padding: 8px 12px;
	background: #fff;
	margin: 0;
	box-shadow: none;
}

.hrb-app textarea.hrb-input {
	resize: vertical;
	min-height: 80px;
}

.hrb-app .hrb-input:focus,
.hrb-app button:focus-visible,
.hrb-app .hrb-room:focus-visible {
	outline: 3px solid var(--hrb-accent);
	outline-offset: 1px;
}

.hrb-muted {
	color: var(--hrb-muted);
	font-weight: 400;
	font-size: 13px;
}

/* Building picker */
.hrb-bldg {
	display: grid;
	gap: 18px;
	align-items: end;
	padding: 0 6px;
}

.hrb-bldg-col {
	display: flex;
	flex-direction: column;
}

.hrb-app .hrb-bldg-btn {
	height: 56px;
	margin: -2px 0 0;
	padding: 0;
	border: 2px solid #9aa3af;
	border-radius: 0;
	background: #fff;
	color: var(--hrb-ink);
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	position: relative;
	z-index: 1;
	box-shadow: none;
}

.hrb-app .hrb-bldg-btn.is-top {
	margin-top: 0;
	border-radius: 4px 4px 0 0;
}

.hrb-app .hrb-bldg-btn.is-solo {
	height: 80px;
}

.hrb-app .hrb-bldg-btn:hover {
	background: #eef3fa;
}

.hrb-app .hrb-bldg-btn.is-on {
	background: var(--hrb-accent);
	border-color: var(--hrb-accent);
	color: var(--hrb-accent-ink);
	z-index: 2;
}

.hrb-bldg-big {
	font-size: 22px;
	font-weight: 700;
	line-height: 1.1;
}

.hrb-bldg-sub {
	font-size: 11px;
	font-weight: 500;
}

.hrb-ground {
	height: 4px;
	background: var(--hrb-ink);
	border-radius: 2px;
	margin-top: -6px;
}

.hrb-addr {
	display: grid;
	gap: 18px;
	padding: 0 6px;
	font-size: 13px;
	color: var(--hrb-ink2);
	text-align: center;
	margin-top: -8px;
}

/* Mini months */
.hrb-month {
	display: flex;
	flex-direction: column;
	gap: 6px;
	border-top: 1px solid #eef0f3;
	padding-top: 14px;
}

.hrb-month-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.hrb-month-title {
	font-weight: 600;
	font-size: 14px;
}

.hrb-dow,
.hrb-days {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 2px;
}

.hrb-dow {
	font-size: 12px;
	color: var(--hrb-muted);
	text-align: center;
}

.hrb-app .hrb-day {
	height: 34px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	font-size: 13px;
	cursor: pointer;
	padding: 0;
	color: var(--hrb-ink);
	box-shadow: none;
}

.hrb-app .hrb-day:hover {
	box-shadow: inset 0 0 0 1px #9aa3af;
}

.hrb-app .hrb-day.is-past {
	color: #8a929e;
}

.hrb-app .hrb-day.is-today {
	font-weight: 700;
	box-shadow: inset 0 0 0 2px var(--hrb-accent);
}

.hrb-app .hrb-day.is-sel {
	background: var(--hrb-accent);
	color: #fff;
	font-weight: 700;
	box-shadow: none;
}

/* Buttons */
.hrb-app .hrb-btn {
	min-height: 40px;
	padding: 0 16px;
	border-radius: 8px;
	font-weight: 600;
	cursor: pointer;
	border: 1px solid transparent;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	line-height: 1.2;
	box-shadow: none;
	text-decoration: none;
}

.hrb-app .hrb-btn-primary {
	background: var(--hrb-accent);
	color: #fff;
}

.hrb-app .hrb-btn-primary:hover {
	background: #163d6c;
}

.hrb-app .hrb-btn-primary:disabled {
	background: #9aa3af;
	cursor: not-allowed;
}

.hrb-app .hrb-btn-outline {
	background: #fff;
	border-color: var(--hrb-line2);
	color: var(--hrb-ink);
}

.hrb-app .hrb-btn-outline:hover {
	background: #f3f4f6;
}

.hrb-app .hrb-btn-danger {
	background: #fff;
	border-color: #e3a49b;
	color: var(--hrb-danger);
}

.hrb-app .hrb-btn-danger:hover {
	background: #fdecea;
}

.hrb-app .hrb-btn-small {
	min-height: 34px;
	padding: 0 12px;
	font-size: 13px;
	align-self: flex-start;
	margin-top: 6px;
	background: #fff;
	border-color: #b8962e;
	color: var(--hrb-ink);
}

.hrb-app .hrb-iconbtn {
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--hrb-line2);
	border-radius: 8px;
	background: #fff;
	color: var(--hrb-ink);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	box-shadow: none;
}

.hrb-app .hrb-iconbtn.hrb-lg {
	width: 44px;
	height: 44px;
}

.hrb-app .hrb-iconbtn.hrb-plain {
	border: 0;
	color: var(--hrb-muted);
	background: transparent;
}

.hrb-app .hrb-link {
	background: none;
	border: 0;
	padding: 0;
	color: inherit;
	text-decoration: underline;
	cursor: pointer;
	font-weight: 600;
}

.hrb-app .hrb-chip {
	min-height: 34px;
	padding: 0 14px;
	border: 1px solid var(--hrb-accent);
	border-radius: 17px;
	background: #fff;
	color: var(--hrb-accent);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: none;
}

.hrb-app .hrb-chip.is-on {
	background: var(--hrb-accent);
	color: #fff;
}

/* Header */
.hrb-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.hrb-head-nav {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.hrb-head .hrb-btn {
	min-height: 44px;
}

.hrb-head-title {
	display: flex;
	flex-direction: column;
	margin-left: 6px;
}

.hrb-date-long {
	font-size: 20px;
	font-weight: 600;
	line-height: 1.25;
}

.hrb-floor-name {
	font-size: 13px;
	color: var(--hrb-muted);
}

/* Timeline */
.hrb-timeline {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.hrb-tl-top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
}

.hrb-tl-showing {
	font-size: 14px;
	font-weight: 600;
	margin-right: auto;
}

.hrb-tl-hint {
	font-size: 13px;
	color: var(--hrb-muted);
}

.hrb-mapview {
	display: flex;
	align-items: stretch;
	gap: 12px;
}

/* Vertical timeline on the left of the floor plan; it stretches to the plan's height. */
.hrb-vtl {
	position: relative;
	flex: none;
	width: 84px;
	display: grid;
	grid-template-columns: 50px 1fr;
	border-bottom: 1px solid #9aa3af;
}

.hrb-vtl-time {
	grid-column: 1;
	font-size: 11px;
	font-weight: 600;
	color: var(--hrb-ink2);
	text-align: right;
	padding-right: 6px;
	white-space: nowrap;
	line-height: 1;
}

.hrb-vtl-time span {
	position: relative;
	top: -6px;
}

.hrb-app .hrb-vtl-btn {
	grid-column: 2;
	width: 100%;
	height: auto;
	min-height: 0;
	padding: 0;
	margin: 0;
	border: 0;
	border-left: 1px solid #9aa3af;
	border-right: 1px solid #9aa3af;
	border-top: 1px solid #e3e6eb;
	border-radius: 0;
	background: #fff;
	cursor: pointer;
	box-shadow: none;
}

.hrb-app .hrb-vtl-btn.is-hour {
	border-top-color: #9aa3af;
}

.hrb-app .hrb-vtl-btn:hover {
	box-shadow: inset 0 0 0 2px var(--hrb-slot);
}

.hrb-app .hrb-vtl-btn.is-on {
	background: var(--hrb-slot);
}

.hrb-vtl-now {
	position: absolute;
	left: 50px;
	right: 0;
	height: 4px;
	background: #e02424;
	border-radius: 2px;
	z-index: 2;
	pointer-events: none;
}

.hrb-vtl-now::before {
	content: "";
	position: absolute;
	left: -6px;
	top: -4px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #e02424;
}

.hrb-mapview .hrb-map-wrap {
	flex: 1;
	min-width: 0;
	justify-content: flex-start;
	align-items: flex-start;
}

/* Banners */
.hrb-banner {
	padding: 10px 14px;
	border-radius: 8px;
	background: #f3f4f6;
	border: 1px solid var(--hrb-line);
	font-size: 14px;
}

.hrb-banner-error {
	background: #fdecea;
	border-color: #f1b4ac;
	color: #8a1c12;
}

/* Map */
.hrb-map-wrap {
	display: flex;
	justify-content: center;
}

.hrb-map {
	position: relative;
	width: 100%;
	background: #fff;
	isolation: isolate;
}

/* Room colors (the SVG layer) sit underneath; the floor plan is laid over them with
   "multiply", so white areas of the plan let the colors through while lines and room
   labels stay sharp on top. The plan ignores the mouse so the rooms below get the clicks. */
.hrb-overlay {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	transition: opacity 0.15s;
}

.hrb-map .hrb-plan {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
	max-width: none;
	z-index: 2;
	mix-blend-mode: multiply;
	pointer-events: none;
	user-select: none;
}

.hrb-map.is-loading .hrb-overlay {
	opacity: 0.4;
}

.hrb-room {
	cursor: pointer;
	stroke: none;
	transition: fill 0.12s;
}

.hrb-room.is-free { fill: transparent; }
.hrb-room.is-free:hover,
.hrb-room.is-free:focus { fill: var(--hrb-free-hover); }
.hrb-room.is-booked { fill: var(--hrb-booked); }
.hrb-room.is-booked:hover,
.hrb-room.is-booked:focus,
.hrb-room.is-booked.is-tip { fill: var(--hrb-booked-hover); }
.hrb-room.is-mine { fill: var(--hrb-mine); }
.hrb-room.is-mine:hover,
.hrb-room.is-mine:focus,
.hrb-room.is-mine.is-tip { fill: var(--hrb-mine-hover); }

.hrb-room:focus { outline: none; }
.hrb-room:focus-visible { stroke: var(--hrb-accent); stroke-width: 3; }

.hrb-noplan {
	border: 2px dashed var(--hrb-line2);
	border-radius: 10px;
	min-height: 300px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--hrb-muted);
	padding: 24px;
	text-align: center;
}

/* Tooltip */
.hrb-tip {
	position: absolute;
	z-index: 5;
	width: 300px;
	max-width: calc(100vw - 32px);
	background: #fff;
	border: 1px solid var(--hrb-line2);
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(20, 28, 40, 0.18);
	padding: 12px 14px 14px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.hrb-tip-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	font-size: 16px;
}

.hrb-tip-row {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 8px 10px;
	border-radius: 6px;
	background: #f3f4f6;
}

.hrb-tip-row.is-mine { background: #fbf1d3; }
.hrb-tip-row.is-hit { box-shadow: inset 0 0 0 2px var(--hrb-slot); }
.hrb-tip-row.is-dim { opacity: 0.6; }

.hrb-tip-title { font-weight: 600; }
.hrb-tip-time { font-size: 13px; color: var(--hrb-ink2); }
.hrb-tip-by { font-size: 13px; color: var(--hrb-muted); }

.hrb-tip-cal {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: var(--hrb-accent);
	font-weight: 500;
}

.hrb-tip p { margin: 0; }

/* Legend */
.hrb-legend {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 20px;
	font-size: 13px;
	color: var(--hrb-ink2);
	padding-top: 4px;
}

.hrb-legend span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.hrb-sw {
	width: 16px;
	height: 16px;
	border: 1px solid #9aa3af;
	border-radius: 3px;
	display: inline-block;
}

.hrb-sw-free { background: #fff; }
.hrb-sw-booked { background: var(--hrb-booked); }
.hrb-sw-mine { background: var(--hrb-mine); border-color: #b8962e; }
.hrb-sw-busy { background: rgba(29, 78, 137, 0.35); }
.hrb-red { color: var(--hrb-danger); }

/* Booking window */
html.hrb-noscroll { overflow: hidden; }

.hrb-overlay-bg {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(20, 28, 40, 0.45);
	display: flex;
	justify-content: center;
	align-items: flex-start;
	padding: 6vh 16px;
	overflow-y: auto;
}

.hrb-modal {
	width: 100%;
	max-width: 540px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 24px 60px rgba(20, 28, 40, 0.3);
	display: flex;
	flex-direction: column;
	color: var(--hrb-ink);
}

.hrb-m-head {
	padding: 18px 22px 12px;
	border-bottom: 1px solid #eef0f3;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
}

.hrb-m-head h2 {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
}

.hrb-m-body {
	padding: 16px 22px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.hrb-grid2 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.hrb-box {
	border: 1px solid #e3e6eb;
	border-radius: 8px;
	padding: 12px 14px;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.hrb-box legend {
	font-size: 14px;
	font-weight: 600;
	padding: 0 4px;
}

.hrb-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	min-height: 28px;
}

.hrb-box.hrb-check {
	flex-direction: row;
}

.hrb-check strong {
	font-weight: 600;
}

.hrb-check input {
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	flex: none;
}

.hrb-check > span {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.hrb-warn {
	background: #fff4e0;
	border: 1px solid #e8b85c;
	color: #6b4405;
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 14px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.hrb-warn-head {
	display: flex;
	align-items: center;
	gap: 8px;
}

.hrb-warn-head svg {
	flex: none;
}

.hrb-okline {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #1e5631;
	font-size: 14px;
	font-weight: 500;
}

.hrb-checking {
	font-size: 14px;
	color: var(--hrb-muted);
}

.hrb-error {
	background: #fdecea;
	border: 1px solid #f1b4ac;
	color: #8a1c12;
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 14px;
	font-weight: 600;
}

.hrb-m-foot {
	padding: 12px 22px 18px;
	border-top: 1px solid #eef0f3;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: space-between;
	align-items: center;
}

.hrb-m-foot-left,
.hrb-m-foot-right {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.hrb-m-foot .hrb-btn {
	min-height: 44px;
}

.hrb-confirm {
	font-size: 14px;
	font-weight: 600;
	color: var(--hrb-danger);
}

/* Toast */
.hrb-toast-host {
	position: fixed;
	left: 50%;
	bottom: 24px;
	transform: translateX(-50%);
	z-index: 100001;
	width: min(560px, calc(100vw - 32px));
}

.hrb-toast {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	background: #1e5631;
	color: #fff;
	border-radius: 10px;
	padding: 10px 10px 10px 16px;
	font-size: 14px;
	box-shadow: 0 10px 30px rgba(20, 28, 40, 0.25);
}

.hrb-toast .hrb-iconbtn.hrb-plain {
	color: #fff;
}

@media (max-width: 480px) {
	.hrb-grid2 { grid-template-columns: minmax(0, 1fr); }
	.hrb-date-long { font-size: 17px; }
}

/* Map / List toggle */
.hrb-seg {
	display: inline-flex;
	border: 1px solid var(--hrb-line2);
	border-radius: 8px;
	overflow: hidden;
	flex: none;
}

.hrb-app .hrb-seg-btn {
	min-height: 40px;
	padding: 0 14px;
	border: 0;
	border-radius: 0;
	background: #fff;
	color: var(--hrb-ink);
	font-weight: 600;
	font-size: 14px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	box-shadow: none;
}

.hrb-app .hrb-seg-btn + .hrb-seg-btn {
	border-left: 1px solid var(--hrb-line2);
}

.hrb-app .hrb-seg-btn:hover {
	background: #f3f4f6;
}

.hrb-app .hrb-seg-btn.is-on {
	background: var(--hrb-accent);
	color: #fff;
}

/* List view (calendar style): rooms across, time down */
.hrb-list {
	--hrb-slot-h: 22px; 
}

.hrb-list.is-loading .hrb-l-table {
	opacity: 0.5;
}

.hrb-l-scroll {
	overflow: auto;
	max-height: min(78vh, 920px);
	border: 1px solid var(--hrb-line);
	border-radius: 8px;
	background: #fff;
}

.hrb-l-table {
	display: grid;
	position: relative;
	transition: opacity 0.15s;
}

.hrb-l-corner {
	position: sticky;
	top: 0;
	left: 0;
	z-index: 6;
	background: #f6f7f9;
	border-bottom: 1px solid var(--hrb-line);
	border-right: 1px solid var(--hrb-line);
}

.hrb-l-room {
	position: sticky;
	top: 0;
	z-index: 5;
	background: #f6f7f9;
	border-bottom: 1px solid var(--hrb-line);
	border-left: 1px solid #e6e9ee;
	padding: 8px 6px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.25;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	min-width: 0;
	word-break: break-word;
}

.hrb-l-room .hrb-p1 {
	margin-left: 0;
}

.hrb-l-time {
	position: sticky;
	left: 0;
	z-index: 3;
	background: #fff;
	border-right: 1px solid var(--hrb-line);
	font-size: 11px;
	font-weight: 600;
	color: var(--hrb-ink2);
	text-align: right;
	padding-right: 8px;
	white-space: nowrap;
}

.hrb-l-time.is-hour {
	border-top: 1px solid #c6ccd5;
}

.hrb-l-time span {
	position: relative;
	top: 3px;
}

.hrb-app .hrb-l-free {
	margin: 0;
	padding: 0;
	border: 0;
	border-left: 1px solid #e6e9ee;
	border-top: 1px dotted #e6e9ee;
	border-radius: 0;
	background: #fff;
	cursor: pointer;
	box-shadow: none;
	min-height: 0;
}

.hrb-app .hrb-l-free.is-hour {
	border-top: 1px solid #d5dae1;
}

.hrb-app .hrb-l-free:hover {
	background: var(--hrb-free-hover);
	box-shadow: inset 0 0 0 2px var(--hrb-slot);
}

.hrb-app .hrb-l-free:disabled {
	cursor: default;
	background: #fafbfc;
	box-shadow: none;
}

.hrb-app .hrb-l-block {
	margin: 1px 3px;
	padding: 3px 6px;
	border: 1px solid #aeb3bb;
	border-left-width: 4px;
	border-radius: 6px;
	background: var(--hrb-booked);
	color: var(--hrb-ink);
	text-align: left;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	min-width: 0;
	min-height: 0;
	overflow: hidden;
	cursor: pointer;
	position: relative;
	z-index: 2;
	box-shadow: none;
	line-height: 1.2;
}

.hrb-app .hrb-l-block.is-mine {
	background: var(--hrb-mine);
	border-color: #b8962e;
}

.hrb-app .hrb-l-block:hover {
	filter: brightness(0.96);
}

.hrb-app .hrb-l-block.is-short {
	flex-direction: row;
	align-items: center;
	gap: 6px;
	padding-top: 1px;
	padding-bottom: 1px;
}

.hrb-l-btitle,
.hrb-l-bby {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: 12px;
	max-width: 100%;
}

.hrb-l-btitle {
	font-weight: 600;
}

.hrb-l-bby {
	color: var(--hrb-ink2);
	font-size: 11px;
}

.hrb-l-hint {
	margin: 8px 0 0;
}

/* Booking details (someone else's booking) */
.hrb-modal-sm {
	max-width: 420px;
}

.hrb-details > div {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

/* List view dragging (your own bookings) */
.hrb-app .hrb-l-block.is-drag {
	cursor: grab;
	touch-action: none;
	user-select: none;
}

.hrb-l-h {
	position: absolute;
	left: 0;
	right: 0;
	height: 7px;
	cursor: ns-resize;
	z-index: 1;
}

.hrb-l-h1 { top: 0; }
.hrb-l-h2 { bottom: 0; }

.hrb-l-block.is-drag:hover .hrb-l-h {
	background: rgba(29, 78, 137, 0.18);
}

.hrb-app.hrb-dragging,
.hrb-app.hrb-dragging * {
	user-select: none;
	cursor: grabbing;
}

.hrb-app .hrb-l-block.is-dragging {
	z-index: 3;
	box-shadow: 0 6px 18px rgba(20, 28, 40, 0.25);
	outline: 2px solid var(--hrb-slot);
}

.hrb-app .hrb-l-block.is-bad {
	background: #fdecea;
	border-color: #e3a49b;
	outline-color: var(--hrb-danger);
}

.hrb-app .hrb-l-block.is-saving {
	opacity: 0.6;
}

.hrb-cadence {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-top: 6px;
	border-top: 1px solid #eef0f3;
}

.hrb-app [hidden],
.hrb-modal-host [hidden] {
	display: none !important;
}

/* Today: highlighted Today button, and the red "now" line in the list view */
.hrb-app .hrb-btn.hrb-today-btn.is-today {
	background: #fff3c4;
	border-color: #d9a520;
	color: #5c4200;
}

.hrb-app .hrb-btn.hrb-today-btn.is-today:hover {
	background: #ffe99a;
}

.hrb-l-now {
	position: absolute;
	left: 64px;
	right: 0;
	height: 4px;
	background: #e02424;
	border-radius: 2px;
	z-index: 4;
	pointer-events: none;
}

.hrb-l-now::before {
	content: "";
	position: absolute;
	left: -6px;
	top: -4px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #e02424;
}

/* P1 rooms */
.hrb-p1 {
	display: inline-block;
	padding: 0 5px;
	border-radius: 4px;
	background: #5b3fa0;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 17px;
	letter-spacing: 0.02em;
	vertical-align: middle;
	margin-left: 4px;
}

.hrb-legend .hrb-p1 {
	margin-left: 0;
}

.hrb-p1-note {
	margin: 0;
	font-size: 13px;
	color: var(--hrb-ink2);
	display: flex;
	align-items: center;
	gap: 6px;
}

.hrb-p1-note .hrb-p1 {
	margin-left: 0;
}

/* List view: room names open the room calendar */
.hrb-app .hrb-l-rlink {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	font-weight: 600;
	font-size: 13px;
	line-height: 1.25;
	color: var(--hrb-accent);
	text-decoration: underline;
	text-decoration-color: rgba(29, 78, 137, 0.35);
	text-underline-offset: 3px;
	cursor: pointer;
	word-break: break-word;
}

.hrb-app .hrb-l-rlink:hover {
	text-decoration-color: currentColor;
}

/* Room calendar: full-page window with one room by week or month */
.hrb-rc-bg {
	position: fixed;
	inset: 0;
	z-index: 100000; /* above the WordPress admin bar; the booking window comes later in the page so it still stacks on top */
	background: rgba(20, 28, 40, 0.45);
	display: flex;
	justify-content: center;
	padding: 16px;
}

.hrb-rc {
	--hrb-slot-h: 22px;
	width: 100%;
	max-width: 1500px;
	height: 100%;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 24px 60px rgba(20, 28, 40, 0.3);
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px 20px;
	color: var(--hrb-ink);
	outline: none;
}

.hrb-rc-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 18px;
}

.hrb-rc-title {
	display: flex;
	flex-direction: column;
	min-width: 0;
	margin-right: auto;
}

.hrb-rc-title h2 {
	margin: 0;
	font-size: 20px;
	line-height: 1.25;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 8px;
}

.hrb-rc-title .hrb-muted {
	font-size: 13px;
}

.hrb-rc-nav {
	display: flex;
	align-items: center;
	gap: 8px;
}

.hrb-rc-range {
	font-size: 16px;
	font-weight: 600;
	margin-left: 6px;
	min-width: 150px;
}

.hrb-rc-body {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
	transition: opacity 0.15s;
}

.hrb-rc.is-loading .hrb-rc-body {
	opacity: 0.55;
}

.hrb-rc .hrb-l-scroll {
	max-height: none;
	flex: 1;
	min-height: 0;
}

/* Week rows stretch to fill the window (never shorter than the list view's rows). */
.hrb-rc .hrb-l-table {
	min-height: 100%;
}

.hrb-rc-hint {
	margin: 0;
	font-size: 13px;
}

/* Week: day headings */
.hrb-app .hrb-rc-dayh {
	position: sticky;
	top: 0;
	z-index: 5;
	margin: 0;
	padding: 6px 4px;
	border: 0;
	border-left: 1px solid #e6e9ee;
	border-bottom: 1px solid var(--hrb-line);
	border-radius: 0;
	background: #f6f7f9;
	box-shadow: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	line-height: 1.2;
	cursor: pointer;
}

.hrb-app .hrb-rc-dayh:hover {
	background: #edf1f6;
}

.hrb-rc-dow {
	font-size: 12px;
	color: var(--hrb-muted);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.hrb-rc-dnum {
	font-size: 14px;
	font-weight: 600;
}

.hrb-app .hrb-rc-dayh.is-today {
	background: #fff3c4;
	box-shadow: inset 0 -3px 0 #d9a520;
}

.hrb-app .hrb-l-free.is-closed:disabled {
	background: repeating-linear-gradient(135deg, #f6f7f9 0 6px, #eef0f3 6px 12px);
}

.hrb-rc-rep {
	margin-right: 4px;
	color: var(--hrb-muted);
	font-weight: 600;
}

.hrb-rc-now {
	position: absolute;
	left: 0;
	right: 0;
	height: 4px;
	background: #e02424;
	border-radius: 2px;
	z-index: 4;
	pointer-events: none;
}

.hrb-rc-now::before {
	content: "";
	position: absolute;
	left: -6px;
	top: -4px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #e02424;
}

/* Month grid */
.hrb-rc-month {
	flex: 1;
	min-height: 0;
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	border: 1px solid var(--hrb-line);
	border-radius: 8px;
	overflow: auto;
	background: var(--hrb-line);
	gap: 1px;
}

.hrb-rc-mdow {
	background: #f6f7f9;
	text-align: center;
	padding: 6px 4px;
	font-size: 12px;
	font-weight: 600;
	color: var(--hrb-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.hrb-app .hrb-rc-mday {
	margin: 0;
	padding: 6px;
	border: 0;
	border-radius: 0;
	background: #fff;
	box-shadow: none;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 3px;
	min-width: 0;
	min-height: 0;
	overflow: hidden;
	text-align: left;
	cursor: pointer;
}

.hrb-app .hrb-rc-mday:hover {
	background: var(--hrb-free-hover);
	box-shadow: inset 0 0 0 2px var(--hrb-slot);
}

.hrb-app .hrb-rc-mday.is-closed {
	background: #fafbfc;
}

.hrb-app .hrb-rc-mday.is-other {
	background: #f6f7f9;
}

.hrb-app .hrb-rc-mday.is-other .hrb-rc-mnum {
	color: #9aa3af;
}

.hrb-rc-mnum {
	font-size: 13px;
	font-weight: 600;
	align-self: flex-start;
	min-width: 24px;
	height: 24px;
	line-height: 24px;
	text-align: center;
	border-radius: 12px;
}

.hrb-rc-mday.is-today .hrb-rc-mnum {
	background: #d9a520;
	color: #fff;
}

.hrb-rc-chip {
	display: block;
	padding: 2px 6px;
	border-radius: 4px;
	border-left: 3px solid #aeb3bb;
	background: var(--hrb-booked);
	font-size: 12px;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.hrb-rc-chip.is-mine {
	background: var(--hrb-mine);
	border-left-color: #b8962e;
}

.hrb-rc-chip b {
	font-weight: 600;
}

.hrb-rc-more {
	font-size: 12px;
	font-weight: 600;
	color: var(--hrb-accent);
	padding: 0 6px;
}

@media (max-width: 700px) {
	.hrb-rc-bg { padding: 0; }
	.hrb-rc { border-radius: 0; padding: 12px; }
	.hrb-rc-range { min-width: 0; font-size: 15px; }
	.hrb-rc-x { position: absolute; top: 10px; right: 10px; }
	.hrb-rc-head { position: relative; padding-right: 40px; }
	.hrb-rc-chip b { display: none; }
	.hrb-app .hrb-rc-mday { padding: 4px; }
}

/* ------------------------------------------------------------------------
   Theme guard. Many themes style every button on hover/focus
   (e.g. "button:hover, [type=button]:hover { color:#fff; background:… }"),
   which turned our text white on light backgrounds. These rules restate
   our own hover/focus/active colors with a higher specificity
   (.hrb-app.hrb-app …), and the text color with !important, so the
   theme can't override them.
   ------------------------------------------------------------------------ */
.hrb-app.hrb-app button:is(:hover, :focus, :focus-visible, :active) { color: inherit !important; text-shadow: none; }

.hrb-app.hrb-app .hrb-bldg-btn:is(:hover, :focus, :active) { color: var(--hrb-ink) !important; background: #eef3fa; border-color: #9aa3af; }
.hrb-app.hrb-app .hrb-bldg-btn.is-on:is(:hover, :focus, :active) { color: var(--hrb-accent-ink) !important; background: var(--hrb-accent); border-color: var(--hrb-accent); }

.hrb-app.hrb-app .hrb-day:is(:hover, :focus, :active) { color: var(--hrb-ink) !important; background: transparent; }
.hrb-app.hrb-app .hrb-day.is-past:is(:hover, :focus, :active) { color: #8a929e !important; }
.hrb-app.hrb-app .hrb-day.is-sel:is(:hover, :focus, :active) { color: #fff !important; background: var(--hrb-accent); }

.hrb-app.hrb-app .hrb-btn-primary:is(:hover, :focus, :active) { color: #fff !important; background: #163d6c; border-color: transparent; }
.hrb-app.hrb-app .hrb-btn-primary:disabled { color: #fff !important; background: #9aa3af; }
.hrb-app.hrb-app .hrb-btn-outline:is(:hover, :focus, :active) { color: var(--hrb-ink) !important; background: #f3f4f6; border-color: var(--hrb-line2); }
.hrb-app.hrb-app .hrb-btn-danger:is(:hover, :focus, :active) { color: var(--hrb-danger) !important; background: #fdecea; border-color: #e3a49b; }
.hrb-app.hrb-app .hrb-btn-small:is(:hover, :focus, :active) { color: var(--hrb-ink) !important; background: #fbf3d9; border-color: #b8962e; }
.hrb-app.hrb-app .hrb-btn.hrb-today-btn.is-today:is(:hover, :focus, :active) { color: #5c4200 !important; background: #ffe99a; border-color: #d9a520; }

.hrb-app.hrb-app .hrb-iconbtn:is(:hover, :focus, :active) { color: var(--hrb-ink) !important; background: #f3f4f6; border-color: var(--hrb-line2); }
.hrb-app.hrb-app .hrb-iconbtn.hrb-plain:is(:hover, :focus, :active) { color: var(--hrb-ink) !important; background: #f3f4f6; border-color: transparent; }
.hrb-app.hrb-app .hrb-toast .hrb-iconbtn.hrb-plain:is(:hover, :focus, :active) { color: #fff !important; background: rgba(255, 255, 255, 0.15); }

.hrb-app.hrb-app .hrb-link:is(:hover, :focus, :active) { background: none; border-color: transparent; }
.hrb-app.hrb-app .hrb-chip:is(:hover, :focus, :active) { color: var(--hrb-accent) !important; background: #eef3fa; border-color: var(--hrb-accent); }
.hrb-app.hrb-app .hrb-chip.is-on:is(:hover, :focus, :active) { color: #fff !important; background: var(--hrb-accent); }
.hrb-app.hrb-app .hrb-seg-btn:is(:hover, :focus, :active) { color: var(--hrb-ink) !important; background: #f3f4f6; }
.hrb-app.hrb-app .hrb-seg-btn.is-on:is(:hover, :focus, :active) { color: #fff !important; background: var(--hrb-accent); }

.hrb-app.hrb-app .hrb-l-rlink:is(:hover, :focus, :active) { color: var(--hrb-accent) !important; background: none; border-color: transparent; }
.hrb-app.hrb-app .hrb-l-block:is(:hover, :focus, :active) { color: var(--hrb-ink) !important; background: var(--hrb-booked); border-color: #aeb3bb; }
.hrb-app.hrb-app .hrb-l-block.is-mine:is(:hover, :focus, :active) { background: var(--hrb-mine); border-color: #b8962e; }
.hrb-app.hrb-app .hrb-l-block.is-bad:is(:hover, :focus, :active) { background: #fdecea; border-color: #e3a49b; }
.hrb-app.hrb-app .hrb-l-free:is(:hover, :focus, :active) { background: var(--hrb-free-hover); border-color: #e6e9ee; }
.hrb-app.hrb-app .hrb-l-free:disabled { background: #fafbfc; }
.hrb-app.hrb-app .hrb-l-free.is-closed:disabled { background: repeating-linear-gradient(135deg, #f6f7f9 0 6px, #eef0f3 6px 12px); }
.hrb-app.hrb-app .hrb-vtl-btn.is-on:is(:hover, :focus, :active) { background: var(--hrb-slot); }

.hrb-app.hrb-app .hrb-rc-dayh:is(:hover, :focus, :active) { color: var(--hrb-ink) !important; background: #edf1f6; border-color: #e6e9ee; }
.hrb-app.hrb-app .hrb-rc-dayh.is-today:is(:hover, :focus, :active) { background: #ffe99a; }
.hrb-app.hrb-app .hrb-sb-btn:is(:hover, :focus, :active) { color: var(--hrb-ink) !important; background: #f3f4f6; border-color: transparent; }
.hrb-app.hrb-app .hrb-rc-mday:is(:hover, :focus, :active) { color: var(--hrb-ink) !important; background: var(--hrb-free-hover); }

/* Side panel collapse / expand button (left of the date heading) */
.hrb-app .hrb-sb-btn {
	flex: none;
	width: 44px;
	height: 44px;
	margin: 0 2px 0 -6px;
	padding: 6px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--hrb-ink);
	box-shadow: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.hrb-sb-icon {
	width: 30px;
	height: 30px;
	display: block;
}

/* Room requests: banner link */
.hrb-banner-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px 16px;
}

.hrb-app .hrb-req-link {
	margin-left: auto;
	font-weight: 600;
	color: var(--hrb-accent);
	white-space: nowrap;
	padding: 0;
	cursor: pointer;
}

/* Spam trap field: off screen for people */
.hrb-hp {
	position: absolute !important;
	left: -10000px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Left panel tabs (P1 Editors): Building | Requests */
.hrb-ptabs {
	grid-column: 1 / -1;
	display: flex;
	gap: 6px;
	margin: -18px -18px 2px;
	padding: 10px 12px 0;
	border-bottom: 1px solid var(--hrb-line);
	background: #f6f7f9;
	border-radius: 10px 10px 0 0;
}

.hrb-app .hrb-ptab {
	flex: 1 1 0;
	margin: 0 0 -1px;
	padding: 10px 12px;
	border: 1px solid transparent;
	border-bottom: 0;
	border-radius: 8px 8px 0 0;
	background: #e3edf5;
	color: var(--hrb-ink2);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: none;
}

.hrb-app .hrb-ptab.is-on {
	background: #fff;
	border-color: var(--hrb-line);
	color: var(--hrb-ink);
}

.hrb-ptab-n {
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	color: var(--hrb-accent);
}

/* Requests list (newest first, like an inbox) */
.hrb-rqs {
	grid-column: 1 / -1;
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.hrb-rq {
	display: block;
	padding: 2px 0 2px 14px;
	border-left: 4px solid var(--hrb-accent); /* waiting */
	font-size: 14px;
	line-height: 1.45;
	color: var(--hrb-ink);
}

.hrb-rq.is-approved {
	border-left-color: #4caf28;
}

.hrb-rq.is-rejected {
	border-left-color: #c6ccd5;
}

.hrb-app .hrb-rq-title {
	display: block;
	width: auto;
	margin: 0 0 2px;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	text-align: left;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.25;
	color: var(--hrb-ink);
	cursor: pointer;
	word-break: break-word;
	min-height: 0;
	height: auto;
}

.hrb-app .hrb-rq-title:hover {
	text-decoration: underline;
}

/* Waiting for a decision = unread: bold title */
.hrb-app .hrb-rq.is-pending .hrb-rq-title {
	font-weight: 700;
}

.hrb-rq-room,
.hrb-rq-by {
	font-weight: 500;
}

.hrb-rq-when {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0 6px;
	padding-left: 22px;
	font-weight: 500;
}

.hrb-rq-by a.hrb-rq-name {
	color: inherit;
	text-decoration: underline; /* same as the Revoke link */
	text-underline-offset: 2px;
}

.hrb-rq-by a.hrb-rq-name:hover {
	color: var(--hrb-accent);
}

.hrb-rq-sent {
	margin-top: 4px;
	font-size: 13px;
	color: var(--hrb-muted);
}

.hrb-rq-actions {
	display: flex;
	align-items: center;
	gap: 10px 22px;
	margin-top: 10px;
}

.hrb-rq.is-pending .hrb-rq-actions {
	gap: 10px;
}

.hrb-app .hrb-btn.hrb-btn-sm {
	min-height: 34px;
	padding: 0 18px;
	font-size: 14px;
}

.hrb-rq-status {
	font-size: 16px;
	font-weight: 600;
	color: #3c9a1f;
}

.hrb-rq.is-rejected .hrb-rq-status {
	color: var(--hrb-muted);
	font-style: italic;
}

/* Rejected: italic and muted */
.hrb-rq.is-rejected .hrb-rq-title,
.hrb-rq.is-rejected .hrb-rq-room,
.hrb-rq.is-rejected .hrb-rq-when,
.hrb-rq.is-rejected .hrb-rq-by {
	font-style: italic;
	color: var(--hrb-muted);
}

.hrb-app .hrb-rq-revoke {
	padding: 0;
	font-size: 15px;
	font-weight: 600;
	color: var(--hrb-ink2);
	text-decoration: underline;
	cursor: pointer;
}

.hrb-rq-empty {
	grid-column: 1 / -1;
	margin: 8px 0;
}

/* Past requests: grayed-out decisions, trash can on the right */
.hrb-app .hrb-rq-actions .hrb-btn:disabled {
	opacity: 1;
	background: #eef0f3;
	border-color: #dce0e6;
	color: #9aa3af;
	cursor: not-allowed;
}

.hrb-app .hrb-rq-del {
	margin-left: auto;
	color: var(--hrb-muted);
}

.hrb-app .hrb-rq-del.hrb-iconbtn {
	width: 34px;
	height: 34px;
	min-height: 34px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* Theme guard for the new buttons */
.hrb-app.hrb-app .hrb-ptab:is(:hover, :focus, :active) { color: var(--hrb-ink) !important; background: #d6e4ef; border-color: transparent; }
.hrb-app.hrb-app .hrb-ptab.is-on:is(:hover, :focus, :active) { background: #fff; border-color: var(--hrb-line); }
.hrb-app.hrb-app .hrb-rq-title:is(:hover, :focus, :active) { color: var(--hrb-ink) !important; background: none; border-color: transparent; }
.hrb-app.hrb-app .hrb-rq.is-rejected .hrb-rq-title:is(:hover, :focus, :active) { color: var(--hrb-muted) !important; }
.hrb-app.hrb-app .hrb-rq-revoke:is(:hover, :focus, :active) { color: var(--hrb-ink) !important; background: none; }
.hrb-app.hrb-app .hrb-req-link:is(:hover, :focus, :active) { color: var(--hrb-accent) !important; background: none; }

.hrb-app.hrb-app .hrb-rq-actions .hrb-btn:disabled { color: #9aa3af !important; background: #eef0f3; border-color: #dce0e6; }
.hrb-app.hrb-app .hrb-rq-del.hrb-iconbtn:is(:hover, :focus, :active) { color: var(--hrb-danger) !important; background: #fdecea; }

/* Themes give buttons their own padding, margins and height; keep the request title flush. */
.hrb-app.hrb-app .hrb-rq-title { display: block; margin: 0 0 2px !important; padding: 0 !important; min-height: 0 !important; height: auto !important; line-height: 1.25 !important; border: 0 !important; }

/* Required fields in the request window */
.hrb-req {
	color: var(--hrb-danger);
	font-weight: 700;
	margin-left: 2px;
}
.hrb-app.hrb-app .hrb-rq-actions button { margin: 0 !important; }
.hrb-app.hrb-app .hrb-rq-revoke { padding: 0 !important; min-height: 0 !important; line-height: 1.4 !important; border: 0 !important; }
.hrb-app.hrb-app .hrb-rq-del.hrb-iconbtn { padding: 0 !important; min-height: 34px !important; }
.hrb-ptab-n { margin-left: 4px; }

/* Requests: "Approved by [person]" — the name shows as a tooltip on hover, tap or keyboard focus */
.hrb-rq-decider {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-left: -12px; /* sits close to the status word */
	font-size: 15px;
	color: var(--hrb-ink2);
}

.hrb-rq.is-rejected .hrb-rq-decider {
	font-style: italic;
	color: var(--hrb-muted);
}

.hrb-rq-who {
	position: relative;
	display: inline-flex;
	color: var(--hrb-ink);
	cursor: default;
	border-radius: 4px;
	outline-offset: 2px;
}

.hrb-rq-who:focus-visible {
	outline: 2px solid var(--hrb-accent);
}

.hrb-rq-who::after {
	content: attr(data-tip);
	position: absolute;
	left: 50%;
	bottom: calc(100% + 8px);
	transform: translateX(-50%);
	padding: 5px 9px;
	border-radius: 6px;
	background: #1c2330;
	color: #fff;
	font-size: 12px;
	font-style: normal;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.12s;
	z-index: 10;
}

.hrb-rq-who::before {
	content: "";
	position: absolute;
	left: 50%;
	bottom: calc(100% + 3px);
	transform: translateX(-50%);
	border: 5px solid transparent;
	border-top-color: #1c2330;
	border-bottom: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.12s;
	z-index: 10;
}

.hrb-rq-who:hover::after,
.hrb-rq-who:hover::before,
.hrb-rq-who:focus::after,
.hrb-rq-who:focus::before {
	opacity: 1;
	visibility: visible;
}

/* Exception dates for repeating bookings: mini calendar of the repeat's dates */
.hrb-skip {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 10px;
}

.hrb-skip-cal {
	max-width: 300px;
}

.hrb-skip-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 4px;
}

.hrb-app .hrb-skip-head .hrb-iconbtn {
	width: 30px;
	height: 30px;
	min-height: 30px;
	padding: 0;
}

.hrb-skip-title {
	font-size: 14px;
	font-weight: 600;
}

.hrb-skip-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 3px;
	text-align: center;
	font-size: 13px;
}

.hrb-skip-dow {
	font-size: 11px;
	font-weight: 600;
	color: var(--hrb-muted);
	padding: 2px 0;
}

.hrb-skip-off {
	line-height: 30px;
	color: #b4bac3;
}

.hrb-app .hrb-skip-day {
	height: 30px;
	min-height: 30px;
	margin: 0;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: none;
}

/* Booked date in the repeat */
.hrb-app .hrb-skip-day.is-on {
	background: #dceaf9;
	border-color: #9cc3ea;
	color: var(--hrb-accent);
}

/* Skipped (exception) date */
.hrb-app .hrb-skip-day.is-skip {
	background: #fdecea;
	border-color: #e3a49b;
	color: var(--hrb-danger);
	text-decoration: line-through;
}

.hrb-app .hrb-skip-day:disabled {
	opacity: 0.45;
	cursor: default;
}

.hrb-skip-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
	font-size: 13px;
}

.hrb-app .hrb-skip-chip {
	margin: 0;
	padding: 2px 8px;
	min-height: 0;
	border: 1px solid #e3a49b;
	border-radius: 12px;
	background: #fdecea;
	color: var(--hrb-danger);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.5;
	cursor: pointer;
	box-shadow: none;
}

.hrb-skip-hint {
	margin: 6px 0 0;
	font-size: 12px;
}

.hrb-rep-sum {
	margin: 0 0 6px;
	font-size: 13px;
}

.hrb-app.hrb-app .hrb-skip-day.is-on:is(:hover, :focus, :active) { color: var(--hrb-accent) !important; background: #c7ddf5; border-color: var(--hrb-accent); }
.hrb-app.hrb-app .hrb-skip-day.is-skip:is(:hover, :focus, :active) { color: var(--hrb-danger) !important; background: #fbd9d4; border-color: var(--hrb-danger); }
.hrb-app.hrb-app .hrb-skip-chip:is(:hover, :focus, :active) { color: var(--hrb-danger) !important; background: #fbd9d4; border-color: var(--hrb-danger); }

/* Requests: building filter */
.hrb-rq-filter {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 16px;
	margin: -6px 0 2px;
	font-size: 14px;
}

.hrb-rq-filter .hrb-muted {
	font-size: 14px;
}

.hrb-rq-fl {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-weight: 600;
	cursor: pointer;
}

.hrb-app .hrb-rq-fl input {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--hrb-accent);
	cursor: pointer;
}

/* Requests: plain lines (no labels), links to the map / list, foldable decided requests */
.hrb-rq-line {
	font-weight: 500;
}

.hrb-app .hrb-rq-link {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	font: inherit;
	font-weight: 500;
	color: inherit;
	text-align: left;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
	min-height: 0;
	line-height: inherit;
}

.hrb-app .hrb-rq-link:hover {
	color: var(--hrb-accent);
}

.hrb-rq.is-foldable {
	cursor: pointer;
}

.hrb-rq-more {
	display: block;
}

.hrb-rq.is-rejected .hrb-rq-line,
.hrb-rq.is-rejected .hrb-rq-link {
	font-style: italic;
	color: var(--hrb-muted);
}

.hrb-app.hrb-app .hrb-rq-link:is(:hover, :focus, :active) { color: var(--hrb-accent) !important; background: none; padding: 0 !important; margin: 0 !important; border: 0 !important; min-height: 0 !important; }
