.agersoe-bookings,
.agersoe-bookings *,
.agersoe-bookings *::before,
.agersoe-bookings *::after {
	box-sizing: border-box;
}

.agersoe-bookings {
	width: 100%;
	color: #20313c;
}


/* Kort */

.agersoe-bookings-card {
	background: #fff;
	border: 1px solid #e2e8ec;
	border-radius: 14px;
	padding: 28px;
	margin-bottom: 28px;
}

.agersoe-bookings-card__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 24px;
}

.agersoe-bookings-card__header h2 {
	margin: 0 0 6px;
	font-size: 28px;
	line-height: 1.2;
	font-weight: 600;
	color: #172d39;
}

.agersoe-bookings-card__header p {
	margin: 0;
	color: #73818a;
	font-size: 15px;
}


/* Badges */

.agersoe-count-badge,
.agersoe-pending-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	font-weight: 700;
	background: #fff1dc;
	color: #966000;
}

.agersoe-count-badge {
	min-width: 32px;
	height: 32px;
	padding: 0 10px;
}

.agersoe-pending-badge {
	min-width: 28px;
	height: 28px;
	padding: 0 9px;
}


/* Table */

.agersoe-table-wrap {
	width: 100%;
	overflow-x: auto;
	border: 1px solid #e1e6e9;
	border-radius: 10px;
}

.agersoe-table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
}

.agersoe-table th,
.agersoe-table td {
	padding: 15px 16px;
	border: 0;
	border-bottom: 1px solid #e7ebee;
	text-align: left;
	vertical-align: middle;
}

.agersoe-table thead th {
	background: #f7f9fa;
	color: #52616b;
	font-size: 13px;
	font-weight: 600;
}

.agersoe-table tbody td {
	font-size: 14px;
}

.agersoe-table tbody tr:last-child td {
	border-bottom: 0;
}

.agersoe-table tbody tr:hover {
	background: #f9fbfc;
}

.agersoe-table__clickable {
	cursor: pointer;
}

.agersoe-table__primary {
	color: #176fa7;
	font-weight: 600;
	text-decoration: none;
}

.agersoe-table__primary:hover {
	text-decoration: underline;
}

.agersoe-table__number {
	text-align: center !important;
	white-space: nowrap;
}

.agersoe-table__action {
	text-align: right !important;
	white-space: nowrap;
	width: 1%;
}

.agersoe-table__muted {
	color: #8c989f;
}


/* Buttons */

.agersoe-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 20px;
	border: 0;
	border-radius: 7px;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.agersoe-button--small {
	min-height: 34px;
	padding: 0 14px;
	font-size: 13px;
}

.agersoe-button--secondary {
	background: #fff;
	border: 1px solid #ccd5da;
	color: #314650;
}

.agersoe-button--secondary:hover {
	background: #f4f7f8;
}

.agersoe-button--approve {
	background: #176fa7;
	color: #fff;
}

.agersoe-button--approve:hover {
	background: #125c8b;
}

.agersoe-button--reject {
	background: #fff;
	color: #a13c3c;
	border: 1px solid #dfbaba;
}

.agersoe-button--reject:hover {
	background: #fff5f5;
}

.agersoe-payment-toggle {
	min-width: 105px;
	padding-right: 10px;
	padding-left: 10px;
	border: 1px solid #cbd6db;
}

.agersoe-payment-toggle.is-unpaid {
	background: #fff;
	color: #63737c;
}

.agersoe-payment-toggle.is-unpaid:hover {
	background: #f4f7f8;
}

.agersoe-payment-toggle.is-paid {
	background: #e5f4e9;
	border-color: #b9ddc3;
	color: #24733b;
}

.agersoe-payment-toggle.is-paid:hover {
	background: #d9efdf;
}

.agersoe-button:disabled {
	opacity: .55;
	cursor: wait;
}

.agersoe-button:focus-visible,
.agersoe-booking-edit-form input:focus-visible,
.agersoe-booking-edit-form textarea:focus-visible {
	outline: 3px solid rgba(23, 111, 167, .3);
	outline-offset: 2px;
}


