/* /u/css/timeentry.css */

body {
	font-family: Arial, sans-serif;
	background: #f5f5f5;
	margin: 0;
	padding: 0;
}

.te-container {
	max-width: 600px;
	margin: 40px auto;
	background: #fff;
	padding: 20px;
	border-radius: 6px;
	box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.te-container h1 {
	text-align: center;
	margin-top: 0;
}

.te-month-header {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}

.te-weekdays,
.te-days {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
	text-align: center;
}

.te-weekdays div {
	font-weight: bold;
	padding: 4px;
}

.te-day {
	min-height: 120px;	/* was 60px */
	display: flex;
	flex-direction: column;
	align-items: flex-start;	/* entries from the top */
	justify-content: flex-start;
	border-radius: 4px;
	padding: 4px;
	box-sizing: border-box;
}

.te-day-empty {
	background: transparent;
}

.te-day-number {
	background: #e9f0ff;
	cursor: pointer;
}

.te-day-number:hover {
	background: #d4e2ff;
}

.te-day-num {
	font-weight: bold;
	margin-bottom: 2px;
}

.te-day-hours {
	font-size: 0.75rem;
	line-height: 1.2;
}

/* Modal */
.te-modal {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.5);
	display: flex;
	align-items: center;
	justify-content: center;
}

.te-hidden {
	display: none;
}

.te-modal-content {
	background: #fff;
	padding: 20px;
	border-radius: 6px;
	width: 280px;
	box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.te-form-row {
	margin-bottom: 10px;
	display: flex;
	flex-direction: column;
}

.te-form-row input {
	padding: 6px;
}

.te-button-row {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
}

.te-error {
	color: #b00020;
	min-height: 18px;
	margin-top: 4px;
	font-size: 0.85rem;
}
