/*
 * Module: Ραντεβού — the calendar page
 * ==================================================================
 * Only calendar pieces; buttons, chips, modals, inputs come from
 * mcms-global.css, and the tag chip / dot / parts chip / day notes
 * from rantevou-book.css. Tokens only (--mcms-*), except tag colors,
 * which come with each tag from the server.
 *
 * Phone first. From 1000px the MONTH view gets wide (grid + day panel
 * side by side); Ημέρα and Λίστα keep the normal page width.
 *
 * SECTIONS
 *   1. Page: top bar buttons, view switch, wide month layout
 *   2. Month grid: cells, chips, dots, bars, legend
 *   3. Day panel + the appointment card
 *   4. Day view: week strip, all-day block, timeline, now line
 *   5. List view
 *   6. (appointment sheet: rantevou-book.css § 6, shared with the order page)
 *   7. «+» sheet and day-note form
 *   8. Settings sheet (⚙)
 * ================================================================== */

/* ==================================================================
   1. PAGE
   ================================================================== */
.mcms-wrap .mcms-rvc-todaybtn {
	min-height: 38px;
	padding: 0 12px;
}

.mcms-wrap .mcms-rvc-addbtn {
	min-height: 40px;
	min-width: 40px;
	padding: 0 12px;
}

@media (max-width: 480px) {
	.mcms-wrap .mcms-rvc-addbtn {
		padding: 0;
		width: 40px;
	}
}

.mcms-rvc-main {
	display: flex;
	flex-direction: column;
	gap: var(--mcms-gap);
}

.mcms-rvc-split {
	display: flex;
	flex-direction: column;
	gap: var(--mcms-gap);
}

@media (min-width: 1000px) {
	.mcms-rantevou.is-view-month .mcms-page {
		max-width: 1240px;
	}
	.mcms-rantevou .mcms-rvc-views {
		max-width: 360px;
	}
	.mcms-rvc-split {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 380px;
		align-items: start;
	}
	.mcms-rvc-split .mcms-rvc-panel {
		position: sticky;
		top: 76px;
		max-height: calc(100vh - 92px);
		overflow-y: auto;
	}
}

.mcms-rvc-link {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 0 4px;
	margin: 0;
	border: 0;
	background: transparent;
	color: var(--mcms-brand-strong);
	font: inherit;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
}

.mcms-wrap .mcms-rvc-link:hover {
	color: var(--mcms-brand-strong-hover);
	background: transparent;
}

.mcms-wrap .mcms-rvc-link--muted {
	align-self: flex-start;
	color: var(--mcms-text-muted);
	font-size: var(--mcms-text-sm);
}

.mcms-rvc-empty {
	padding: 6px 2px;
	color: var(--mcms-text-muted);
	font-size: var(--mcms-text-sm);
}

/* ==================================================================
   2. MONTH GRID
   ================================================================== */
.mcms-wrap .mcms-rvc-month {
	padding: 8px 6px 6px;
}

.mcms-rvc-month__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 4px 6px;
}

.mcms-rvc-month__title {
	font-size: var(--mcms-text-md);
	font-weight: 700;
}

.mcms-rvc-wd,
.mcms-rvc-wk {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 2px;
}

/* One row per week; multi-day bars sit on the row, over its cells.
   --bar-top = where the first lane starts (cell border + padding + number + gap). */
.mcms-rvc-wk {
	position: relative;
	--bar-top: 28.5px;
	--lane-h: 15px;
	--bar-h: 13px;
}

.mcms-rvc-wd span {
	padding-bottom: 4px;
	text-align: center;
	font-size: 11px;
	font-weight: 700;
	color: var(--mcms-text-muted);
}

.mcms-rvc-grid {
	display: flex;
	flex-direction: column;
	gap: 2px;
	transition: opacity var(--mcms-ease);
}

.mcms-rvc-grid.is-loading {
	opacity: .6;
}

