.dispatch-cardviews-container {
	padding: 0px;
}

.dispatch-cardviews {
	display: block;
	flex-wrap: wrap;
	gap: 1rem;
	margin: 0;
}

.dispatch-cardview-container {
	display: inline-block;
	width: 100%;
	position: relative;
	transition: all 0.2s ease;
	margin: 5px 10px 5px 0px;
	border-radius: 10px;
	padding: 5px 1px 1px 1px;
}

.dispatch-cardview {
	background-color: rgba(255,255,255,.95);
	border-radius: 7px 7px 9px 9px;
	overflow: hidden;
	min-height: 200px;
	display: block;
	flex-direction: column;
	position: relative;
	width: 100%;
	max-width: 400px;
	box-shadow: 0 0 0px 0px rgba(var(--primary), 0);
	transition: .3s;
}
.dispatch-cardview-container:hover {
	box-shadow: 0 0 0px 4px rgba(var(--primary), 0.25) !important;
	transition: .3s;
}

.dispatch-cardview-container.selected-item  {
		transform: scale(1.02);
		box-shadow: 0 0 0px 4px rgba(var(--primary), 0.75) !important;
	}

.dispatch-cardview-checkbox {
	position: absolute;
	top: 20px;
	right: 10px;
	z-index: 10;
}

/* Custom Checkbox Styles */
.checkbox-container {
	display: block;
	position: relative;
	padding-left: 25px;
	cursor: pointer;
	font-size: 14px;
	user-select: none;
}

	.checkbox-container input {
		position: absolute;
		opacity: 0;
		cursor: pointer;
		height: 0;
		width: 0;
	}

.checkmark {
	position: absolute;
	top: -10px;
	left: 0;
	height: 20px;
	width: 20px;
	background-color: var(--bs-body-bg);
	border: 1px solid rgba(var(--midgrey), 0.5);
	border-radius: 4px;
}

.checkbox-container:hover input ~ .checkmark {
	background-color: var(--bs-body-bg);
}

.checkbox-container input:checked ~ .checkmark {
	background-color: #007bff;
}

.checkmark:after {
	content: "";
	position: absolute;
	display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
	display: block;
}

.checkbox-container .checkmark:after {
	left: 6px;
	top: 2px;
	width: 5px;
	height: 10px;
	border: solid white;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

/* Batch Actions Toolbar */
.batch-actions-toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem;
	background: var(--bs-body-bg);
	border-bottom: 1px solid rgba(var(--midgrey), .25);
	margin-bottom: 1rem;
	border-radius: 4px;
}

.selection-info {
	display: flex;
	align-items: center;
	gap: 1rem;
}
.selection-info label, 
.selection-info span {
	color: currentColor;
}

.selected-count {
	font-weight: 500;
	color: #495057;
}

.batch-actions {
	display: flex;
	gap: 0.5rem;
}

.btn {
	padding: 0.375rem 0.75rem;
	border-radius: 4px;
	border: none;
	cursor: pointer;
	font-size: 0.875rem;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	transition: all 0.2s ease;
}

.btn-sm {
	padding: 0.25rem 0.5rem;
	font-size: 0.875rem;
}

.btn-primary {
	background-color: #007bff;
	color: white;
}

	.btn-primary:hover {
		background-color: #0056b3;
	}

.btn-success {
	background-color: #28a745;
	color: white;
}

	.btn-success:hover {
		background-color: #1e7e34;
	}

.btn-danger {
	background-color: #dc3545;
	color: white;
}

	.btn-danger:hover {
		background-color: #bd2130;
	}

.btn-icon {
	width: 16px;
	height: 16px;
	filter: brightness(0) invert(1);
}

/* Pagination Styles */
.pagination-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem;
	background: var(--bs-body-bg);
	border-top: 1px solid var(--bs-body-bg);
	margin-top: 1rem;
	border-radius: 4px;
}

.pagination-info {
	color: currentColor;
	font-size: 0.875rem;
}

.pagination-controls {
	display: flex;
	gap: 0.25rem;
}

