/**
 * Driver dashboard styles. Mobile-first, large touch targets (min 48px),
 * high contrast for outdoor daylight use.
 */

.pdt-driver {
	--pdt-accent: #b4532a;
	--pdt-ink: #1f1b17;
	--pdt-muted: #6b615a;
	--pdt-line: #e6ded7;
	--pdt-ok: #1f7a4d;
	--pdt-warn: #a36a00;
	--pdt-err: #b3261e;
	max-width: 640px;
	margin: 0 auto;
	padding: 16px;
	font-size: 17px;
	line-height: 1.45;
	color: var(--pdt-ink);
}

.pdt-driver * {
	box-sizing: border-box;
}

.pdt-driver__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--pdt-line);
}

.pdt-driver__hello {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
}

.pdt-driver__duty {
	margin: 2px 0 0;
	color: var(--pdt-muted);
	font-size: 14px;
	text-transform: capitalize;
}

/* Buttons ------------------------------------------------------------- */

.pdt-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 12px 18px;
	border: 2px solid transparent;
	border-radius: 12px;
	font-size: 17px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	touch-action: manipulation;
}

.pdt-btn:focus-visible {
	outline: 3px solid #1c64f2;
	outline-offset: 2px;
}

.pdt-btn--primary {
	background: var(--pdt-accent);
	color: #fff;
}

.pdt-btn--success {
	background: var(--pdt-ok);
	color: #fff;
}

.pdt-btn--secondary {
	background: #fff;
	color: var(--pdt-ink);
	border-color: var(--pdt-line);
}

.pdt-btn--ghost {
	background: transparent;
	color: var(--pdt-accent);
	border-color: var(--pdt-accent);
}

.pdt-btn[hidden] {
	display: none;
}

/* Banner and tabs ----------------------------------------------------- */

.pdt-banner {
	margin: 12px 0;
	padding: 12px 14px;
	border-radius: 10px;
	background: #fdf4e7;
	border-left: 4px solid var(--pdt-warn);
	font-size: 15px;
}

.pdt-banner--hidden {
	display: none;
}

.pdt-banner--error {
	background: #fdecea;
	border-left-color: var(--pdt-err);
}

.pdt-banner--success {
	background: #eaf6ef;
	border-left-color: var(--pdt-ok);
}

.pdt-tabs {
	display: flex;
	gap: 8px;
	margin: 14px 0;
}

.pdt-tab {
	flex: 1;
	min-height: 48px;
	border: 1px solid var(--pdt-line);
	border-radius: 10px;
	background: #fff;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}

.pdt-tab.is-active {
	background: var(--pdt-accent);
	border-color: var(--pdt-accent);
	color: #fff;
}

/* Active delivery ----------------------------------------------------- */

.pdt-active {
	margin: 16px 0;
	padding: 16px;
	border: 2px solid var(--pdt-accent);
	border-radius: 14px;
	background: #fffaf6;
}

.pdt-active__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.pdt-active__head h2 {
	margin: 0;
	font-size: 19px;
}

.pdt-pill {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	background: #f1e7e0;
	font-size: 13px;
	font-weight: 600;
}

.pdt-gps {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 12px 0;
	font-size: 15px;
}

.pdt-gps__dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #b9b0a9;
}

.pdt-gps__dot--active {
	background: var(--pdt-ok);
	animation: pdt-pulse 1.8s infinite;
}

.pdt-gps__dot--warn {
	background: var(--pdt-warn);
}

.pdt-gps__dot--error {
	background: var(--pdt-err);
}

@keyframes pdt-pulse {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0.35;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pdt-gps__dot--active {
		animation: none;
	}
}

.pdt-gps__accuracy {
	margin-left: auto;
	color: var(--pdt-muted);
	font-size: 13px;
}

.pdt-queue {
	margin: 0 0 12px;
	padding: 8px 12px;
	border-radius: 8px;
	background: #fdf4e7;
	font-size: 14px;
}

.pdt-label {
	margin: 0;
	color: var(--pdt-muted);
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.pdt-address {
	margin: 4px 0 0;
	font-size: 18px;
	font-weight: 600;
}

.pdt-notes {
	margin: 6px 0 0;
	color: var(--pdt-muted);
	font-size: 15px;
}

.pdt-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-top: 16px;
}

.pdt-actions .pdt-btn--success,
.pdt-actions .pdt-btn--primary {
	grid-column: 1 / -1;
}

.pdt-hint {
	margin: 14px 0 0;
	color: var(--pdt-muted);
	font-size: 13px;
}

/* Delivery cards ------------------------------------------------------ */

.pdt-card {
	margin-bottom: 12px;
	padding: 14px;
	border: 1px solid var(--pdt-line);
	border-radius: 12px;
	background: #fff;
}

.pdt-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.pdt-card__title {
	margin: 0;
	font-size: 17px;
}

.pdt-card__customer,
.pdt-card__address,
.pdt-card__meta {
	margin: 6px 0 0;
	font-size: 15px;
}

.pdt-card__meta {
	color: var(--pdt-muted);
	font-size: 14px;
}

.pdt-card__start {
	width: 100%;
	margin-top: 12px;
}

.pdt-empty {
	padding: 24px 0;
	color: var(--pdt-muted);
	text-align: center;
}

/* Login --------------------------------------------------------------- */

.pdt-driver--login {
	max-width: 420px;
}

.pdt-login__title {
	margin-top: 0;
}

.pdt-driver--login input[type='text'],
.pdt-driver--login input[type='password'] {
	width: 100%;
	min-height: 50px;
	padding: 10px 12px;
	border: 1px solid var(--pdt-line);
	border-radius: 10px;
	font-size: 17px;
}

.pdt-driver--login .button,
.pdt-driver--login input[type='submit'] {
	width: 100%;
	min-height: 52px;
	border-radius: 12px;
	background: var(--pdt-accent);
	color: #fff;
	border: none;
	font-size: 17px;
	font-weight: 600;
}

/* 1.1.0: shift summary, multi-stop routing, photo proof. */
.pdt-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.pdt-summary__item { background: #fff; border: 1px solid #eadfd3; border-radius: 12px; padding: 10px 12px; text-align: center; }
.pdt-summary__item strong { display: block; font-size: 20px; line-height: 1.2; }
.pdt-summary__item span { font-size: 11px; color: #7c6f60; }
.pdt-routeall { margin: 0 0 12px; }
.pdt-routeall .pdt-btn { width: 100%; }