.mcms-wrap .mcms-rvc-cell {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	gap: 2px;
	min-height: calc(72px + max(0, var(--lanes, 0) - 2) * var(--lane-h));
	min-width: 0;
	margin: 0;
	padding: 3px 2px 0;
	overflow: hidden;
	border: 1.5px solid transparent;
	border-radius: var(--mcms-radius-sm);
	background: transparent;
	color: var(--mcms-text);
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.mcms-wrap .mcms-rvc-cell:hover {
	background: var(--mcms-brand-softer);
}

.mcms-rvc-cell.is-blank {
	cursor: default;
}

.mcms-wrap .mcms-rvc-cell.is-closed {
	background: var(--mcms-surface-muted);
}

.mcms-wrap .mcms-rvc-cell.is-selected {
	background: var(--mcms-brand-soft);
	border-color: var(--mcms-brand-strong);
}

.mcms-rvc-cell__num {
	align-self: center;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	flex-shrink: 0;
	border-radius: 50%;
	font-size: 12px;
	font-weight: 600;
}

.mcms-rvc-cell.is-closed .mcms-rvc-cell__num,
.mcms-rvc-cell.is-past .mcms-rvc-cell__num {
	color: var(--mcms-text-muted);
	font-weight: 500;
}

.mcms-wrap .mcms-rvc-cell.is-today .mcms-rvc-cell__num {
	background: var(--mcms-brand-strong);
	color: var(--mcms-on-brand);
	font-weight: 700;
}

/* Room under the number for the week's bars. */
.mcms-rvc-cell__lanes {
	flex-shrink: 0;
	height: calc(var(--lanes, 0) * var(--lane-h) - 2px);
}

/* A multi-day appointment: one bar from its first to its last day (in this
   week). Square ends where it continues into the next / previous week. */
.mcms-rvc-bar {
	--inset-l: 0px;
	--inset-r: 0px;
	position: absolute;
	top: calc(var(--bar-top) + var(--lane) * var(--lane-h));
	left: calc((100% + 2px) / 7 * var(--col) + var(--inset-l));
	width: calc((100% + 2px) / 7 * var(--span) - 2px - var(--inset-l) - var(--inset-r));
	height: var(--bar-h);
	padding: 0 4px;
	background: #EEF0EC;
	color: #3A4038;
	font-size: 10px;
	font-weight: 700;
	line-height: var(--bar-h);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	pointer-events: none;
}

.mcms-rvc-bar.is-start {
	--inset-l: 2px;
	border-top-left-radius: 3px;
	border-bottom-left-radius: 3px;
}

.mcms-rvc-bar.is-end {
	--inset-r: 2px;
	border-top-right-radius: 3px;
	border-bottom-right-radius: 3px;
}

/* Day notes as bars: Σημείωση blue, Περιορισμός red, Κλειστά grey. */
.mcms-rvc-bar--simeiosi    { background: #E8EEF9; color: var(--mcms-info); }
.mcms-rvc-bar--periorismos { background: var(--mcms-danger-soft); color: var(--mcms-danger); }
.mcms-rvc-bar--kleista     { background: #E4E7E2; color: #3A4038; }

.mcms-rvc-bar.is-free {
	background: transparent;
	box-shadow: inset 0 0 0 1px var(--mcms-line-strong);
}

.mcms-rvc-bar.is-egine {
	opacity: .5;
	text-decoration: line-through;
}

.mcms-rvc-bar.is-den_irthe {
	box-shadow: inset 0 0 0 1px var(--mcms-danger);
}

.mcms-rvc-bar.is-late {
	box-shadow: inset 0 0 0 1px var(--mcms-warning);
}

/* A short name per appointment: soft tag color, cut with "…". */
.mcms-rvc-chip {
	display: block;
	flex-shrink: 0;
	padding: 0 3px;
	border-radius: 3px;
	background: #EEF0EC;
	color: #3A4038;
	font-size: 10px;
	font-weight: 700;
	line-height: 13px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mcms-rvc-chip.is-free {
	background: transparent;
	box-shadow: inset 0 0 0 1px var(--mcms-line-strong);
}

.mcms-rvc-chip.is-egine {
	opacity: .5;
	text-decoration: line-through;
}

.mcms-rvc-chip.is-den_irthe {
	box-shadow: inset 0 0 0 1px var(--mcms-danger);
}

.mcms-rvc-chip.is-late {
	box-shadow: inset 0 0 0 1px var(--mcms-warning);
}

/* Phone: no time, 2 names, then dots. */
.mcms-rvc-chip__time,
.mcms-rvc-chip.is-phone-extra,
.mcms-rvc-cell__more,
.mcms-rvc-cell__full,
.mcms-rvc-cell__closed {
	display: none;
}

.mcms-rvc-cell__dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 2px;
	height: 7px;
	flex-shrink: 0;
}

.mcms-rvc-cell__dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--mcms-line-strong);
}

/* A full day (a tag's limit or the daily total): small red corner dot on phones. */
.mcms-rvc-cell.is-full {
	position: relative;
}

.mcms-rvc-cell.is-full::after {
	content: "";
	position: absolute;
	top: 4px;
	right: 4px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--mcms-danger);
}

