/* FivePlat PWA - Enterprise Professional Theme */
/* Transport Demand Management - Light Theme */

/* Global SVG icon sizing */
svg {
	width: 1em;
	height: 1em;
	vertical-align: middle;
}

:root {
	/* Primary - AG Digital Blue */
	--primary: #225588;
	--primary-light: #2d6ba6;
	--primary-dark: #1a4470;

	/* Secondary - Cool Steel */
	--secondary: #64748B;
	--secondary-light: #94A3B8;

	/* Semantic Colors */
	--success: #059669;
	--success-light: #10B981;
	--success-bg: #ECFDF5;
	--success-border: #A7F3D0;

	--warning: #EA580C;
	--warning-light: #F97316;
	--warning-bg: #FFF7ED;
	--warning-border: #FED7AA;

	--danger: #DC2626;
	--danger-light: #EF4444;
	--danger-bg: #FEF2F2;
	--danger-border: #FECACA;

	--info: #225588;
	--info-light: #3b82f6;
	--info-bg: #eff6ff;
	--info-border: #bfdbfe;

	--pending: #6B7280;
	--pending-light: #9CA3AF;
	--pending-bg: #F3F4F6;
	--pending-border: #E5E7EB;

	/* Background & Surfaces */
	--bg-gradient: linear-gradient(145deg, #F3F4F6 0%, #E5E7EB 50%, #D1D5DB 100%);
	--bg-solid: #F3F4F6;
	--surface: #F1F5F9;
	--surface-elevated: #F1F5F9;

	/* Glass Effect */
	--glass-bg: rgba(241, 245, 249, 0.92);
	--glass-bg-hover: rgba(241, 245, 249, 0.98);
	--glass-border: rgba(34, 85, 136, 0.12);
	--glass-shadow: 0 4px 24px rgba(34, 85, 136, 0.08), 0 2px 8px rgba(34, 85, 136, 0.04);
	--glass-shadow-hover: 0 8px 32px rgba(34, 85, 136, 0.12), 0 4px 12px rgba(34, 85, 136, 0.06);
	--glass-blur: blur(12px);

	/* Text */
	--text-primary: #1E293B;
	--text-secondary: #475569;
	--text-muted: #64748B;
	--text-light: #94A3B8;
	--text-inverse: #FFFFFF;

	/* Borders */
	--border-light: #E2E8F0;
	--border-medium: #CBD5E1;
	--border-strong: #94A3B8;

	/* Radius */
	--radius: 10px;
	--radius-sm: 6px;
	--radius-xs: 4px;
	--radius-full: 9999px;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
	background: var(--bg-gradient);
	background-attachment: fixed;
	color: var(--text-primary);
	line-height: 1.5;
	min-height: 100vh;
}

/* ============================================
   HEADER
   ============================================ */

.app-header {
	background: var(--primary);
	color: var(--text-inverse);
	padding: 16px;
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 2px 16px rgba(34, 85, 136, 0.3);
}

.app-header h1 {
	font-size: 20px;
	font-weight: 600;
	text-align: center;
	letter-spacing: -0.3px;
}

.app-header .subtitle {
	font-size: 13px;
	opacity: 0.85;
	text-align: center;
	margin-top: 2px;
	font-weight: 400;
}

.header-with-back {
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 1200px;
	margin: 0 auto;
	width: 100%;
}

.back-btn {
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.18);
	color: white;
	width: 44px;
	height: 44px;
	border-radius: var(--radius-sm);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 20px;
	text-decoration: none;
	transition: all 0.15s ease;
}

.back-btn:hover {
	background: rgba(255, 255, 255, 0.2);
}

.back-btn svg {
	width: 20px;
	height: 20px;
}

.header-title {
	flex: 1;
}

.header-title h1 {
	text-align: left;
	font-size: 20px;
	line-height: 1.2;
	letter-spacing: -0.3px;
}

.header-title .subtitle {
	text-align: left;
	font-size: 13px;
	margin-top: 2px;
}

/* Dashboard Header */
.header-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 1200px;
	margin: 0 auto 12px;
	width: 100%;
}

.fp-user-info {
	display: flex;
	align-items: center;
	gap: 10px;
}

