/**
 * VK Booking Manager admin-only styles.
 *
 * 管理画面専用のスタイルはここに追加してください。
 */

 .vkbm-booking-meta {
	.form-table {
		th {
			white-space: nowrap;
		}
		td {
			width: 100%;
			select {
				width: 100%;
			}
			select,
			input[type="text"],
			textarea {
				min-width: 0 !important;
			}
		}
		.vkbm-booking-meta__time-label {
			display: inline-block;
			margin-bottom:10px;
		}
	}
 }

.vkbm-booking-attachments {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.vkbm-booking-attachments__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
	li {
		text-box:none;
	}
}

.vkbm-booking-attachments__item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.25rem;
}

.vkbm-booking-attachments__image {
	width: 80px;
	height: 80px;
	object-fit: cover;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	cursor: zoom-in;
}

.vkbm-booking-attachments__lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.vkbm-booking-attachments__lightbox[hidden] {
	display: none;
}

.vkbm-booking-attachments__lightbox-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.7);
}

.vkbm-booking-attachments__lightbox-content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	max-width: min(90vw, 960px);
	max-height: 90vh;
	background: #fff;
	border-radius: 6px;
	padding: 0.75rem;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.vkbm-booking-attachments__lightbox-image {
	max-width: 100%;
	max-height: 70vh;
	object-fit: contain;
}

.vkbm-booking-attachments__lightbox-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
}

.vkbm-service-menu-field {
	margin-bottom:1em;
	label {
		display: block;
		margin-bottom:5px;
	}
}

.vkbm-booking-quick-edit {
	#wpbody-content .inline-edit-row-page & {
		margin-top:15px;
	}
	.inline-edit-group label .title {
		width:8em;
		white-space: nowrap;
	}
}
