/* Reservation and service-form refinements. Loaded after the approved Hub styles. */
.sghm-hub .sh-request-form,
.sghm-hub .sghm-service-form,
.sghm-hub .sghm-payment-portal,
.sghm-hub .sghm-workflow-status,
.sghm-hub .sghm-audit,
.sghm-hub .sghm-settings-grid {
	min-width: 0;
	color: #30221a;
}

/* Keep form controls inside their columns, including long user-entered values. */
.sghm-hub .sh-request-form *,
.sghm-hub .sghm-service-form *,
.sghm-hub .sghm-payment-portal *,
.sghm-hub .sghm-workflow-status *,
.sghm-hub .sghm-audit *,
.sghm-hub .sghm-settings-grid * {
	box-sizing: border-box;
}

.sghm-hub .sh-request-form,
.sghm-hub .sghm-service-form {
	max-width: 100%;
	overflow-wrap: anywhere;
}

.sghm-hub .sh-request-form input,
.sghm-hub .sh-request-form select,
.sghm-hub .sh-request-form textarea,
.sghm-hub .sghm-service-form input:not([type="radio"]):not([type="checkbox"]),
.sghm-hub .sghm-service-form select,
.sghm-hub .sghm-service-form textarea {
	max-width: 100%;
}

.sghm-hub .sh-request-form input[type="checkbox"],
.sghm-hub .sh-request-form input[type="radio"],
.sghm-hub .sghm-service-form input[type="checkbox"],
.sghm-hub .sghm-service-form input[type="radio"] {
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
	accent-color: #8e641e;
}

.sghm-hub .sh-request-form button,
.sghm-hub .sh-request-form input[type="submit"],
.sghm-hub .sh-request-form input[type="button"],
.sghm-hub .sghm-service-form button,
.sghm-hub .sghm-service-form input[type="submit"],
.sghm-hub .sghm-service-form input[type="button"] {
	min-height: 48px;
	max-width: 100%;
}

.sghm-hub .sh-request-form :focus-visible,
.sghm-hub .sghm-service-form :focus-visible {
	outline: 3px solid rgba(142, 100, 30, .58);
	outline-offset: 3px;
}

/* A clear, high-contrast summary for users who need to correct several fields. */
.sghm-hub .sh-error-summary {
	margin: 0 0 24px;
	padding: 18px 20px;
	border: 2px solid #8f3325;
border-inline-start-width: 2px;
	background: #fbefec;
	color: #64271f;
	font-size: 16px;
	line-height: 1.6;
}

.sghm-hub .sh-error-summary:focus {
	outline: 3px solid #8f3325;
	outline-offset: 3px;
}