.fp-avatar {
	width: 42px;
	height: 42px;
	background: #F1F5F9;
	border: 2px solid rgba(226, 232, 240, 0.9);
	border-radius: var(--radius-sm);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 700;
	color: var(--primary);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.fp-user-details {
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.fp-user-name {
	font-size: 15px;
	font-weight: 600;
	color: white;
}

.fp-user-company {
	font-size: 12px;
	opacity: 0.85;
	font-weight: 400;
}

.settings-btn {
	width: 40px;
	height: 40px;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: var(--radius-sm);
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	text-decoration: none;
	transition: all 0.15s ease;
}

.settings-btn:hover, .settings-btn:active {
	background: rgba(255, 255, 255, 0.2);
}

.settings-btn svg {
	width: 20px;
	height: 20px;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.app-content {
	padding: 16px 16px 72px;
	max-width: 1200px;
	margin: 0 auto;
	width: 100%;
}

.section-header {
	font-size: 11px;
	font-weight: 700;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 1px;
	margin: 24px 0 12px;
	padding-left: 2px;
}

/* ============================================
   ORDER CARDS
   ============================================ */

.fp-card {
	background: var(--surface);
	border-radius: var(--radius);
	box-shadow: var(--glass-shadow);
	margin-bottom: 12px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	display: block;
	transition: all 0.2s ease;
	border: 1px solid var(--border-light);
}

.fp-card:active {
	transform: scale(0.98);
}

.fp-card:hover {
	background: var(--glass-bg-hover);
	box-shadow: var(--glass-shadow-hover);
	border-color: var(--border-medium);
	transform: translateY(-2px);
}

.fp-card-header {
	padding: 16px 16px 10px;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}

.fp-card-body {
	padding: 10px 16px 14px;
	border-top: 1px solid var(--border-light);
}

.fp-order-id {
	font-size: 11px;
	color: var(--text-muted);
	margin-bottom: 3px;
	letter-spacing: 0.3px;
	font-weight: 600;
}

.fp-order-client {
	font-size: 11px;
	color: var(--text-light);
	margin-bottom: 4px;
	font-weight: 500;
	letter-spacing: 0.2px;
	text-transform: uppercase;
}

.fp-route {
	font-size: 15px;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--text-primary);
}

.route-arrow {
	color: var(--primary);
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	line-height: 1;
}

.fp-card-meta {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

.fp-meta-item {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 13px;
	color: var(--text-secondary);
	font-weight: 500;
}

.fp-card-footer {
	padding: 8px 16px 16px;
	border-top: 1px solid var(--border-light);
	margin-top: 4px;
}

/* ============================================
   STATUS BADGES
   ============================================ */

.status-badge {
	display: inline-flex;
	align-items: center;
	padding: 5px 10px;
	border-radius: var(--radius-xs);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.3px;
	text-transform: uppercase;
}

.status-creada {
	background: var(--info-bg);
	color: var(--info);
	border: 1px solid var(--info-border);
}

.status-aceptada {
	background: var(--success-bg);
	color: var(--success);
	border: 1px solid var(--success-border);
}

.status-planificada {
	background: var(--warning-bg);
	color: var(--warning);
	border: 1px solid var(--warning-border);
}

.status-en-transito {
	background: #EFF6FF;
	color: #2563EB;
	border: 1px solid #93C5FD;
}

.status-entregada {
	background: #059669;
	color: white;
	border: 1px solid #059669;
}

.status-cancelada {
	background: var(--danger-bg);
	color: var(--danger);
	border: 1px solid var(--danger-border);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 12px 20px;
	border: none;
	border-radius: var(--radius-sm);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.15s ease;
	text-decoration: none;
	min-height: 48px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.btn-primary {
	background: var(--primary);
	color: white;
	box-shadow: 0 4px 14px rgba(34, 85, 136, 0.4);
}

.btn-primary:hover {
	background: var(--primary-light);
	box-shadow: 0 6px 20px rgba(34, 85, 136, 0.5);
}

.btn-success {
	background: var(--success);
	color: white;
	box-shadow: 0 4px 14px rgba(5, 150, 105, 0.4);
}

.btn-success:hover {
	background: var(--success-light);
}

.btn-warning {
	background: var(--warning);
	color: white;
	box-shadow: 0 4px 14px rgba(234, 88, 12, 0.4);
}

.btn-danger {
	background: var(--danger);
	color: white;
	box-shadow: 0 4px 14px rgba(220, 38, 38, 0.4);
}

.btn-danger:hover {
	background: var(--danger-light);
}

.btn-outline {
	background: var(--glass-bg);
	color: var(--primary);
	border: 2px solid var(--primary);
	box-shadow: none;
}

.btn-outline:hover {
	background: var(--primary);
	color: white;
}

.btn-danger-outline {
	background: var(--glass-bg);
	color: var(--danger);
	border: 2px solid var(--danger);
}

.btn-danger-outline:hover {
	background: var(--danger);
	color: white;
}

.btn-secondary {
	background: var(--secondary);
	color: white;
}

.btn-lg {
	padding: 16px 28px;
	font-size: 15px;
	min-height: 54px;
}

.btn-sm {
	padding: 8px 14px;
	font-size: 12px;
	min-height: 36px;
}

.btn-icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

/* ============================================
   INFO CARDS
   ============================================ */

.info-card {
	background: var(--surface);
	border-radius: var(--radius);
	padding: 0;
	margin-bottom: 12px;
	overflow: hidden;
	border: 1px solid var(--border-light);
	box-shadow: var(--glass-shadow);
}

.info-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 16px;
	border-bottom: 1px solid var(--border-light);
}

.info-row:last-child {
	border-bottom: none;
}

.info-label {
	color: var(--text-muted);
	font-size: 13px;
	font-weight: 500;
}

.info-value {
	font-weight: 600;
	font-size: 13px;
	color: var(--text-primary);
}

/* ============================================
   LANDING PAGE - MODE SELECTOR
   ============================================ */

.fp-landing {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: calc(100vh - 80px);
	padding: 24px 16px;
	gap: 20px;
}

.fp-landing-title {
	font-size: 28px;
	font-weight: 700;
	color: var(--text-primary);
	text-align: center;
	margin-bottom: 8px;
}

.fp-landing-subtitle {
	font-size: 15px;
	color: var(--text-secondary);
	text-align: center;
	margin-bottom: 24px;
}

.fp-mode-card {
	background: var(--glass-bg);
	border: 1px solid var(--glass-border);
	border-radius: var(--radius);
	box-shadow: var(--glass-shadow);
	padding: 32px 24px;
	text-align: center;
	text-decoration: none;
	color: inherit;
	display: block;
	width: 100%;
	max-width: 400px;
	transition: all 0.2s ease;
}

.fp-mode-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--glass-shadow-hover);
	border-color: var(--primary);
}

.fp-mode-card:active {
	transform: scale(0.98);
}

.fp-mode-icon {
	font-size: 48px;
	margin-bottom: 16px;
}

.fp-mode-title {
	font-size: 20px;
	font-weight: 700;
	color: var(--text-primary);
	margin-bottom: 6px;
}

.fp-mode-desc {
	font-size: 14px;
	color: var(--text-secondary);
	line-height: 1.5;
}

/* ============================================
   FORMS
   ============================================ */

.fp-form-group {
	margin-bottom: 16px;
}

.fp-form-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--text-secondary);
	margin-bottom: 6px;
}

