.psv-planning-root {
	max-width: 100%;
	margin: 1.5em 0;
	font-size: 15px;
}

.psv-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5em;
	margin-bottom: 1em;
}

.psv-btn {
	cursor: pointer;
	border: 1px solid #ccc;
	background: #fff;
	border-radius: 4px;
	padding: 0.5em 0.9em;
	font-size: 0.95em;
	line-height: 1.2;
}

.psv-btn:hover {
	background: #f3f3f3;
}

.psv-btn-primary {
	background: #2271b1;
	border-color: #2271b1;
	color: #fff;
}

.psv-btn-primary:hover {
	background: #195a8c;
}

.psv-btn-small {
	padding: 0.25em 0.6em;
	font-size: 0.85em;
}

#psv-date-picker {
	padding: 0.4em 0.6em;
	border: 1px solid #ccc;
	border-radius: 4px;
}

.psv-toolbar-spacer {
	flex: 1 1 auto;
}

.psv-nav-group {
	display: flex;
	align-items: center;
	gap: 0.5em;
}

.psv-nav-group[hidden] {
	display: none;
}

.psv-week-label {
	font-weight: 600;
	white-space: nowrap;
}

.psv-room-filter {
	position: relative;
}

.psv-room-filter-panel {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 50;
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	padding: 0.6em;
	margin-top: 0.3em;
	max-height: 320px;
	overflow-y: auto;
	min-width: 240px;
}

.psv-room-filter-panel[hidden] {
	display: none;
}

.psv-room-filter-actions {
	display: flex;
	gap: 0.5em;
	margin-bottom: 0.5em;
	padding-bottom: 0.5em;
	border-bottom: 1px solid #eee;
}

.psv-room-filter-list-item {
	display: block;
	padding: 0.2em 0;
	white-space: nowrap;
}

/* Vue semaine : 1 ligne par salle, 1 colonne par jour. */
.psv-week-grid {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
	overflow: auto;
	max-height: 72vh;
}

.psv-week-table {
	border-collapse: separate;
	border-spacing: 0;
	width: 100%;
	min-width: 920px;
}

.psv-week-table th,
.psv-week-table td {
	border-bottom: 1px solid #eef0f3;
	border-right: 1px solid #eef0f3;
	vertical-align: top;
	padding: 0.55em 0.6em;
}

.psv-week-table thead th {
	background: #f8fafc;
	color: #475569;
	font-weight: 600;
	text-align: center;
	padding: 0.65em 0.5em;
	position: sticky;
	top: 0;
	z-index: 3;
	border-bottom: 1px solid #e5e7eb;
}

.psv-week-day-name {
	display: block;
	font-size: 0.95em;
	color: #1e293b;
}

.psv-week-day-date {
	display: block;
	font-weight: 400;
	font-size: 0.85em;
	color: #94a3b8;
	margin-top: 0.1em;
}

.psv-week-table thead th.is-today {
	background: #eef4ff;
	box-shadow: inset 0 -2px 0 #4f6bed;
}

.psv-week-table thead th.is-today .psv-week-day-name {
	color: #3047c4;
}

.psv-week-table thead th.is-weekend {
	background: #fafafa;
}

.psv-week-table .psv-week-room-header {
	background: #f8fafc;
	text-align: left;
	z-index: 4;
}

.psv-week-room-name {
	background: #f8fafc;
	color: #1e293b;
	font-weight: 600;
	font-size: 0.92em;
	min-width: 170px;
	max-width: 220px;
	position: sticky;
	left: 0;
	z-index: 2;
	border-right: 1px solid #e5e7eb;
}

.psv-week-row-alt .psv-week-room-name {
	background: #f1f5f9;
}

.psv-week-row-alt td.psv-week-cell {
	background: #fafbfc;
}

.psv-week-table tbody tr:last-child th,
.psv-week-table tbody tr:last-child td {
	border-bottom: none;
}