.sghm-hub .sh-error-summary a,
.sghm-hub .sh-error-summary a:visited {
	color: #702b21 !important;
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.sghm-hub .sh-error-summary a:focus-visible {
	outline: 3px solid #702b21;
	outline-offset: 3px;
}

.sghm-hub .sh-error-summary ul {
	margin: 9px 0 0;
	padding-inline-start: 24px;
}

.sghm-hub .sh-error-summary li + li {
	margin-top: 5px;
}

.sghm-hub .sh-request-form [aria-invalid="true"],
.sghm-hub .sghm-service-form [aria-invalid="true"] {
	border-color: #8f3325 !important;
	box-shadow: 0 0 0 1px #8f3325;
}

.sghm-hub .sh-request-form .sh-field-error,
.sghm-hub .sghm-service-form .sghm-form-error {
	color: #762d22;
	font-weight: 650;
}

.sghm-hub .sh-request-form .sh-field-error a,
.sghm-hub .sghm-service-form .sghm-form-error a {
	color: #702b21 !important;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Distinguish unavailable calendar dates while preserving the ivory/gold palette. */
.sghm-hub .sh-calendar-day.is-reserved,
.sghm-hub .sh-calendar-day.is-maintenance {
	color: #56483b;
	cursor: not-allowed;
}

.sghm-hub .sh-calendar-day.is-reserved {
	border-color: #9d8872;
	background: #e8dfd4;
	text-decoration: line-through;
	text-decoration-thickness: 1px;
}

.sghm-hub .sh-calendar-day.is-maintenance {
	border-color: #8b7764;
	background: repeating-linear-gradient(135deg, #eee8dc 0, #eee8dc 6px, #e2d8c9 6px, #e2d8c9 12px);
}

.sghm-hub .sh-calendar-day.is-reserved:hover,
.sghm-hub .sh-calendar-day.is-maintenance:hover {
	border-color: #8b7764;
	background-color: #e8dfd4;
	color: #493626;
}

.sghm-hub .sh-calendar-legend .is-reserved::before {
	border-color: #9d8872;
	background: #e8dfd4;
}

.sghm-hub .sh-calendar-legend .is-maintenance::before {
	border-color: #8b7764;
	background: repeating-linear-gradient(135deg, #eee8dc 0, #eee8dc 3px, #d8cdbb 3px, #d8cdbb 6px);
}

/* Calm, legible surfaces for payment, workflow, audit and settings tools. */
.sghm-hub .sghm-payment-portal,
.sghm-hub .sghm-workflow-status,
.sghm-hub .sghm-audit,
.sghm-hub .sghm-settings-grid {
	border: 1px solid #dfd5c5;
	background: #fffdf8;
}

.sghm-hub .sghm-payment-portal,
.sghm-hub .sghm-workflow-status,
.sghm-hub .sghm-audit {
	padding: clamp(18px, 3vw, 28px);
}

.sghm-hub .sghm-payment-portal :where(input, select, textarea, button),
.sghm-hub .sghm-workflow-status :where(input, select, textarea, button),
.sghm-hub .sghm-audit :where(input, select, textarea, button),
.sghm-hub .sghm-settings-grid :where(input, select, textarea, button) {
	max-width: 100%;
}

.sghm-hub .sghm-payment-portal :where(input, select, textarea),
.sghm-hub .sghm-workflow-status :where(input, select, textarea),
.sghm-hub .sghm-audit :where(input, select, textarea),
.sghm-hub .sghm-settings-grid :where(input, select, textarea) {
	min-height: 46px;
	border: 1px solid #bfb19c;
	border-radius: 0;
	padding: 10px 12px;
	background: #fffefa;
	color: #30221a;
	font: inherit;
	font-size: 16px;
	line-height: 1.5;
}

.sghm-hub .sghm-payment-portal :where(input, select, textarea):focus,
.sghm-hub .sghm-workflow-status :where(input, select, textarea):focus,
.sghm-hub .sghm-audit :where(input, select, textarea):focus,
.sghm-hub .sghm-settings-grid :where(input, select, textarea):focus {
	border-color: #8e641e;
	outline: 3px solid rgba(142, 100, 30, .28);
	outline-offset: 1px;
}

.sghm-hub .sghm-payment-portal :where(button, input[type="submit"]),
.sghm-hub .sghm-workflow-status :where(button, input[type="submit"]),
.sghm-hub .sghm-audit :where(button, input[type="submit"]),
.sghm-hub .sghm-settings-grid :where(button, input[type="submit"]) {
	min-height: 46px;
	padding: 10px 16px;
	border: 1px solid #76501a;
	border-radius: 0;
	background: #8e641e;
	color: #fffaf0;
	font: inherit;
	font-weight: 650;
	cursor: pointer;
}

.sghm-hub .sghm-payment-portal :where(button, input[type="submit"]):hover:not(:disabled),
.sghm-hub .sghm-workflow-status :where(button, input[type="submit"]):hover:not(:disabled),
.sghm-hub .sghm-audit :where(button, input[type="submit"]):hover:not(:disabled),
.sghm-hub .sghm-settings-grid :where(button, input[type="submit"]):hover:not(:disabled) {
	background: #6f4c18;
}

.sghm-hub .sghm-payment-portal :where(button, input[type="submit"]):focus-visible,
.sghm-hub .sghm-workflow-status :where(button, input[type="submit"]):focus-visible,
.sghm-hub .sghm-audit :where(button, input[type="submit"]):focus-visible,
.sghm-hub .sghm-settings-grid :where(button, input[type="submit"]):focus-visible {
	outline: 3px solid #b99450;
	outline-offset: 3px;
}

.sghm-hub .sghm-payment-portal :where(button, input[type="submit"]):disabled,
.sghm-hub .sghm-workflow-status :where(button, input[type="submit"]):disabled,
.sghm-hub .sghm-audit :where(button, input[type="submit"]):disabled,
.sghm-hub .sghm-settings-grid :where(button, input[type="submit"]):disabled {
	opacity: .6;
	cursor: not-allowed;
}

.sghm-hub .sghm-settings-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	padding: clamp(16px, 2.5vw, 25px);
}

.sghm-hub .sghm-settings-grid > * {
	min-width: 0;
}

.sghm-hub .sghm-payment-portal :where(table),
.sghm-hub .sghm-workflow-status :where(table),
.sghm-hub .sghm-audit :where(table),
.sghm-hub .sghm-settings-grid :where(table) {
	width: 100%;
	border-collapse: collapse;
}

.sghm-hub .sghm-payment-portal :where(th, td),
.sghm-hub .sghm-workflow-status :where(th, td),
.sghm-hub .sghm-audit :where(th, td),
.sghm-hub .sghm-settings-grid :where(th, td) {
	padding: 11px 12px;
	border-bottom: 1px solid #dfd5c5;
	text-align: start;
	vertical-align: top;
	overflow-wrap: anywhere;
}

.sghm-hub .sghm-payment-portal :where(th),
.sghm-hub .sghm-workflow-status :where(th),
.sghm-hub .sghm-audit :where(th),
.sghm-hub .sghm-settings-grid :where(th) {
	color: #493626;
	font-weight: 700;
}

.sghm-hub .sghm-payment-portal :where(pre, code),
.sghm-hub .sghm-workflow-status :where(pre, code),
.sghm-hub .sghm-audit :where(pre, code),
.sghm-hub .sghm-settings-grid :where(pre, code) {
	max-width: 100%;
	overflow-wrap: anywhere;
	white-space: pre-wrap;
}

@media (max-width: 680px) {
	.sghm-hub .sh-request-form,
	.sghm-hub .sghm-service-form {
		width: 100%;
	}

	.sghm-hub .sh-request-form :where(input, select, textarea),
	.sghm-hub .sghm-service-form :where(input:not([type="radio"]):not([type="checkbox"]), select, textarea) {
		min-width: 0;
		font-size: 16px;
	}

	.sghm-hub .sh-error-summary {
		padding: 15px 16px;
	}

	.sghm-hub .sh-calendar {
		max-width: 100%;
		padding: 12px;
min-width: 0;
overflow-x: visible;
	}

	.sghm-hub .sh-calendar-grid {
width: 100%;
min-width: 0;
grid-template-columns: repeat(7, minmax(0, 1fr));
		gap: 3px;
	}

.sghm-hub .sh-calendar-head {
flex-direction: column;
align-items: stretch;
gap: 12px;
}

.sghm-hub .sh-calendar-controls {
display: flex;
width: 100%;
gap: 8px;
}

.sghm-hub .sh-calendar-controls button {
flex: 1;
min-width: 0;
padding: 8px;
white-space: nowrap;
overflow-wrap: normal;
word-break: normal;
}

	.sghm-hub .sh-calendar-day {
		min-width: 0;
		min-height: 42px;
		padding: 4px 1px;
		font-size: 14px;
	}

	.sghm-hub .sghm-settings-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.sghm-hub .sghm-payment-portal,
	.sghm-hub .sghm-workflow-status,
	.sghm-hub .sghm-audit,
	.sghm-hub .sghm-settings-grid {
		padding: 16px;
	}

	.sghm-hub .sghm-payment-portal :where(table),
	.sghm-hub .sghm-workflow-status :where(table),
	.sghm-hub .sghm-audit :where(table),
	.sghm-hub .sghm-settings-grid :where(table) {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.sghm-hub .sghm-payment-portal :where(button, input[type="submit"]),
	.sghm-hub .sghm-workflow-status :where(button, input[type="submit"]),
	.sghm-hub .sghm-audit :where(button, input[type="submit"]),
	.sghm-hub .sghm-settings-grid :where(button, input[type="submit"]) {
		max-width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sghm-hub .sh-request-form *,
	.sghm-hub .sghm-service-form *,
	.sghm-hub .sghm-payment-portal *,
	.sghm-hub .sghm-workflow-status *,
	.sghm-hub .sghm-audit *,
	.sghm-hub .sghm-settings-grid * {
		scroll-behavior: auto;
		transition-duration: .01ms !important;
	}
}