.fp-form-input,
.fp-form-select,
.fp-form-textarea {
	width: 100%;
	padding: 12px 14px;
	background: var(--bg-solid);
	border: 1px solid var(--border-medium);
	border-radius: var(--radius-sm);
	font-size: 15px;
	font-family: inherit;
	color: var(--text-primary);
	transition: all 0.15s ease;
}

.fp-form-input:focus,
.fp-form-select:focus,
.fp-form-textarea:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(34, 85, 136, 0.1);
}

.fp-form-textarea {
	resize: vertical;
	min-height: 80px;
}

.fp-form-input::placeholder,
.fp-form-textarea::placeholder {
	color: var(--text-muted);
}

/* Toggle switch */
.fp-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 0;
}

.fp-toggle-label {
	font-size: 14px;
	font-weight: 500;
	color: var(--text-primary);
}

.fp-switch {
	position: relative;
	width: 48px;
	height: 28px;
}

.fp-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.fp-switch-slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: var(--border-medium);
	border-radius: var(--radius-full);
	transition: 0.2s;
}

.fp-switch-slider:before {
	content: "";
	position: absolute;
	height: 22px;
	width: 22px;
	left: 3px;
	bottom: 3px;
	background: white;
	border-radius: 50%;
	transition: 0.2s;
}

.fp-switch input:checked + .fp-switch-slider {
	background: var(--success);
}

.fp-switch input:checked + .fp-switch-slider:before {
	transform: translateX(20px);
}

