﻿/* =========================================
   Draft Booking Administration
========================================= */

.draft-bookings-page,
.draft-details-page,
.draft-bookings-page *,
.draft-details-page * {
	box-sizing: border-box;
}

.draft-bookings-page,
.draft-details-page {
	min-height: 100vh;
	padding: 30px;
	background: radial-gradient( circle at top right, rgba(244, 122, 24, 0.08), transparent 330px ), #f5f7fb;
	color: #172b4d;
	font-family: "IBM Plex Sans", Arial, sans-serif;
}

.draft-bookings-container,
.draft-details-container {
	width: min(1450px, 100%);
	margin: 0 auto;
}

/* Page heading */

.draft-page-header,
.draft-details-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 24px;
	padding: 23px 25px;
	border: 1px solid #e0e7f0;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 8px 28px rgba(21, 43, 84, 0.07);
}

.draft-page-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-bottom: 8px;
	color: #e5660b;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.draft-page-header h1,
.draft-details-header h1 {
	margin: 0;
	color: #152b54;
	font-size: clamp(26px, 3vw, 35px);
	font-weight: 700;
	letter-spacing: -0.035em;
	line-height: 1.15;
}

.draft-page-header p,
.draft-details-header p {
	margin: 7px 0 0;
	color: #667085;
	font-size: 13px;
	line-height: 1.55;
}

.draft-header-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 10px;
}

.draft-order-count,
.draft-header-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 42px;
	padding: 0 15px;
	border-radius: 11px;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.draft-order-count {
	border: 1px solid #fed7aa;
	background: #fff7ed;
	color: #c2410c;
}

.draft-header-link {
	border: 1px solid #dce4ef;
	background: #f8fafc;
	color: #315381;
	transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

	.draft-header-link:hover {
		border-color: #b9c8db;
		background: #eef4fb;
		color: #152b54;
		transform: translateY(-1px);
	}

/* Alerts */

.draft-alert {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 20px;
	padding: 14px 16px;
	border-radius: 12px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.5;
}

	.draft-alert i {
		margin-top: 3px;
	}

.draft-alert-success {
	border: 1px solid #abefc6;
	background: #ecfdf3;
	color: #087443;
}

.draft-alert-error {
	border: 1px solid #fecdca;
	background: #fff1f0;
	color: #b42318;
}

/* Empty state */

.draft-empty-state {
	padding: 70px 25px;
	border: 1px solid #e0e7f0;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 8px 28px rgba(21, 43, 84, 0.06);
	text-align: center;
}

.draft-empty-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	margin-bottom: 17px;
	border-radius: 22px;
	background: #fff3e8;
	color: #e5660b;
	font-size: 28px;
}

.draft-empty-state h2 {
	margin: 0;
	color: #152b54;
	font-size: 22px;
}

.draft-empty-state p {
	max-width: 460px;
	margin: 9px auto 20px;
	color: #667085;
	font-size: 13px;
	line-height: 1.6;
}

.draft-empty-state a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 43px;
	padding: 0 17px;
	border-radius: 10px;
	background: #152b54;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
}

/* Draft list */

.draft-order-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.draft-order-card {
	display: flex;
	min-width: 0;
	overflow: hidden;
	flex-direction: column;
	border: 1px solid #dfe6ef;
	border-radius: 17px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(21, 43, 84, 0.07);
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

	.draft-order-card:hover {
		border-color: #f6bd8d;
		box-shadow: 0 14px 34px rgba(21, 43, 84, 0.11);
		transform: translateY(-3px);
	}

.draft-card-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 15px;
	padding: 19px 19px 16px;
	border-bottom: 1px solid #edf1f6;
	background: linear-gradient( 135deg, #fff 0%, #fffaf6 100% );
}

.draft-reference-label {
	display: block;
	margin-bottom: 5px;
	color: #8793a6;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.draft-card-header h2 {
	margin: 0;
	overflow-wrap: anywhere;
	color: #152b54;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: -0.015em;
}

/* Status badges */

.draft-status {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	min-height: 27px;
	padding: 0 10px;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 700;
	white-space: nowrap;
}

.status-new {
	border: 1px solid #fed7aa;
	background: #fff7ed;
	color: #c2410c;
}

.status-contacted {
	border: 1px solid #bae6fd;
	background: #f0f9ff;
	color: #0369a1;
}

.status-awaitingcustomer,
.status-awaiting-customer {
	border: 1px solid #fde68a;
	background: #fffbeb;
	color: #a16207;
}

.status-approved {
	border: 1px solid #bbf7d0;
	background: #f0fdf4;
	color: #15803d;
}

.status-rejected {
	border: 1px solid #fecaca;
	background: #fef2f2;
	color: #b91c1c;
}

/* Customer summary */

.draft-customer {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 16px 19px;
}

.draft-customer-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 42px;
	width: 42px;
	height: 42px;
	border-radius: 13px;
	background: #eef4fb;
	color: #315381;
}