/* Empty */

.agersoe-empty-state {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 20px;
	border: 1px solid #e0e9e3;
	border-radius: 10px;
	background: #f7faf8;
}

.agersoe-empty-state__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	flex: 0 0 38px;
	border-radius: 50%;
	background: #e4f2e8;
	color: #28723e;
	font-weight: 700;
}

.agersoe-empty-state strong {
	display: block;
	margin-bottom: 3px;
}

.agersoe-empty-state p {
	margin: 0;
	color: #718078;
	font-size: 14px;
}


/* Beskeder */

.agersoe-bookings-message {
	padding: 16px 18px;
	border: 1px solid #dae1e5;
	border-radius: 8px;
	background: #f4f7f8;
}

.agersoe-bookings-message--error {
	background: #fff4f4;
	border-color: #eccccc;
	color: #8e3535;
}


/* Detail */

.agersoe-detail-topbar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 18px;
}

.agersoe-back-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 14px;
	border: 1px solid #b9cbd4;
	border-radius: 7px;
	background: #f4f8fa;
	color: #176fa7;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.agersoe-back-link:hover {
	border-color: #176fa7;
	background: #e8f2f7;
	color: #125c8b;
	text-decoration: none;
}

.agersoe-back-link:focus-visible {
	outline: 3px solid rgba(23, 111, 167, .3);
	outline-offset: 2px;
}

.agersoe-booking-detail__heading,
.agersoe-event-detail-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 30px;
	margin-bottom: 28px;
}

.agersoe-detail-kicker {
	display: block;
	margin-bottom: 6px;
	color: #82919a;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
}

.agersoe-booking-detail__heading h1,
.agersoe-event-detail-header h1 {
	margin: 0 0 5px;
	font-size: 32px;
	font-weight: 600;
	color: #182d39;
}

.agersoe-booking-detail__heading p,
.agersoe-event-detail-header p {
	margin: 0;
	color: #71808a;
}


/* Status */

.agersoe-status {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 7px 12px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
}

.agersoe-status--small {
	padding: 5px 9px;
	font-size: 12px;
}

.agersoe-status.is-pending {
	background: #fff2dc;
	color: #946000;
}

.agersoe-status.is-approved {
	background: #e5f4e9;
	color: #24733b;
}

.agersoe-status.is-rejected {
	background: #fae5e5;
	color: #963838;
}

.agersoe-status.is-cancelled {
	background: #eceff1;
	color: #667078;
}

.agersoe-status.is-neutral {
	background: #eaf0f4;
	color: #50636f;
}


/* Handling */

.agersoe-booking-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 18px 20px;
	margin-bottom: 26px;
	border: 1px solid #ead9ba;
	border-radius: 10px;
	background: #fffaf1;
	transition: opacity .15s ease;
}

.agersoe-booking-actions strong {
	display: block;
	margin-bottom: 3px;
}

.agersoe-booking-actions p {
	margin: 0;
	font-size: 14px;
	color: #806d49;
}

.agersoe-booking-actions__buttons {
	display: flex;
	gap: 10px;
}


/* Feedback */

.agersoe-booking-feedback {
	padding: 14px 16px;
	margin-bottom: 24px;
	border-radius: 8px;
}

.agersoe-booking-feedback.is-success {
	background: #e9f6ed;
	border: 1px solid #c8e6d0;
	color: #256a39;
}

.agersoe-booking-feedback.is-error {
	background: #fff0f0;
	border: 1px solid #eccaca;
	color: #903535;
}


/* Detail panels */

.agersoe-detail-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.agersoe-detail-panel {
	padding: 22px;
	border: 1px solid #e3e8eb;
	border-radius: 10px;
	background: #fbfcfc;
}

.agersoe-detail-panel--full {
	margin-top: 20px;
}

.agersoe-detail-panel h2 {
	margin: 0 0 18px;
	font-size: 18px;
	font-weight: 600;
}

.agersoe-data-list {
	margin: 0;
}