/* ============================================
   OFFER CARDS
   ============================================ */

.fp-offer-card {
	background: var(--surface);
	border-radius: var(--radius);
	box-shadow: var(--glass-shadow);
	margin-bottom: 12px;
	padding: 16px;
	border: 1px solid var(--border-light);
}

.fp-offer-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 8px;
}

.fp-offer-transporter {
	font-size: 15px;
	font-weight: 700;
	color: var(--text-primary);
}

.fp-offer-rating {
	font-size: 13px;
	color: var(--warning);
	font-weight: 600;
}

.fp-offer-price {
	font-size: 22px;
	font-weight: 700;
	color: var(--primary);
	margin-bottom: 6px;
}

.fp-offer-message {
	font-size: 13px;
	color: var(--text-secondary);
	margin-bottom: 12px;
	line-height: 1.5;
}

.fp-offer-actions {
	display: flex;
	gap: 8px;
}

.fp-offer-actions .btn {
	flex: 1;
}

/* ============================================
   BID MODAL
   ============================================ */

.fp-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 200;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.fp-modal-overlay.active {
	display: flex;
}

.fp-modal {
	background: var(--surface);
	border-radius: var(--radius);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	padding: 24px;
	width: 100%;
	max-width: 400px;
}

.fp-modal-title {
	font-size: 18px;
	font-weight: 700;
	color: var(--text-primary);
	margin-bottom: 16px;
}

.fp-modal-actions {
	display: flex;
	gap: 8px;
	margin-top: 20px;
}

.fp-modal-actions .btn {
	flex: 1;
}

/* ============================================
   SETTINGS PAGE
   ============================================ */

.fp-settings-card {
	background: var(--surface);
	border-radius: var(--radius);
	box-shadow: var(--glass-shadow);
	margin-bottom: 16px;
	border: 1px solid var(--border-light);
	padding: 20px;
}

.fp-settings-profile {
	text-align: center;
	padding: 24px 16px;
}

.fp-settings-avatar {
	width: 72px;
	height: 72px;
	background: var(--primary);
	color: white;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 12px;
}

.fp-settings-name {
	font-size: 18px;
	font-weight: 700;
	color: var(--text-primary);
	margin-bottom: 4px;
}

.fp-settings-role {
	font-size: 13px;
	color: var(--text-muted);
}

.fp-settings-email {
	font-size: 13px;
	color: var(--text-secondary);
	margin-top: 2px;
}

.fp-settings-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 14px 0;
	border-bottom: 1px solid var(--border-light);
}

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

.fp-settings-item-label {
	font-size: 14px;
	font-weight: 500;
	color: var(--text-primary);
}

/* ============================================
   FAB (Floating Action Button)
   ============================================ */

.fp-fab {
	position: fixed;
	bottom: 24px;
	right: 24px;
	width: 56px;
	height: 56px;
	background: var(--primary);
	color: white;
	border: none;
	border-radius: 50%;
	box-shadow: 0 4px 16px rgba(34, 85, 136, 0.4);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s ease;
	z-index: 50;
	text-decoration: none;
}

.fp-fab:hover {
	transform: scale(1.1);
	box-shadow: 0 6px 24px rgba(34, 85, 136, 0.5);
}

.fp-fab svg {
	width: 24px;
	height: 24px;
}

/* ============================================
   TOASTS
   ============================================ */

.toast {
	position: fixed;
	bottom: 90px;
	left: 16px;
	right: 16px;
	padding: 14px 16px;
	border-radius: var(--radius-sm);
	font-size: 14px;
	font-weight: 500;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
	z-index: 1000;
	animation: slideUp 0.25s ease;
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: 500px;
	margin-left: auto;
	margin-right: auto;
}

.toast-success { background: var(--success); color: white; }
.toast-warning { background: var(--warning); color: white; }
.toast-danger { background: var(--danger); color: white; }
.toast-info { background: var(--info); color: white; }

