﻿:root {
	--header-height: 52px;
	--dialog-top: 42px;
	--nav-width: 180px;
}

* {
	box-sizing:border-box;
}
	*:focus {
		outline: none;
	}

@media print {
	header, nav, footer, .breadcrumbs {
		display: none;
	}
	div#wrapper {
		left: 0px;
		top: 0px;
		padding-top: 20px;
	}
}

body {
	margin: 0px;
	color: #666;
	font-family: Arial, sans-serif;
	font-size: 14px;
}

p {
	margin: 0px 0px 10px 0px;
}
section p:last-of-type{
	margin-bottom: 0px;
}

h1 {
	font-size: 18px;
	color: black;
	margin: 0px 0px 10px 0px;
}
h2 {
	font-size: 16px;
	color: black;
	margin: 0px 0px 10px 0px;
}

a {
	color: #253551;
}
	a:hover {
		cursor: pointer;
	}

section div.link {
	color: #253551;
	cursor: pointer;
}

input, textarea {
	font-family: Arial, sans-serif;
	font-size: 14px;
	color: black;
	padding: 2px 5px 3px 5px;
	border: 0 none;
	border-bottom: 2px solid rgba(0,0,0,0.2);
	border-radius: 0px;
	width: 100%;
	/* background: rgba(0,0,0,0.025); */
}
	input::placeholder, textarea::placeholder {
		color: silver;
	}

	input.date, input.short {
		width: 200px;
	}
	input.medium {
		width: 400px;
	}
	input.editable, textarea.editable {
		border-color: transparent;
		border-bottom: 2px solid rgba(0,0,0,0.2);
	}
	input.name {
		font-size: 18px;
		font-weight: bold;
		color: black;
		margin-bottom: 10px;
	}

select {
	border: 0 none;
	border-bottom: 2px solid rgba(0,0,0,0.2);
	font-family: Arial, sans-serif;
	font-size: 14px;
	color: black;
	padding: 2px 5px 2px 1px;
}

.clear {
	clear: both;
}

.t10 {
	margin-top: 10px;
}
.t20 {
	margin-top: 20px;
}
.b0 {
	margin-bottom: 0px;
}
.b5 {
	margin-bottom: 5px;
}
.b10 {
	margin-bottom: 10px;
}
.b20 {
	margin-bottom: 20px;
}
.r5 {
	margin-right: 5px;
}
.m0 {
	margin: 0px !important;
}
.p0 {
	padding: 0px !important;
}

header {
	background: #253551;
	color: white;
	height: var(--header-height);
	box-shadow: 0px 0px 10px rgba(0,0,0,0.5);
	z-index: 2;
	position: fixed;
	top: 0px;
	width: 100%;
}
	header div:nth-child(1) {
		text-align: left;
		width: 180px;
		float: left;
		padding: 10px;
	}
		header div:nth-child(1) a {
			color: rgba(255,255,255,0.15);
			padding: 5px;
			width: 32px;
			height: 32px;
			display: inline-block;
			text-align: center;
		}
		header div:nth-child(1) a:hover {
			color: rgba(255,255,255,1);
		}
		header div:nth-child(1) i, header div:nth-child(1) svg {
			font-size: 22px;
			line-height: 22px;
		}
		header div:nth-child(1) i:hover, header div:nth-child(1) svg:hover {
			cursor: pointer;
		}

		header div:nth-child(2) {
			width: calc(100% - 360px);
			float: left;
			padding: 10px;
		}
			header div:nth-child(2) input {
				width: 100%;
				background: rgba(0,0,0,0.2);
				color: white;
				height: 32px;
				border: 0 none;
				padding-left: 10px;
				border-radius: 5px;
			}
				header div:nth-child(2) input::placeholder {
					color: #354561;
				}
		header>div:nth-child(3) {
			text-align: right;
			width: 180px;
			float: right;
		}

nav {
	background: rgba(0,0,0,0.05);
	z-index: 1;
	position: fixed;
	top: var(--header-height);
	bottom: 0px;
	left: 0px;
	width: var(--nav-width);
	padding-top: 10px;
}
	nav a {
		display: block;
		padding: 7px 10px;
		text-decoration: none;
	}
		nav a:hover {
			background: #253551;
			color: white;
		}
		nav a.active {
			background: #4D87FF;
			color: #FFFFFF;
		}
			nav a.active .admin {
				color: #FFFFFF;
			}

#wrapper {
	background: white;
	position: fixed;
	top: var(--header-height);
	right: 0px;
	bottom: 0px;
	left: var(--nav-width);
	overflow-x: hidden;
	overflow-y: auto;
	z-index: 0;
	cursor: default;
}