.agersoe-data-list > div {
	display: grid;
	grid-template-columns: 125px 1fr;
	gap: 15px;
	padding: 10px 0;
	border-bottom: 1px solid #e8ecee;
}

.agersoe-data-list > div:last-child {
	border-bottom: 0;
}

.agersoe-data-list dt {
	color: #75848d;
}

.agersoe-data-list dd {
	margin: 0;
	font-weight: 500;
}

.agersoe-data-list a {
	color: #176fa7;
	text-decoration: none;
}

.agersoe-data-list--compact {
	margin-top: 20px;
}

.agersoe-form-field {
	display: grid;
	gap: 7px;
	margin-bottom: 16px;
}

.agersoe-form-field:last-child {
	margin-bottom: 0;
}

.agersoe-form-field label {
	color: #52616b;
	font-size: 14px;
	font-weight: 600;
}

.agersoe-form-field input,
.agersoe-form-field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #cbd6db;
	border-radius: 7px;
	background: #fff;
	color: #20313c;
	font: inherit;
	font-size: 15px;
}

.agersoe-form-field input {
	min-height: 42px;
}

.agersoe-form-field textarea {
	line-height: 1.5;
	resize: vertical;
}

.agersoe-booking-edit-form__actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 20px;
}

.agersoe-booking-detail__footer-actions {
	display: flex;
	justify-content: flex-end;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid #e3e8eb;
}

.agersoe-comment {
	line-height: 1.6;
}


/* Event summary */

.agersoe-event-summary {
	display: flex;
	gap: 12px;
}

.agersoe-event-summary > div {
	min-width: 115px;
	padding: 14px 18px;
	border-radius: 9px;
	background: #f6f8f9;
	text-align: center;
}

.agersoe-event-summary strong {
	display: block;
	font-size: 22px;
}

.agersoe-event-summary span {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	color: #7b8991;
}

.agersoe-subsection-heading {
	margin: 28px 0 15px;
}

.agersoe-subsection-heading h2 {
	margin: 0;
	font-size: 21px;
}


/* Tablet */

@media (max-width: 900px) {

	.agersoe-detail-grid {
		grid-template-columns: 1fr;
	}

	.agersoe-booking-detail__heading,
	.agersoe-event-detail-header {
		flex-direction: column;
	}

}


/* Mobil */

@media (max-width: 700px) {

	.agersoe-bookings-card {
		padding: 18px;
	}

	.agersoe-booking-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.agersoe-booking-actions__buttons {
		width: 100%;
	}

	.agersoe-booking-actions__buttons .agersoe-button {
		flex: 1;
	}

	.agersoe-table-wrap {
		border: 0;
		overflow: visible;
	}

	.agersoe-table,
	.agersoe-table tbody,
	.agersoe-table tr,
	.agersoe-table td {
		display: block;
		width: 100%;
	}

	.agersoe-table thead {
		display: none;
	}

	.agersoe-table tbody {
		display: grid;
		gap: 12px;
	}

	.agersoe-table tbody tr {
		display: grid;
		grid-template-columns: 1fr;
		gap: 10px;
		padding: 16px;
		border: 1px solid #e1e6e9;
		border-radius: 10px;
	}

	.agersoe-table tbody td {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 15px;
		padding: 0;
		border: 0;
		text-align: right !important;
	}

	.agersoe-table tbody td::before {
		content: attr(data-label);
		font-size: 12px;
		font-weight: 600;
		color: #7a8890;
	}

	.agersoe-table tbody td:first-child {
		display: block;
		text-align: left !important;
	}

	.agersoe-table tbody td:first-child::before,
	.agersoe-table__action::before {
		display: none;
	}

	.agersoe-table__action .agersoe-button {
		width: 100%;
	}

	.agersoe-event-summary {
		width: 100%;
	}

	.agersoe-event-summary > div {
		flex: 1;
	}

	.agersoe-booking-edit-form__actions {
		flex-direction: column-reverse;
	}

	.agersoe-booking-edit-form__actions .agersoe-button {
		width: 100%;
	}

}