@keyframes slideUp {
	from { transform: translateY(16px); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}

@keyframes slideDown {
	from { transform: translateY(0); opacity: 1; }
	to { transform: translateY(16px); opacity: 0; }
}

/* ============================================
   EMPTY STATE
   ============================================ */

.empty-state {
	text-align: center;
	padding: 40px 20px;
	color: var(--text-muted);
}

.empty-state-icon {
	font-size: 48px;
	margin-bottom: 12px;
	opacity: 0.4;
}

.empty-state-title {
	font-size: 17px;
	font-weight: 600;
	color: var(--text-secondary);
	margin-bottom: 6px;
}

.empty-state-text {
	font-size: 14px;
	line-height: 1.5;
}

/* ============================================
   FIXED ACTIONS
   ============================================ */

.action-buttons {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	padding: 12px 16px;
	padding-bottom: max(12px, env(safe-area-inset-bottom));
	box-shadow: 0 -2px 16px rgba(34, 85, 136, 0.08);
	display: flex;
	flex-direction: column;
	gap: 8px;
	border-top: 1px solid var(--border-light);
}

.action-buttons > .btn {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	width: 100%;
}

.action-buttons-row {
	display: flex;
	gap: 8px;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	width: 100%;
}

.action-buttons-row .btn {
	flex: 1;
}

.action-buttons-above-nav {
	bottom: 66px;
}

/* ============================================
   ORDER SUMMARY (in offers page)
   ============================================ */

.fp-order-summary {
	background: var(--info-bg);
	border: 1px solid var(--info-border);
	border-radius: var(--radius);
	padding: 14px 16px;
	margin-bottom: 16px;
}

.fp-order-summary-title {
	font-size: 15px;
	font-weight: 700;
	color: var(--text-primary);
	margin-bottom: 4px;
}

.fp-order-summary-detail {
	font-size: 13px;
	color: var(--text-secondary);
}

/* ============================================
   LOADING
   ============================================ */

.spinner {
	width: 22px;
	height: 22px;
	border: 3px solid var(--border-light);
	border-top-color: var(--primary);
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

/* ============================================
   BOTTOM NAVIGATION
   ============================================ */

.fp-bottom-nav {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	display: flex;
	justify-content: space-around;
	align-items: center;
	padding: 8px 0;
	padding-bottom: max(8px, env(safe-area-inset-bottom));
	border-top: 1px solid var(--border-light);
	box-shadow: 0 -2px 16px rgba(34, 85, 136, 0.08);
	z-index: 50;
}

.fp-nav-tab {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	text-decoration: none;
	color: var(--text-muted);
	font-size: 11px;
	font-weight: 600;
	padding: 4px 16px;
	border-radius: var(--radius-sm);
	transition: color 0.15s ease;
	position: relative;
	min-width: 64px;
}

.fp-nav-tab svg {
	width: 22px;
	height: 22px;
}

.fp-nav-tab.active {
	color: var(--primary);
}

.fp-nav-tab.active::after {
	content: "";
	position: absolute;
	bottom: -4px;
	left: 50%;
	transform: translateX(-50%);
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--primary);
}

.fp-nav-tab:focus-visible {
	outline: 2px solid var(--primary);
	outline-offset: 2px;
}

/* ============================================
   FILTER CHIPS
   ============================================ */

.fp-filter-row {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding: 0 0 12px;
	-ms-overflow-style: none;
	scrollbar-width: none;
}

.fp-filter-row::-webkit-scrollbar {
	display: none;
}

.fp-filter-chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 6px 14px;
	height: 32px;
	border-radius: var(--radius-full);
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
	transition: all 0.15s ease;
	border: 1.5px solid var(--border-medium);
	background: transparent;
	color: var(--text-secondary);
	font-family: inherit;
}

.fp-filter-chip:hover {
	border-color: var(--primary);
	color: var(--primary);
}

.fp-filter-chip.active {
	background: var(--primary);
	color: white;
	border-color: var(--primary);
}

.fp-filter-chip:focus-visible {
	outline: 2px solid var(--primary);
	outline-offset: 2px;
}

/* ============================================
   CARD FOOTER META (enriched cards)
   ============================================ */

