/* App-specific styles. Blok ships its own CSS (sitecore-blok.css) — keep this minimal. */

html, body {
	margin: 0;
	padding: 0;
}

/* Clear the fixed 38px menu bar. */
body {
	padding-top: 38px;
}

/* --- floating menu bar (ported from FloatingMenu.tsx) ----------------------- */
.harvest-menubar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 38px;
	background-color: #e9e9e9;
	z-index: 1001;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding-right: 8px;
}

.harvest-menubar__trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 24px;
	width: 26px;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 4px;
	color: #000;
	cursor: pointer;
}

.harvest-menubar__trigger:hover {
	background: rgba(0, 0, 0, 0.08);
}

.harvest-menubar__link {
	display: flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: inherit;
}

.harvest-menubar__footer {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 4px;
	border-top: 1px solid #e0e0e0;
	margin-top: 4px;
	padding: 4px 8px 2px;
	font-size: 11px;
	color: #666;
}

.harvest-menubar__footer img {
	height: 15px;
	width: auto;
	opacity: 0.7;
}

/* --- sign-in view ---------------------------------------------------------- */
.harvest-signin {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: calc(100vh - 38px);
	gap: 16px;
	padding: 16px;
}

.harvest-signin__lede {
	max-width: 320px;
}

.harvest-signin__error {
	width: 100%;
	max-width: 360px;
}

.harvest-signin__button {
	border-radius: 9999px;
}

/* --- authenticated page ---------------------------------------------------- */
.harvest-page {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: calc(100vh - 38px);
	width: 100%;
	max-width: 32rem;
	margin: 0 auto;
	padding: 16px;
}

.harvest-page__header {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}

/* --- time-entry form ------------------------------------------------------- */
.harvest-form__loading {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 24px 0;
}

.harvest-form__field {
	margin-bottom: 16px;
}

.harvest-form__row {
	display: flex;
	flex-direction: row;
	gap: 16px;
	align-items: flex-end;
}

.harvest-form__hours {
	flex: 1 1 0;
}

.harvest-form__date {
	flex: 0 0 auto;
}

.harvest-form__submit {
	flex: 1 1 0;
}

.harvest-form__submit-btn {
	width: 100%;
	height: 66px;
	font-weight: 700;
}

.harvest-form__submit-btn--timing {
	animation: harvest-pulse 1.4s ease-in-out infinite;
}

@keyframes harvest-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.6; }
}

/* Big, bold hours input / live elapsed readout (matches .time-input from globals.css). */
.time-input,
.time-input::placeholder {
	font-size: 2rem !important;
	font-weight: 700 !important;
}

.harvest-form__elapsed {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 66px;
	border: 1px solid #c4c4c4;
	border-radius: 4px;
	background: #fff;
	color: #000;
	text-align: center;
}

.harvest-form__error-wrap {
	margin-top: 12px;
}

/* --- searchable select (project / task) ------------------------------------ */
.harvest-select__trigger {
	width: 100%;
}

.harvest-select__value {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	line-height: 1.15;
}

.harvest-select__value-client {
	font-size: 0.72rem;
	font-weight: 700;
	color: #666;
}

.harvest-select__value-name {
	font-size: 0.9rem;
}

.harvest-select__placeholder {
	color: #888;
}

.harvest-select__search {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 6px 8px;
	border-bottom: 1px solid #e0e0e0;
	position: sticky;
	top: 0;
	background: #fff;
	z-index: 1;
}

.harvest-select__search input {
	flex: 1 1 auto;
}

.harvest-select__subheader {
	background-color: #f5f5f5;
	font-weight: 700;
	color: #666;
	border-bottom: 1px solid #e0e0e0;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.htt-panel {
	display: flex;
	flex-direction: column;
	height: 100vh;
	overflow: hidden;
}

.htt-panel__body {
	flex: 1 1 auto;
	overflow: auto;
}

#blazor-error-ui {
	color-scheme: light only;
	background: lightyellow;
	bottom: 0;
	box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
	box-sizing: border-box;
	display: none;
	left: 0;
	padding: 0.6rem 1.25rem 0.7rem 1.25rem;
	position: fixed;
	width: 100%;
	z-index: 1000;
}

	#blazor-error-ui .dismiss {
		cursor: pointer;
		position: absolute;
		right: 0.75rem;
		top: 0.5rem;
	}