.psv-week-table th:last-child,
.psv-week-table td:last-child {
	border-right: none;
}

.psv-week-cell {
	min-width: 130px;
}

.psv-week-cell.is-weekend {
	background: #fcfcfd;
}

.psv-week-row-alt .psv-week-cell.is-weekend {
	background: #f9f9fb;
}

.psv-week-cell.is-today {
	background: #f5f8ff;
}

.psv-week-cell-clickable {
	cursor: pointer;
	position: relative;
	transition: background-color 0.12s ease;
}

.psv-week-cell-clickable:hover {
	background: #f0f5ff;
}

.psv-week-cell-clickable::after {
	content: "+";
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.4em;
	font-weight: 300;
	color: #94a3b8;
	opacity: 0;
	transition: opacity 0.12s ease;
	pointer-events: none;
}

.psv-week-cell-clickable:hover::after {
	opacity: 1;
}

.psv-week-event {
	display: block;
	position: relative;
	font-size: 0.82em;
	line-height: 1.35;
	margin-bottom: 0.35em;
	padding: 0.3em 0.5em;
	border-radius: 6px;
	background: #eef2ff;
	border: 1px solid #e0e7ff;
	color: #312e81;
	cursor: pointer;
	transition: box-shadow 0.12s ease, transform 0.12s ease;
}

.psv-week-event:hover {
	box-shadow: 0 2px 6px rgba(49, 46, 129, 0.15);
	transform: translateY(-1px);
}

.psv-week-event.psv-week-event-mine {
	background: #ecfdf5;
	border-color: #a7f3d0;
	color: #065f46;
}

.psv-week-event.psv-week-event-pending {
	background: #fffbeb;
	border-color: #fde68a;
	color: #92400e;
	border-style: dashed;
}

.psv-week-event-time {
	font-weight: 600;
	display: block;
}

.psv-week-event-support-dot {
	display: inline-block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #f59e0b;
	box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
	margin-left: 0.35em;
	vertical-align: middle;
}

.psv-week-cell-empty-hint {
	color: #999;
	font-size: 0.78em;
	font-style: italic;
}

.psv-week-room-error {
	color: #a94442;
	font-size: 0.82em;
}

/* Vue globale, regroupée par jour (semaine affichée). */
.psv-global-week {
	display: flex;
	flex-direction: column;
	gap: 1.4em;
}

.psv-global-day-heading {
	margin: 0 0 0.6em;
	padding-bottom: 0.4em;
	border-bottom: 1px solid #e5e7eb;
	font-size: 1.02em;
	color: #1e293b;
}

.psv-global-day.is-today .psv-global-day-heading {
	color: #3047c4;
	border-bottom-color: #4f6bed;
}

.psv-view-toggle {
	display: flex;
	gap: 0.3em;
}

.psv-view-btn.is-active {
	background: #4f6bed;
	border-color: #4f6bed;
	color: #fff;
}

.psv-global-list[hidden],
.psv-rooms-grid[hidden] {
	display: none;
}

.psv-global-events {
	display: flex;
	flex-direction: column;
	gap: 0.5em;
}

.psv-global-events .psv-event-card {
	max-width: 640px;
}

.psv-rooms-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1em;
	align-items: start;
}

.psv-room-column {
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	background: #fafafa;
	padding: 0.75em;
	display: flex;
	flex-direction: column;
	gap: 0.6em;
}

.psv-room-column h3 {
	margin: 0;
	font-size: 1.05em;
	border-bottom: 1px solid #ddd;
	padding-bottom: 0.4em;
}

.psv-room-error {
	color: #a94442;
	font-size: 0.9em;
}

.psv-event-card {
	background: #fff;
	border: 1px solid #d8d8d8;
	border-left: 4px solid #2271b1;
	border-radius: 4px;
	padding: 0.5em 0.6em;
}

.psv-event-card.psv-event-mine {
	border-left-color: #1a7f37;
}