.fp-card-meta-split {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.fp-card-meta-split > div {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.fp-offer-badge {
	display: inline-flex;
	align-items: center;
	padding: 5px 10px;
	border-radius: var(--radius-xs);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.3px;
	background: var(--warning-bg);
	color: var(--warning);
	border: 1px solid var(--warning-border);
	white-space: nowrap;
}

.fp-card-price {
	font-size: 13px;
	font-weight: 700;
	color: var(--success);
	white-space: nowrap;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.btn:focus-visible,
.fp-card:focus-visible,
.back-btn:focus-visible,
.settings-btn:focus-visible,
.fp-mode-card:focus-visible {
	outline: 2px solid var(--primary);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* ============================================
   ORDER SECTIONS (Semantic Grouping)
   ============================================ */

.fp-section {
	margin-bottom: 24px;
}

/* Card accents: Atencion - left border warning */
.fp-card-atencion {
	border-left: 3px solid var(--warning);
}

/* Card accent: has pending offers - subtle glow */
.fp-card-has-offers {
	border-left: 3px solid var(--warning);
	background: linear-gradient(90deg, var(--warning-bg) 0%, var(--surface) 15%);
}

/* Card accents: Proceso - left border primary */
.fp-card-proceso {
	border-left: 3px solid var(--primary);
}

/* Card accent: En Transito - info border + subtle glow */
.fp-card-en-transito {
	border-left: 3px solid var(--info-light);
	background: linear-gradient(90deg, var(--info-bg) 0%, var(--surface) 15%);
}

/* Card accents: Finalizado - reduced opacity */
.fp-card-finalizado {
	opacity: 0.85;
}

/* ============================================
   VEHICLE CARDS (Pedido detail)
   ============================================ */

.fp-vehicles-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 20px 0 10px;
}

.fp-vehicles-title {
	font-size: 15px;
	font-weight: 700;
	color: var(--text-primary);
}

.fp-vehicles-count {
	font-size: 12px;
	color: var(--text-muted);
	font-weight: 600;
}

.fp-vehicle-card {
	background: var(--surface);
	border: 1px solid var(--border-light);
	border-radius: var(--radius);
	box-shadow: var(--glass-shadow);
	padding: 14px 16px;
	margin-bottom: 8px;
}

.fp-vehicle-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 4px;
}

.fp-vehicle-plate {
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.8px;
	color: var(--text-primary);
	font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
}

.fp-vehicle-index {
	font-size: 11px;
	color: var(--text-muted);
	font-weight: 600;
}

.fp-vehicle-model {
	font-size: 13px;
	color: var(--text-secondary);
	font-weight: 500;
	margin-bottom: 10px;
}

.fp-vehicle-tags {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.fp-vehicle-tag {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	padding: 3px 9px;
	border-radius: var(--radius-full);
	font-size: 11px;
	font-weight: 600;
}

.fp-vehicle-tag-ok {
	background: var(--success-bg);
	color: var(--success);
	border: 1px solid var(--success-border);
}

.fp-vehicle-tag-warn {
	background: var(--danger-bg);
	color: var(--danger);
	border: 1px solid var(--danger-border);
}

/* ============================================
   MOBILE
   ============================================ */

/* ============================================
   FILTER CONTROLS (transportista filter bar)
   ============================================ */

.fp-order-card {
	border-left: 3px solid var(--primary);
}

.fp-filter-controls {
	margin-bottom: 12px;
}

.fp-filter-bar {
	display: flex;
	gap: 6px;
	align-items: center;
}

.fp-filter-bar + .fp-filter-bar {
	margin-top: 6px;
}

.fp-filter-field {
	flex: 1;
	min-width: 0;
}

.fp-filter-field-sm {
	flex: 0 0 90px;
}

.fp-filter-input {
	width: 100%;
	padding: 8px 10px;
	background: var(--bg-solid);
	border: 1px solid var(--border-medium);
	border-radius: var(--radius-sm);
	font-size: 13px;
	font-family: inherit;
	color: var(--text-primary);
	transition: border-color 0.15s ease;
}

.fp-filter-input:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 2px rgba(34, 85, 136, 0.1);
}

.fp-filter-input::placeholder {
	color: var(--text-muted);
}

.fp-filter-sort {
	flex-shrink: 0;
	width: auto;
	padding: 8px 28px 8px 10px;
	background: var(--bg-solid);
	border: 1px solid var(--border-medium);
	border-radius: var(--radius-sm);
	font-size: 13px;
	font-family: inherit;
	color: var(--text-primary);
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 8px center;
	cursor: pointer;
	transition: border-color 0.15s ease;
}

.fp-filter-sort:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 2px rgba(34, 85, 136, 0.1);
}

/* ============================================
   MOBILE
   ============================================ */

@media (max-width: 360px) {
	.fp-avatar { width: 38px; height: 38px; font-size: 13px; }
	.fp-user-name { font-size: 14px; }
	.settings-btn, .back-btn { width: 38px; height: 38px; }
	.fp-landing-title { font-size: 24px; }
	.fp-mode-card { padding: 24px 16px; }
}
