@font-face {
	font-family: "Fleet Myanmar";
	src: url("../fonts/myanmar3_2011.ttf") format("truetype");
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	unicode-range: U+1000-109F, U+AA60-AA7F, U+A9E0-A9FF;
}

:root {
	--brand-950: #092449;
	--brand-900: #12386b;
	--brand-700: #1d5796;
	--brand-100: #dcecff;
	--ink-950: #162234;
	--ink-700: #526176;
	--ink-500: #7b899c;
	--line: #dce4ee;
	--surface: #ffffff;
	--canvas: #f4f7fb;
	--success: #16734a;
	--success-bg: #e8f7ef;
	--danger: #a73535;
	--danger-bg: #fff0f0;
	--shadow: 0 18px 50px rgba(20, 49, 83, 0.13);
	--safe-top: env(safe-area-inset-top, 0px);
	--safe-right: env(safe-area-inset-right, 0px);
	--safe-bottom: env(safe-area-inset-bottom, 0px);
	--safe-left: env(safe-area-inset-left, 0px);
}

.trip-actions {
	display: flex;
	justify-content: flex-end;
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--line);
}

.trip-start-button,
.secondary-action,
.photo-choose-button,
.trip-operation-button,
.inline-trip-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 11px 18px;
	border: 0;
	border-radius: 12px;
	font-weight: 700;
	cursor: pointer;
}

.trip-start-button {
	color: #fff;
	background: var(--success);
}

.operate-actions {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.operate-actions .trip-action-warning {
	grid-column: 1 / -1;
}

.trip-operation-button {
	color: #fff;
	background: var(--brand-700);
}

.operate-actions .trip-operation-button {
	min-width: 0;
	padding-right: 8px;
	padding-left: 8px;
	text-align: center;
}

.trip-operation-button.ticket {
	color: #fff;
	background: var(--success);
}

.trip-operation-button.secondary {
	color: var(--brand-900);
	background: var(--brand-100);
}

.inline-trip-action {
	width: 100%;
	min-height: 40px;
	margin-top: 11px;
	color: var(--success);
	background: #e4f5ec;
}

.trip-start-button:disabled,
.trip-operation-button:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.trip-action-warning {
	margin: 0;
	color: var(--danger);
	font-size: 0.9rem;
}

body.modal-open {
	overflow: hidden;
}

.driver-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 20px max(14px, var(--safe-right)) max(20px, var(--safe-bottom)) max(14px, var(--safe-left));
}

.driver-modal[hidden] {
	display: none;
}

.driver-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(8, 24, 46, 0.62);
}

.driver-modal-dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 520px);
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	padding: 22px;
	border-radius: 22px;
	background: var(--surface);
	box-shadow: var(--shadow);
}

.start-trip-travellers {
	margin-bottom: 20px;
	overflow-x: auto;
}

.start-trip-traveller-table {
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
	font-size: 0.78rem;
}

.start-trip-traveller-table th,
.start-trip-traveller-table td {
	padding: 9px 5px;
	border: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
	overflow-wrap: anywhere;
}

.start-trip-traveller-table th {
	background: var(--brand-100);
	color: var(--brand-950);
	font-size: 0.7rem;
}

.start-trip-traveller-table .preview-row-number,
.start-trip-traveller-table .preview-number {
	text-align: center;
}

.start-trip-traveller-table th:nth-child(1) {
	width: 28px;
}

.start-trip-traveller-table th:nth-child(3) {
	width: 48px;
	font-size: 0.62rem;
	white-space: nowrap;
}

.start-trip-traveller-table th:nth-child(2) {
	width: 44%;
}

.preview-traveller-identity span {
	font-weight: 700;
}

.preview-service-row td {
	padding-top: 7px;
	padding-bottom: 7px;
	background: var(--canvas);
	color: var(--ink-700);
}

.preview-service-row .preview-service-name {
	padding-left: 20px;
}

.preview-service-row .preview-service-name strong {
	color: var(--brand-700);
}

.start-trip-travellers [hidden] {
	display: none;
}

.driver-modal-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.driver-modal-header h2,
.modal-trip-description {
	margin: 0;
}

.modal-close-button {
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 50%;
	color: var(--ink-700);
	background: var(--canvas);
	font-size: 1.7rem;
	line-height: 1;
	cursor: pointer;
}

.modal-trip-description {
	margin-top: 8px;
	color: var(--ink-700);
}

.start-trip-form,
.driver-operation-form {
	display: grid;
	gap: 10px;
	margin-top: 20px;
}

.start-trip-form > label:not(.photo-choose-button),
.driver-operation-form > label:not(.photo-choose-button),
.operation-form-row label {
	display: grid;
	gap: 7px;
	margin-top: 7px;
	font-weight: 700;
}

.driver-operation-form > label[hidden] {
	display: none;
}