main {
	padding: 0px;
}

footer {
	border-top: 1px dotted rgba(0,0,0,0.1);
	padding: 20px;
	font-size: 13px;
	color: #AAAAAA;
}
footer a {
	color: #666666;
	text-decoration: none;
}

.breadcrumbs {
	font-size: 12px;
	border-bottom: 1px dotted rgba(0,0,0,0.1);
	padding: 10px 20px 5px 20px;
	margin-bottom: 20px;
}

	.breadcrumbs a {
		text-decoration: none;
	}

section {
	margin: 0px 20px 20px 20px;
	/* border: 1px dotted rgba(0,0,0,0.1); */
	border-radius: 5px;
	padding: 10px;
	box-shadow: 0px 0px 10px rgba(0,0,0,0.2);
}

	.tabs, .tabs-2 {
		margin-top: 10px;
	}

	.tab, .tab-2 {
		margin-right: 5px;
		float: left;
		display: inline-block;
		padding: 5px 10px;
		cursor: pointer;
		min-width: 150px;
		text-align: center;
		border-top-left-radius: 5px;
		border-top-right-radius: 5px;
		background: rgba(0,0,0,0.05);
		color: #253551;
	}
		.tab.round, .tab-2.round {
			border-radius: 5px;
			margin-bottom: 10px;
			margin-top: 10px;
		}
		.tab:hover, .tab-2:hover {
			background: #253551;
			color: white;
		}
		.tab.active, .tab-2.active {
			background: #253551;
			color: white;
			cursor: default;
		}

	section .table {
		clear: both;
		border: 1px dotted rgba(0,0,0,0.1);
		border-top: 1px solid #253551;
		padding: 5px;
		/* border-radius: 5px;
		border-top-left-radius: 0px; */
	}
	section table {
		width: 100%;
	}

	section .row {
		padding: 5px;
		margin-bottom: 1px;
	}
	section .row:hover {
		background: rgba(0,0,0,0.05);
	}
		section .row:hover .green {
			color: #00AA00;
		}
		.row .description {
			padding: 5px 5px 5px 22px;
			font-size: 12px;
			color: #AAAAAA;
		}
	section .row.link {
		cursor: pointer;
	}
		section .row.link:hover {
			background: #253551;
			color: white;
		}

		section .buttons {
			margin-top: 10px;
		}

	.button, section .button, #dialog .button {
		margin-right: 5px;
		float: left;
		display: inline-block;
		padding: 5px 10px;
		cursor: pointer;
		min-width: 150px;
		text-align: center;
		border-radius: 5px;
		box-shadow: 0 0 0 1px #253551;
		background: rgba(0,0,0,0.05);
		color: #253551;
		text-decoration: none;
		vertical-align: middle;
	}
		.button.w32 {
			min-width: 32px;
			width: 32px;
			padding-left: 5px;
			padding-right: 5px;
		}
		.button.save, .button.save:hover {
			float: none;
			color: white;
			background: #FF0066;
			font-size: 12px;
			padding: 4px 20px;
			min-width: auto;
		}
	.button:hover, section .button:hover, #dialog .button:hover {
		background: #253551;
		color: white;
	}

#overlay {
	display: none;
	background: rgba(0,0,0,0.5);
	z-index: 3;
	position: fixed;
	top: 0px;
	right: 0px;
	bottom: 0px;
	left: 0px;
}
#overlay-close {
	position: fixed;
	color: white;
	font-size: 32px;
	line-height: 32px;
	display: inline-block;
	top: 10px;
	right: 10px;
	cursor: pointer;
}
#dialog {
	background: white;
	border-radius: 5px;
	box-shadow: 0px 0px 20px rgba(0,0,0,0.5);
	padding: 10px;
	position: fixed;
	left: 20px;
	top: var(--dialog-top);
	right: 20px;
	max-width: 820px;
	margin: 0 auto;
}

	#dialog .title {
		font-weight: bold;
		font-size: 18px;
		color: black;
		padding-bottom: 10px;
		border-bottom: 1px dotted rgba(0,0,0,0.1);
		margin-bottom: 10px;
	}
	#dialog .buttons {
		padding-top: 10px;
		border-top: 1px dotted rgba(0,0,0,0.1);
		margin-top: 10px;
	}
	#dialog .button {
		margin-left: 5px;
		margin-right: 0px;
		float: right;
	}
	#dialog table {
		width: 100%;
	}
	#dialog table td:first-of-type {
		width: 150px;
	}

