header {
	border-top: 30px solid #64AD33;
	padding: 20px 0;
}

header h1 {
	margin-bottom: 0;
}

h2, h3, h4, h5 {
	margin-top: 20px;
}

.logo {
	width: 100%;
}

body {
	min-height: 100vh;
	padding-bottom: 50px;
	height: auto;
	position: relative;
}

.debug {
	display: block;
	white-space: pre-wrap;
}

ul {
	padding-left: 20px;
}

.event-table {
	border-collapse: collapse;
}

.event-table td {
	border: 1px solid;
	padding: 5px;
}

.week-table ul {
	margin: 0;
}

.week-table .waiting-row td,
.week-table .events-row td {
	vertical-align: top;
}

.week-table.ui.table .events-row td {
	border-top: 2px solid #000;
}

.feedback-element {
	overflow: hidden;
	max-height: 0;
	transition: max-height 0.5s ease-in-out;
}
.feedback-container.state-open .feedback-element {
	max-height: 500px;
}
.feedback-trigger {
	transition: opacity 0.5s ease-in-out;
}
.feedback-container.state-open .feedback-trigger {
	opacity: 0;
	pointer-events: none;
}

.footer {
	position: absolute;
	width: 100%;
	left: 0;
	bottom: -25px;
	text-align: center;
	padding: 5px;
	background-color: #64AD33;
	color: #fff;
}

.footer a {
	color: #fff;
}

.footer a:hover {
	text-decoration: underline;
}

.devsystem {
	font-weight: bold;
	background: red;
	color: white;
	display: block;
	padding: 10px;
	text-align: center;
}

@media print {
	.noprint,
	.devsystem {
		display: none;
	}
	.logo {
		width: 50%;
	}
	h1 {
		font-size: 1rem;
	}
	header {
		border-top: none;
	}
	body {
		padding-top: 72px;
		padding-bottom: 72px;
		border-bottom: none;
	}
	@page {
		margin-top: 0;
		margin-bottom: 0;
	}
}

/* Status badges - hidden by default, shown based on row classes */
.ui.label.coordinator-badge,
.ui.label.billed-badge,
.ui.label.unbilled-badge {
    display: none;
}

tr.is-coordinator .ui.label.coordinator-badge {
    display: inline-block;
}

tr.is-billed .ui.label.billed-badge {
    display: inline-block;
}

tr.is-past:not(.is-billed) .ui.label.unbilled-badge {
    display: inline-block;
}

/* Coordinator buttons - show/hide based on row class */
tr:not(.is-coordinator) .coordinator-btn-remove {
    display: none;
}

tr.is-coordinator .coordinator-btn-set {
    display: none;
}

/* Billed buttons - show/hide based on row class */
tr:not(.is-billed) .billed-btn-remove {
    display: none;
}

tr.is-billed .billed-btn-set {
    display: none;
}

/* Visual indicator for billed events in driver_events.php */
tr.is-billed {
    background-color: #f0fff4 !important;
}

/* Modal positioning fixes */
#reject-modal.ui.modal {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
}