.start-trip-form input[type="number"],
.driver-operation-form input,
.driver-operation-form select,
.driver-operation-form textarea {
	width: 100%;
	min-height: 48px;
	padding: 10px 12px;
	border: 1px solid var(--line);
	border-radius: 12px;
	color: var(--ink-950);
	background: #fff;
	font: inherit;
}

.odometer-picker {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	padding: 10px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: #edf3f9;
}

.odometer-digits {
	display: flex;
	flex: 1;
	gap: 4px;
	min-width: 0;
	overflow: hidden;
}

.odometer-digit {
	display: grid;
	flex: 1 1 0;
	grid-template-rows: 24px 54px 24px;
	gap: 3px;
	min-width: 0;
	max-width: 44px;
}

.odometer-step {
	display: grid;
	place-items: center;
	min-width: 0;
	padding: 0;
	border: 0;
	border-radius: 7px;
	color: var(--brand-700);
	background: transparent;
	font-size: 0.75rem;
	line-height: 1;
	cursor: pointer;
}

.odometer-step:active {
	background: var(--brand-100);
}

.odometer-digit-select {
	width: 100%;
	min-width: 0;
	padding: 0;
	border: 2px solid #8997a8;
	border-radius: 8px;
	color: #f7fbff;
	background: linear-gradient(#17212d, #354353 48%, #17212d 52%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 2px 5px rgba(20, 49, 83, 0.18);
	font-family: "Courier New", monospace;
	font-size: clamp(1.25rem, 6vw, 1.55rem);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	text-align: center;
	text-align-last: center;
	cursor: ns-resize;
}

.odometer-digit-select:focus {
	border-color: var(--brand-700);
	outline: 3px solid rgba(29, 87, 150, 0.2);
}

.odometer-hint {
	margin: -4px 0 4px;
	color: var(--ink-500);
	font-size: 0.78rem;
}

.driver-operation-form textarea {
	min-height: 88px;
	resize: vertical;
}

.operation-form-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.photo-choose-button {
	color: var(--brand-900);
	background: var(--brand-100);
}

.photo-source-actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.photo-file-input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.photo-upload-progress {
	height: 8px;
	overflow: hidden;
	border-radius: 999px;
	background: var(--line);
}

.photo-upload-progress span {
	display: block;
	height: 100%;
	width: 0;
	background: var(--success);
	transition: width 160ms ease;
}

.photo-upload-status {
	min-height: 24px;
	margin: 0;
	color: var(--ink-700);
	font-size: 0.9rem;
}

.photo-upload-status.error {
	color: var(--danger);
}

.photo-upload-status.success {
	color: var(--success);
}

.start-trip-photo-preview {
	width: 100%;
	max-height: 260px;
	object-fit: cover;
	border-radius: 14px;
	border: 1px solid var(--line);
}

.driver-modal-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-top: 12px;
}

.secondary-action {
	color: var(--ink-700);
	background: var(--canvas);
}

.driver-log-list {
	display: grid;
	gap: 9px;
	margin-top: 12px;
}

.driver-log-card {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	align-items: center;
	gap: 11px;
	padding: 10px;
	border: 1px solid var(--line);
	border-radius: 13px;
	background: #f8fafc;
}

.driver-log-card img {
	width: 64px;
	height: 58px;
	object-fit: cover;
	border-radius: 9px;
}

.driver-log-card.no-photo {
	grid-template-columns: minmax(0, 1fr);
}

.driver-log-photo {
	display: block;
	line-height: 0;
}

.driver-log-card strong,
.driver-log-card small {
	display: block;
}

.driver-log-card strong {
	font-size: 0.82rem;
	word-break: break-word;
}

.driver-log-card small {
	margin-top: 3px;
	color: var(--ink-500);
	font-size: 0.68rem;
}

@media (min-width: 640px) {
	.driver-modal {
		align-items: center;
	}
}

* {
	box-sizing: border-box;
}

html {
	min-height: 100%;
	-webkit-text-size-adjust: 100%;
}

body {
	min-height: 100%;
	margin: 0;
	color: var(--ink-950);
	font-family: Inter, "Fleet Myanmar", "Noto Sans Myanmar", "Myanmar Text", "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	background: var(--canvas);
	-webkit-tap-highlight-color: transparent;
}

button,
input,
select,
textarea {
	font: inherit;
}

button,
a {
	touch-action: manipulation;
}

a {
	color: inherit;
	text-decoration: none;
}