@media (min-width: 1000px) {
	.mcms-wrap .mcms-rvc-month {
		padding: 10px;
	}
	.mcms-rvc-wd span {
		font-size: var(--mcms-text-xs);
	}
	.mcms-rvc-wk {
		--bar-top: 34.5px;
		--lane-h: 23px;
		--bar-h: 20px;
	}
	.mcms-rvc-cell__lanes {
		height: calc(var(--lanes, 0) * var(--lane-h) - 3px);
	}
	.mcms-rvc-bar {
		padding: 0 6px;
		font-size: 12px;
		font-weight: 600;
	}
	.mcms-rvc-bar.is-start {
		--inset-l: 6px;
		border-radius: 5px 0 0 5px;
	}
	.mcms-rvc-bar.is-end {
		--inset-r: 6px;
		border-top-right-radius: 5px;
		border-bottom-right-radius: 5px;
	}
	.mcms-rvc-bar .mcms-rvc-chip__time {
		display: inline;
		font-weight: 700;
	}
	.mcms-wrap .mcms-rvc-cell {
		min-height: 118px;
		gap: 3px;
		padding: 6px;
		border-color: var(--mcms-line);
		border-radius: var(--mcms-radius-sm);
	}
	.mcms-wrap .mcms-rvc-cell.is-blank {
		border-color: transparent;
	}
	.mcms-wrap .mcms-rvc-cell.is-selected {
		background: var(--mcms-brand-softer);
		box-shadow: inset 0 0 0 1px var(--mcms-brand-strong);
	}
	.mcms-rvc-cell.is-past:not(.is-selected) {
		opacity: .65;
	}
	.mcms-rvc-cell__num {
		align-self: flex-start;
		width: 24px;
		height: 24px;
		font-size: 13px;
		font-weight: 700;
	}
	.mcms-rvc-chip {
		padding: 2px 6px;
		border-radius: 5px;
		font-size: 12px;
		font-weight: 600;
		line-height: 16px;
	}
	.mcms-rvc-chip__time,
	.mcms-rvc-chip.is-phone-extra,
	.mcms-rvc-cell__more,
	.mcms-rvc-cell__full,
	.mcms-rvc-cell__closed {
		display: block;
	}
	.mcms-rvc-chip__time {
		display: inline;
		font-weight: 700;
	}
	.mcms-rvc-cell__dots {
		display: none;
	}
	.mcms-rvc-cell.is-full::after {
		display: none;
	}
	.mcms-rvc-cell__closed {
		padding: 2px 0;
		font-size: 11px;
		font-weight: 700;
		color: var(--mcms-text-muted);
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
	.mcms-rvc-cell__closed.is-open {
		color: var(--mcms-info);
	}
	.mcms-rvc-cell__full {
		align-self: flex-start;
		padding: 1px 6px;
		border-radius: 999px;
		background: var(--mcms-danger-soft);
		color: var(--mcms-danger);
		font-size: 11px;
		font-weight: 700;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		max-width: 100%;
	}
	.mcms-rvc-cell__more {
		font-size: 11px;
		font-weight: 700;
		color: var(--mcms-text-muted);
	}
}

.mcms-rvc-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 8px 4px 2px;
	font-size: 11px;
	color: var(--mcms-text-muted);
}