.draft-customer > div {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 2px;
}

.draft-customer strong {
	overflow: hidden;
	color: #152b54;
	font-size: 13px;
	font-weight: 700;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.draft-customer a {
	overflow: hidden;
	color: #667085;
	font-size: 11px;
	text-decoration: none;
	text-overflow: ellipsis;
	white-space: nowrap;
}

	.draft-customer a:hover {
		color: #e5660b;
	}

/* Summary */

.draft-summary-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	margin: 0 19px;
	overflow: hidden;
	border: 1px solid #e5eaf1;
	border-radius: 12px;
	background: #f8fafc;
}

	.draft-summary-grid > div {
		position: relative;
		padding: 12px 7px;
		text-align: center;
	}

		.draft-summary-grid > div:not(:last-child)::after {
			position: absolute;
			top: 22%;
			right: 0;
			width: 1px;
			height: 56%;
			background: #dfe6ef;
			content: "";
		}

	.draft-summary-grid i {
		display: block;
		margin-bottom: 6px;
		color: #f47a18;
		font-size: 12px;
	}

	.draft-summary-grid span {
		display: block;
		color: #8995a8;
		font-size: 8px;
		font-weight: 600;
		text-transform: uppercase;
	}

	.draft-summary-grid strong {
		display: block;
		margin-top: 3px;
		color: #152b54;
		font-size: 11px;
		font-weight: 700;
	}

/* Item preview */

.draft-item-preview {
	display: flex;
	padding: 17px 19px;
	flex: 1;
	flex-direction: column;
	gap: 9px;
}

.draft-preview-item {
	display: grid;
	grid-template-columns: 31px minmax(0, 1fr);
	align-items: center;
	gap: 9px;
}

	.draft-preview-item > span {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 31px;
		height: 31px;
		border-radius: 9px;
		background: #f1f5f9;
		color: #526781;
		font-size: 10px;
	}

	.draft-preview-item > div {
		display: flex;
		min-width: 0;
		flex-direction: column;
		gap: 2px;
	}

	.draft-preview-item strong {
		overflow: hidden;
		color: #263c61;
		font-size: 11px;
		font-weight: 700;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.draft-preview-item small {
		color: #7c899c;
		font-size: 9px;
	}

.draft-more-items {
	display: inline-flex;
	align-self: flex-start;
	padding: 4px 8px;
	border-radius: 999px;
	background: #eef2f7;
	color: #667085;
	font-size: 9px;
	font-weight: 700;
}

.draft-note-preview {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0 19px 15px;
	padding: 10px 11px;
	border: 1px solid #fde7c7;
	border-radius: 10px;
	background: #fffbf5;
	color: #795425;
	font-size: 10px;
	line-height: 1.5;
}

	.draft-note-preview i {
		margin-top: 2px;
		color: #e58a1f;
	}

/* Card buttons */

.draft-card-footer {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 9px;
	padding: 14px 19px 18px;
	border-top: 1px solid #edf1f6;
}

	.draft-card-footer form {
		margin: 0;
	}

.draft-view-button,
.draft-approve-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	width: 100%;
	min-height: 39px;
	padding: 0 12px;
	border-radius: 10px;
	font-family: inherit;
	font-size: 11px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

.draft-view-button {
	border: 1px solid #d7e0eb;
	background: #fff;
	color: #315381;
}

	.draft-view-button:hover {
		border-color: #aebdd0;
		background: #f6f9fc;
		color: #152b54;
	}

.draft-approve-button {
	border: 1px solid #15803d;
	background: #15803d;
	color: #fff;
	box-shadow: 0 5px 13px rgba(21, 128, 61, 0.18);
}

	.draft-approve-button:hover {
		border-color: #116b32;
		background: #116b32;
	}

/* =========================================
   Draft details
========================================= */

.draft-details-navigation {
	margin-bottom: 15px;
}

	.draft-details-navigation a {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		color: #526781;
		font-size: 12px;
		font-weight: 700;
		text-decoration: none;
	}

		.draft-details-navigation a:hover {
			color: #e5660b;
		}

.draft-details-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 350px;
	align-items: start;
	gap: 20px;
}