.alert {
	color: #FF0066;
	background: rgba(255,0,102,0.1);
	/*
	-webkit-text-stroke-width: 0.3px;
	-webkit-text-stroke-color: white;
	-webkit-text-fill-color: #FF0066;
	*/
}
.green {
	color: green;
	xbackground: rgba(102,255,102,0.1);
}
.faint { opacity: 0.5; }
.hidden {
	display: none;
}

section	.button.right {
	float: right;
	margin-right: 0px;
}

a.none {
	text-decoration: none;
}
.pointer {
	cursor:pointer;
}

.center {
	text-align: center;
}
.right {
	float: right;
}

.small { font-size: 12px; }
.large {
	font-size: 18px;
}

.w32 { width: 32px; }
.w100p {
	width: 100%;
}

.calendar-year { font-weight: bold; padding-bottom: 5px; margin-bottom: 5px; border-bottom: 1px solid silver; }
.bold { font-weight: bold; }
.normal { font-weight: normal; }

.code { font-family: 'Courier New'; }
.highlight {
	color: black;
	background: rgba(255, 0, 99, 0.5);
}

#search-results {
	position: relative;
	background: #253551;
	border-radius: 5px;
	width: 100%;
	display: none;
	box-shadow: 0px 5px 10px rgba(0,0,0,0.5);
}
#search-results div {
	width: 100%
}
#search-results a {
	color: #FFFFFF;
	display: block;
	text-decoration: none;
	padding: 5px 10px;
	margin: 0px;
	clear: both;
}
	#search-results a:hover {
		background:rgba(0,0,0,0.2);
	}

#search-results-close {
	display: inline-block;
	position: absolute;
	top: 5px;
	right: 15px;
	width: 16px !important;
	height: 16px;
	padding: 5px;
	float: right;
	cursor: pointer;
	z-index: 1000;
}
	#search-results-close svg {
		width: 16px;
		height: 16px;
		font-size: 16px;
		margin-left: -5px;
		margin-top: -5px;
		width: 16px !important;
		height: 16px !important;
		vertical-align: 1px !important;
	}

.verbose {
	color: green;
}

.admin {
	font-size: 10px;
	color: #4D87FF;
	vertical-align: middle;
	display: inline-block;
	margin-top: -3px;
}

/* Database page: keep the table list beside the selected table's columns. */
#database-page .database-browser {
	display: flex;
	align-items: flex-start;
	gap: 20px;
}
#database-page .database-tables {
	flex: 0 0 220px;
	min-width: 0;
}
#database-page .database-table-list {
	max-height: calc(100vh - 210px);
	overflow-y: auto;
}
#database-page .database-table-list a {
	display: block;
	padding: 7px 10px;
	text-decoration: none;
	overflow-wrap: anywhere;
}
#database-page .database-table-list a:hover {
	background: #253551;
	color: white;
}
#database-page .database-table-list a.active {
	background: #4D87FF;
	color: white;
}
#database-page .database-details {
	flex: 1;
	min-width: 0;
	overflow-x: auto;
}
#database-page .database-columns {
	border-collapse: collapse;
	table-layout: fixed;
}
#database-page .database-columns th,
#database-page .database-columns td {
	padding: 8px;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid rgba(0,0,0,0.1);
	overflow-wrap: anywhere;
}
#database-page .database-columns th:first-child {
	width: 25%;
}
#database-page .database-columns th:nth-child(2) {
	width: 20%;
}
#database-page .database-samples {
	margin: 0;
	padding-left: 24px;
}
#database-page .database-samples li {
	padding-bottom: 3px;
	white-space: pre-wrap;
}
#database-page .database-null {
	color: #666;
	font-style: italic;
}

/* Permanent event deletion is separated from ordinary event editing. */
section.event-danger-zone, section.record-danger-zone {
	border: 1px solid #FF0066;
}
.event-danger-zone h2, .record-danger-zone h2 {
	color: #FF0066;
}
.event-danger-zone .event-delete, .record-danger-zone .record-delete {
	border: none;
	margin-top: 10px;
	float: none;
	background: #FF0066;
	color: white;
	cursor: pointer;
}
.event-danger-zone .event-delete:disabled, .record-danger-zone .record-delete:disabled {
	opacity: 0.5;
	cursor: wait;
}

/* This system-wide setting is separate from per-event Stripe Test Mode. */
nav .development-mode {
	background: #FF0066;
	color: white;
	border-radius: 20px;
	padding: 10px;
	margin: 10px;
	text-align: center;
	font-size: 13px;
	font-weight: bold;
}

/* Keep the image-only action on the right, independent of event eligibility. */
.event-danger-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}
.event-danger-actions form {
	margin: 0;
}
.event-danger-actions .event-image-form {
	margin-left: auto;
}
.event-danger-zone .event-image-delete:disabled {
	cursor: default;
}

