/* Scheduler feature styles (Stage 2 components).
   Tier visual language (requirements UI section):
   - unlocked: pastel fill
   - locked-in: strong saturated fill + lock icon
   - no-access: blank block, flex stripes, lock state
   - coverage: bar overlay (members available / proposers) */

/* ---- Semantic color system (item 12) ----
   Pure yellow (#ffd75e and Bootstrap's #ffc107 warning yellow) is hard to
   read/see on light backgrounds. Semantic scheduler colors live in :root
   as constants (aliased to Bootstrap variables where available), and
   controls use semantic classes instead of raw yellows:
   - danger (red): destructive controls that had no red on them already
   - warning (orange): warning controls where red is already used on the
     same control cluster (Bootstrap ships no orange outline, hence
     .btn-outline-orange below)
   Item 12 replacements: "Lock my link" (MyAccessPanel.razor), "Reject
   event" (EventPopupModal.razor) and "Reject" (ResourceEditor.razor) →
   btn-outline-danger; "Rotate key" (ResourceEditor.razor, sits next to
   red Revoke/Deactivate) → btn-outline-orange; locked-block coverage fill
   (below) → var(--sched-color-danger). Layout/media-query rules are owned
   separately — do not mix them into this section. */
:root {
	--sched-color-normal: var(--bs-secondary-color, #6c757d);
	--sched-color-primary: var(--bs-primary, #0d6efd);
	--sched-color-warning: var(--bs-orange, #fd7e14);
	--sched-color-danger: var(--bs-danger, #dc3545);
}

/* Semantic element kinds: text/icon color vocabulary for non-button
   elements (headings, badges, explanatory text). */
.el-normal { color: var(--sched-color-normal); }
.el-primary { color: var(--sched-color-primary); }
.el-warning { color: var(--sched-color-warning); }
.el-danger { color: var(--sched-color-danger); }

/* Orange outline button (item 12): mirrors the .btn-outline-* CSS-variable
   pattern from bootstrap.css; hover text is white on solid orange for
   contrast (the yellow outline's black-on-yellow was unreadable). */
.btn-outline-orange {
	--bs-btn-color: var(--sched-color-warning);
	--bs-btn-border-color: var(--sched-color-warning);
	--bs-btn-hover-color: #fff;
	--bs-btn-hover-bg: var(--sched-color-warning);
	--bs-btn-hover-border-color: var(--sched-color-warning);
	--bs-btn-focus-shadow-rgb: 253, 126, 20;
	--bs-btn-active-color: #fff;
	--bs-btn-active-bg: var(--sched-color-warning);
	--bs-btn-active-border-color: var(--sched-color-warning);
	--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
	--bs-btn-disabled-color: var(--sched-color-warning);
	--bs-btn-disabled-bg: transparent;
	--bs-btn-disabled-border-color: var(--sched-color-warning);
	--bs-gradient: none;
}

.sched-block {
	position: relative;
	border-radius: 0.5rem;
	padding: 0.4rem 0.5rem;
	overflow: hidden;
	font-size: 0.875rem;
	line-height: 1.25;
	min-height: 2.4rem;
	cursor: pointer;

	/* Solid core = the rectangle's ACTUAL time span; any minimum-height
	   stretch beyond it renders as diagonal tier-color stripes — pure CSS
	   (two background layers, no extra DOM). Day-based views override
	   --sched-core-h with the period's pixel height; other views keep 100%. */
	--sched-core-h: 100%;
	background:
		linear-gradient(var(--sched-tier-bg, #d9e8fb), var(--sched-tier-bg, #d9e8fb)) top / 100% var(--sched-core-h) no-repeat,
		repeating-linear-gradient(45deg, color-mix(in srgb, var(--sched-tier-bg, #d9e8fb) 45%, transparent) 0 6px, transparent 6px 12px);
}

/* ---- visibility tiers ---- */

.sched-block-unlocked {
	--sched-tier-bg: #d9e8fb; /* pastel blue */
	border: 1px solid #b6d0f0;
}

.sched-block-unlocked.sched-own {
	--sched-tier-bg: #d3f0dc; /* pastel green for own events */
	border-color: #a9dcb9;
}

.sched-block-locked {
	--sched-tier-bg: #5b8def; /* strong saturated blue */
	color: #fff;
	border: 1px solid #3f6fd1;
}

.sched-block-anonymous {
	background:
		repeating-linear-gradient(45deg, transparent 0 6px, rgba(120, 130, 145, 0.18) 6px 12px),
		#eef1f5;
	border: 1px dashed #b8c0cc;
	color: #6b7480;
}

.sched-block-frozen {
	--sched-tier-bg: #e7eefc;
	border: 1px solid #b6d0f0;
}

/* ---- internals ---- */

.sched-block-title {
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sched-block-time {
	font-size: 0.78rem;
	opacity: 0.85;
}

.sched-block-names {
	font-size: 0.75rem;
	opacity: 0.9;
	margin-top: 0.15rem;
}

/* Event description — event popup (pre-wrap: textarea newlines are
   significant) and agenda block (single-line truncated preview). */
.sched-popup-description {
	white-space: pre-wrap;
	margin-bottom: 0.5rem;
}

.sched-block-desc {
	font-size: 0.75rem;
	opacity: 0.8;
	margin-top: 0.1rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sched-lock-icon {
	position: absolute;
	top: 0.25rem;
	right: 0.4rem;
}

.sched-frozen-icon {
	position: absolute;
	top: 0.25rem;
	right: 0.4rem;
	opacity: 0.7;
}

/* ---- coverage bars ---- */

.sched-coverage {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 2px 4px 3px;
}

.sched-coverage-row {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 0.68rem;
}

.sched-coverage-bar {
	flex: 1;
	height: 5px;
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.45);
	overflow: hidden;
}

.sched-block-anonymous .sched-coverage-bar,
.sched-block-unlocked .sched-coverage-bar {
	background: rgba(90, 110, 140, 0.18);
}

.sched-coverage-fill {
	height: 100%;
	border-radius: 3px;
	background: #2f7d4f;
}

.sched-block-locked .sched-coverage-fill {
	/* item 12: was pure yellow #ffd75e — hard to see; now danger red. */
	background: var(--sched-color-danger);
}

/* ---- drag-to-paint (dragCreate.js) ---- */

.sched-paintable {
	position: relative;
	/* Vertical scrolling stays NATIVE on touch until dragCreate.js engages a
	   drag (long-press gate). Horizontal pan is not offered — navigation is
	   via arrows; re-evaluate with a custom gesture if swipe-nav is wanted. */
	touch-action: pan-y;
	cursor: cell;
}

.sched-paint-overlay {
	position: absolute;
	left: 0;
	right: 0;
	background: rgba(25, 135, 84, 0.28); /* bootstrap success tint */
	border-top: 2px solid #198754;
	border-bottom: 2px solid #198754;
	pointer-events: none;
	z-index: 5;
}

/* Blocked overlap (2026-10-22): the drag preview turns DULL RED over blocked
   windows — the slot cannot take a new event. dragCreate.js suppresses the
   create modal on release; the server refusal stays as the stale-client
   backstop. */
.sched-paint-overlay-blocked {
	background: rgba(122, 52, 52, 0.35);
	border-top-color: #8b3a3a;
	border-bottom-color: #8b3a3a;
}

.sched-paint-overlay-label {
	display: none;
	position: absolute;
	top: 2px;
	left: 4px;
	font-size: 0.7rem;
	color: #6e2c2c;
	background: rgba(255, 255, 255, 0.82);
	padding: 0 3px;
	border-radius: 3px;
	white-space: nowrap;
}

.sched-paint-overlay-blocked .sched-paint-overlay-label {
	display: block;
}

/* ---- week / 3-day views ---- */

.sched-week-view {
	display: flex;
	overflow-x: auto; /* 3-day side-scroll + narrow-week horizontal scroll */
	padding-bottom: 4px;
}

.sched-week-day {
	/* 7 days must fit the widest page container (1100px): 7×140 + spacing.
	   Spacing uses internal right PADDING (not flex gap) so column widths
	   stay exact fractions — the incremental slide translates by exactly
	   100%/cols-n with no gap math (rule 2026-10-16). */
	flex: 1 0 140px;
	min-width: 140px;
	padding-right: 8px;
	box-sizing: border-box;
}

.sched-week-day-header {
	font-size: 0.78rem;
	font-weight: 600;
	color: #495057;
	margin-bottom: 4px;
	text-align: center;
}

/* ITEM 2: on narrow screens the Week tab is hidden — the 7-column week pane
   (min 140px per column ≈ 980px+) cannot fit and its horizontal side-scroll
   gesture breaks. Below Bootstrap's md breakpoint the tab is not selectable;
   Week view still works on wider screens. */
@media (max-width: 767.98px) {
	.view-tab-week {
		display: none;
	}
}

/* ---- month view ---- */

.sched-month-view {
	border: 1px solid #dee2e6;
	border-radius: 0.5rem;
	overflow: hidden;
}

.sched-month-weekdays,
.sched-month-row {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
}

.sched-month-weekday {
	padding: 4px;
	font-size: 0.72rem;
	font-weight: 600;
	color: #6b7480;
	text-align: center;
	background: #f5f7f9;
	border-bottom: 1px solid #dee2e6;
}

.sched-month-cell {
	position: relative; /* anchor for .sched-paint-overlay (drag-paint) */
	user-select: none;
	-webkit-user-select: none; /* long-press must not start text selection mid-drag */
	min-height: 84px;
	padding: 3px;
	border-right: 1px solid #eef1f4;
	border-bottom: 1px solid #eef1f4;
}

/* ITEM 3: event content inside a month cell must never widen the cell (grid
   bulge): min-width:0 keeps the 7 grid tracks equal and the cell clips
   horizontally, while rows still grow TOGETHER vertically when blocks stack. */
.sched-month-cell {
	min-width: 0;
	overflow: hidden;
}

.sched-month-blocks,
.sched-month-blocks .sched-block {
	min-width: 0;
	max-width: 100%;
}

.sched-month-outside {
	background: #fafbfc;
	opacity: 0.55;
}

/* ---- resource limits grey-fill (rule 2026-10-21) ---- */

/* Day view: blocked window overlay (resource closed; overrides date ranges).
   ITEM 11: yellow stripes + label tint match the month view's blocked chip
   (⛔ + yellow — shared text via SchedulingBlockedLabel). */
.sched-blocked {
	position: absolute;
	left: 0;
	right: 0;
	z-index: 1;
	pointer-events: none; /* availability painting underneath keeps working */
	background: repeating-linear-gradient(
		45deg,
		rgba(255, 193, 7, 0.10) 0 6px,
		rgba(255, 193, 7, 0.22) 6px 12px);
	border-top: 1px solid rgba(255, 193, 7, 0.45);
	border-bottom: 1px solid rgba(255, 193, 7, 0.45);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.sched-blocked-label {
	font-size: 0.68rem;
	font-weight: 600;
	color: #5a6268;
	background: rgba(255, 255, 255, 0.85);
	padding: 0 6px;
	border-radius: 4px;
	white-space: nowrap;
}

/* ITEM 11: only the BLOCKED overlays' label tints yellow; the same pill class
   also labels the grey "outside available dates" spans, which stay grey. */
.sched-blocked .sched-blocked-label {
	color: #8a6d3b;
}

/* Day view: the portions of the day OUTSIDE the available date ranges. */
.sched-outside {
	position: absolute;
	left: 0;
	right: 0;
	z-index: 0;
	pointer-events: none;
	background: repeating-linear-gradient(
		-45deg,
		rgba(222, 226, 230, 0.55) 0 8px,
		rgba(206, 212, 218, 0.65) 8px 16px);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

/* Month view: a day cell with no available time (or overlapped by a
   blocked range) — grey fill keeps the cell clickable for context. */
.sched-month-unavailable {
	background: repeating-linear-gradient(
		-45deg,
		rgba(222, 226, 230, 0.7) 0 8px,
		rgba(206, 212, 218, 0.8) 8px 16px);
}

.sched-month-unavailable .sched-month-daynum {
	color: #b0b7bf;
}

.sched-month-blocked {
	font-size: 0.66rem;
	font-weight: 600;
	color: #8a6d3b;
	background: rgba(255, 193, 7, 0.18);
	border-radius: 4px;
	padding: 0 4px;
	margin-bottom: 2px;
}

/* Rule 2026-10-26: partially filled month days — proportional slivers of
   blocked (yellow stripes) and outside-available (grey stripes) time.
   Absolutely positioned against the cell; pointer-events none keeps the day
   click + drag-paint working through the fills. Full days stay on the old
   .sched-month-unavailable grey. */
.sched-month-partial {
	position: absolute;
	left: 0;
	right: 0;
	z-index: 0;
	pointer-events: none;
}

.sched-month-partial-blocked {
	background: repeating-linear-gradient(
		45deg,
		rgba(255, 193, 7, 0.10) 0 6px,
		rgba(255, 193, 7, 0.22) 6px 12px);
}

.sched-month-partial-outside {
	background: repeating-linear-gradient(
		-45deg,
		rgba(222, 226, 230, 0.55) 0 8px,
		rgba(206, 212, 218, 0.65) 8px 16px);
}

.sched-month-daynum {
	font-size: 0.7rem;
	color: #9aa3ad;
	margin-bottom: 2px;
}

.sched-month-blocks {
	display: flex;
	flex-direction: column;
	gap: 2px;
	position: relative; /* above the partial-fill slivers (rule 2026-10-26) */
	z-index: 1;
}

.sched-month-blocks .sched-block {
	min-height: 1.2rem;
	font-size: 0.68rem;
	padding: 0.1rem 0.25rem;
}

/* ---- day view ---- */

.sched-day-view {
	position: relative;
	border: 1px solid #dee2e6;
	border-radius: 0.5rem;
	overflow: hidden;
	background: #fff;
}

.sched-day-hour {
	position: absolute;
	left: 0;
	right: 0;
	border-top: 1px solid #eef1f4;
}

.sched-day-hour-label {
	position: absolute;
	left: 4px;
	top: -8px;
	font-size: 0.68rem;
	color: #9aa3ad;
	background: #fff;
	padding: 0 2px;
}

.sched-day-block {
	position: absolute;
	left: 0; /* real horizontal offset comes from inline margin-left (column fraction) */
	z-index: 2;
}

	/* The block fills its wrapper — whose geometry IS the visible rectangle
	   (exact column fraction), so the whole area is the clickable button and
	   no invisible full-width layer bypasses other rectangles. Height = the
	   event period, with a 2.4rem minimum: the stretch beyond the actual time
	   renders striped (see --sched-core-h on .sched-block). */
	.sched-day-block .sched-block {
		position: absolute;
		inset: 0;
		min-height: 2.4rem;
	}

/* Incremental column slide (rule 2026-10-16): the view renders
   DayCount+step columns; the container translates by exactly `step`
   column widths — shared days are NOT re-rendered and any step animates
   as if adjacent (no in-between data). */
.sched-cols-anim {
	flex: 0 0 auto;
	will-change: transform;
}

.sched-cols-anim .sched-week-day {
	flex: 0 0 auto;
	width: calc(100% / var(--cols-n));
}

.sched-cols-anim.sched-cols-next {
	animation: sched-cols-next 0.45s ease forwards;
}

.sched-cols-anim.sched-cols-prev {
	animation: sched-cols-prev 0.45s ease forwards;
}

@keyframes sched-cols-next {
	from { transform: translateX(0); }
	to { transform: translateX(calc(-100% / var(--cols-n) * var(--cols-step))); }
}

@keyframes sched-cols-prev {
	from { transform: translateX(calc(-100% / var(--cols-n) * var(--cols-step))); }
	to { transform: translateX(0); }
}

/* ---- segmented slot picker ---- */

.sched-slot-picker {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.sched-slot-day-header {
	font-size: 0.72rem;
	font-weight: 600;
	color: #6b7480;
	margin-bottom: 0.15rem;
}

.sched-slot-cells {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
}

.sched-slot-cell {
	padding: 0.1rem 0.4rem;
	font-size: 0.72rem;
}

/* ---- legend ---- */

.sched-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
	font-size: 0.8rem;
	color: #495057;
	align-items: center;
}

.sched-legend-item {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

/* Legend swatch: same layered fill as event rectangles (solid tier color
   over diagonal stripes) so the legend actually shows each tier's color. */
.sched-legend-swatch {
	width: 1.1rem;
	height: 0.85rem;
	border-radius: 3px;
	display: inline-block;
	border: 1px solid #c8cfd8;
	background:
		linear-gradient(var(--sched-tier-bg, transparent), var(--sched-tier-bg, transparent)) no-repeat,
		repeating-linear-gradient(45deg, color-mix(in srgb, var(--sched-tier-bg, transparent) 45%, transparent) 0 4px, transparent 4px 8px);
}

/* The no-access tier paints its own striped background — keep it on swatches. */
.sched-legend-swatch.sched-block-anonymous {
	background:
		repeating-linear-gradient(45deg, transparent 0 4px, rgba(120, 130, 145, 0.18) 4px 8px),
		#eef1f5;
}

/* ---- range slide transition (CalendarRange) ---- */
/* During an arrow transition BOTH panes render: the outgoing one animates
   out while the incoming animates in; after the animation window the page
   discards the outgoing pane (its data model entry is dropped). */

.sched-range {
	position: relative;
	overflow: hidden;
}

.sched-range-pane {
	width: 100%;
}

.sched-anim .sched-pane-outgoing {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	pointer-events: none;
}

.sched-anim.sched-slide-1 .sched-pane-outgoing {
	animation: sched-slide-out-left 0.45s ease forwards;
}

.sched-anim.sched-slide-1 > .sched-range-pane:last-child {
	animation: sched-slide-in-right 0.45s ease;
}

.sched-anim.sched-slide--1 .sched-pane-outgoing {
	animation: sched-slide-out-right 0.45s ease forwards;
}

.sched-anim.sched-slide--1 > .sched-range-pane:last-child {
	animation: sched-slide-in-left 0.45s ease;
}

@keyframes sched-slide-out-left {
	from { transform: translateX(0); opacity: 1; }
	to { transform: translateX(-40%); opacity: 0; }
}

@keyframes sched-slide-in-right {
	from { transform: translateX(60%); opacity: 0; }
	to { transform: translateX(0); opacity: 1; }
}

@keyframes sched-slide-out-right {
	from { transform: translateX(0); opacity: 1; }
	to { transform: translateX(40%); opacity: 0; }
}

@keyframes sched-slide-in-left {
	from { transform: translateX(-60%); opacity: 0; }
	to { transform: translateX(0); opacity: 1; }
}

/* ==================== People components (items 6-9) ==================== */

/* Avatar stack: overlapping circles, each showing a sliver of the next. */
.sched-avatar-stack-btn {
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	line-height: 0;
}

.sched-avatar-stack {
	display: inline-flex;
	align-items: center;
}

.sched-avatar-stack .sched-avatar {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: 2px solid #fff;
	color: #fff;
	font-size: 10px;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-left: -8px;
}

.sched-avatar-stack .sched-avatar:first-child {
	margin-left: 0;
}

.sched-avatar-overflow {
	background: #6c757d !important;
}

/* Simple person row: avatar + full name (item 8). */
.sched-person {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 4px 6px;
}

.sched-person .sched-avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}

.sched-person-name {
	white-space: nowrap;
}

/* Full people list: multi-column, fills down first then next column;
   column-width lets it widen into more columns when the parent allows. */
.sched-people-list {
	columns: auto 220px;
	column-gap: 24px;
	column-fill: auto;
	max-height: 60vh;
	overflow-y: auto;
}

/* Lightweight circuit-only modal. */
.sched-modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	z-index: 1050;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 8vh 16px 16px;
}

.sched-modal {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
	width: 100%;
	max-width: 640px;
	max-height: 84vh;
	display: flex;
	flex-direction: column;
}

.sched-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	border-bottom: 1px solid #dee2e6;
}

.sched-modal-title {
	margin: 0;
	font-size: 1.1rem;
}

.sched-modal-body {
	padding: 16px;
	overflow-y: auto;
}

/* ---- Free-form duration input (rule 2026-10-24) ----
   Days : Hours : Minutes — any value allowed per unit (over-max and
   negative); the control normalizes the backing TimeSpan. */
.sched-duration {
	display: flex;
	align-items: flex-end;
	gap: 0.25rem;
	max-width: 420px;
}

.sched-duration-unit {
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* Little grey unit label ABOVE each input (rule 2026-10-25). */
.sched-duration-unit-label {
	font-size: 0.7rem;
	line-height: 1.2;
	color: #6c757d;
	margin-bottom: 2px;
}

.sched-duration input {
	width: 5rem;
	text-align: center;
}

.sched-duration-sep {
	font-weight: 700;
	color: #6c757d;
	padding-bottom: 6px; /* optically center against the input row */
}

/* ---- Smooth checklists (event modal group/people pickers, rule
   2026-10-24) ---- The scroll region keeps THICK SIDE MARGINS: on mobile
   the user grips the page/modal beside the list and scrolls the whole
   thing, instead of trapping the touch gesture in the list. */
.sched-checklist-scroll {
	margin: 0 1.25rem;
	padding: 0 0.25rem;
}

.sched-checklist-row {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	/* Height set INLINE by SmoothChecklist (must equal its ItemHeightPx —
	   pooled slot geometry). 36px here is only the CSS fallback. */
	margin: 0;
	padding: 0 0.5rem;
	border-bottom: 1px solid #f0f0f0;
	font-weight: 400;
}

.sched-checklist-row .sched-checklist-check {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	min-width: 0;
	cursor: pointer;
}

/* BUTTON mode: left content takes the remaining width, button on the right
   — the same line-item format as the popup's Invited-people list. */
.sched-checklist-row .sched-checklist-content {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sched-checklist-row .sched-checklist-content .btn {
	flex: 0 0 auto;
}

.sched-checklist-row .sched-checklist-label {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ---- Agenda view scroll region (rule 2026-10-24) ----
   Capped at 80vh with thick side margins (mobile grip zone beside the
   list). Plain scroll region — agenda blocks are variable-height, so the
   fixed-geometry pooled smooth list does not apply here. */
.sched-agenda-scroll {
	max-height: 80vh;
	overflow-y: auto;
	overscroll-behavior: contain;
	margin: 0 1.25rem;
	padding: 0 0.25rem;
}

/* Event block avatar stack, top-right (item 10). */
.sched-block .sched-avatar-stack-btn {
	position: absolute;
	top: 2px;
	right: 2px;
}

.sched-block .sched-avatar-stack .sched-avatar {
	width: 18px;
	height: 18px;
	font-size: 8px;
	border-width: 1px;
	margin-left: -5px;
}

/* ---- Picker lists (TimeZonePicker / UserSearchPicker / PickerList) ----
   Combobox overlay: suggestions float ON TOP of the host layout and never
   expand it (rule 2026-10-17). */
.sched-picker-list {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 1070;
	max-height: 280px;
	overflow-y: auto;
	background: var(--bs-body-bg, #fff);
}

/* ---- TimeZonePicker clear control (issue 2026-10-20) ----
   Small × INSIDE the input, shown while the picker is active and the box
   has text. Resets the box to the current zone; never saves. */
.sched-tz-clear {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	border: none;
	background: transparent;
	color: var(--bs-secondary-color, #6c757d);
	font-size: 1rem;
	line-height: 1;
	padding: 0 0.35rem;
	cursor: pointer;
}

.sched-tz-clear:hover {
	color: var(--bs-danger, #dc3545);
}

/* ---- Ghost preview (AlternateTimeModal, rule 2026-10-17) ----
   Desaturated fill preview of the range being tweaked in the suggest-
   alternate modal — client-side only. Sits under event blocks. */
.sched-day-ghost {
	position: absolute;
	/* Positioned by the packed-block geometry (margin-left + width) — the
	   ghost joins the same overlap columns as real event blocks, so it must
	   NOT be full-width (left/right removed, rule 2026-10-25). */
	background: repeating-linear-gradient(
		45deg,
		rgba(13, 110, 253, 0.14),
		rgba(13, 110, 253, 0.14) 6px,
		rgba(13, 110, 253, 0.08) 6px,
		rgba(13, 110, 253, 0.08) 12px);
	border: 1px dashed rgba(13, 110, 253, 0.55);
	border-radius: 4px;
	pointer-events: none;
	z-index: 1;
}

.sched-day-ghost-label {
	position: absolute;
	top: 2px;
	left: 4px;
	font-size: 0.7rem;
	color: rgba(13, 110, 253, 0.9);
	background: rgba(255, 255, 255, 0.75);
	padding: 0 3px;
	border-radius: 3px;
}