svg {
	display: block;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.eyebrow {
	margin: 0 0 3px;
	color: var(--brand-700);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* Login */
.login-page {
	display: grid;
	min-height: 100vh;
	min-height: 100dvh;
	padding: calc(24px + var(--safe-top)) calc(20px + var(--safe-right)) calc(20px + var(--safe-bottom)) calc(20px + var(--safe-left));
	background:
		radial-gradient(circle at 92% 4%, rgba(119, 173, 232, 0.3), transparent 28rem),
		linear-gradient(160deg, #eef5fd 0%, #f8fafd 58%, #eaf2fb 100%);
}

.login-shell {
	display: flex;
	flex-direction: column;
	width: min(100%, 430px);
	min-height: 100%;
	margin: auto;
}

.login-brand {
	display: flex;
	align-items: center;
	gap: 13px;
	margin: auto 0 28px;
	padding: 0 5px;
}

.brand-mark {
	display: grid;
	flex: 0 0 54px;
	width: 54px;
	height: 54px;
	place-items: center;
	border-radius: 17px;
	color: #fff;
	background: linear-gradient(145deg, var(--brand-700), var(--brand-950));
	box-shadow: 0 12px 24px rgba(18, 56, 107, 0.25);
}

.brand-mark svg {
	width: 34px;
	stroke-width: 2;
}

.login-brand h1 {
	margin: 0;
	font-size: clamp(1.5rem, 7vw, 2rem);
	line-height: 1.1;
}

.login-card {
	padding: clamp(24px, 7vw, 34px);
	border: 1px solid rgba(220, 228, 238, 0.8);
	border-radius: 28px;
	background: rgba(255, 255, 255, 0.94);
	box-shadow: var(--shadow);
	backdrop-filter: blur(12px);
}

.login-heading {
	margin-bottom: 22px;
}

.login-heading h2 {
	margin: 0 0 6px;
	font-size: clamp(1.45rem, 6vw, 1.85rem);
	line-height: 1.2;
}

.login-heading > p:last-child {
	margin: 0;
	color: var(--ink-700);
	font-size: 0.92rem;
}

.login-form {
	display: grid;
	gap: 18px;
}

.field-group {
	display: grid;
	gap: 7px;
}

.field-group label {
	font-size: 0.88rem;
	font-weight: 750;
}

.input-wrap {
	position: relative;
	display: flex;
	align-items: center;
}

.input-wrap > svg {
	position: absolute;
	left: 16px;
	width: 21px;
	height: 21px;
	color: var(--ink-500);
	pointer-events: none;
}

.input-wrap input {
	width: 100%;
	min-height: 54px;
	padding: 13px 48px;
	border: 1px solid var(--line);
	border-radius: 15px;
	outline: 0;
	color: var(--ink-950);
	background: #f9fbfd;
	transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.input-wrap input::placeholder {
	color: #94a0b0;
}

.input-wrap input:focus {
	border-color: var(--brand-700);
	background: #fff;
	box-shadow: 0 0 0 4px rgba(29, 87, 150, 0.12);
}

.password-toggle {
	position: absolute;
	right: 5px;
	display: grid;
	width: 44px;
	height: 44px;
	padding: 0;
	place-items: center;
	border: 0;
	border-radius: 12px;
	color: var(--ink-500);
	background: transparent;
	cursor: pointer;
}

.password-toggle svg {
	width: 22px;
	height: 22px;
}

.password-toggle:focus-visible,
.icon-button:focus-visible,
.bottom-navigation a:focus-visible,
.quick-card:focus-visible {
	outline: 3px solid rgba(29, 87, 150, 0.35);
	outline-offset: 2px;
}

.remember-password-option {
	display: flex;
	align-items: center;
	gap: 9px;
	width: fit-content;
	color: var(--ink-700);
	font-size: 0.88rem;
	font-weight: 650;
	cursor: pointer;
}

.remember-password-option input {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--brand-700);
}

.remember-password-option input:focus-visible {
	outline: 3px solid rgba(29, 87, 150, 0.35);
	outline-offset: 2px;
}

.primary-button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	width: 100%;
	min-height: 54px;
	margin-top: 4px;
	padding: 13px 20px;
	border: 0;
	border-radius: 15px;
	color: #fff;
	font-weight: 800;
	background: linear-gradient(135deg, var(--brand-700), var(--brand-900));
	box-shadow: 0 12px 22px rgba(18, 56, 107, 0.22);
	cursor: pointer;
}

.primary-button svg {
	width: 20px;
	height: 20px;
}

.primary-button:active {
	transform: translateY(1px);
}

.alert {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 18px;
	padding: 12px 13px;
	border-radius: 13px;
	font-size: 0.86rem;
}

.alert-error {
	color: var(--danger);
	background: var(--danger-bg);
}

.alert-success {
	color: var(--success);
	background: var(--success-bg);
}

.alert-icon {
	display: grid;
	flex: 0 0 21px;
	width: 21px;
	height: 21px;
	place-items: center;
	border: 1px solid currentColor;
	border-radius: 50%;
	font-size: 0.72rem;
	font-weight: 900;
}

.login-footer {
	margin: 24px 0 auto;
	color: var(--ink-500);
	font-size: 0.78rem;
	text-align: center;
}

/* Authenticated app shell */
.app-page {
	min-height: 100vh;
	min-height: 100dvh;
	overscroll-behavior-y: none;
}

.app-shell {
	width: 100%;
	min-height: 100vh;
	min-height: 100dvh;
	margin: 0 auto;
	background: var(--canvas);
}

.app-header {
	position: sticky;
	top: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: calc(68px + var(--safe-top));
	padding: calc(10px + var(--safe-top)) calc(18px + var(--safe-right)) 10px calc(18px + var(--safe-left));
	border-bottom: 1px solid rgba(220, 228, 238, 0.88);
	background: rgba(255, 255, 255, 0.93);
	backdrop-filter: blur(16px);
}

.app-identity {
	display: flex;
	flex: 1;
	align-items: center;
	gap: 10px;
	min-width: 0;
	min-height: 48px;
}

.app-title {
	min-width: 0;
}

.app-mark {
	display: grid;
	flex: none;
	width: 43px;
	height: 43px;
	place-items: center;
	border-radius: 13px;
	color: #fff;
	background: linear-gradient(145deg, var(--brand-700), var(--brand-950));
}

.app-mark svg {
	width: 28px;
}

.app-identity small,
.app-identity strong {
	display: block;
}

.app-identity small {
	color: var(--ink-500);
	font-size: 0.68rem;
	line-height: 1.15;
}

.app-identity strong {
	font-size: 1rem;
}

.header-login-name {
	max-width: clamp(72px, 18vw, 220px);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.app-header form {
	margin: 0;
}

.header-actions {
	display: flex;
	flex: none;
	align-items: center;
	gap: 8px;
}

.notification-header-link {
	position: relative;
}

.notification-badge {
	position: absolute;
	top: -5px;
	right: -5px;
	min-width: 20px;
	padding: 3px 5px;
	border: 2px solid #fff;
	border-radius: 999px;
	color: #fff;
	font-size: 0.62rem;
	font-weight: 900;
	line-height: 1;
	text-align: center;
	background: var(--danger);
}

.icon-button {
	display: grid;
	width: 46px;
	height: 46px;
	padding: 0;
	place-items: center;
	border: 1px solid var(--line);
	border-radius: 14px;
	color: var(--ink-700);
	background: #fff;
	cursor: pointer;
}

.icon-button svg {
	width: 22px;
	height: 22px;
}

.app-content {
	width: min(100%, 760px);
	margin: 0 auto;
	padding: 23px calc(18px + var(--safe-right)) calc(100px + var(--safe-bottom)) calc(18px + var(--safe-left));
}

.welcome-panel {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 24px;
}

.welcome-panel h1,
.page-title h1 {
	margin: 0;
	font-size: clamp(1.7rem, 7vw, 2.3rem);
	line-height: 1.15;
}

.welcome-panel > div > p:last-child {
	margin: 5px 0 0;
	color: var(--ink-700);
}

.profile-avatar {
	display: grid;
	flex: 0 0 54px;
	width: 54px;
	height: 54px;
	place-items: center;
	border: 4px solid #fff;
	border-radius: 18px;
	color: var(--brand-900);
	font-size: 1.15rem;
	font-weight: 900;
	background: var(--brand-100);
	box-shadow: 0 5px 18px rgba(27, 55, 88, 0.1);
}

.section-block {
	margin-bottom: 18px;
	padding: 20px;
	border: 1px solid rgba(220, 228, 238, 0.95);
	border-radius: 21px;
	background: var(--surface);
	box-shadow: 0 8px 26px rgba(29, 58, 93, 0.06);
}

.section-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 17px;
}

.section-heading h2 {
	margin: 0;
	font-size: 1.25rem;
}

.status-pill {
	padding: 6px 10px;
	border-radius: 999px;
	color: var(--success);
	font-size: 0.72rem;
	font-weight: 800;
	background: var(--success-bg);
}

.empty-state {
	display: flex;
	align-items: center;
	gap: 15px;
	color: var(--ink-700);
}

.empty-state.compact {
	padding: 17px;
	border: 1px dashed #cbd8e8;
	border-radius: 17px;
	background: #f8fbfe;
}

.empty-icon {
	display: grid;
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	place-items: center;
	border-radius: 15px;
	color: var(--brand-700);
	background: var(--brand-100);
	font-size: 1.2rem;
	font-weight: 900;
}

.empty-icon svg {
	width: 25px;
	height: 25px;
}

.empty-state h2,
.empty-state h3,
.empty-state p {
	margin: 0;
}

.empty-state h2,
.empty-state h3 {
	color: var(--ink-950);
}

.empty-state h3 {
	font-size: 1rem;
}

.empty-state p {
	margin-top: 2px;
	font-size: 0.86rem;
}

.quick-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.quick-card {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	min-height: 90px;
	padding: 13px;
	border: 1px solid var(--line);
	border-radius: 17px;
	background: #fff;
}

.quick-card:active {
	background: #f7fafe;
}

.quick-icon {
	display: grid;
	flex: 0 0 39px;
	width: 39px;
	height: 39px;
	place-items: center;
	border-radius: 12px;
}

.quick-icon.blue {
	color: var(--brand-700);
	background: var(--brand-100);
}

.quick-icon.green {
	color: var(--success);
	background: var(--success-bg);
}

.quick-icon svg {
	width: 21px;
	height: 21px;
}

.quick-card strong,
.quick-card small {
	display: block;
}

.quick-card strong {
	font-size: 0.9rem;
}

.quick-card small {
	overflow: hidden;
	color: var(--ink-500);
	font-size: 0.7rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bottom-navigation {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 20;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	min-height: calc(72px + var(--safe-bottom));
	padding: 7px calc(7px + var(--safe-right)) calc(7px + var(--safe-bottom)) calc(7px + var(--safe-left));
	border-top: 1px solid rgba(220, 228, 238, 0.95);
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 -10px 30px rgba(29, 58, 93, 0.07);
	backdrop-filter: blur(16px);
}

.bottom-navigation a {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	min-height: 56px;
	border-radius: 14px;
	color: var(--ink-500);
	font-size: 0.67rem;
	font-weight: 750;
}

.bottom-navigation a.active {
	color: var(--brand-700);
	background: #edf5ff;
}

.bottom-navigation svg {
	width: 23px;
	height: 23px;
}

.page-title {
	margin-bottom: 21px;
}

.page-heading {
	margin-bottom: 18px;
}

.page-heading h1,
.page-heading p {
	margin: 0;
}

.page-heading h1 {
	font-size: 1.65rem;
}

.page-heading p:last-child {
	margin-top: 5px;
	color: var(--ink-500);
	font-size: 0.82rem;
}

.notification-actions,
.notification-card-actions,
.notification-title-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.notification-actions {
	margin-bottom: 14px;
}

.notification-actions form,
.notification-card-actions form {
	margin: 0;
}

.secondary-button,
.text-button {
	min-height: 42px;
	padding: 9px 13px;
	border: 1px solid var(--line);
	border-radius: 12px;
	color: var(--brand-700);
	font: inherit;
	font-size: 0.78rem;
	font-weight: 800;
	background: #fff;
	cursor: pointer;
}

.text-button {
	min-height: auto;
	padding: 5px 7px;
	border: 0;
	background: transparent;
}

.notice {
	margin-bottom: 14px;
	padding: 12px 14px;
	border-radius: 13px;
	color: var(--ink-700);
	font-size: 0.82rem;
	background: var(--brand-100);
}

.notice.error { color: var(--danger); background: var(--danger-bg); }
.notice.success { color: var(--success); background: var(--success-bg); }

.notification-list {
	display: grid;
	gap: 10px;
}

.notification-card {
	display: grid;
	grid-template-columns: 9px minmax(0, 1fr);
	gap: 12px;
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: 17px;
	background: #fff;
}

.notification-card.unread {
	border-color: #b7d1ef;
	background: #f7fbff;
}

.notification-dot {
	width: 8px;
	height: 8px;
	margin-top: 6px;
	border-radius: 50%;
	background: transparent;
}

.notification-card.unread .notification-dot { background: var(--brand-700); }
.notification-title-row { align-items: flex-start; }
.notification-title-row strong { font-size: 0.91rem; }
.notification-title-row small { flex: 0 0 auto; color: var(--ink-500); font-size: 0.65rem; }
.notification-body p { margin: 7px 0 9px; color: var(--ink-700); font-size: 0.82rem; line-height: 1.45; }
.notification-card-actions { justify-content: flex-end; }
.notification-card-actions a { color: var(--brand-700); font-size: 0.78rem; font-weight: 800; }
.empty-card { padding: 28px 18px; border: 1px dashed var(--line); border-radius: 17px; color: var(--ink-500); text-align: center; background: #fff; }

.page-empty {
	min-height: 220px;
	justify-content: center;
	flex-direction: column;
	text-align: center;
}

.message-page {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	width: min(100%, 420px);
	margin: auto;
	padding: 32px 20px;
	text-align: center;
}

.message-page h1 {
	margin: 18px 0 5px;
}

.message-page p {
	margin: 0 0 24px;
	color: var(--ink-700);
}

/* Driver operation screens */
.driver-page-heading,
.account-hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.filter-panel {
	margin-bottom: 18px;
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: var(--surface);
	box-shadow: 0 8px 26px rgba(29, 58, 93, 0.05);
}

.filter-panel label {
	display: block;
	margin-bottom: 7px;
	font-size: 0.84rem;
	font-weight: 800;
}

.filter-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 10px;
}

.filter-row input,
.filter-row select,
.filter-button {
	min-height: 48px;
	border-radius: 13px;
	font: inherit;
}

.filter-row input,
.filter-row select {
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid var(--line);
	color: var(--ink-950);
	background: #f9fbfd;
}

.filter-row input:focus,
.filter-row select:focus {
	border-color: var(--brand-700);
	outline: 0;
	box-shadow: 0 0 0 4px rgba(29, 87, 150, 0.12);
}

.filter-button {
	padding: 10px 17px;
	border: 0;
	color: #fff;
	font-weight: 800;
	background: var(--brand-700);
	cursor: pointer;
}

.trip-list,
.allocation-list {
	display: grid;
	gap: 14px;
}

.trip-list {
	margin-right: -15px;
	margin-left: -15px;
}

.trip-card,
.allocation-card {
	padding: 18px;
	border: 1px solid rgba(220, 228, 238, 0.95);
	border-radius: 21px;
	background: var(--surface);
	box-shadow: 0 8px 26px rgba(29, 58, 93, 0.06);
}

.trip-card {
	padding-right: 10px;
	padding-left: 10px;
}

.trip-card-header,
.allocation-card-header,
.leg-title {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.trip-card-header h2,
.allocation-card-header h2 {
	margin: 2px 0 0;
	font-size: 1.12rem;
	line-height: 1.35;
}

.trip-card-header > div {
	min-width: 0;
	overflow-wrap: anywhere;
}

.trip-number {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.trip-number,
.allocation-card-header div > span {
	margin: 0;
	color: var(--brand-700);
	font-size: 0.72rem;
	font-weight: 800;
}

.trip-status,
.collection-status {
	flex: 0 0 auto;
	padding: 5px 9px;
	border-radius: 999px;
	color: var(--brand-700);
	font-size: 0.68rem;
	font-weight: 800;
	background: var(--brand-100);
}

.collection-status.collected {
	color: var(--success);
	background: var(--success-bg);
}

.collection-status.pending {
	color: #805b10;
	background: #fff2cc;
}

.trip-facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-top: 17px;
}

.trip-facts > div {
	min-width: 0;
	padding: 11px;
	border-radius: 13px;
	background: #f7f9fc;
}

.trip-facts span,
.trip-facts strong {
	display: block;
}

.trip-facts span {
	margin-bottom: 3px;
	color: var(--ink-500);
	font-size: 0.68rem;
}

.trip-facts strong {
	font-size: 0.8rem;
	overflow-wrap: anywhere;
}

.trip-details {
	margin-top: 14px;
	border-top: 1px solid var(--line);
}

.trip-details summary {
	padding: 14px 2px 0;
	color: var(--brand-700);
	font-size: 0.82rem;
	font-weight: 800;
	cursor: pointer;
}

.trip-record-list {
	display: grid;
	gap: 9px;
	margin-top: 12px;
}

.trip-record-card {
	padding: 12px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #f8fafc;
}

.trip-record-heading {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.trip-record-heading strong,
.trip-record-heading b {
	font-size: 0.8rem;
}

.trip-record-heading b {
	flex: 0 0 auto;
	color: var(--brand-700);
}

.trip-record-card p,
.trip-record-card small {
	display: block;
	margin: 7px 0 0;
	word-break: break-word;
}

.trip-record-card p {
	font-size: 0.78rem;
}

.trip-record-card .trip-operation-comment {
	white-space: pre-wrap;
}

.trip-record-card small {
	color: var(--ink-500);
	font-size: 0.7rem;
}

.trip-record-photo-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.trip-record-photo-list a {
	display: block;
	line-height: 0;
}

.trip-record-photo-list img {
	width: 72px;
	height: 64px;
	object-fit: cover;
	border: 1px solid var(--line);
	border-radius: 9px;
}

.leg-list {
	display: grid;
	gap: 9px;
	margin-top: 12px;
}

.leg-card {
	padding: 12px 3px;
	border: 1px solid #d9e8e3;
	border-radius: 12px;
	background: #f4fbf8;
	box-shadow: none;
}

.leg-details summary {
	padding: 0;
	font-size: 0.78rem;
}

.leg-details[open] summary {
	margin-bottom: 10px;
}

.leg-journey-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
	align-items: center;
	gap: 8px;
}

.leg-route-pair,
.leg-time-pair {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: end;
	gap: 8px;
	min-width: 0;
}

.leg-route-pair strong {
	min-width: 0;
	font-size: 0.8rem;
	overflow-wrap: anywhere;
}

.leg-route-pair span,
.leg-time-pair span {
	flex: none;
	color: var(--ink-500);
	font-weight: 800;
}

.leg-date-time {
	min-width: 0;
}

.leg-date-time:last-child {
	text-align: right;
}

.leg-date-time small,
.leg-date-time time {
	display: block;
}

.leg-date-time small {
	margin-bottom: 2px;
	color: var(--ink-500);
	font-size: 0.62rem;
}

.leg-date-time time {
	color: var(--ink-700);
	font-size: 0.7rem;
	font-weight: 700;
	overflow-wrap: anywhere;
}

.leg-count-row {
	display: flex;
	gap: 20px;
	margin-top: 10px;
	padding-top: 8px;
	border-top: 1px solid #d9e8e3;
}

.leg-count-row > div {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.72rem;
}

.leg-count-row span {
	color: var(--ink-500);
}

.leg-count-row b {
	color: var(--ink-950);
}

.traveller-list {
	margin-top: 10px;
	padding-top: 9px;
	border-top: 1px solid #d9e8e3;
}

.traveller-list > strong {
	display: block;
	color: var(--ink-700);
	font-size: 0.72rem;
}

.traveller-list ul {
	display: grid;
	gap: 10px;
	margin: 7px 0 0;
	padding: 0;
	list-style: none;
}

.traveller-ticket {
	padding: 9px 6px;
	border: 1px solid #aac9eb;
	border-left: 5px solid var(--brand-700);
	border-radius: 9px;
	background: #eef6ff;
	box-shadow: 0 4px 12px rgba(29, 87, 150, 0.12);
	font-size: 0.74rem;
}

.ticket-route {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px;
	margin-bottom: 6px;
	color: var(--brand-700);
	font-weight: 800;
	word-break: break-word;
}

.ticket-route-name {
	min-width: 0;
}

.ticket-main-row {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(58px, 0.55fr) minmax(0, 1fr);
	align-items: start;
	gap: 10px;
}

.ticket-person {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 3px;
	min-width: 0;
}

.ticket-person strong {
	min-width: 0;
	overflow-wrap: anywhere;
	font-weight: 700;
}

.ticket-person > span {
	flex: none;
}

.ticket-person a {
	min-width: 0;
	overflow-wrap: anywhere;
	color: var(--brand-700);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ticket-route .ticket-driver-collection {
	display: inline-flex;
	align-items: baseline;
	gap: 2px;
	color: #7a4b00;
	white-space: nowrap;
}

.ticket-driver-collection small {
	font-size: 0.61rem;
	font-weight: 700;
}

.ticket-driver-collection b {
	font-size: 0.7rem;
}

.ticket-display-field {
	min-width: 0;
}

.ticket-display-field small,
.ticket-display-field strong,
.ticket-display-field span,
.ticket-display-field a {
	display: block;
}

.ticket-display-field small {
	margin-bottom: 2px;
	color: var(--ink-500);
	font-size: 0.64rem;
}

.ticket-display-field strong,
.ticket-display-field span,
.ticket-display-field a {
	overflow: hidden;
	font-weight: 700;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ticket-display-field a {
	color: var(--brand-700);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ticket-addon-section {
	margin-top: 10px;
	padding-top: 9px;
	border-top: 1px solid var(--line);
}

.ticket-addon-section summary {
	color: var(--brand-700);
	font-size: 0.78rem;
	font-weight: 800;
	cursor: pointer;
}

.ticket-addon-section[open] summary {
	margin-bottom: 9px;
}

.ticket-addon-list {
	display: grid;
	gap: 7px;
}

.ticket-addon-card {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
	align-items: start;
	gap: 7px 10px;
	padding: 8px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: #f7f9fc;
}

.ticket-addon-card .addon-type {
	padding-top: 0.9rem;
	white-space: nowrap;
}

.ticket-addon-card .addon-name span,
.ticket-addon-card .addon-comment span,
.ticket-main-row .ticket-display-field:last-child span {
	overflow: visible;
	text-overflow: initial;
	white-space: normal;
	word-break: break-word;
}

.compact-empty {
	min-height: 190px;
	margin-bottom: 0;
}

.account-hero {
	justify-content: flex-start;
	margin-bottom: 22px;
}

.account-hero h1,
.account-hero p {
	margin: 0;
}

.account-hero h1 {
	font-size: 1.55rem;
}

.account-hero div > p:last-child {
	margin-top: 3px;
	color: var(--ink-700);
	font-size: 0.85rem;
}

.profile-avatar.large {
	flex-basis: 68px;
	width: 68px;
	height: 68px;
	font-size: 1.45rem;
}

.balance-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 18px;
	padding: 23px;
	border-radius: 22px;
	color: #fff;
	background: linear-gradient(135deg, var(--brand-700), var(--brand-950));
	box-shadow: 0 16px 34px rgba(18, 56, 107, 0.22);
}

.account-summary-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 18px;
}

.account-summary-grid .balance-summary {
	min-width: 0;
	margin-bottom: 0;
	padding: 18px;
}

.account-summary-grid .balance-summary strong {
	font-size: clamp(1.4rem, 6vw, 2.4rem);
}

.bonus-summary {
	background: linear-gradient(135deg, #35745f, #153e34);
}

.balance-summary p {
	margin: 0 0 4px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	opacity: 0.78;
}

.account-summary-grid .balance-summary p {
	font-family: "Fleet Myanmar", "Noto Sans Myanmar", "Myanmar Text", sans-serif;
	letter-spacing: normal;
}

.balance-summary strong {
	font-size: clamp(2rem, 10vw, 3rem);
	line-height: 1;
}

.balance-summary > div > span {
	margin-left: 5px;
	font-size: 0.78rem;
	font-weight: 800;
	opacity: 0.8;
}

.balance-summary-icon {
	display: grid;
	flex: 0 0 54px;
	width: 54px;
	height: 54px;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 17px;
	background: rgba(255, 255, 255, 0.12);
}

.balance-summary-icon svg {
	width: 29px;
	height: 29px;
}

.account-details h2 {
	margin: 0 0 15px;
	font-size: 1.1rem;
}

.account-password h2 {
	margin: 0;
	font-size: 1.1rem;
}

.password-change-form .primary-button {
	width: 100%;
	margin-top: 8px;
}

.account-details dl,
.allocation-facts {
	margin: 0;
}

.account-details dl > div,
.allocation-facts > div {
	display: grid;
	grid-template-columns: minmax(105px, 0.8fr) minmax(0, 1.2fr);
	gap: 12px;
	padding: 11px 0;
	border-bottom: 1px solid #edf1f6;
}

.account-details dl > div:last-child,
.allocation-facts > div:last-child {
	border-bottom: 0;
}

.account-details dt,
.allocation-facts dt {
	color: var(--ink-500);
	font-size: 0.76rem;
}

.account-details dd,
.allocation-facts dd {
	margin: 0;
	font-size: 0.8rem;
	font-weight: 700;
	text-align: right;
	word-break: break-word;
}

.account-log .section-heading {
	margin-bottom: 13px;
}

.account-log .section-heading h2 {
	margin: 0;
}

.log-count {
	min-width: 29px;
	padding: 4px 8px;
	border-radius: 999px;
	color: var(--brand-700);
	font-size: 0.75rem;
	font-weight: 800;
	text-align: center;
	background: var(--brand-100);
}

.transaction-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.transaction-list li {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 11px;
	padding: 15px 0;
	border-bottom: 1px solid var(--line);
}

.transaction-list li:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.transaction-icon {
	display: grid;
	width: 40px;
	height: 40px;
	place-items: center;
	border-radius: 13px;
}

.transaction-icon.deposit {
	color: var(--success);
	background: var(--success-bg);
}

.transaction-icon.withdraw {
	color: var(--danger);
	background: var(--danger-bg);
}

.transaction-icon.withdraw svg {
	transform: rotate(180deg);
}

.transaction-icon svg {
	width: 20px;
	height: 20px;
}

.transaction-main,
.transaction-values {
	min-width: 0;
}

.transaction-main strong,
.transaction-main small,
.transaction-values strong,
.transaction-values small {
	display: block;
}

.transaction-main strong {
	overflow: hidden;
	font-size: 0.82rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.transaction-main small,
.transaction-values small {
	color: var(--ink-500);
	font-size: 0.68rem;
}

.transaction-values {
	text-align: right;
}

.transaction-values strong {
	font-size: 0.86rem;
}

.transaction-values .positive {
	color: var(--success);
}

.transaction-values .negative {
	color: var(--danger);
}

.allocation-amount {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin: 16px 0 7px;
	padding: 13px;
	border-radius: 14px;
	background: #f7f9fc;
}

.allocation-amount span {
	color: var(--ink-500);
	font-size: 0.76rem;
}

.allocation-amount strong {
	font-size: 1rem;
}

@media (min-width: 760px) {
	.login-shell {
		width: 440px;
	}

	.app-shell {
		width: min(100%, 860px);
		border-right: 1px solid var(--line);
		border-left: 1px solid var(--line);
		box-shadow: 0 0 45px rgba(29, 58, 93, 0.08);
	}

	.bottom-navigation {
		right: 50%;
		left: auto;
		width: min(100%, 860px);
		transform: translateX(50%);
	}
}

@media (max-width: 600px) {
	.ticket-main-row {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.ticket-person {
		display: flex;
		flex-wrap: nowrap;
		gap: 3px;
		font-size: 0.86rem;
		white-space: nowrap;
	}

	.ticket-person strong,
	.ticket-person a {
		overflow-wrap: normal;
		white-space: nowrap;
	}

	.ticket-person strong {
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.ticket-person a {
		flex: none;
	}

	.ticket-main-row > .ticket-display-field:last-child {
		grid-column: 1 / -1;
	}

	.trip-facts,
	.leg-journey-row,
	.leg-time-pair {
		grid-template-columns: minmax(0, 1fr);
	}

	.leg-journey-row,
	.leg-time-pair {
		gap: 12px;
	}

	.leg-route-pair {
		align-items: center;
	}

	.leg-time-pair > span {
		display: none;
	}

	.leg-date-time:last-child {
		text-align: left;
	}

	.trip-facts span,
	.leg-date-time small {
		font-size: 0.8rem;
	}

	.trip-facts strong,
	.leg-route-pair strong,
	.leg-date-time time {
		font-size: 1rem;
	}

	.account-summary-grid .balance-summary-icon {
		display: none;
	}
}

@media (max-width: 360px) {
	.login-page {
		padding-right: calc(14px + var(--safe-right));
		padding-left: calc(14px + var(--safe-left));
	}

	.login-card {
		padding: 22px 18px;
	}

	.quick-grid {
		grid-template-columns: 1fr;
	}

	.filter-row {
		grid-template-columns: 1fr;
	}

}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