.draft-details-main,
.draft-details-sidebar {
	min-width: 0;
}

.draft-details-sidebar {
	display: flex;
	flex-direction: column;
	gap: 17px;
}

.draft-details-card,
.draft-decision-card {
	border: 1px solid #dfe6ef;
	border-radius: 17px;
	background: #fff;
	box-shadow: 0 8px 25px rgba(21, 43, 84, 0.06);
}

.draft-details-card {
	padding: 21px;
}

.draft-section-heading {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid #edf1f6;
}

	.draft-section-heading > span {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		flex: 0 0 42px;
		width: 42px;
		height: 42px;
		border-radius: 12px;
		background: #fff3e8;
		color: #e5660b;
	}

	.draft-section-heading h2 {
		margin: 0;
		color: #152b54;
		font-size: 17px;
		font-weight: 700;
	}

	.draft-section-heading p {
		margin: 3px 0 0;
		color: #7a8799;
		font-size: 11px;
	}

	.draft-section-heading.compact {
		margin-bottom: 16px;
	}

		.draft-section-heading.compact > span {
			flex-basis: 37px;
			width: 37px;
			height: 37px;
		}

/* Detailed booking items */

.draft-details-items {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.draft-detail-item {
	display: grid;
	grid-template-columns: 43px minmax(0, 1fr);
	gap: 14px;
	padding: 17px;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	background: linear-gradient( 135deg, #fff, #f9fbfe );
}

.draft-item-number {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 43px;
	height: 43px;
	border-radius: 12px;
	background: #152b54;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
}

.draft-item-content {
	min-width: 0;
}

.draft-item-heading {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 15px;
}

	.draft-item-heading span {
		display: inline-block;
		margin-bottom: 4px;
		color: #e5660b;
		font-size: 9px;
		font-weight: 700;
		letter-spacing: 0.07em;
		text-transform: uppercase;
	}

	.draft-item-heading h3 {
		margin: 0;
		color: #152b54;
		font-size: 16px;
		font-weight: 700;
	}

	.draft-item-heading small {
		display: block;
		margin-top: 4px;
		color: #8995a8;
		font-size: 9px;
	}

.draft-item-price {
	flex: 0 0 auto;
	color: #15803d;
	font-size: 14px;
	white-space: nowrap;
}

.draft-item-facts {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 9px;
	margin-top: 16px;
}

	.draft-item-facts > div {
		padding: 11px;
		border: 1px solid #e5eaf1;
		border-radius: 10px;
		background: #fff;
	}

	.draft-item-facts span {
		display: block;
		color: #8491a3;
		font-size: 9px;
	}

		.draft-item-facts span i {
			margin-right: 4px;
			color: #f47a18;
		}

	.draft-item-facts strong {
		display: block;
		margin-top: 5px;
		color: #263c61;
		font-size: 11px;
	}

/* Pickup and drop-off */

.draft-route {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 13px;
	margin-top: 14px;
	padding: 13px;
	border-radius: 12px;
	background: #f4f7fb;
}

	.draft-route > div {
		display: flex;
		align-items: flex-start;
		gap: 9px;
		min-width: 0;
	}

.route-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 30px;
	width: 30px;
	height: 30px;
	border-radius: 9px;
	font-size: 10px;
}

	.route-icon.pickup {
		background: #fff0e6;
		color: #e5660b;
	}

	.route-icon.dropoff {
		background: #eaf2ff;
		color: #2563eb;
	}

.draft-route p {
	display: flex;
	min-width: 0;
	margin: 0;
	flex-direction: column;
	gap: 3px;
}

.draft-route small {
	color: #8995a8;
	font-size: 8px;
	font-weight: 700;
	text-transform: uppercase;
}

.draft-route strong {
	color: #263c61;
	font-size: 10px;
	line-height: 1.4;
}

.draft-inline-information {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

	.draft-inline-information span {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		padding: 7px 9px;
		border-radius: 9px;
		background: #eef3f8;
		color: #425875;
		font-size: 10px;
		font-weight: 600;
	}

	.draft-inline-information i {
		color: #f47a18;
	}

.draft-special-request {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	margin-top: 13px;
	padding: 12px;
	border: 1px solid #fde5bd;
	border-radius: 11px;
	background: #fffbf3;
}

	.draft-special-request > i {
		margin-top: 2px;
		color: #db861d;
	}

	.draft-special-request strong {
		color: #795425;
		font-size: 10px;
	}

	.draft-special-request p {
		margin: 4px 0 0;
		color: #7a674c;
		font-size: 10px;
		line-height: 1.5;
	}

/* Customer sidebar */

.draft-customer-details {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

	.draft-customer-details > div {
		display: flex;
		padding-bottom: 11px;
		flex-direction: column;
		gap: 3px;
		border-bottom: 1px solid #edf1f6;
	}

		.draft-customer-details > div:last-child {
			padding-bottom: 0;
			border-bottom: 0;
		}

	.draft-customer-details small {
		color: #8995a8;
		font-size: 9px;
		font-weight: 700;
		text-transform: uppercase;
	}

	.draft-customer-details strong,
	.draft-customer-details a {
		color: #263c61;
		font-size: 12px;
		font-weight: 600;
		text-decoration: none;
		overflow-wrap: anywhere;
	}

		.draft-customer-details a:hover {
			color: #e5660b;
		}

	.draft-customer-details .fa-whatsapp {
		margin-right: 4px;
		color: #16a34a;
	}

/* Workflow form */

.draft-workflow-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.draft-form-group label {
	display: block;
	margin-bottom: 6px;
	color: #344054;
	font-size: 10px;
	font-weight: 700;
}

.draft-form-group select,
.draft-form-group textarea {
	display: block;
	width: 100%;
	border: 1px solid #d5deea;
	border-radius: 10px;
	outline: none;
	background: #fff;
	color: #263c61;
	font-family: inherit;
	font-size: 11px;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.draft-form-group select {
	min-height: 42px;
	padding: 0 11px;
}

.draft-form-group textarea {
	min-height: 105px;
	padding: 11px;
	resize: vertical;
	line-height: 1.5;
}

	.draft-form-group select:focus,
	.draft-form-group textarea:focus {
		border-color: #f47a18;
		box-shadow: 0 0 0 3px rgba(244, 122, 24, 0.12);
	}

.draft-update-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 42px;
	padding: 0 15px;
	border: 0;
	border-radius: 10px;
	background: #152b54;
	color: #fff;
	font-family: inherit;
	font-size: 11px;
	font-weight: 700;
	cursor: pointer;
}

	.draft-update-button:hover {
		background: #203e72;
	}

/* Approval and discard */

.draft-decision-card {
	padding: 20px;
	border-color: #f3d3b5;
	background: linear-gradient( 145deg, #fff, #fff9f4 );
}

	.draft-decision-card h2 {
		margin: 0;
		color: #152b54;
		font-size: 17px;
	}

	.draft-decision-card > p {
		margin: 7px 0 17px;
		color: #667085;
		font-size: 11px;
		line-height: 1.55;
	}

	.draft-decision-card form {
		margin: 0;
	}

		.draft-decision-card form + form {
			margin-top: 9px;
		}

.draft-final-approve,
.draft-discard-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 44px;
	padding: 0 15px;
	border-radius: 10px;
	font-family: inherit;
	font-size: 11px;
	font-weight: 700;
	cursor: pointer;
}

.draft-final-approve {
	border: 1px solid #15803d;
	background: #15803d;
	color: #fff;
	box-shadow: 0 7px 16px rgba(21, 128, 61, 0.18);
}

	.draft-final-approve:hover {
		border-color: #116b32;
		background: #116b32;
	}

.draft-discard-button {
	border: 1px solid #fecaca;
	background: #fff;
	color: #b42318;
}

	.draft-discard-button:hover {
		border-color: #ef4444;
		background: #fef2f2;
	}

/* =========================================
   Responsive
========================================= */

@media (max-width: 1150px) {
	.draft-order-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.draft-details-layout {
		grid-template-columns: minmax(0, 1fr) 310px;
	}

	.draft-item-facts {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 850px) {
	.draft-bookings-page,
	.draft-details-page {
		padding: 20px;
	}

	.draft-page-header,
	.draft-details-header {
		align-items: flex-start;
		flex-direction: column;
	}

	.draft-header-actions {
		width: 100%;
		justify-content: flex-start;
	}

	.draft-details-layout {
		grid-template-columns: 1fr;
	}

	.draft-details-sidebar {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}

	.draft-decision-card {
		grid-column: 1 / -1;
	}
}

@media (max-width: 680px) {
	.draft-bookings-page,
	.draft-details-page {
		padding: 14px;
	}

	.draft-order-grid {
		grid-template-columns: 1fr;
	}

	.draft-details-sidebar {
		display: flex;
	}

	.draft-card-footer {
		grid-template-columns: 1fr;
	}

	.draft-detail-item {
		grid-template-columns: 1fr;
	}

	.draft-item-number {
		width: 36px;
		height: 36px;
	}

	.draft-item-heading {
		flex-direction: column;
	}

	.draft-route {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 450px) {
	.draft-page-header,
	.draft-details-header,
	.draft-details-card,
	.draft-decision-card {
		padding: 17px;
		border-radius: 14px;
	}

	.draft-header-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.draft-order-count,
	.draft-header-link {
		width: 100%;
	}

	.draft-summary-grid {
		grid-template-columns: repeat(2, 1fr);
	}

		.draft-summary-grid > div:nth-child(2)::after {
			display: none;
		}

		.draft-summary-grid > div:nth-child(-n + 2) {
			border-bottom: 1px solid #dfe6ef;
		}

	.draft-item-facts {
		grid-template-columns: 1fr;
	}
	.draft-summary-grid > div {
		min-width: 0;
	}

	.draft-summary-grid strong {
		overflow-wrap: normal;
		word-break: normal;
	}

	.received-summary strong {
		white-space: nowrap;
	}

	.received-summary small {
		display: block;
		margin-top: 3px;
		color: #8995a8;
		font-size: 8px;
		font-weight: 600;
		white-space: nowrap;
	}

	.draft-preview-content {
		display: flex;
		min-width: 0;
		flex-direction: column;
		gap: 5px;
	}

		.draft-preview-content > strong {
			overflow: hidden;
			color: #152b54;
			font-size: 12px;
			font-weight: 700;
			text-overflow: ellipsis;
			white-space: nowrap;
		}

	.draft-preview-schedule {
		display: flex;
		align-items: center;
		flex-wrap: wrap;
		gap: 5px 11px;
	}

		.draft-preview-schedule span {
			display: inline-flex;
			align-items: center;
			gap: 4px;
			color: #748196;
			font-size: 9px;
			white-space: nowrap;
		}

		.draft-preview-schedule i {
			color: #f47a18;
			font-size: 8px;
		}
	.draft-price-request {
		display: inline-flex !important;
		align-items: center;
		min-height: 29px;
		padding: 0 10px;
		border: 1px solid #dbe4ef;
		border-radius: 999px;
		background: #f3f6fa;
		color: #526781 !important;
		font-size: 9px !important;
		font-weight: 700 !important;
		letter-spacing: 0 !important;
		text-transform: none !important;
		white-space: nowrap;
	}
}
