@charset "UTF-8";
@import url("style.css");

.smtp-fields {
	min-width: 0;
	margin: 14px 0 0;
	padding: 0;
	border: 0;
}

.smtp-fields[hidden] {
	display: none;
}

.admin-page {
	background: #eef2f4;
}

.admin-header {
	background: var(--navy);
	color: #fff;
}

.admin-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: min(1240px, calc(100% - 32px));
	min-height: 64px;
	margin: 0 auto;
	gap: 18px;
}

.admin-brand {
	color: #fff;
	font-size: 1.1rem;
	font-weight: 700;
	text-decoration: none;
}

.admin-user {
	font-size: 0.85rem;
}

.admin-header__status {
	display: flex;
	align-items: center;
	gap: 12px;
}

.booking-reception-status {
	display: inline-flex;
	align-items: center;
	padding: 4px 9px;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 700;
	white-space: nowrap;
}

.booking-reception-status--enabled {
	background: #dff2ec;
	color: #176050;
}

.booking-reception-status--disabled {
	background: #f4e8e8;
	color: #8d3939;
}

.admin-header .booking-reception-status--enabled {
	background: #dff2ec;
}

.admin-header .booking-reception-status--disabled {
	background: #fff0f0;
}

.admin-layout {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	width: min(1240px, calc(100% - 32px));
	min-height: calc(100vh - 64px);
	margin: 0 auto;
}

.admin-nav {
	padding: 28px 18px 28px 0;
}

.admin-nav a {
	display: block;
	margin-bottom: 6px;
	padding: 11px 12px;
	border-radius: 8px;
	color: var(--ink);
	text-decoration: none;
}

.admin-nav a:hover,
.admin-nav a:focus {
	background: #fff;
}

.admin-nav .admin-nav__logout {
	margin-top: 24px;
	color: var(--red);
}

.admin-main {
	padding: 34px 0 70px 24px;
}

.admin-main .page-heading {
	font-size: 1.8rem;
}

.metric-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 24px;
}

.metric {
	padding: 20px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #fff;
}

.metric__label {
	display: block;
	color: var(--muted);
	font-size: 0.85rem;
}

.metric__value {
	display: block;
	margin-top: 5px;
	color: var(--navy);
	font-size: 1.8rem;
	font-weight: 700;
}

.table-wrap {
	overflow-x: auto;
}

.booking-calendar-panel {
	padding-top: 20px;
}

.booking-calendar-nav {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	margin-bottom: 20px;
	gap: 18px;
	text-align: center;
}

.booking-calendar-nav h2,
.booking-calendar-nav p {
	margin: 0;
}

.booking-calendar-nav p {
	margin-top: 4px;
	color: var(--muted);
	font-size: 0.85rem;
}

.booking-calendar-wrap {
	overflow-x: auto;
}

.booking-calendar {
	width: 100%;
	min-width: 600px;
	border-collapse: collapse;
	table-layout: fixed;
}

.booking-calendar th,
.booking-calendar td {
	border: 1px solid var(--line);
}

.booking-calendar th {
	padding: 8px;
	background: #f0f5f7;
	color: var(--navy);
	font-size: 0.82rem;
	text-align: center;
}

.booking-calendar th:first-child {
	color: var(--red);
}

.booking-calendar th:last-child {
	color: #365e86;
}

.booking-calendar td {
	height: 102px;
	padding: 8px;
	background: #fff;
	vertical-align: top;
}

.booking-calendar td.booking-calendar-empty {
	background: #f5f7f8;
}

.booking-calendar td.is-selected {
	background: #edf7f4;
	box-shadow: inset 0 0 0 2px #18816d;
}

.booking-calendar-day {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	font-weight: 700;
}

.booking-calendar td.is-today .booking-calendar-day {
	border-radius: 50%;
	background: var(--navy);
	color: #fff;
}

.booking-calendar-link {
	display: block;
	margin-top: 5px;
	text-decoration: none;
}

.booking-calendar-count,
.booking-calendar-canceled {
	display: block;
	padding: 4px 6px;
	border-radius: 5px;
	font-size: 0.78rem;
	line-height: 1.35;
}

.booking-calendar-count {
	background: #dff2ec;
	color: #176050;
	font-weight: 700;
}

.booking-calendar-canceled {
	margin-top: 4px;
	background: #f4e8e8;
	color: #8d3939;
}

.data-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
}

.data-table th,
.data-table td {
	padding: 12px 10px;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

.data-table th {
	background: #f0f5f7;
	color: var(--navy);
	font-size: 0.84rem;
}

.status {
	display: inline-block;
	padding: 3px 8px;
	border-radius: 999px;
	background: #e7f4ef;
	color: #176050;
	font-size: 0.78rem;
	white-space: nowrap;
}

.status--canceled,
.status--no_show {
	background: #f4e8e8;
	color: #8d3939;
}

.status--visited {
	background: #e7edf4;
	color: #365e86;
}

.admin-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 18px;
}

.admin-login {
	width: min(480px, calc(100% - 32px));
	margin: 70px auto;
}

.schedule-day {
	margin-bottom: 18px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--line);
}

.booking-reception-panel {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 24px;
	padding: 16px 18px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #fff;
	gap: 18px;
}

.booking-reception-panel strong {
	margin-right: 10px;
}

.booking-reception-panel p {
	margin: 6px 0 0;
	color: var(--muted);
	font-size: 0.86rem;
}

.schedule-row {
	display: grid;
	grid-template-columns: 110px 110px 120px;
	gap: 10px;
	margin: 8px 0;
}

