﻿
.admin-bookings-page,
.admin-bookings-page * {
	box-sizing: border-box;
}

.admin-bookings-page {
	padding: 28px;
	background: #f5f7fb;
	min-height: 100vh;
}

.admin-bookings-container {
	width: min(1500px, 100%);
	margin: 0 auto;
}

.admin-bookings-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 22px;
}

	.admin-bookings-heading h1 {
		margin: 0;
		color: #152b54;
		font-size: 30px;
	}

	.admin-bookings-heading p {
		margin: 6px 0 0;
		color: #667085;
		font-size: 14px;
	}

.admin-bookings-count {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 14px;
	color: #fff;
	background: #152b54;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
}

.admin-alert {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 18px;
	padding: 13px 16px;
	border-radius: 11px;
	font-size: 13px;
	font-weight: 600;
}

.admin-alert-success {
	color: #087443;
	background: #ecfdf3;
	border: 1px solid #abefc6;
}

.admin-alert-error {
	color: #b42318;
	background: #fff1f0;
	border: 1px solid #fecdca;
}

.admin-filter-card {
	margin-bottom: 22px;
	padding: 18px;
	background: #fff;
	border: 1px solid #e4e8ef;
	border-radius: 14px;
	box-shadow: 0 7px 22px rgba(20, 42, 80, .06);
}