.mcms-rvc-legend__item {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.mcms-rvc-legend .mcms-rv-dot {
	width: 7px;
	height: 7px;
}

.mcms-rvc-legend__note {
	width: 14px;
	height: 8px;
	border-radius: 2px;
}

.mcms-rvc-legend__closed {
	width: 10px;
	height: 10px;
	border-radius: 3px;
	background: #E4E7E2;
}

/* ==================================================================
   3. DAY PANEL + THE APPOINTMENT CARD
   ================================================================== */
.mcms-rvc-panel {
	display: flex;
	flex-direction: column;
	gap: 8px;
	transition: opacity var(--mcms-ease);
}

.mcms-rvc-panel.is-loading {
	opacity: .55;
}

@media (min-width: 1000px) {
	.mcms-rvc-panel {
		padding: 12px;
		border: 1px solid var(--mcms-line);
		border-radius: var(--mcms-radius-md);
		background: var(--mcms-surface-muted);
	}
}

.mcms-rvc-panel__head {
	display: flex;
	align-items: center;
	gap: 8px;
	padding-top: 4px;
}

.mcms-rvc-panel__titles {
	flex: 1;
	min-width: 0;
}

.mcms-rvc-panel__title {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
}

.mcms-rvc-panel__sub {
	font-size: var(--mcms-text-xs);
	color: var(--mcms-text-muted);
}

.mcms-wrap .mcms-rvc-here {
	min-height: 36px;
	padding: 0 10px;
}

@media (max-width: 480px) {
	.mcms-wrap .mcms-rvc-here {
		width: 36px;
		padding: 0;
	}
}

.mcms-rvc-entries {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.mcms-wrap .mcms-rv-note.mcms-rvc-note {
	margin: 0;
	border: 0;
	font-family: var(--mcms-font);
	text-align: left;
	line-height: 1.4;
	cursor: pointer;
}

.mcms-wrap .mcms-rvc-note:hover {
	filter: brightness(.97);
}

.mcms-rvc-extras {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

/* The card: time + tag dot | who + plate / what | status. */
.mcms-wrap .mcms-rvc-entry {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-height: 56px;
	margin: 0;
	padding: 9px 12px;
	border: 1px solid var(--mcms-line);
	border-radius: var(--mcms-radius-md);
	background: var(--mcms-surface);
	color: var(--mcms-text);
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: background var(--mcms-ease), border-color var(--mcms-ease);
}

.mcms-wrap .mcms-rvc-entry:hover {
	border-color: var(--mcms-line-strong);
	background: var(--mcms-surface);
}

.mcms-wrap .mcms-rvc-entry:active {
	background: var(--mcms-brand-softer);
}

.mcms-wrap .mcms-rvc-entry.is-free {
	border-style: dashed;
	border-color: var(--mcms-line-strong);
}

.mcms-wrap .mcms-rvc-entry.is-egine {
	opacity: .6;
}

.mcms-rvc-entry.is-egine .mcms-rvc-entry__name {
	text-decoration: line-through;
}

.mcms-wrap .mcms-rvc-entry.is-den_irthe {
	border: 1.5px solid var(--mcms-danger);
}

.mcms-wrap .mcms-rvc-entry.is-akyrothike {
	opacity: .55;
	background: var(--mcms-surface-muted);
}

.mcms-wrap .mcms-rvc-entry.is-late {
	background: #FFF8EC;
	border-color: rgba(138, 83, 0, .35);
}

.mcms-rvc-entry__time {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	width: 46px;
	flex-shrink: 0;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
}

.mcms-rvc-entry__time .is-allday {
	font-size: 11px;
	white-space: nowrap;
}

.mcms-rvc-entry__main {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.mcms-rvc-entry__who {
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
}

.mcms-rvc-entry__name {
	min-width: 0;
	font-size: var(--mcms-text-sm);
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mcms-rvc-entry__who .mcms-plate {
	flex-shrink: 0;
	height: 20px;
	font-size: 11px;
}

.mcms-rvc-entry__what {
	font-size: var(--mcms-text-xs);
	color: var(--mcms-text-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* The reminder mark on a card (rantevou-remind.php). */
.mcms-rvc-entry__remind {
	color: var(--mcms-warning);
	font-weight: 700;
}

.mcms-rvc-entry__remind.is-sent {
	color: var(--mcms-brand-strong);
}

/* «Για υπενθύμιση 4» in the list's chips. */
.mcms-rvc-chip-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	margin-left: 6px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--mcms-warning);
	color: #fff;
	font-size: var(--mcms-text-xs);
	font-weight: 800;
}

.mcms-rvc-entry .mcms-rv-parts {
	align-self: center;
	flex-shrink: 0;
}

.mcms-rvc-parts--off {
	background: var(--mcms-surface-muted);
	color: var(--mcms-text-muted);
	border: 1px solid var(--mcms-line);
}

/* ==================================================================
   4. DAY VIEW
   ================================================================== */
.mcms-rvc-weekbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: -6px;
}

.mcms-rvc-week__label {
	font-size: var(--mcms-text-sm);
	font-weight: 700;
	color: var(--mcms-text-muted);
}

.mcms-rvc-week {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 4px;
}

.mcms-wrap .mcms-rvc-wday {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1px;
	height: 58px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 1px solid var(--mcms-line);
	border-radius: 10px;
	background: var(--mcms-surface);
	color: var(--mcms-text);
	font: inherit;
	cursor: pointer;
}

.mcms-wrap .mcms-rvc-wday:hover {
	border-color: var(--mcms-brand);
	background: var(--mcms-surface);
}

.mcms-wrap .mcms-rvc-wday.is-closed {
	background: var(--mcms-surface-muted);
	border-color: var(--mcms-surface-muted);
	color: var(--mcms-text-muted);
}

.mcms-wrap .mcms-rvc-wday.is-today {
	border-color: var(--mcms-brand-strong);
}

.mcms-wrap .mcms-rvc-wday.is-selected,
.mcms-wrap .mcms-rvc-wday.is-selected:hover {
	background: var(--mcms-brand-strong);
	border-color: var(--mcms-brand-strong);
	color: var(--mcms-on-brand);
}

.mcms-rvc-wday__wd {
	font-size: 11px;
	font-weight: 700;
}

.mcms-rvc-wday__num {
	font-size: 15px;
	font-weight: 700;
}

.mcms-rvc-wday__mark {
	min-height: 12px;
	font-size: 10px;
	font-weight: 700;
	line-height: 12px;
	color: var(--mcms-brand-strong);
}

.mcms-rvc-wday__mark.is-restricted {
	width: 16px;
	min-height: 3px;
	height: 3px;
	margin: 4px 0 5px;
	border-radius: 2px;
	background: var(--mcms-danger);
}

.mcms-rvc-wday.is-selected .mcms-rvc-wday__mark {
	color: var(--mcms-on-brand);
}

.mcms-rvc-wday.is-selected .mcms-rvc-wday__mark.is-restricted {
	background: var(--mcms-on-brand);
}

.mcms-rvc-day {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-height: 240px;
}

.mcms-rvc-dayhead {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding-top: 2px;
}

.mcms-rvc-allday {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 8px 10px 10px;
	border: 1px solid var(--mcms-line);
	border-radius: var(--mcms-radius-md);
	background: var(--mcms-surface-muted);
}

.mcms-rvc-allday__label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .02em;
	color: var(--mcms-text-muted);
}

.mcms-rvc-timeline {
	display: flex;
	flex-direction: column;
}

.mcms-rvc-slot {
	display: flex;
	gap: 10px;
	padding: 3px 0;
}

.mcms-rvc-slot__time {
	width: 44px;
	flex-shrink: 0;
	padding-top: 12px;
	text-align: right;
	font-size: var(--mcms-text-xs);
	font-weight: 700;
	color: var(--mcms-text-muted);
}

.mcms-wrap .mcms-rvc-slot .mcms-rvc-entry {
	flex: 1;
	width: auto;
	min-width: 0;
}

/* Inside the timeline the card's own time column is redundant. */
.mcms-rvc-slot .mcms-rvc-entry__time {
	width: auto;
}

.mcms-rvc-slot .mcms-rvc-entry__time .mcms-num {
	display: none;
}

.mcms-rvc-gap {
	height: 20px;
	margin-left: 54px;
	background: linear-gradient(var(--mcms-line-strong), var(--mcms-line-strong)) left center / 100% 1px no-repeat;
	opacity: .7;
}

.mcms-rvc-now {
	display: flex;
	align-items: center;
	gap: 6px;
	height: 22px;
}

.mcms-rvc-now__time {
	width: 44px;
	text-align: right;
	font-size: 11px;
	font-weight: 700;
	color: var(--mcms-danger);
}

.mcms-rvc-now__line {
	flex: 1;
	position: relative;
	height: 2px;
	margin-left: 4px;
	background: var(--mcms-danger);
}

.mcms-rvc-now__line::before {
	content: "";
	position: absolute;
	left: -4px;
	top: -3px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--mcms-danger);
}

.mcms-wrap .mcms-rvc-addhere {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 46px;
	margin: 4px 0 0;
	border: 1.5px dashed var(--mcms-brand);
	border-radius: var(--mcms-radius-sm);
	background: transparent;
	color: var(--mcms-brand-strong);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.mcms-wrap .mcms-rvc-addhere:hover {
	background: var(--mcms-brand-softer);
}

/* ==================================================================
   5. LIST VIEW
   ================================================================== */
.mcms-wrap .mcms-rvc-chip-sm {
	min-height: 34px;
	padding: 0 12px;
	font-size: 13px;
}

.mcms-rvc-listtabs {
	gap: 6px;
}

.mcms-rvc-listbox {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.mcms-rvc-listbox:empty {
	display: none;
}

.mcms-wrap .mcms-rvc-listday {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin: 8px 0 0;
	padding: 0 2px;
	border: 0;
	background: transparent;
	color: var(--mcms-text);
	font: inherit;
	font-size: var(--mcms-text-md);
	font-weight: 700;
	text-align: left;
	cursor: pointer;
}

.mcms-wrap .mcms-rvc-listday:first-child {
	margin-top: 0;
}

.mcms-rvc-listday .mcms-rvc-link {
	min-height: 0;
	font-size: var(--mcms-text-sm);
}

/* ==================================================================
   7. «+» SHEET AND DAY-NOTE FORM
   ================================================================== */
@media (min-width: 640px) {
	.mcms-modal--rvc-add .mcms-modal__panel {
		max-width: 560px;
	}
}

.mcms-rvc-add,
.mcms-rvc-add__content,
.mcms-rvc-notesheet {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.mcms-rvc-add__day {
	font-size: var(--mcms-text-xs);
	font-weight: 700;
	color: var(--mcms-text-muted);
	margin-bottom: -4px;
}

.mcms-rvc-add__filters {
	display: flex;
	align-items: center;
	gap: 6px;
}

.mcms-rvc-add__hint {
	flex: 1;
	text-align: right;
	font-size: var(--mcms-text-xs);
	color: var(--mcms-text-muted);
}

.mcms-rvc-orderrow__top {
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
}

.mcms-rvc-orderrow__id {
	font-size: var(--mcms-text-xs);
	font-weight: 700;
	color: var(--mcms-text-muted);
}

.mcms-rvc-orderrow__name {
	min-width: 0;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mcms-rvc-orderrow__top .mcms-plate {
	flex-shrink: 0;
	height: 20px;
	font-size: 11px;
}

.mcms-rvc-orderrow__appt {
	align-self: flex-start;
	padding: 2px 7px;
	border-radius: 999px;
	background: #D7F0EA;
	color: #0B5A47;
	font-size: 11px;
	font-weight: 700;
}

.mcms-wrap .mcms-rvc-orderrow {
	padding: 11px 12px;
}

.mcms-wrap .mcms-rvc-add__neworder {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 46px;
	border: 1.5px dashed var(--mcms-brand);
	border-radius: var(--mcms-radius-sm);
	color: var(--mcms-brand-strong);
	font-weight: 600;
}

.mcms-wrap .mcms-rvc-add__neworder:hover {
	background: var(--mcms-brand-softer);
	color: var(--mcms-brand-strong);
}

.mcms-rvc-add__cust {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

.mcms-rvc-add__chosen {
	display: flex;
	align-items: center;
	gap: 6px;
	max-width: 100%;
}

.mcms-wrap .mcms-rvc-carchip {
	gap: 6px;
	padding: 0 10px 0 6px;
}

.mcms-wrap .mcms-rvc-carchip[aria-pressed="true"] {
	background: var(--mcms-brand-soft);
	border-color: var(--mcms-brand-strong);
	color: var(--mcms-text);
}

.mcms-rvc-dates {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

/* The day note's text: wraps and grows (rantevou.js noteForm), no fixed tall box. */
.mcms-wrap textarea.mcms-input.mcms-rvc-notetext {
	min-height: 0;
	resize: none;
	overflow: hidden;
	line-height: 1.4;
}

.mcms-rvc-dates + .mcms-field__help {
	margin-top: -10px;
}

.mcms-wrap .mcms-rvc-type--periorismos[aria-pressed="true"] {
	background: var(--mcms-danger);
	border-color: var(--mcms-danger);
}

.mcms-wrap .mcms-rvc-type--kleista[aria-pressed="true"] {
	background: #5B6359;
	border-color: #5B6359;
}

.mcms-wrap .mcms-rvc-type--simeiosi[aria-pressed="true"] {
	background: var(--mcms-info);
	border-color: var(--mcms-info);
}

.mcms-rvc-notesheet__head {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
	margin-bottom: -6px;
}

/* ==================================================================
   8. SETTINGS SHEET (⚙)
   ================================================================== */
.mcms-wrap .mcms-rvc-gear {
	width: 40px;
	min-height: 40px;
	border-color: transparent;
	background: transparent;
	color: var(--mcms-text-muted);
}

.mcms-rvc-gear svg {
	width: 20px;
	height: 20px;
}

.mcms-rvc-set {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.mcms-rvc-set__section {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.mcms-rvc-set__section + .mcms-rvc-set__section {
	padding-top: 18px;
	border-top: 1px solid var(--mcms-line);
}

.mcms-wrap .mcms-rvc-set__title {
	font-size: var(--mcms-text-md);
	font-weight: 700;
	margin: 0;
}

.mcms-rvc-set__section > .mcms-field__help {
	margin-top: -8px;
}

.mcms-rvc-set__tags {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--mcms-line);
	border-radius: var(--mcms-radius-md);
	overflow: hidden;
	transition: opacity var(--mcms-ease);
}

.mcms-rvc-set__tags.is-busy {
	opacity: .55;
	pointer-events: none;
}

.mcms-rvc-set__tag {
	display: flex;
	align-items: center;
	gap: 2px;
	padding-right: 4px;
	border-top: 1px solid var(--mcms-line);
}

.mcms-rvc-set__tag:first-child {
	border-top: 0;
}

.mcms-wrap .mcms-rvc-set__tag-main {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px 10px;
	min-height: 52px;
	margin: 0;
	padding: 8px 12px;
	border: 0;
	background: transparent;
	color: var(--mcms-text);
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.mcms-wrap .mcms-rvc-set__tag-main:hover {
	background: var(--mcms-surface-muted);
}

.mcms-rvc-set__tag-name {
	font-weight: 700;
}

.mcms-rvc-set__tag.is-off .mcms-rvc-set__tag-name {
	color: var(--mcms-text-muted);
}

.mcms-wrap .mcms-rvc-set__move {
	width: 38px;
	min-height: 38px;
	border-color: transparent;
	background: transparent;
	color: var(--mcms-text-muted);
}

.mcms-rvc-set__move svg {
	width: 18px;
	height: 18px;
}

.mcms-wrap .mcms-rvc-set__num {
	max-width: 120px;
	font-variant-numeric: tabular-nums;
}

.mcms-rvc-set__colors {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.mcms-wrap .mcms-rvc-set__color {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
}

.mcms-wrap .mcms-rvc-set__color[aria-pressed="true"] {
	border-color: var(--mcms-text);
}

.mcms-rvc-set__swatch {
	width: 28px;
	height: 28px;
	border-radius: 50%;
}

.mcms-rvc-set__days {
	gap: 6px;
}

.mcms-rvc-set__hgroup {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--mcms-line);
	border-radius: var(--mcms-radius-md);
	overflow: hidden;
}

.mcms-rvc-set__hgroup-title {
	padding: 8px 12px;
	background: var(--mcms-surface-muted);
	font-size: var(--mcms-text-xs);
	font-weight: 700;
	color: var(--mcms-text-muted);
}

.mcms-rvc-set__holiday {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 8px 8px 12px;
	border-top: 1px solid var(--mcms-line);
}

.mcms-rvc-set__hname {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	font-weight: 600;
}

.mcms-rvc-set__hseg {
	flex-shrink: 0;
	width: 176px;
}

.mcms-wrap .mcms-rvc-set__hseg .mcms-segmented__opt {
	min-height: 32px;
	padding: 0 6px;
	font-size: 13px;
}

.mcms-wrap .mcms-rvc-set__hseg .mcms-segmented__opt[aria-pressed="true"]:first-child {
	color: var(--mcms-danger);
}
