/* Delivery Management Styles */

/* Delivery status badges */
.delivery-status-pending {
	background-color: #ffc107 !important;
	color: #000 !important;
}

.delivery-status-confirmed {
	background-color: #198754 !important;
}

.delivery-status-out-for-hire {
	background-color: #0dcaf0 !important;
	color: #000 !important;
}

.delivery-status-returned {
	background-color: #6c757d !important;
}

.delivery-status-cancelled {
	background-color: #dc3545 !important;
}

/* Date highlighting */
.delivery-date-today {
	font-weight: bold;
	color: #0d6efd !important;
}

.pickup-date-today {
	font-weight: bold;
	color: #198754 !important;
}

.date-overdue {
	color: #dc3545 !important;
	font-weight: bold;
}

/* Delivery cards */
.delivery-card {
	border-left: 4px solid #0d6efd;
	transition: box-shadow 0.15s ease-in-out;
}

.delivery-card:hover {
	box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.pickup-card {
	border-left: 4px solid #198754;
}

/* Stats cards */
.stats-card {
	transition: transform 0.15s ease-in-out;
}

.stats-card:hover {
	transform: translateY(-2px);
}

/* Delivery table enhancements */
.delivery-table tbody tr:hover {
	background-color: rgba(0, 123, 255, 0.05);
}

.delivery-table .table-success {
	background-color: rgba(25, 135, 84, 0.1) !important;
}

.delivery-table .table-warning {
	background-color: rgba(255, 193, 7, 0.1) !important;
}

.delivery-table .table-info {
	background-color: rgba(13, 202, 240, 0.1) !important;
}

/* Address column styling */
.address-cell {
	font-size: 0.9em;
	line-height: 1.3;
}

/* Checklist styling */
.checklist-item {
	padding: 0.5rem 0;
	border-bottom: 1px solid #e9ecef;
}

.checklist-item:last-child {
	border-bottom: none;
}

.checklist-item .form-check-input:checked {
	background-color: #198754;
	border-color: #198754;
}

/* Print styles */
@media print {

	.no-print,
	.btn,
	.card-header,
	nav,
	.breadcrumb {
		display: none !important;
	}

	.card {
		border: 1px solid #000 !important;
		box-shadow: none !important;
		margin-bottom: 1rem !important;
	}

	.card-body {
		padding: 1rem !important;
	}

	body {
		font-size: 12px !important;
	}

	h2,
	h3,
	h4,
	h5 {
		font-size: 14px !important;
		font-weight: bold !important;
	}
}

/* Mobile responsiveness */
@media (max-width: 768px) {
	.delivery-table {
		font-size: 0.85em;
	}

	.delivery-table th,
	.delivery-table td {
		padding: 0.4rem !important;
	}

	.stats-card .card-body {
		padding: 1rem 0.75rem;
	}

	.btn-group .btn {
		padding: 0.25rem 0.5rem;
		font-size: 0.8rem;
	}
}

/* Filter form styling */
.filter-form {
	background-color: #f8f9fa;
	border-radius: 0.375rem;
	border: 1px solid #e9ecef;
}

/* Map link button */
.map-link {
	text-decoration: none !important;
}

.map-link:hover {
	transform: scale(1.05);
	transition: transform 0.15s ease-in-out;
}

/* Urgent/Today indicators */
.urgent-indicator {
	animation: pulse 2s infinite;
}

@keyframes pulse {
	0% {
		opacity: 1;
	}

	50% {
		opacity: 0.7;
	}

	100% {
		opacity: 1;
	}
}