.admin-filter-grid {
	display: grid;
	grid-template-columns: minmax(300px, 1fr) 180px 140px auto;
	align-items: end;
	gap: 14px;
}
	.admin-filter-field label {
		display: flex;
		align-items: center;
		gap: 6px;
		margin-bottom: 7px;
		color: #344054;
		font-size: 11px;
		font-weight: 700;
	}

		.admin-filter-field label i {
			color: #f47a18;
		}

	.admin-filter-control {
		display: block;
		width: 100%;
		min-height: 42px;
		padding: 9px 11px;
		color: #344054;
		background: #fff;
		border: 1px solid #d0d5dd;
		border-radius: 9px;
		outline: none;
		font-size: 13px;
	}

		.admin-filter-control:focus {
			border-color: #315a98;
			box-shadow: 0 0 0 3px rgba(49, 90, 152, .12);
		}

	.admin-filter-actions {
		display: flex;
		align-items: center;
		gap: 8px;
	}

	.admin-filter-button,
	.admin-clear-button {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 7px;
		min-height: 42px;
		padding: 9px 16px;
		border-radius: 9px;
		text-decoration: none;
		font-size: 13px;
		font-weight: 700;
		white-space: nowrap;
		cursor: pointer;
	}

	.admin-filter-button {
		color: #fff;
		background: #f47a18;
		border: 0;
	}

	.admin-clear-button {
		color: #344054;
		background: #fff;
		border: 1px solid #d0d5dd;
	}

	.admin-bookings-table-wrap {
		overflow-x: auto;
		background: #fff;
		border: 1px solid #e4e8ef;
		border-radius: 14px;
		box-shadow: 0 9px 28px rgba(20, 42, 80, .07);
	}

	.admin-bookings-table {
		width: 100%;
		min-width: 1400px;
		margin: 0;
		border-collapse: collapse;
	}

		.admin-bookings-table thead {
			background: #152b54;
		}

		.admin-bookings-table th {
			padding: 14px 13px;
			color: #fff;
			border: 0;
			font-size: 11px;
			font-weight: 700;
			letter-spacing: .03em;
			text-align: left;
			text-transform: uppercase;
			white-space: nowrap;
		}

		.admin-bookings-table td {
			padding: 14px 13px;
			color: #344054;
			border-bottom: 1px solid #edf0f5;
			font-size: 13px;
			line-height: 1.45;
			vertical-align: middle;
		}

		.admin-bookings-table tbody tr:hover {
			background: #f8fafc;
		}

		.admin-bookings-table tbody tr:last-child td {
			border-bottom: 0;
		}

	.admin-reference {
		color: #152b54;
		font-weight: 800;
		white-space: nowrap;
	}

	.admin-primary-text {
		color: #152b54;
		font-weight: 700;
	}

	.admin-small {
		display: block;
		margin-top: 3px;
		color: #667085;
		font-size: 11px;
	}

	.admin-contact-link {
		color: #315a98;
		text-decoration: none;
	}

		.admin-contact-link:hover {
			text-decoration: underline;
		}

	.admin-type-badge {
		display: inline-flex;
		margin-top: 5px;
		padding: 4px 7px;
		color: #344054;
		background: #eef2f7;
		border-radius: 999px;
		font-size: 10px;
		font-weight: 700;
	}

	.admin-price {
		color: #152b54;
		font-size: 14px;
		font-weight: 800;
		white-space: nowrap;
	}

	.booking-status {
		display: inline-flex;
		padding: 5px 9px;
		border-radius: 999px;
		font-size: 10px;
		font-weight: 800;
	}

	.status-pending {
		color: #8a5700;
		background: #fff3cd;
	}

	.status-contacted {
		color: #055160;
		background: #cff4fc;
	}

	.status-confirmed {
		color: #084298;
		background: #cfe2ff;
	}

	.status-completed {
		color: #0f5132;
		background: #d1e7dd;
	}

	.status-cancelled {
		color: #842029;
		background: #f8d7da;
	}

	.admin-status-form {
		display: flex;
		align-items: center;
		gap: 6px;
		margin-top: 7px;
	}

	.admin-status-select {
		width: 112px;
		height: 33px;
		padding: 5px 7px;
		color: #344054;
		background: #fff;
		border: 1px solid #d0d5dd;
		border-radius: 7px;
		font-size: 11px;
	}

	.admin-status-save {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		flex: 0 0 33px;
		width: 33px;
		height: 33px;
		padding: 0;
		color: #fff;
		background: #152b54;
		border: 0;
		border-radius: 7px;
		cursor: pointer;
	}

	.admin-booking-actions {
		display: flex;
		align-items: center;
		gap: 7px;
		white-space: nowrap;
	}

	.admin-view-button,
	.admin-delete-button {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 6px;
		height: 36px;
		padding: 0 12px;
		border: 0;
		border-radius: 9px;
		cursor: pointer;
		text-decoration: none;
		font-size: 12px;
		font-weight: 700;
	}

	.admin-view-button {
		color: #fff;
		background: #f47a18;
		box-shadow: 0 5px 12px rgba(244, 122, 24, .2);
	}

	.admin-delete-button {
		width: 36px;
		padding: 0;
		color: #fff;
		background: #dc3545;
	}

	.admin-empty {
		padding: 65px 25px;
		background: #fff;
		border: 1px solid #e4e8ef;
		border-radius: 14px;
		text-align: center;
	}

		.admin-empty i {
			margin-bottom: 15px;
			color: #98a2b3;
			font-size: 45px;
		}

		.admin-empty h3 {
			margin: 0 0 7px;
			color: #152b54;
		}

		.admin-empty p {
			margin: 0;
			color: #667085;
		}

@media (max-width: 1050px) {
	.admin-filter-grid {
		grid-template-columns: minmax(260px, 1fr) 170px 130px;
	}

	.admin-filter-actions {
		grid-column: 1 / -1;
		justify-content: flex-end;
	}
}

@media (max-width: 850px) {
	.admin-bookings-page {
		padding: 18px;
	}

	.admin-bookings-heading {
		align-items: flex-start;
		flex-direction: column;
	}

	.admin-filter-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.admin-filter-field:first-child {
		grid-column: 1 / -1;
	}

	.admin-filter-actions {
		grid-column: 1 / -1;
		width: 100%;
	}

	.admin-filter-button,
	.admin-clear-button {
		flex: 1;
	}
}

@media (max-width: 500px) {
	.admin-bookings-page {
		padding: 12px;
	}

	.admin-filter-grid {
		grid-template-columns: 1fr;
	}

	.admin-filter-field:first-child,
	.admin-filter-actions {
		grid-column: 1;
	}
}
	