.psv-event-card.psv-event-pending {
	border-left-color: #b8860b;
	background: repeating-linear-gradient(
		135deg,
		#fff8e6,
		#fff8e6 10px,
		#fdf2d0 10px,
		#fdf2d0 20px
	);
}

.psv-event-badge {
	display: inline-block;
	background: #b8860b;
	color: #fff;
	font-size: 0.75em;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	padding: 0.1em 0.5em;
	border-radius: 3px;
	margin-bottom: 0.3em;
	margin-right: 0.3em;
}

.psv-event-badge-support {
	background: #2271b1;
}

.psv-event-review-link {
	display: inline-block;
	margin-top: 0.4em;
	font-size: 0.85em;
	color: #8a6400;
	text-decoration: underline;
}

.psv-event-time {
	font-weight: 600;
	display: block;
}

.psv-event-subject {
	display: block;
	margin: 0.15em 0;
	font-weight: 600;
}

.psv-event-entity {
	display: block;
	color: #333;
	font-size: 0.9em;
}

.psv-event-logistics {
	display: block;
	color: #555;
	font-size: 0.85em;
	font-style: italic;
	white-space: pre-line;
}

.psv-event-owner {
	display: block;
	color: #666;
	font-size: 0.85em;
	margin-top: 0.2em;
}

.psv-event-actions {
	margin-top: 0.4em;
	display: flex;
	gap: 0.4em;
}

.psv-no-events {
	color: #777;
	font-size: 0.9em;
	font-style: italic;
}

.psv-view-only-note {
	margin-top: 0.6em;
	padding: 0.4em 0.6em;
	background: #fff8e5;
	border: 1px solid #f0dca0;
	border-radius: 3px;
	color: #6b5900;
	font-size: 0.85em;
}

.psv-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100000;
	padding: 1em;
}

.psv-modal-overlay[hidden] {
	display: none;
}

.psv-modal {
	background: #fff;
	border-radius: 6px;
	padding: 1.5em;
	max-width: 420px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
}

.psv-modal h2 {
	margin-top: 0;
}

.psv-modal label {
	display: block;
	margin-top: 0.8em;
	margin-bottom: 0.3em;
	font-weight: 600;
}

.psv-modal input[type="text"],
.psv-modal input[type="time"],
.psv-modal textarea {
	width: 100%;
	padding: 0.5em;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
	font-family: inherit;
	font-size: 1em;
}

.psv-form-row {
	display: flex;
	gap: 1em;
}

.psv-form-row > div {
	flex: 1;
}

.psv-radio-group {
	border: 1px solid #ccc;
	border-radius: 4px;
	padding: 0.6em 0.8em;
	margin-top: 0.8em;
}

.psv-radio-group legend {
	font-weight: 600;
	padding: 0 0.3em;
}

.psv-radio-group label {
	display: inline-block;
	font-weight: 400;
	margin-top: 0.3em;
	margin-right: 1em;
}

.psv-logistics-detail {
	border-left: 3px solid #ccc;
	padding-left: 0.8em;
	margin-top: 0.6em;
}

.psv-logistics-detail[hidden] {
	display: none;
}

.psv-form-hint {
	font-weight: 600;
	margin: 0.3em 0;
}

.psv-checkbox-inline {
	display: inline-flex;
	align-items: center;
	gap: 0.3em;
	font-weight: 400;
	margin: 0.3em 1em 0.3em 0;
}

.psv-checkbox-inline input[type="checkbox"] {
	width: auto;
}

.psv-form-error {
	color: #a94442;
	background: #fbeaea;
	border: 1px solid #e4b9b9;
	border-radius: 4px;
	padding: 0.5em;
	margin-top: 0.8em;
}

.psv-modal-actions {
	margin-top: 1.2em;
	display: flex;
	justify-content: flex-end;
	gap: 0.5em;
}

.psv-login-required,
.psv-not-configured {
	padding: 1em;
	background: #fff3cd;
	border: 1px solid #ffe69c;
	border-radius: 4px;
}