.pagination-btn {
	min-width: 36px;
	height: 36px;
	padding: 0 0.5rem;
	border: 1px solid rgba(var(--midgrey), .25);
	background: var(--bs-body-bg);
	border-radius: 4px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	color: currentColor;
}

	.pagination-btn:hover:not(:disabled) {
		background-color: rgba(var(--secondary), 1);
		border-color: rgba(var(--midgrey), .25);
	}

	.pagination-btn.active {
		background-color: rgba(var(--secondary), 1);
		border-color: rgba(var(--midgrey), .25);
		color: white;
	}

	.pagination-btn:disabled {
		opacity: 0.5;
		cursor: not-allowed;
	}

.pagination-icon {
	width: 16px;
	height: 16px;
}

.pagination-btn.active .pagination-icon {
	filter: brightness(0) invert(1);
}

.pagination-size select {
	padding: 0.375rem 1.5rem 0.375rem 0.75rem;
	border: 1px solid rgba(var(--midgrey), .25);
	border-radius: 4px;
	background: var(--bs-body-bg);
	cursor: pointer;
	font-size: 0.875rem;
	color: currentColor;
}

	.pagination-size select:hover {
		border-color: #adb5bd;
	}

/* Card Styles */
.dc-route-header {
	padding: 5px 15px 0px;
	transition: background-color 0.2s ease;
}

	.dc-route-header:hover {
	}

.dc-route-header-top {
	display: block;
	margin-bottom: 0.5rem;
}