/* Native disclosures group available asset variants and the Variants page. */
.asset-variants .variant-group-name,
.variants-list .variant-group-name {
	color: black;
	font-size: 14px;
	font-weight: bold;
	margin: 10px 0 5px;
}
.asset-variants summary.variant-group-name,
.variants-list summary.variant-group-name {
	cursor: pointer;
}

/* Bespoke sales reports: keep wide operational tables inside their own scroller. */
#sales-report .sales-filters { margin: 15px 0 20px; }
#sales-report .sales-filters select { min-width: 240px; max-width: 100%; margin-left: 8px; }
#sales-report .sales-filters fieldset { margin: 15px 0; padding: 10px; border: 1px solid #ccc; }
#sales-report .sales-filters fieldset label { display: inline-block; margin: 5px 15px 5px 0; }
#sales-report .sales-filters input[type=checkbox] { width: auto; }
#sales-report .sales-scroll { overflow: auto; max-width: 100%; margin: 15px 0 25px; }
#sales-report table { border-collapse: collapse; }
#sales-report .sales-data { width: max-content; min-width: 100%; }
#sales-report th, #sales-report td { border: 1px solid #ddd; padding: 8px; text-align: left; vertical-align: top; }
#sales-report th { background: #253551; color: #fff; max-width: 180px; min-width: 75px; }
#sales-report .sales-data td { max-width: 250px; }
/* Each unit has its own row; keep its asset and variant names together. */
#sales-report .sales-data td.sales-booked-items { max-width: none; white-space: nowrap; }
#sales-report .sales-data tbody.sales-booking-group:nth-of-type(even) { background: #f5f5f5; }
#sales-report .sales-quantity { font-weight: normal; }
#sales-report .sales-asset-totals { width: auto; }
#sales-report .sales-unmapped { border-left: 3px solid #FF0066; padding-left: 15px; margin: 20px 0; }

/* Retain the shared dark blue ring without native button bevels. */
#sales-report button.button {
	border: 0;
	font: inherit;
}
#sales-report .sales-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	clear: both;
	margin-top: 15px;
}
#sales-report .sales-actions .button {
	float: none;
}
#sales-report #sales-export-status:empty {
	display: none;
}

/* The styling editor is admin-only; visitor rules come from AIBookingStyle. */
#booking-style-editor > label { display: block; margin-top: 20px; }
#booking-style-editor .booking-style-layout { display: grid; grid-template-columns: minmax(260px, 350px) minmax(0, 1fr); gap: 25px; margin-top: 20px; }
#booking-style-editor .booking-style-controls fieldset { border: 1px solid #ddd; margin: 0 0 15px; padding: 12px; }
#booking-style-editor .booking-style-controls legend { font-weight: bold; color: #253551; }
#booking-style-editor .booking-style-field { margin: 0 0 12px; }
#booking-style-editor .booking-style-field label { display: block; margin-bottom: 4px; }
#booking-style-editor .booking-style-field select { max-width: 100%; width: 100%; }
#booking-style-editor .booking-style-field input[type=number] { width: 90px; }
#booking-style-editor .booking-style-color { display: flex; align-items: center; gap: 8px; }
#booking-style-editor .booking-style-color input[type=color] { width: 40px; height: 30px; padding: 2px; border: 1px solid #ccc; cursor: pointer; }
#booking-style-editor .booking-style-color input[data-style-setting] { width: 100px; }
#booking-style-editor .booking-style-preview-panel { min-width: 0; position: sticky; top: 70px; align-self: start; }
#booking-style-editor .booking-style-preview-scroll { max-width: 100%; overflow: auto; background: #f5f5f5; padding: 8px; }
#booking-style-preview { display: block; width: 900px; max-width: 100%; box-sizing: border-box; height: 950px; border: 1px solid #ddd; background: white; }
#booking-style-preview.booking-style-mobile { width: 360px; }
#booking-style-assignments .booking-style-event-list { max-height: 450px; overflow: auto; margin: 15px 0; }
#booking-style-assignments .booking-style-event-list label { display: block; padding: 7px 0; }
#booking-style-assignments input[type=checkbox] { width: auto; }
#booking-style-editor button.button, #booking-style-assignments button.button, .booking-style-event button.button { border: 0; font: inherit; }
#booking-style-editor [role=status], #booking-style-assignments [role=status], .booking-style-event [role=status] { overflow-wrap: anywhere; }
@media (max-width: 900px) {
	#booking-style-editor .booking-style-layout { grid-template-columns: minmax(0, 1fr); }
	#booking-style-editor .booking-style-preview-panel { position: static; }
}