.schedule-row input {
	min-width: 0;
}

.schedule-editor {
	padding-top: 20px;
}

.schedule-unsaved-notice {
	position: sticky;
	top: 12px;
	z-index: 20;
	margin: 0 0 16px;
	padding: 14px 18px;
	border: 2px solid #d49b2f;
	border-radius: 10px;
	background: #fff8e6;
	color: #704d0b;
	box-shadow: 0 6px 18px rgba(112, 77, 11, 0.12);
}

.schedule-unsaved-notice[hidden] {
	display: none;
}

.schedule-unsaved-notice a {
	margin-left: 8px;
	font-weight: 700;
}

.schedule-day-editor.has-unsaved-changes button[name="save_schedule"] {
	box-shadow: 0 0 0 4px rgba(212, 155, 47, 0.25);
}

.schedule-tabs {
	display: flex;
	overflow-x: auto;
	margin: 0 0 24px;
	padding-bottom: 4px;
	gap: 6px;
}

.schedule-tab {
	min-width: 102px;
	padding: 10px 12px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: #fff;
	color: var(--ink);
	font: inherit;
	font-weight: 700;
	white-space: nowrap;
}

.schedule-tab span {
	display: block;
	margin-top: 2px;
	color: var(--muted);
	font-size: 0.75rem;
	font-weight: 400;
}

.schedule-tab.is-active {
	border-color: var(--navy);
	background: var(--navy);
	color: #fff;
}

.schedule-tab.is-active span {
	color: #fff;
}

.schedule-day-editor h2,
.schedule-day-editor p {
	margin-top: 0;
}

.schedule-day-header {
	display: flex;
	justify-content: space-between;
	margin-bottom: 18px;
	gap: 20px;
}

.schedule-day-header p {
	margin-bottom: 0;
	color: var(--muted);
	font-size: 0.86rem;
}

.schedule-copy {
	display: flex;
	align-items: end;
	flex-wrap: wrap;
	gap: 8px;
}

.schedule-copy label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	color: var(--muted);
	font-size: 0.8rem;
}

.schedule-copy select {
	min-width: 140px;
}

.schedule-table {
	min-width: 560px;
}

.schedule-table input[type="time"] {
	width: 130px;
}

.schedule-table input[readonly] {
	background: #f1f4f5;
	color: var(--muted);
}

.schedule-capacity {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.schedule-capacity input {
	width: 90px;
}

.schedule-row-action {
	width: 1%;
	white-space: nowrap;
}

.schedule-empty {
	padding: 14px;
	border-radius: 8px;
	background: #f5f7f8;
	color: var(--muted);
	text-align: center;
}

.schedule-add-row {
	margin-top: 14px;
}

.schedule-bulk {
	margin-top: 24px;
	padding: 14px 16px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: #f8fafb;
}

.schedule-bulk summary {
	font-weight: 700;
	cursor: pointer;
}

.schedule-bulk p {
	margin: 12px 0;
	color: var(--muted);
	font-size: 0.86rem;
}

.schedule-bulk-fields {
	display: flex;
	align-items: end;
	flex-wrap: wrap;
	gap: 12px;
}

.schedule-bulk-fields label {
	display: flex;
	flex-direction: column;
	gap: 5px;
	font-size: 0.82rem;
}

.schedule-bulk-fields input {
	width: 140px;
}

.schedule-message {
	min-height: 1.5em;
	margin: 12px 0 0;
	color: #176050;
	font-size: 0.86rem;
}

.schedule-message.is-error {
	color: var(--red);
}

.table-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.table-actions form {
	margin: 0;
}

@media (max-width: 860px) {
	.admin-layout {
		grid-template-columns: 1fr;
	}

	.admin-nav {
		display: flex;
		overflow-x: auto;
		padding: 12px 0;
		gap: 4px;
	}

	.admin-nav a {
		margin: 0;
		white-space: nowrap;
	}

	.admin-nav .admin-nav__logout {
		margin: 0;
	}

	.admin-main {
		padding: 24px 0 60px;
	}

	.metric-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.schedule-day-header {
		align-items: flex-start;
		flex-direction: column;
	}

	.booking-reception-panel {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (max-width: 540px) {
	.admin-header__inner {
		align-items: flex-start;
		flex-direction: column;
		padding: 12px 0;
	}

	.admin-header__status {
		align-items: flex-start;
		flex-direction: column;
		gap: 4px;
	}

	.metric-grid {
		grid-template-columns: 1fr;
	}

	.booking-calendar-nav {
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}

	.booking-calendar-nav div {
		grid-column: 1 / -1;
		grid-row: 1;
	}

	.booking-calendar-nav .button:first-child {
		grid-column: 1;
	}

	.booking-calendar-nav .button:last-child {
		grid-column: 2;
	}

	.booking-calendar {
		min-width: 560px;
	}

	.schedule-row {
		grid-template-columns: 1fr 1fr;
	}

	.schedule-row input[type="number"] {
		grid-column: 1 / -1;
	}

	.schedule-tab {
		min-width: 88px;
	}

	.schedule-copy {
		align-items: stretch;
		width: 100%;
	}

	.schedule-copy label {
		flex: 1;
	}

	.schedule-copy select {
		width: 100%;
	}

	.schedule-bulk-fields {
		align-items: stretch;
		flex-direction: column;
	}

	.schedule-bulk-fields label,
	.schedule-bulk-fields input,
	.schedule-bulk-fields .button {
		width: 100%;
	}
}