.dc-route-title {
	margin: 0;
		font-size: 18px;
		font-weight: 700;
	align-items: center;
	gap: 0.5rem;
	width: 100%;
	display: inline-block;
	vertical-align: middle;
	overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.dc-driver-name {
	overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.dc-route-title .dc-view-route {
	display: inline-block;
	width: fit-content;
	float: left;
	margin: -3px 6px 0px -5px;
	width: 24px;
	height: 24px;
	border-radius: 5px;
}
.dc-route-title .dc-view-route img {
	filter: var(--icon-filter-white);
	opacity: 1;
	width: 20px;
	height: 20px;
	cursor: pointer;
	margin: 2px;
}
.dc-route-title .dc-view-route img:hover {	
    /* animation: logo-spin 1s linear; */
    transition: .1s;
	width: 24px;
	height: 24px;
	margin: 0px;
}


.dc-route-sequence-badge {
	position: relative;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 12px;
	font-weight: bold;
}

.dc-rd-buttons td {
	padding: 0px 4px !important;

}
.dc-route-status {
	padding: 0px !important;
  margin: 0px;
  background: transparent !important;
  min-width: 110px;
  display: block;
  text-align: right;
  float: right;
  position: absolute;
  /* top: -2px; */
  right: 0px;
}
.dc-rd-buttons td button {
	background: transparent;

}
.dc-route-status .badge {
	padding: 4px 10px 4px 10px;
	line-height: 1;
	border-radius: 10px 0 0 10px;
	font-size: 11px;
	font-weight: bold;
	text-transform: uppercase;
	font-weight: 500;
	color: white;
	text-shadow: 0 1px 2px #3D3D3D;
}


.badge-new {
	background-color: #17a2b8;
}

.badge-active {
	background-color: #28a745;
}

.badge-paused {
	background-color: #440439;
}

.badge-completed {
	background-color: #2d602d;
}
.badge-done {
	background-color: #2d602d;
}

.badge-cancelled {
	background-color: #dc3545;
}

.dc-route-datetime {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	font-size: 0.875rem;
	color: currentColor;
	margin-bottom: 0.5rem;
	opacity: .75;
}

.dc-route-icon {
	width: 20px;
	height: 20px;
	opacity: 0.5;
}

.dc-route-addresses {
	margin-bottom: 0.5rem;
}

.dc-route-address-item {
	display: flex;
	align-items: flex-start;
	gap: 0.25rem;
	font-size: 0.875rem;
	margin-bottom: 0.25rem;
}

.dc-route-address-label {
	color: #6c757d;
	min-width: 35px;
}

.dc-route-address-text {
	white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 330px;
}

.dc-route-driver {
	display: block;
	vertical-align: middle;
	font-size: 16px;
	margin-bottom: 5px;
	margin-top: -5px;
}
.dc-driver-img {
	display: inline-block;
	vertical-align: middle;
	width: 38px;
	height: 38px;
	border-radius: 30px;
	padding: 1px;
	margin-right: 10px;
}
.dc-routeanddriver {
	width: calc(100% - 54px);
	display: inline-block;
	vertical-align: middle;
}
.dc-driver-icon {
	width: 36px;
	height: 36px;
	border-radius: 30px;
}
.dc-no-driver-icon {
	width: 20px;
	height: 20px;
	margin: 8px;
	filter: var(--icon-filter-white);
	opacity: 0.75;
}

.dc-route-body {
	padding: 0px 15px;
	flex: 1;
}
.dispatch-cardview table tr td {
	background: transparent;
}
.dc-rd-table tr td {
	padding: 2px 0px;
	border-top: 1px solid rgba(var(--midgrey), .45);
}
.dc-rd-table tr:last-child td {
	border-bottom: 1px solid rgba(var(--midgrey), .45);
}
.dc-rd-table tr td.dc-rd-right {
	text-align: right;
}
.dc-rd-table tr td.dc-rd-value span,
.dc-rd-table tr td.dc-rd-value a.dc-no-driver,
.dc-rd-table tr td strong {
	padding: 0px !important;
	background: transparent !important;
}
.dc-rd-table tr td.dc-rd-value .dxbl-btn.flag-orya{
	margin-top: 0px;
	margin-right: 5px;
	padding: 0px 5px;
	background-color: rgba(var(--primary), 0.5) ;
	text-decoration: none;
}
.dc-rd-table tr td.dc-rd-value .dxbl-btn.flag-orya img:not(.dc-rd-table tr td.dc-rd-value .dxbl-btn.flag-orya:hover img) {
	filter: var(--icon-filter-white);
}
.dc-route-progress {
	margin-bottom: 1rem;
}

.progress-header {
	display: flex;
	justify-content: space-between;
	font-size: 0.875rem;
	margin-bottom: 0.25rem;
}

.progress-track {
	height: 8px;
	background-color: #e9ecef;
	border-radius: 4px;
	overflow: hidden;
}

.progress-fill {
	height: 100%;
	background-color: #28a745;
	transition: width 0.3s ease;
}

.dc-route-accordions {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.accordion-item {
	overflow: hidden;
}

.accordion-header {
	width: 100%;
	padding: 5px 15px !important;
	background-color: rgba(var(--midgrey), .1) !important;
	text-align: center;
	justify-content: space-between;
	font-size: 0.875rem;
	transition: background-color 0.2s ease;
	color: currentColor;
	border: 1px solid rgba(var(--midgrey), .45);
	border-radius: 40px; 
	overflow: hidden;
}

	.dc-rd-buttons button.accordion-header:hover {
		background-color: rgba(var(--primary), .45) !important;
		box-shadow: none !important;
	}
	.dc-rd-buttons button.accordion-header .dc-route-icon {
		width: 18px;
		height: 18px;
		opacity: .75;
	}

.accordion-icon {
	width: 16px;
	height: 16px;
	transition: transform 0.3s ease;
}

	.accordion-icon.rotated {
		transform: rotate(180deg);
	}
.dc-rd-buttons button.accordion-header:has(.accordion-icon.rotated) {
	background: rgba(var(--midgrey), 0.25);
}
.accordion-content {
	border: 0px;
	background: transparent;
	padding-bottom: 15px;
	transition: .3s;
}

.orders-list {
	max-height: 200px;
	overflow-y: auto;
}

.order-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.25rem 0;
	border-bottom: 1px solid rgba(var(--midgrey), .45);
	font-size: 0.875rem;
}
.dc-rd-um {
	font-size: 12px;
}

.order-seq {
	font-weight: 600;
	color: #6c757d;
	min-width: 40px;
}

.order-customer {
	flex: 1;
}

.more-items, .no-items {
	padding: 0.5rem;
	text-align: center;
	color: #6c757d;
	font-size: 0.875rem;
	font-style: italic;
}

.dispatch-cardview .dxbl-progress-bar {
	margin: -24px 0px 10px 0px;
}
.dispatch-cardview .dxbl-progress-bar,
.dispatch-cardview .dxbl-progress-bar-container.dxbl-progress-bar-column {
	display: block;
	width: 100% !important;
}
.dispatch-cardview .dxbl-progress-bar-track-container {
	display: inline-block;
	width: calc(100% - 60px) !important;
}
.dispatch-cardview .dxbl-progress-bar-label-container,
.dispatch-cardview .dxbl-progress-bar-label {
	width: 56px;
	display: inline-block;
}
.dispatch-cardview .dxbl-progress-bar-label-container p {
	width: 100%;
	text-align: right;
	font-weight: 700;
	text-shadow: none !important;
}
.dispatch-cardview .dxbl-progress-bar-track-container {
	height: 8px;
	border-radius: 4px;
	overflow: hidden;
	border: 1px solid rgba(var(--secondary), 0.4);
}

.dispatch-cardview .dxbl-progress-bar .dxbl-progress-bar-track-container .dxbl-progress-bar-indicator {
	background-color: var(--site-primary);
}


.flag-row .dxbl-progress-bar {
	margin: 0px 0px 8px 0px;
	display: block;
	width: 100% !important;
}

.flag-row .dxbl-progress-bar-container.dxbl-progress-bar-column {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 8px;
	width: 100% !important;
}

.flag-row .dxbl-progress-bar-track-container {
	flex: 1;
	height: 15px;
	border-radius: 4px;
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, 0.1);
	background-color: rgba(0, 0, 0, 0.05);
}

	.flag-row .dxbl-progress-bar-track-container .dxbl-progress-bar-track {
		opacity: 1;
		background-color: #bbb;
	}

.flag-row .dxbl-progress-bar-label {
	width: auto;
	min-width: 45px;
}

.flag-row .dxbl-progress-bar-label-container {
	width: 100%;
	text-align: center;
	font-size: 12px;
	position: absolute;
	top: -6px;
	z-index:9;
}

	.flag-row .dxbl-progress-bar-label-container p {
		margin: 0;
		text-align: right;
		font-weight: 600;
		font-size: 11px;
		color: #495057;
	}
/*.dispatch-cardview .dxbl-progress-bar-indicator {
	background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.3) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.3) 75%,
        transparent 75%,
        transparent
    );
    background-size: 16px 16px;
}*/


/* Progress bar color variants */
/*.progress-success.dxbl-progress-bar .dxbl-progress-bar-track-container .dxbl-progress-bar-indicator {
    background-color: var(--site-green) !important;
}

.progress-info.dxbl-progress-bar .dxbl-progress-bar-track-container .dxbl-progress-bar-indicator {
    background-color: var(--site-secondary) !important;
}

.progress-primary.dxbl-progress-bar .dxbl-progress-bar-track-container .dxbl-progress-bar-indicator {
    background-color: var(--site-blue) !important;
}

.progress-warning.dxbl-progress-bar .dxbl-progress-bar-track-container .dxbl-progress-bar-indicator {
    background-color: var(--site-orange) !important;
}

.progress-danger.dxbl-progress-bar .dxbl-progress-bar-track-container .dxbl-progress-bar-indicator {
    background-color: var(--site-red) !important;
}*/

/* Custom height progress bar */
.custom-progress-bar .dxbl-progress-bar {
    height: 8px;
    border-radius: 4px;
}

/* Striped animation */
.dxbl-progress-bar-striped {
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-size: 1rem 1rem;
}

.dxbl-progress-bar-animated {
    animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
    from {
        background-position: 1rem 0;
    }
    to {
        background-position: 0 0;
    }
}



/* Responsive adjustments */
@media (max-width: 2200px) {
	.dispatch-cardview-container {
		flex: 0 0 calc(50% - 1rem);
	}
	.dispatch-cardview-container {
	max-width: 290px;
	}
}

@media (max-width: 1200px) {

	.dispatch-cardview-container {
	max-width: 265px;
	}
}

@media (max-width: 1100px) {

	.dispatch-cardview-container {
	max-width: 229px;
	}
}

@media (max-width: 768px) {
	.dispatch-cardview-container {
		flex: 0 0 100%;
	}
	
	.dispatch-cardview-container {
	max-width: 400px;
	}

	.batch-actions-toolbar {
		flex-direction: column;
		gap: 0.5rem;
	}

	.pagination-container {
		flex-direction: column;
		gap: 0.5rem;
	}
}