.order-pickup-cell {
		width: 260px;
		min-width: 260px;
		max-width: 260px;
		padding: 14px 12px;
		vertical-align: top;
	}

	.pickup-flag {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 8px;
		width: 100%;
		margin-bottom: 10px;
	}

	.pickup-flag-heading {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		padding: 6px 10px;
		border: 1px solid #fed7aa;
		border-radius: 20px;
		background: #fff7ed;
		color: #c2410c;
		font-size: 10px;
		font-weight: 800;
		line-height: 1;
		white-space: nowrap;
	}

	.pickup-count {
		flex: 0 0 auto;
		color: #64748b;
		font-size: 9px;
		white-space: nowrap;
	}

	.pickup-quick-list {
		display: flex;
		width: 100%;
		flex-direction: column;
		gap: 8px;
	}

	.pickup-quick-item {
		position: relative;
		display: grid;
		grid-template-columns: 48px minmax(0, 1fr);
		align-items: center;
		gap: 10px;
		width: 100%;
		min-height: 68px;
		padding: 9px;
		overflow: hidden;
		border: 1px solid #dce5f0;
		border-radius: 12px;
		box-sizing: border-box;
		background: linear-gradient( 135deg, #ffffff, #f7faff );
		box-shadow: 0 4px 13px rgba(19, 46, 91, .06);
	}
	/* Date block */
	.pickup-quick-date {
		position: static !important;
		display: flex !important;
		align-items: center;
		justify-content: center;
		width: 48px !important;
		min-width: 48px !important;
		height: 48px !important;
		margin: 0 !important;
		padding: 0 !important;
		overflow: hidden;
		flex-direction: column;
		border-radius: 11px;
		background: #132e5b;
		color: #fff;
		line-height: 1;
		text-align: center;
	}

		.pickup-quick-date strong {
			display: block;
			margin: 0 0 4px;
			color: #fff;
			font-size: 16px;
			font-weight: 800;
			line-height: 1;
		}

		.pickup-quick-date span {
			position: static !important;
			display: block !important;
			margin: 0 !important;
			padding: 0 !important;
			color: #dbeafe;
			font-size: 9px;
			font-weight: 700;
			line-height: 1;
			text-transform: uppercase;
		}
	/* Information */
	.pickup-quick-content {
		display: flex;
		min-width: 0;
		overflow: hidden;
		flex-direction: column;
		gap: 4px;
	}

	.pickup-time {
		display: flex;
		align-items: center;
		gap: 5px;
		color: #132e5b;
		font-size: 11px;
		font-weight: 800;
		line-height: 1.2;
	}

		.pickup-time i {
			color: #ff7417;
			font-size: 9px;
		}

	.pickup-location {
		display: flex;
		align-items: center;
		gap: 5px;
		min-width: 0;
		color: #334155;
		font-size: 10px;
		line-height: 1.3;
	}

		.pickup-location i {
			flex: 0 0 auto;
			color: #ef4444;
			font-size: 10px;
		}

		.pickup-location span {
			display: block;
			min-width: 0;
			overflow: hidden;
			text-overflow: ellipsis;
			white-space: nowrap;
		}

	.pickup-package {
		width: 100%;
		min-width: 0;
		overflow: hidden;
		color: #64748b;
		font-size: 9px;
		line-height: 1.2;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.dropoff-location {
		display: flex;
		align-items: center;
		gap: 5px;
		min-width: 0;
		color: #334155;
		font-size: 10px;
		line-height: 1.3;
	}

		.dropoff-location i {
			flex: 0 0 auto;
			color: #2563eb;
			font-size: 9px;
		}

		.dropoff-location span {
			display: block;
			min-width: 0;
			overflow: hidden;
			text-overflow: ellipsis;
			white-space: nowrap;
		}

	.full-day-service-label {
		display: inline-flex;
		align-items: center;
		gap: 5px;
		width: fit-content;
		padding: 4px 7px;
		border-radius: 12px;
		background: #eef4ff;
		color: #315381;
		font-size: 9px;
		font-weight: 700;
	}

	.booking-pagination {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 18px;
		margin-top: 20px;
		padding: 16px 18px;
		border: 1px solid #dce5f0;
		border-radius: 15px;
		background: #fff;
		box-shadow: 0 7px 22px rgba(19, 46, 91, .06);
	}

	.booking-pagination-summary {
		color: #64748b;
		font-size: 12px;
		white-space: nowrap;
	}

		.booking-pagination-summary strong {
			color: #132e5b;
		}

	.booking-pagination-links {
		display: flex;
		align-items: center;
		justify-content: flex-end;
		gap: 6px;
	}

	.booking-page-button,
	.booking-page-number {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 38px;
		height: 38px;
		padding: 0 11px;
		border: 1px solid #dce5f0;
		border-radius: 10px;
		box-sizing: border-box;
		background: #fff;
		color: #315381;
		font-size: 11px;
		font-weight: 700;
		text-decoration: none;
		transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease;
	}

	.booking-page-button {
		gap: 7px;
	}

		.booking-page-button:hover,
		.booking-page-number:hover {
			border-color: #ffb276;
			background: #fff4e9;
			color: #d95800;
			transform: translateY(-1px);
		}

	.booking-page-number.is-active {
		border-color: #132e5b;
		background: #132e5b;
		color: #fff;
		box-shadow: 0 5px 12px rgba(19, 46, 91, .18);
	}

	.booking-page-button.is-disabled {
		border-color: #edf1f6;
		background: #f8fafc;
		color: #b4becb;
		cursor: not-allowed;
	}

	.booking-page-ellipsis {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 25px;
		color: #94a3b8;
	}

	.booking-page-size-select {
		min-height: 40px;
		padding: 7px 32px 7px 11px;
		border: 1px solid #dce5f0;
		border-radius: 10px;
		background: #fff;
		color: #132e5b;
		font-size: 12px;
	}

	@media (max-width: 800px) {
		.booking-pagination {
			align-items: stretch;
			flex-direction: column;
		}

		.booking-pagination-summary {
			text-align: center;
		}

		.booking-pagination-links {
			justify-content: center;
			flex-wrap: wrap;
		}

		.booking-page-button {
			flex: 1;
			max-width: 120px;
		}
	}
.booking-management-tabs {
	display: flex;
	align-items: stretch;
	gap: 12px;
	margin: 0 0 22px;
	padding: 6px;
	border: 1px solid #dfe6f0;
	border-radius: 16px;
	background: #edf2f8;
}

.booking-management-tab {
	position: relative;
	display: flex;
	align-items: center;
	min-width: 245px;
	padding: 12px 15px;
	gap: 11px;
	border: 1px solid transparent;
	border-radius: 12px;
	color: #52647e;
	text-decoration: none;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

	.booking-management-tab:hover {
		border-color: #d6dfeb;
		background: rgba(255, 255, 255, 0.68);
		color: #152b54;
		transform: translateY(-1px);
	}

	.booking-management-tab.is-active {
		border-color: #dce4ee;
		background: #fff;
		color: #152b54;
		box-shadow: 0 6px 18px rgba(21, 43, 84, 0.1);
	}

		.booking-management-tab.is-active::after {
			position: absolute;
			right: 14px;
			bottom: -1px;
			left: 14px;
			height: 3px;
			border-radius: 999px 999px 0 0;
			background: #f47a18;
			content: "";
		}

.booking-tab-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 39px;
	width: 39px;
	height: 39px;
	border-radius: 11px;
	font-size: 15px;
}

.approved-icon {
	background: #eaf7ef;
	color: #15803d;
}

.draft-icon {
	background: #fff3e8;
	color: #e5660b;
}

.booking-tab-content {
	display: flex;
	min-width: 0;
	flex: 1;
	flex-direction: column;
	gap: 2px;
}

	.booking-tab-content strong {
		color: inherit;
		font-size: 13px;
		font-weight: 700;
	}

	.booking-tab-content small {
		color: #8190a5;
		font-size: 10px;
	}

.booking-tab-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 27px;
	height: 27px;
	padding: 0 8px;
	border-radius: 999px;
	background: #152b54;
	color: #fff;
	font-size: 10px;
	font-weight: 800;
}

	.booking-tab-count.draft-count {
		background: #f47a18;
	}

@media (max-width: 650px) {
	.booking-management-tabs {
		flex-direction: column;
	}

	.booking-management-tab {
		width: 100%;
		min-width: 0;
	}
}

