/*!***********************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./node_modules/leaflet/dist/leaflet.css ***!
  \***********************************************************************************************************************************************************************************************************************************************************************************/
/* required styles */

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
	position: absolute;
	left: 0;
	top: 0;
	}
.leaflet-container {
	overflow: hidden;
	}
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
	-webkit-user-select: none;
	   -moz-user-select: none;
	        user-select: none;
	  -webkit-user-drag: none;
	}
/* Prevents IE11 from highlighting tiles in blue */
.leaflet-tile::selection {
	background: transparent;
}
/* Safari renders non-retina tile on retina better with this, but Chrome is worse */
.leaflet-safari .leaflet-tile {
	image-rendering: -webkit-optimize-contrast;
	}
/* hack that prevents hw layers "stretching" when loading new tiles */
.leaflet-safari .leaflet-tile-container {
	width: 1600px;
	height: 1600px;
	-webkit-transform-origin: 0 0;
	}
.leaflet-marker-icon,
.leaflet-marker-shadow {
	display: block;
	}
/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
.leaflet-container .leaflet-overlay-pane svg {
	max-width: none !important;
	max-height: none !important;
	}
.leaflet-container .leaflet-marker-pane img,
.leaflet-container .leaflet-shadow-pane img,
.leaflet-container .leaflet-tile-pane img,
.leaflet-container img.leaflet-image-layer,
.leaflet-container .leaflet-tile {
	max-width: none !important;
	max-height: none !important;
	width: auto;
	padding: 0;
	}

.leaflet-container img.leaflet-tile {
	/* See: https://bugs.chromium.org/p/chromium/issues/detail?id=600120 */
	mix-blend-mode: plus-lighter;
}

.leaflet-container.leaflet-touch-zoom {
	touch-action: pan-x pan-y;
	}
.leaflet-container.leaflet-touch-drag {
	/* Fallback for FF which doesn't support pinch-zoom */
	touch-action: none;
	touch-action: pinch-zoom;
}
.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
	touch-action: none;
}
.leaflet-container {
	-webkit-tap-highlight-color: transparent;
}
.leaflet-container a {
	-webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);
}
.leaflet-tile {
	filter: inherit;
	visibility: hidden;
	}
.leaflet-tile-loaded {
	visibility: inherit;
	}
.leaflet-zoom-box {
	width: 0;
	height: 0;
	box-sizing: border-box;
	z-index: 800;
	}
/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
.leaflet-overlay-pane svg {
	-moz-user-select: none;
	}

.leaflet-pane         { z-index: 400; }

.leaflet-tile-pane    { z-index: 200; }
.leaflet-overlay-pane { z-index: 400; }
.leaflet-shadow-pane  { z-index: 500; }
.leaflet-marker-pane  { z-index: 600; }
.leaflet-tooltip-pane   { z-index: 650; }
.leaflet-popup-pane   { z-index: 700; }

.leaflet-map-pane canvas { z-index: 100; }
.leaflet-map-pane svg    { z-index: 200; }

.leaflet-vml-shape {
	width: 1px;
	height: 1px;
	}
.lvml {
	behavior: url(#default#VML);
	display: inline-block;
	position: absolute;
	}


/* control positioning */

.leaflet-control {
	position: relative;
	z-index: 800;
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}
.leaflet-top,
.leaflet-bottom {
	position: absolute;
	z-index: 1000;
	pointer-events: none;
	}
.leaflet-top {
	top: 0;
	}
.leaflet-right {
	right: 0;
	}
.leaflet-bottom {
	bottom: 0;
	}
.leaflet-left {
	left: 0;
	}
.leaflet-control {
	float: left;
	clear: both;
	}
.leaflet-right .leaflet-control {
	float: right;
	}
.leaflet-top .leaflet-control {
	margin-top: 10px;
	}
.leaflet-bottom .leaflet-control {
	margin-bottom: 10px;
	}
.leaflet-left .leaflet-control {
	margin-left: 10px;
	}
.leaflet-right .leaflet-control {
	margin-right: 10px;
	}


/* zoom and fade animations */

.leaflet-fade-anim .leaflet-popup {
	opacity: 0;
	transition: opacity 0.2s linear;
	}
.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
	opacity: 1;
	}
.leaflet-zoom-animated {
	transform-origin: 0 0;
	}
svg.leaflet-zoom-animated {
	will-change: transform;
}

.leaflet-zoom-anim .leaflet-zoom-animated {
	transition:         transform 0.25s cubic-bezier(0,0,0.25,1);
	}
.leaflet-zoom-anim .leaflet-tile,
.leaflet-pan-anim .leaflet-tile {
	transition: none;
	}

.leaflet-zoom-anim .leaflet-zoom-hide {
	visibility: hidden;
	}


/* cursors */

.leaflet-interactive {
	cursor: pointer;
	}
.leaflet-grab {
	cursor: -webkit-grab;
	cursor:         grab;
	}
.leaflet-crosshair,
.leaflet-crosshair .leaflet-interactive {
	cursor: crosshair;
	}
.leaflet-popup-pane,
.leaflet-control {
	cursor: auto;
	}
.leaflet-dragging .leaflet-grab,
.leaflet-dragging .leaflet-grab .leaflet-interactive,
.leaflet-dragging .leaflet-marker-draggable {
	cursor: move;
	cursor: -webkit-grabbing;
	cursor:         grabbing;
	}

/* marker & overlays interactivity */
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-image-layer,
.leaflet-pane > svg path,
.leaflet-tile-container {
	pointer-events: none;
	}

.leaflet-marker-icon.leaflet-interactive,
.leaflet-image-layer.leaflet-interactive,
.leaflet-pane > svg path.leaflet-interactive,
svg.leaflet-image-layer.leaflet-interactive path {
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}

/* visual tweaks */

.leaflet-container {
	background: #ddd;
	outline-offset: 1px;
	}
.leaflet-container a {
	color: #0078A8;
	}
.leaflet-zoom-box {
	border: 2px dotted #38f;
	background: rgba(255,255,255,0.5);
	}


/* general typography */
.leaflet-container {
	font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-size: 0.75rem;
	line-height: 1.5;
	}


/* general toolbar styles */

.leaflet-bar {
	box-shadow: 0 1px 5px rgba(0,0,0,0.65);
	border-radius: 4px;
	}
.leaflet-bar a {
	background-color: #fff;
	border-bottom: 1px solid #ccc;
	width: 26px;
	height: 26px;
	line-height: 26px;
	display: block;
	text-align: center;
	text-decoration: none;
	color: black;
	}
.leaflet-bar a,
.leaflet-control-layers-toggle {
	background-position: 50% 50%;
	background-repeat: no-repeat;
	display: block;
	}
.leaflet-bar a:hover,
.leaflet-bar a:focus {
	background-color: #f4f4f4;
	}
.leaflet-bar a:first-child {
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
	}
.leaflet-bar a:last-child {
	border-bottom-left-radius: 4px;
	border-bottom-right-radius: 4px;
	border-bottom: none;
	}
.leaflet-bar a.leaflet-disabled {
	cursor: default;
	background-color: #f4f4f4;
	color: #bbb;
	}

.leaflet-touch .leaflet-bar a {
	width: 30px;
	height: 30px;
	line-height: 30px;
	}
.leaflet-touch .leaflet-bar a:first-child {
	border-top-left-radius: 2px;
	border-top-right-radius: 2px;
	}
.leaflet-touch .leaflet-bar a:last-child {
	border-bottom-left-radius: 2px;
	border-bottom-right-radius: 2px;
	}

/* zoom control */

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
	font: bold 18px 'Lucida Console', Monaco, monospace;
	text-indent: 1px;
	}

.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out  {
	font-size: 22px;
	}


/* layers control */

.leaflet-control-layers {
	box-shadow: 0 1px 5px rgba(0,0,0,0.4);
	background: #fff;
	border-radius: 5px;
	}
.leaflet-control-layers-toggle {
	background-image: url(/_next/static/media/layers.ef6db872.png);
	width: 36px;
	height: 36px;
	}
.leaflet-retina .leaflet-control-layers-toggle {
	background-image: url(/_next/static/media/layers-2x.9859cd12.png);
	background-size: 26px 26px;
	}
.leaflet-touch .leaflet-control-layers-toggle {
	width: 44px;
	height: 44px;
	}
.leaflet-control-layers .leaflet-control-layers-list,
.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
	display: none;
	}
.leaflet-control-layers-expanded .leaflet-control-layers-list {
	display: block;
	position: relative;
	}
.leaflet-control-layers-expanded {
	padding: 6px 10px 6px 6px;
	color: #333;
	background: #fff;
	}
.leaflet-control-layers-scrollbar {
	overflow-y: scroll;
	overflow-x: hidden;
	padding-right: 5px;
	}
.leaflet-control-layers-selector {
	margin-top: 2px;
	position: relative;
	top: 1px;
	}
.leaflet-control-layers label {
	display: block;
	font-size: 13px;
	font-size: 1.08333em;
	}
.leaflet-control-layers-separator {
	height: 0;
	border-top: 1px solid #ddd;
	margin: 5px -10px 5px -6px;
	}

/* Default icon URLs */
.leaflet-default-icon-path { /* used only in path-guessing heuristic, see L.Icon.Default */
	background-image: url(/_next/static/media/marker-icon.d577052a.png);
	}


/* attribution and scale controls */

.leaflet-container .leaflet-control-attribution {
	background: #fff;
	background: rgba(255, 255, 255, 0.8);
	margin: 0;
	}
.leaflet-control-attribution,
.leaflet-control-scale-line {
	padding: 0 5px;
	color: #333;
	line-height: 1.4;
	}
.leaflet-control-attribution a {
	text-decoration: none;
	}
.leaflet-control-attribution a:hover,
.leaflet-control-attribution a:focus {
	text-decoration: underline;
	}
.leaflet-attribution-flag {
	display: inline !important;
	vertical-align: baseline !important;
	width: 1em;
	height: 0.6669em;
	}
.leaflet-left .leaflet-control-scale {
	margin-left: 5px;
	}
.leaflet-bottom .leaflet-control-scale {
	margin-bottom: 5px;
	}
.leaflet-control-scale-line {
	border: 2px solid #777;
	border-top: none;
	line-height: 1.1;
	padding: 2px 5px 1px;
	white-space: nowrap;
	box-sizing: border-box;
	background: rgba(255, 255, 255, 0.8);
	text-shadow: 1px 1px #fff;
	}
.leaflet-control-scale-line:not(:first-child) {
	border-top: 2px solid #777;
	border-bottom: none;
	margin-top: -2px;
	}
.leaflet-control-scale-line:not(:first-child):not(:last-child) {
	border-bottom: 2px solid #777;
	}

.leaflet-touch .leaflet-control-attribution,
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	box-shadow: none;
	}
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	border: 2px solid rgba(0,0,0,0.2);
	background-clip: padding-box;
	}


/* popup */

.leaflet-popup {
	position: absolute;
	text-align: center;
	margin-bottom: 20px;
	}
.leaflet-popup-content-wrapper {
	padding: 1px;
	text-align: left;
	border-radius: 12px;
	}
.leaflet-popup-content {
	margin: 13px 24px 13px 20px;
	line-height: 1.3;
	font-size: 13px;
	font-size: 1.08333em;
	min-height: 1px;
	}
.leaflet-popup-content p {
	margin: 17px 0;
	margin: 1.3em 0;
	}
.leaflet-popup-tip-container {
	width: 40px;
	height: 20px;
	position: absolute;
	left: 50%;
	margin-top: -1px;
	margin-left: -20px;
	overflow: hidden;
	pointer-events: none;
	}
.leaflet-popup-tip {
	width: 17px;
	height: 17px;
	padding: 1px;

	margin: -10px auto 0;
	pointer-events: auto;
	transform: rotate(45deg);
	}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
	background: white;
	color: #333;
	box-shadow: 0 3px 14px rgba(0,0,0,0.4);
	}
.leaflet-container a.leaflet-popup-close-button {
	position: absolute;
	top: 0;
	right: 0;
	border: none;
	text-align: center;
	width: 24px;
	height: 24px;
	font: 16px/24px Tahoma, Verdana, sans-serif;
	color: #757575;
	text-decoration: none;
	background: transparent;
	}
.leaflet-container a.leaflet-popup-close-button:hover,
.leaflet-container a.leaflet-popup-close-button:focus {
	color: #585858;
	}
.leaflet-popup-scrolled {
	overflow: auto;
	}

.leaflet-oldie .leaflet-popup-content-wrapper {
	-ms-zoom: 1;
	}
.leaflet-oldie .leaflet-popup-tip {
	width: 24px;
	margin: 0 auto;

	-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
	filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
	}

.leaflet-oldie .leaflet-control-zoom,
.leaflet-oldie .leaflet-control-layers,
.leaflet-oldie .leaflet-popup-content-wrapper,
.leaflet-oldie .leaflet-popup-tip {
	border: 1px solid #999;
	}


/* div icon */

.leaflet-div-icon {
	background: #fff;
	border: 1px solid #666;
	}


/* Tooltip */
/* Base styles for the element that has a tooltip */
.leaflet-tooltip {
	position: absolute;
	padding: 6px;
	background-color: #fff;
	border: 1px solid #fff;
	border-radius: 3px;
	color: #222;
	white-space: nowrap;
	-webkit-user-select: none;
	-moz-user-select: none;
	user-select: none;
	pointer-events: none;
	box-shadow: 0 1px 3px rgba(0,0,0,0.4);
	}
.leaflet-tooltip.leaflet-interactive {
	cursor: pointer;
	pointer-events: auto;
	}
.leaflet-tooltip-top:before,
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	position: absolute;
	pointer-events: none;
	border: 6px solid transparent;
	background: transparent;
	content: "";
	}

/* Directions */

.leaflet-tooltip-bottom {
	margin-top: 6px;
}
.leaflet-tooltip-top {
	margin-top: -6px;
}
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-top:before {
	left: 50%;
	margin-left: -6px;
	}
.leaflet-tooltip-top:before {
	bottom: 0;
	margin-bottom: -12px;
	border-top-color: #fff;
	}
.leaflet-tooltip-bottom:before {
	top: 0;
	margin-top: -12px;
	margin-left: -6px;
	border-bottom-color: #fff;
	}
.leaflet-tooltip-left {
	margin-left: -6px;
}
.leaflet-tooltip-right {
	margin-left: 6px;
}
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	top: 50%;
	margin-top: -6px;
	}
.leaflet-tooltip-left:before {
	right: 0;
	margin-right: -12px;
	border-left-color: #fff;
	}
.leaflet-tooltip-right:before {
	left: 0;
	margin-left: -12px;
	border-right-color: #fff;
	}

/* Printing */

@media print {
	/* Prevent printers from removing background-images of controls. */
	.leaflet-control {
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
		}
	}

/*!*****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./src/app/globals.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************/
:root {
  --color-primary: #0C0C0B;
  --color-secondary: #297856;
  --color-green-dark: #1F5C3D;
  --color-tertiary: #F4F5F7;
  --color-white: #FFFFFF;

  --background: var(--color-tertiary);
  --foreground: var(--color-primary);
  --primary-light: rgba(41, 120, 86, 0.14);
  --accent-light: rgba(12, 12, 11, 0.06);
  --muted-light: rgba(12, 12, 11, 0.08);
  --border: rgba(12, 12, 11, 0.12);
  --text-muted: rgba(12, 12, 11, 0.55);
  --shadow: 0 2px 12px rgba(12, 12, 11, 0.06);
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --nav-height: 60px;
  --content-max: 1280px;
}

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

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--background);
}

.top-nav {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  color: var(--color-white);
}

.top-nav-logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--color-secondary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.875rem;
}

.top-nav-menu {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex: 1 1;
  min-width: 0;
  overflow: visible;
}

.top-nav-menu-scroll {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex: 1 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.top-nav-menu-scroll::-webkit-scrollbar {
  display: none;
}

.top-nav-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.65rem;
  border-radius: 0.5rem;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
  text-decoration: none;
}

.top-nav-item:hover {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.1);
}

.top-nav-item.active {
  color: var(--color-white);
  background: var(--color-secondary);
}

.top-nav-logout {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.65rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(250, 250, 247, 0.2);
  background: transparent;
  color: rgba(250, 250, 247, 0.85);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.top-nav-logout:hover {
  background: rgba(250, 250, 247, 0.12);
  border-color: rgba(250, 250, 247, 0.35);
  color: var(--color-tertiary);
}

.main-content {
  flex: 1 1;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 1.25rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow-y: auto;
}

.main-content--map,
.main-content--full {
  max-width: none;
  padding: 1rem 1.25rem 1.25rem;
  gap: 1rem;
  min-height: 0;
}

.home-split {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  grid-gap: 1rem;
  gap: 1rem;
  align-items: stretch;
  height: calc(100vh - var(--nav-height) - 7.5rem);
  max-height: calc(100vh - var(--nav-height) - 7.5rem);
  min-height: 520px;
  overflow: hidden;
}

.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  grid-gap: 0.75rem;
  gap: 0.75rem;
  align-items: stretch;
}

.home-layout__stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
  min-height: 0;
}

.home-layout__stack--map {
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.home-layout__stack--map .live-map-card--embedded {
  position: relative;
  z-index: 1;
  overflow: hidden;
  flex: 0 0 auto;
  height: auto;
  min-height: 0;
  max-height: none;
}

.home-layout__stack--map .live-map-stage {
  height: min(42vh, 440px);
  min-height: 320px;
  max-height: 440px;
  overflow: hidden;
}

.home-layout__stack--map .live-map-canvas--embedded {
  flex: 1 1 auto;
  width: 100%;
  min-height: 280px;
  height: 100%;
  max-height: none;
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.home-layout__stack--map .active-rides-card {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.active-rides-card__toolbar {
  display: flex;
  gap: 0.5rem;
  padding: 0 1.25rem 0.75rem;
  flex-shrink: 0;
}

.active-rides-card__toolbar .form-control {
  width: 100%;
}

.active-rides-card .ui-card-header {
  flex-shrink: 0;
}

.active-rides-card__list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-top: 0 !important;
}

.active-rides-card__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 120px;
  padding: 1.5rem 0.75rem;
  text-align: center;
  color: var(--text-muted);
}

.active-rides-card__empty svg {
  color: var(--color-secondary);
  opacity: 0.85;
  margin-bottom: 0.25rem;
}

.active-rides-card__empty p {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
}

.active-rides-card__empty span {
  font-size: 0.8125rem;
  line-height: 1.45;
  max-width: 280px;
}

.active-rides-card__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 0.25rem;
  cursor: pointer;
}

.active-rides-card__item:hover {
  background: rgba(41, 120, 86, 0.04);
}

.active-rides-card__item-body {
  min-width: 0;
  flex: 1 1;
}

.active-rides-card__item-title {
  font-weight: 700;
  font-size: 0.9rem;
}

.active-rides-card__item-route {
  color: var(--text-muted);
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.15rem;
}

.spin-icon {
  animation: spin 0.8s linear infinite;
}

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

.home-layout__full {
  grid-column: 1 / -1;
}

/* Operacion del dia y viajes activos, bajo el mapa de recogida del despacho. */
.home-dispatch-aside {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
  min-width: 0;
}

/* Mapa en vivo al final de Inicio: alto de pantalla, hasta el pie. */
.home-live-map .live-map-card--embedded {
  height: calc(100vh - 2rem);
  min-height: 560px;
}

.home-live-map .live-map-stage {
  flex: 1 1 auto;
  min-height: 0;
}

.home-live-map .live-map-canvas--embedded {
  height: 100%;
  min-height: 0;
}

.live-map-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}

.live-map-status__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--color-white);
  font-size: 0.75rem;
  white-space: nowrap;
}

.live-map-status__chip i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  display: inline-block;
}

.live-map-status__chip--free i {
  background: var(--color-primary);
}

.live-map-status__chip--trip i {
  background: #22c55e;
}

.live-map-status__chip--off i {
  background: #9ca3af;
}

@media (max-width: 640px) {
  .home-live-map .live-map-card--embedded {
    height: 80vh;
    min-height: 420px;
  }
  .live-map-header {
    flex-direction: column;
  }
  .live-map-status {
    justify-content: flex-start;
  }
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  grid-gap: 0.75rem;
  gap: 0.75rem;
  align-items: start;
}

.home-grid-cell {
  min-width: 0;
}

.home-grid-cell--full {
  grid-column: 1 / -1;
}

.home-secondary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 0.75rem;
  gap: 0.75rem;
  align-items: start;
}

.home-secondary-grid__span-2 {
  grid-column: span 2;
}

.home-secondary-grid__span-all {
  grid-column: 1 / -1;
}

.home-card-header-compact {
  padding-bottom: 0.35rem !important;
}

.home-card-header-compact [data-slot='card-description'] {
  margin-top: 0.15rem;
}

.home-grid-map {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.home-grid-map > * {
  flex: 1 1;
  min-height: 0;
}

.home-dispatch-card {
  overflow: hidden;
  position: relative;
  z-index: 0;
}

.ride-map-picker {
  position: relative;
  z-index: 0;
  width: 100%;
}

.ride-map-picker__stage {
  position: relative;
  height: 260px;
  min-height: 260px;
  width: 100%;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #e8eaed;
}

.ride-map-picker__canvas,
.ride-map-picker__canvas.leaflet-container {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 0 !important;
}

.ride-map-picker .leaflet-pane,
.ride-map-picker .leaflet-top,
.ride-map-picker .leaflet-bottom {
  z-index: 1 !important;
}

.clientes-form-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(240px, 1fr);
  grid-gap: 1rem;
  gap: 1rem;
  align-items: start;
  overflow: hidden;
}

.clientes-map-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
  min-height: 260px;
  position: relative;
  z-index: 0;
  align-self: stretch;
}

@media (max-width: 1100px) {
  .home-layout {
    grid-template-columns: 1fr;
  }
  .home-layout__stack--map .live-map-card--embedded {
    height: min(44vh, 420px);
    min-height: 320px;
  }
  .home-layout__stack--map .active-rides-card {
    flex: 0 0 auto;
    min-height: 280px;
  }
  .home-grid {
    grid-template-columns: 1fr;
  }
  .home-grid-map {
    position: static;
    height: 420px;
  }
  .home-secondary-grid {
    grid-template-columns: 1fr;
  }
  .home-secondary-grid__span-2,
  .home-secondary-grid__span-all {
    grid-column: auto;
  }
  .ui-stats-grid--4,
  .ui-ops-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .ui-stats-grid--4,
  .ui-ops-grid--4 {
    grid-template-columns: 1fr;
  }
}

.home-split-map {
  min-height: 0;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ui-card {
  background: var(--color-white);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
}

.ui-card-header {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.125rem 1.25rem 0;
}

.ui-card-header-row {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.ui-card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.ui-card-description {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.ui-card-content {
  padding: 1rem 1.25rem 1.25rem;
}

.ui-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.15rem 0.6rem;
  font-size: 0.6875rem;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
}

.ui-badge--default {
  background: var(--muted-light);
  color: var(--color-primary);
  border-color: var(--border);
}

.ui-badge--secondary {
  background: var(--primary-light);
  color: var(--color-primary);
}

.ui-badge--warning {
  background: rgba(180, 83, 9, 0.1);
  color: #92400e;
  border-color: rgba(180, 83, 9, 0.2);
}

.ui-badge--success {
  background: rgba(41, 120, 86, 0.14);
  color: #1f6b4a;
  border-color: rgba(41, 120, 86, 0.25);
}

.ui-badge--destructive {
  background: rgba(220, 38, 38, 0.1);
  color: #991b1b;
  border-color: rgba(220, 38, 38, 0.2);
}

.ui-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 0.625rem;
  gap: 0.625rem;
}

.ui-stats-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ui-stat-card-body {
  display: flex !important;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
}

.ui-stat-card-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.ui-stat-card-value {
  display: block;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.ui-stat-card-hint {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.ui-stat-card-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: var(--muted-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ui-stat-card--accent .ui-stat-card-icon {
  background: var(--primary-light);
}

.ui-ops-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 0.5rem;
  gap: 0.5rem;
  padding-top: 0.15rem !important;
}

.ui-ops-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ui-ops-item {
  padding: 0.55rem 0.65rem;
  border-radius: 0.5rem;
  background: var(--muted-light);
  border: 1px solid var(--border);
}

.ui-ops-item--compact {
  padding: 0.45rem 0.55rem;
}

.ui-ops-label {
  display: block;
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.ui-ops-item strong {
  font-size: 1.125rem;
  font-weight: 700;
}

.ui-progress-block {
  padding-top: 0 !important;
}

.ui-progress-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.ui-progress-track {
  height: 0.5rem;
  border-radius: 999px;
  background: var(--muted-light);
  overflow: hidden;
}

.ui-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--color-secondary);
}

.ui-pending-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.5rem !important;
}

.ui-pending-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--muted-light);
}

.ui-pending-name {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0;
}

.ui-pending-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0.15rem 0 0;
}

.ui-empty-state {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
  padding: 1rem 0.5rem;
  margin: 0;
}

.ui-quick-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.5rem !important;
}

.ui-quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--color-tertiary);
  color: var(--color-primary);
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
}

.ui-quick-btn:hover {
  background: var(--muted-light);
}

.ui-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.8rem 0.9rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(180, 83, 9, 0.25);
  background: rgba(180, 83, 9, 0.08);
  color: #92400e;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.ui-alert p {
  margin: 0;
}

.live-map-card--embedded {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.live-map-stage {
  position: relative;
  flex: 1 1;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.live-map-canvas {
  flex: 1 1;
  width: 100%;
  min-height: 320px;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #e8eaed;
  position: relative;
  z-index: 0;
}

.live-map-canvas .leaflet-container {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 0 !important;
}

.live-map-canvas .leaflet-pane {
  z-index: 1 !important;
}

.live-map-canvas .leaflet-top,
.live-map-canvas .leaflet-bottom,
.live-map-canvas .leaflet-control {
  z-index: 2 !important;
}

.live-map-canvas--embedded {
  flex: 1 1 auto;
  min-height: 280px;
  width: 100%;
  height: 100%;
}

@media (max-width: 1100px) {
  .home-split {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
    min-height: auto;
    overflow: visible;
  }

  .home-split-map {
    height: min(56vh, 520px);
    min-height: 360px;
  }

  .live-map-card--embedded {
    height: 100%;
    min-height: 360px;
  }
}

.header {
  margin-bottom: 0;
}

.header h1 {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.2;
}

.header p {
  color: var(--text-muted);
  font-size: 0.8125rem;
  margin-top: 0.2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 0.75rem;
  gap: 0.75rem;
}

.stat-card {
  background: var(--color-tertiary);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1rem 1.125rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
}

.stat-info h3 {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.stat-info p {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon.primary,
.stat-icon.success,
.stat-icon.warning,
.stat-icon.danger,
.stat-icon.accent {
  background: var(--primary-light);
  color: var(--color-primary);
}

.card {
  background: var(--color-tertiary);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.125rem 1.25rem;
  box-shadow: var(--shadow);
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 0.95rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  line-height: 1.45;
  vertical-align: middle;
}

.table thead th {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(15, 23, 42, 0.035);
  border-bottom: 1px solid var(--border);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1;
}

.table thead th:first-child {
  border-top-left-radius: 10px;
}

.table thead th:last-child {
  border-top-right-radius: 10px;
}

.table tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.02);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.table tbody tr:hover {
  background: var(--muted-light);
}

.badge {
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 600;
  display: inline-block;
}

.badge.pending {
  background: var(--muted-light);
  color: var(--color-primary);
  border: 1px solid var(--border);
}

.badge.approved {
  background: var(--color-primary);
  color: var(--color-secondary);
}

.badge.rejected,
.badge.suspended {
  background: var(--color-primary);
  color: var(--color-tertiary);
}

.badge.role {
  background: var(--primary-light);
  color: var(--color-primary);
}

.badge.blocked {
  background: rgba(180, 83, 9, 0.1);
  color: #92400e;
  border: 1px solid rgba(180, 83, 9, 0.2);
}

.badge.service-ride {
  background: var(--muted-light);
  color: var(--color-primary);
  border: 1px solid var(--border);
}

.badge.service-delivery {
  background: rgba(109, 40, 217, 0.12);
  color: #6d28d9;
  border: 1px solid rgba(109, 40, 217, 0.3);
}

.btn {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: none;
  font-weight: 600;
  font-family: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  transition: opacity 0.15s ease, background 0.15s ease;
}

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

.btn-primary:hover {
  opacity: 0.88;
}

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

.btn-accent:hover {
  background: var(--color-green-dark);
}

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

.btn-danger {
  background: var(--color-primary);
  color: var(--color-tertiary);
}

.btn-danger:hover {
  opacity: 0.88;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
}

.btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
}

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

.btn-danger-outline {
  background: transparent;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
}

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

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--color-tertiary);
  color: var(--foreground);
  font-weight: 600;
  font-size: 0.875rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-secondary:hover:not(:disabled) {
  background: var(--muted-light);
  border-color: var(--color-primary);
}

.btn-secondary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-secondary.active {
  background: var(--color-primary);
  color: var(--color-tertiary);
  border-color: var(--color-primary);
}

.catalog-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.catalog-header-text h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.catalog-header-text p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.catalog-search {
  position: relative;
  flex: 1 1;
  min-width: 220px;
  max-width: 360px;
}

.catalog-search input {
  width: 100%;
  padding: 0.55rem 0.875rem 0.55rem 2.25rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-family: inherit;
  background: var(--background);
}

.catalog-search input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.catalog-search-icon {
  position: absolute;
  left: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.catalog-tabs {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  padding: 0.25rem;
  background: var(--muted-light);
  border-radius: 0.625rem;
  border: 1px solid var(--border);
  width: -moz-fit-content;
  width: fit-content;
}

.catalog-tab {
  padding: 0.45rem 1rem;
  border: none;
  border-radius: 0.45rem;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.8125rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.catalog-tab:hover {
  color: var(--foreground);
}

.catalog-tab.active {
  background: var(--color-tertiary);
  color: var(--color-primary);
  box-shadow: var(--shadow);
}

.catalog-add-card {
  background: var(--muted-light);
  border: 1px dashed var(--border);
  border-radius: 0.625rem;
  padding: 1rem 1.125rem;
}

.catalog-add-card h3 {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.catalog-add-form {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  grid-gap: 0.65rem;
  gap: 0.65rem;
  align-items: end;
}

.catalog-add-form .form-control {
  width: 100%;
}

.btn-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.25rem;
  border: none;
  border-radius: 0.5rem;
  background: var(--color-primary);
  color: var(--color-tertiary);
  font-weight: 700;
  font-size: 0.875rem;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s;
  white-space: nowrap;
}

.btn-add:hover:not(:disabled) {
  opacity: 0.9;
}

.btn-add:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.catalog-add-form .btn-add {
  grid-column: 1 / -1;
  justify-self: start;
}

.catalog-add-form .btn-add:hover {
  opacity: 0.9;
}

.catalog-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 0.625rem;
}

.catalog-table-wrap .table {
  margin: 0;
}

.catalog-table-wrap .table th {
  background: var(--muted-light);
}

.catalog-table-wrap .table tr.row-muted td {
  opacity: 0.55;
}

.catalog-row-actions {
  display: flex;
  gap: 0.35rem;
  justify-content: flex-end;
}

.catalog-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--border);
  border-radius: 0.4rem;
  background: var(--color-tertiary);
  color: var(--foreground);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.catalog-icon-btn:hover {
  background: var(--muted-light);
  border-color: var(--color-primary);
}

.catalog-icon-btn.danger:hover {
  background: rgba(180, 83, 9, 0.1);
  border-color: #b45309;
  color: #92400e;
}

.catalog-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 700;
}

.catalog-badge.on {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

.catalog-badge.off {
  background: var(--muted-light);
  color: var(--text-muted);
}

.catalog-alert {
  padding: 0.65rem 0.875rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.catalog-alert.error {
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.catalog-alert.success {
  background: rgba(34, 197, 94, 0.1);
  color: #15803d;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.catalog-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.catalog-toolbar .btn-add {
  margin-left: auto;
}

.catalog-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.catalog-modal-head h2 {
  margin: 0;
  font-size: 1.125rem;
}

.catalog-modal-form {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.catalog-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 0.75rem;
  gap: 0.75rem;
}

@media (max-width: 520px) {
  .catalog-form-grid {
    grid-template-columns: 1fr;
  }
}

.city-tariff-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 1rem;
  gap: 1rem;
  margin-top: 0.5rem;
}

@media (max-width: 640px) {
  .city-tariff-pair {
    grid-template-columns: 1fr;
  }
}

.city-tariff-column {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin: 0;
}

.city-tariff-column legend {
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0 0.35rem;
}

.city-tariff-cell {
  font-size: 0.8125rem;
  color: var(--text-muted);
  max-width: 14rem;
}

.catalog-modal-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.catalog-code {
  font-size: 0.8125rem;
  padding: 0.15rem 0.45rem;
  background: var(--muted-light);
  border-radius: 0.35rem;
  font-family: ui-monospace, monospace;
}

.catalog-sub {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.catalog-hint {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.catalog-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
}

.catalog-edit-modal {
  max-width: min(560px, 96vw);
  width: 100%;
}

.modal-content.catalog-edit-modal {
  max-width: min(560px, 96vw);
}

.modal-content.config-city-modal {
  max-width: min(1040px, 96vw);
  max-height: min(92vh, 900px);
  overflow-y: auto;
  padding: 1.5rem 1.75rem;
}

.config-city-modal .catalog-modal-form {
  gap: 0.5rem;
}

.config-city-modal .city-tariff-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.config-city-modal .city-tariff-column {
  min-width: 0;
  padding: 1rem 1.125rem;
}

.config-city-modal .city-tariff-column .form-group label {
  font-size: 0.75rem;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .config-city-modal .city-tariff-pair {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .modal-content.config-city-modal {
    max-height: 94vh;
    padding: 1.25rem 1rem;
  }

  .config-city-modal .catalog-form-grid {
    grid-template-columns: 1fr;
  }
}

.catalog-edit-modal .form-group {
  margin-bottom: 0.875rem;
}


.catalog-edit-modal .modal-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

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

.catalog-panel .spin {
  animation: catalog-spin 0.8s linear infinite;
}

.btn-toolbar {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--color-white);
}

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

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12, 12, 11, 0.55);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-backdrop--elevated {
  z-index: 1100;
}

.modal-backdrop--top {
  z-index: 1200;
}

.modal-backdrop--confirm {
  z-index: 1300;
}

.add-employee-modal {
  width: min(94vw, 610px);
  padding: 0;
  overflow: hidden;
  border: 1px solid #dce5e0;
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(15, 35, 25, 0.24);
}

.add-employee-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  grid-gap: 14px;
  gap: 14px;
  padding: 24px 26px 20px;
  background: linear-gradient(135deg, #f1fbf6 0%, #fff 72%);
  border-bottom: 1px solid #e6ece8;
}

.add-employee-head h2 { margin: 0; font-size: 1.45rem; }
.add-employee-head p { margin: 5px 0 0; color: #627069; line-height: 1.45; }
.add-employee-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: #fff; background: #228b5b; }
.add-employee-form { padding: 22px 26px 10px; }
.add-employee-form label { display: block; margin-bottom: 8px; color: #27322d; font-size: .9rem; font-weight: 700; }
.add-employee-form small { display: block; margin-top: 8px; color: #7b8781; }
.add-employee-search { display: grid; grid-template-columns: auto 1fr auto; align-items: center; grid-gap: 10px; gap: 10px; min-height: 48px; padding-left: 14px; border: 1px solid #cbd5d0; border-radius: 12px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.add-employee-search:focus-within { border-color: #228b5b; box-shadow: 0 0 0 3px rgba(34, 139, 91, .12); }
.add-employee-search > span { display: grid; color: #228b5b; }
.add-employee-search input { min-width: 0; padding: 12px 0; border: 0; outline: 0; font-size: 1rem; background: transparent; }
.add-employee-search .btn { align-self: stretch; margin: 4px; min-width: 94px; border-radius: 9px; }
.add-employee-alert { margin: 10px 26px 0; }
.add-employee-result { display: flex; gap: 15px; margin: 14px 26px 0; padding: 18px; border: 1px solid #cfe0d7; border-radius: 15px; background: #f7faf8; }
.add-employee-avatar { display: grid; place-items: center; flex: 0 0 48px; height: 48px; border-radius: 50%; color: #fff; background: #111; font-size: 1.15rem; font-weight: 800; }
.add-employee-data { display: flex; min-width: 0; flex-direction: column; gap: 6px; }
.add-employee-data strong { color: #17201c; font-size: 1.08rem; }
.add-employee-data span, .add-employee-data em { display: flex; align-items: center; gap: 7px; overflow-wrap: anywhere; color: #637068; font-style: normal; }
.add-employee-ok { margin-top: 3px; color: #168252 !important; font-weight: 700; }
.add-employee-warning { margin-top: 3px; color: #b42318 !important; font-weight: 700; }
.add-employee-invitation { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 14px 26px 0; padding: 17px; border: 1px solid #e5cf8c; border-radius: 14px; background: #fff9e8; }
.add-employee-invitation > div { display: flex; flex-direction: column; gap: 4px; }
.add-employee-invitation span { color: #665d43; line-height: 1.4; }
.add-employee-invitation.success { justify-content: flex-start; color: #18794e; border-color: #b9ddc9; background: #eff9f3; }
.add-employee-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 22px 26px 26px; }
.add-employee-actions .btn-add { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.add-employee-details { padding: 20px 26px 0; }
.add-employee-selected { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding: 13px 15px; border: 1px solid #d8e5de; border-radius: 13px; background: #f4faf6; }
.add-employee-selected > div:last-child { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.add-employee-selected span { color: #6c7872; overflow-wrap: anywhere; }
.add-employee-details .catalog-form-grid { margin-bottom: 14px; }
.optional-label { color: #7c8882; font-weight: 400; }
.add-employee-check { margin: 10px 0; padding: 12px 14px; border: 1px solid #e0e6e3; border-radius: 11px; background: #fafbfa; }
.add-employee-check span { display: flex; flex-direction: column; gap: 2px; }
.add-employee-check small { color: #738079; font-weight: 400; }
.btn-danger-outline { padding: .68rem 1rem; border: 1px solid #dc3545; border-radius: 9px; color: #b42318; background: #fff; font-weight: 700; cursor: pointer; }
.btn-danger-outline:hover { color: #fff; background: #c92a2a; }
.company-payments-back { margin-bottom: 10px; }
.company-payments-back a { display: inline-flex; align-items: center; gap: 6px; color: #267a54; font-weight: 700; text-decoration: none; }
.company-payment-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-gap: 12px; gap: 12px; margin-bottom: 16px; }
.company-payment-summary .card { display: flex; flex-direction: column; gap: 7px; padding: 17px 19px; }
.company-payment-summary span { color: #6c7872; font-size: .85rem; }
.company-payment-summary strong { font-size: 1.35rem; }
.company-payment-filters { padding: 16px; margin-bottom: 16px; }
.company-payment-filter-grid { display: grid; grid-template-columns: 170px 170px minmax(250px, 1fr) auto auto; align-items: end; grid-gap: 12px; gap: 12px; margin-top: 15px; }
.company-payment-filter-grid label { display: flex; flex-direction: column; gap: 6px; color: #4e5a54; font-size: .82rem; font-weight: 700; }
.company-payment-driver-search > span { position: relative; display: flex; align-items: center; }
.company-payment-driver-search svg { position: absolute; left: 11px; color: #6e7a74; }
.company-payment-driver-search input { padding-left: 36px; }
.company-payment-amount { font-weight: 800; white-space: nowrap; }
@media (max-width: 900px) { .company-payment-summary { grid-template-columns: repeat(2, 1fr); } .company-payment-filter-grid { grid-template-columns: 1fr 1fr; } .company-payment-driver-search { grid-column: 1 / -1; } }

@media (max-width: 600px) {
  .add-employee-head, .add-employee-form { padding-left: 18px; padding-right: 18px; }
  .add-employee-head { grid-template-columns: auto 1fr auto; }
  .add-employee-search { grid-template-columns: auto 1fr; padding-bottom: 5px; }
  .add-employee-search .btn { grid-column: 1 / -1; margin: 0 0 1px; min-height: 42px; }
  .add-employee-result { margin-left: 18px; margin-right: 18px; }
  .add-employee-actions { flex-direction: column-reverse; padding: 18px; }
  .add-employee-actions button { width: 100%; min-height: 46px; }
}

.modal-content {
  background: var(--color-tertiary);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  width: 100%;
  max-width: 500px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: var(--shadow);
  color: var(--foreground);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 500;
}

.form-control {
  background: var(--color-tertiary);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.625rem 0.875rem;
  color: var(--foreground);
  font-family: inherit;
  font-size: 0.875rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--primary-light);
}

.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem;
  background: var(--background);
}

.login-card {
  width: 100%;
  max-width: 380px;
}

.live-map-card {
  background: var(--color-white);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1rem 1.125rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 360px;
}

.live-map-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  flex-shrink: 0;
}

.live-map-header h2 {
  font-size: 1rem;
  font-weight: 700;
}

.live-map-header p {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-top: 0.15rem;
}

.live-map-count {
  font-weight: 600;
  color: var(--color-primary);
  background: var(--primary-light);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  white-space: nowrap;
}

.live-map-canvas--tall {
  min-height: 380px;
}

.live-map-driver-panel {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 5;
  width: min(320px, calc(100% - 1.5rem));
  padding: 1rem;
  border-radius: 0.75rem;
  background: var(--color-white);
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(12, 12, 11, 0.18);
}

.live-map-driver-panel-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.2rem;
  border-radius: 0.35rem;
}

.live-map-driver-panel-close:hover {
  background: var(--muted-light);
  color: var(--color-primary);
}

.live-map-driver-panel-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  padding-right: 1.25rem;
}

.live-map-driver-panel-head h3 {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
}

.live-map-driver-plate {
  margin: 0.15rem 0 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-secondary);
}

.live-map-driver-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
}

.live-map-driver-avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--color-secondary);
  font-weight: 700;
  font-size: 1rem;
}

.live-map-driver-fields {
  display: grid;
  grid-gap: 0.45rem;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
}

.live-map-driver-fields div {
  display: grid;
  grid-template-columns: 88px 1fr;
  grid-gap: 0.35rem;
  gap: 0.35rem;
  align-items: start;
}

.live-map-driver-fields dt {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.live-map-driver-fields dd {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-primary);
}

.live-map-driver-panel-cta {
  width: 100%;
  justify-content: center;
}

.placeholder-panel {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--text-muted);
}

.placeholder-panel svg {
  opacity: 0.35;
  margin-bottom: 0.75rem;
}

@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.permissions-gate-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(12, 12, 11, 0.6);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
}

.permissions-gate {
  width: min(440px, 100%);
  padding: 1.75rem 1.5rem;
  border-radius: 0.875rem;
  background: var(--color-tertiary);
  border: 1px solid var(--border);
  box-shadow: 0 24px 48px rgba(12, 12, 11, 0.25);
  text-align: center;
}

.permissions-gate-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 0.75rem;
  background: var(--primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.permissions-gate-title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary);
}

.permissions-gate-text {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.permissions-gate-blocked {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.625rem;
  background: rgba(180, 83, 9, 0.08);
  border: 1px solid rgba(180, 83, 9, 0.2);
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #92400e;
  text-align: left;
}

.permissions-gate-cta {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 0.9375rem;
}

.permissions-gate-skip {
  margin-top: 0.75rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
}

.permissions-banner {
  padding: 1rem 1.125rem;
}

.permissions-banner-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
}

.permissions-banner-brand {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.permissions-banner-icon {
  width: 40px;
  height: 40px;
  border-radius: 0.625rem;
  background: var(--primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.permissions-banner-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-primary);
}

.permissions-banner-subtitle {
  margin: 0.2rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.permissions-banner-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
}

.permissions-banner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 0.75rem;
  gap: 0.75rem;
}

.permissions-item {
  padding: 0.875rem 1rem;
  border-radius: 0.625rem;
  background: var(--muted-light);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.permissions-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.permissions-item-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
}

.permissions-item-hint {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--text-muted);
  flex: 1 1;
}

.permissions-item .btn {
  align-self: flex-start;
}

.permissions-floating-btn {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 1100;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-secondary);
  font-size: 0.8125rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.permissions-floating-btn:hover {
  opacity: 0.9;
}

@media (max-width: 768px) {
  .permissions-banner-grid {
    grid-template-columns: 1fr;
  }
}

.sos-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(12, 12, 11, 0.55);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  animation: sos-fade-in 0.25s ease-out;
}

@keyframes sos-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.sos-modal {
  width: min(920px, 100%);
  max-height: min(88vh, 820px);
  overflow: auto;
  background: var(--color-tertiary);
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  box-shadow: 0 24px 48px rgba(12, 12, 11, 0.2);
  animation: sos-scale-in 0.3s ease-out;
}

@keyframes sos-scale-in {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.sos-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.125rem 1.375rem;
  border-bottom: 1px solid var(--border);
  background: var(--color-primary);
}

.sos-alert-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-secondary);
  font-weight: 800;
  font-size: 1.2rem;
}

.sos-alert-title svg {
  color: #f87171;
}

.sos-alert-dismiss {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(250, 250, 247, 0.2);
  border-radius: 8px;
  background: rgba(250, 250, 247, 0.08);
  color: var(--color-tertiary);
  cursor: pointer;
}

.sos-alert-dismiss:hover {
  background: rgba(250, 250, 247, 0.14);
}

.sos-modal-body {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.2fr);
  grid-gap: 0;
  gap: 0;
}

.sos-modal-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sos-modal-map-wrap {
  padding: 1rem 1.25rem 1.25rem 0;
  display: flex;
  flex-direction: column;
  min-height: 360px;
}

.sos-modal-map-label {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.sos-modal-map {
  flex: 1 1;
  min-height: 320px;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  overflow: hidden;
}

.sos-map-marker {
  background: transparent;
  border: none;
}

.sos-map-marker-pulse {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #dc2626;
  border: 3px solid #fff;
  box-shadow: 0 0 0 6px rgba(220, 38, 38, 0.35);
  animation: sos-pulse 1.5s ease-out infinite;
}

@keyframes sos-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.5);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(220, 38, 38, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
  }
}

.sos-alert-name {
  font-weight: 800;
  font-size: 1.375rem;
  color: var(--color-primary);
  margin: 0;
}

.sos-alert-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}

.sos-alert-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-primary);
  margin: 0.15rem 0;
}

.sos-alert-row a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}

.sos-alert-row a:hover {
  text-decoration: underline;
}

.sos-alert-address {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0.2rem 0;
  line-height: 1.4;
}

.sos-alert-time {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0.75rem 0 0.25rem;
}

.sos-alert-map-link {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.5rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-secondary);
  border-radius: 0.5rem;
  text-decoration: none;
  align-self: flex-start;
}

.sos-alert-map-link:hover {
  opacity: 0.9;
}

.sos-alerts-queue {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 2100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: min(320px, calc(100vw - 32px));
}

.sos-queue-pill {
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-secondary);
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.sos-queue-pill:hover {
  opacity: 0.9;
}

@media (max-width: 768px) {
  .sos-modal-body {
    grid-template-columns: 1fr;
  }

  .sos-modal-map-wrap {
    padding: 0 1.25rem 1.25rem;
  }
}

.drivers-page {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  width: 100%;
}

.drivers-toolbar-card {
  overflow: hidden;
  border-color: var(--color-primary);
}

.drivers-toolbar-card .ui-card-header {
  background: var(--color-primary);
  padding: 1rem 1.25rem;
  margin: 0;
  border-bottom: 3px solid var(--color-secondary);
}

.drivers-toolbar-card .ui-card-title {
  color: var(--color-tertiary);
  font-size: 1.125rem;
}

.drivers-toolbar-card .ui-card-description {
  color: rgba(250, 250, 247, 0.72);
}

.drivers-toolbar-card .ui-card-content {
  padding-top: 1rem !important;
}

.drivers-toolbar-head {
  flex-direction: row !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
}

.drivers-toolbar-body {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.drivers-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.drivers-filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--color-tertiary);
  color: var(--color-primary);
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.drivers-filter-tab:hover {
  background: var(--muted-light);
}

.drivers-filter-tab--active {
  background: var(--color-primary);
  color: var(--color-secondary);
  border-color: var(--color-primary);
}

.drivers-filter-count {
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: rgba(12, 12, 11, 0.08);
  font-size: 0.6875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.drivers-filter-tab--active .drivers-filter-count {
  background: rgba(190, 242, 100, 0.2);
  color: var(--color-secondary);
}

.drivers-search {
  position: relative;
}

.drivers-search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.drivers-search-input {
  width: 100%;
  padding: 0.7rem 0.9rem 0.7rem 2.5rem;
  border: 1px solid var(--border);
  border-radius: 0.625rem;
  background: var(--muted-light);
  color: var(--color-primary);
  font-size: 0.875rem;
  font-family: inherit;
}

.drivers-search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--color-tertiary);
}

.drivers-table-card {
  overflow: hidden;
  border-color: var(--color-primary);
}

.drivers-table-wrap {
  overflow-x: auto;
}

.drivers-table {
  width: 100%;
  min-width: 1240px;
  border-collapse: collapse;
}

.drivers-table th,
.drivers-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.drivers-table th {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-secondary);
  background: var(--color-primary);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1;
}

.drivers-table tbody tr:hover {
  background: rgba(12, 12, 11, 0.04);
}

.drivers-table tbody tr:nth-child(even) {
  background: rgba(12, 12, 11, 0.02);
}

.drivers-table tbody tr:nth-child(even):hover {
  background: rgba(12, 12, 11, 0.05);
}

.drivers-cell-user {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 180px;
}

.drivers-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
}

.drivers-avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-secondary);
  font-size: 0.75rem;
  font-weight: 700;
}

/* Avatar editable (click para cambiar la foto de perfil) */
.driver-avatar-edit {
  position: relative;
  padding: 0;
  border: none;
  background: none;
  border-radius: 999px;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 0;
}

.driver-avatar-edit-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(12, 12, 11, 0.55);
  color: #fff;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.driver-avatar-edit:hover .driver-avatar-edit-overlay,
.driver-avatar-edit:focus-visible .driver-avatar-edit-overlay {
  opacity: 1;
}

/* Select de ciudad sin asignar: resalta que falta el dato obligatorio */
.form-control--missing {
  border-color: rgba(180, 83, 9, 0.55);
  background: rgba(180, 83, 9, 0.07);
}

.driver-city-warning {
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.5rem;
  background: rgba(180, 83, 9, 0.1);
  border: 1px solid rgba(180, 83, 9, 0.25);
  color: #92400e;
  font-size: 0.83rem;
}

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

.drivers-name {
  font-weight: 600;
  font-size: 0.875rem;
}

.drivers-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.drivers-stack {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 120px;
}

.drivers-plate {
  display: inline-flex;
  padding: 0.25rem 0.55rem;
  border-radius: 0.375rem;
  background: var(--color-primary);
  color: var(--color-secondary);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
}

.drivers-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  min-width: 200px;
}

.drivers-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.drivers-status-cell {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: flex-start;
}

.drivers-online {
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.drivers-online--on {
  color: #166534;
  font-weight: 600;
}

.drivers-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 2.5rem 1rem !important;
}

.driver-detail-modal {
  width: min(1080px, 96vw);
  max-width: none;
  max-height: 94vh;
  overflow-y: auto;
  padding: 1.75rem 2rem;
}

.driver-history-modal {
  width: min(960px, 96vw);
  max-width: none;
  max-height: 92vh;
  overflow-y: auto;
  padding: 1.75rem 2rem;
}

.driver-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.driver-detail-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.driver-detail-subtitle {
  margin: 0.2rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.driver-detail-close {
  width: 36px;
  height: 36px;
  padding: 0;
}

.driver-detail-hero {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--color-primary);
  border-radius: 0.75rem;
  background: var(--color-primary);
  color: var(--color-tertiary);
  margin-bottom: 1.25rem;
}

.driver-detail-avatar {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
}

.driver-detail-avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-secondary);
  color: var(--color-primary);
  font-weight: 800;
  font-size: 1.125rem;
}

.driver-detail-hero-info h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--color-tertiary);
}

.driver-detail-hero-info p {
  margin: 0.25rem 0 0.65rem;
  font-size: 0.875rem;
  color: rgba(250, 250, 247, 0.75);
}

.driver-detail-section-card {
  border-color: var(--color-primary);
}

.driver-detail-plate {
  display: inline-flex;
  padding: 0.15rem 0.45rem;
  border-radius: 0.35rem;
  background: var(--color-primary);
  color: var(--color-secondary);
  width: -moz-fit-content;
  width: fit-content;
}

.driver-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.driver-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 0.75rem;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.driver-detail-fields {
  display: grid;
  grid-gap: 0.65rem;
  gap: 0.65rem;
  padding-top: 0.25rem !important;
}

.driver-detail-fields div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.driver-detail-fields span {
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.driver-detail-fields strong {
  font-size: 0.875rem;
}

.driver-detail-docs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 0.75rem;
  gap: 0.75rem;
  padding-top: 0.5rem !important;
}

.driver-detail-doc span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.driver-detail-doc img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 0.5rem;
  border: 2px solid var(--color-primary);
  transition: opacity 0.15s ease;
}

.driver-detail-doc a:hover img {
  opacity: 0.88;
}

.driver-detail-doc-empty {
  height: 220px;
  border: 1px dashed var(--border);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.driver-detail-notes-prev {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.driver-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.driver-detail-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.confirm-dialog-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12, 12, 11, 0.65);
  -webkit-backdrop-filter: blur(3px);
          backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  padding: 1rem;
}

.confirm-dialog {
  background: var(--color-tertiary);
  border: 2px solid var(--color-primary);
  border-radius: 0.875rem;
  width: min(420px, 100%);
  padding: 1.5rem;
  box-shadow: 0 20px 50px rgba(12, 12, 11, 0.25);
  text-align: center;
}

.confirm-dialog-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.75rem;
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.confirm-dialog-title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary);
}

.confirm-dialog-message {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.confirm-dialog-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
}

.confirm-dialog-actions .btn {
  min-width: 110px;
}

.rides-page {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  width: 100%;
}

.rides-toolbar-card {
  overflow: hidden;
  border-color: var(--color-primary);
}

.rides-toolbar-card .ui-card-header {
  background: var(--color-primary);
  padding: 1rem 1.25rem;
  margin: 0;
  border-bottom: 3px solid var(--color-secondary);
}

.rides-toolbar-card .ui-card-title {
  color: var(--color-tertiary);
  font-size: 1.125rem;
}

.rides-toolbar-card .ui-card-description {
  color: rgba(250, 250, 247, 0.72);
}

.rides-toolbar-head {
  flex-direction: row !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
}

.rides-toolbar-body {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.rides-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.rides-filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--color-tertiary);
  color: var(--color-primary);
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.rides-filter-tab--active {
  background: var(--color-primary);
  color: var(--color-secondary);
  border-color: var(--color-primary);
}

.rides-filter-count {
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: rgba(12, 12, 11, 0.08);
  font-size: 0.6875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rides-filter-tab--active .rides-filter-count {
  background: rgba(190, 242, 100, 0.2);
  color: var(--color-secondary);
}

.rides-filters-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rides-date-range {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: flex-end;
}

.rides-date-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.rides-date-input {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--muted-light);
  color: var(--color-primary);
  font-family: inherit;
  font-size: 0.875rem;
}

.rides-search {
  position: relative;
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.rides-search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.rides-search-input {
  flex: 1 1;
  padding: 0.7rem 0.9rem 0.7rem 2.5rem;
  border: 1px solid var(--border);
  border-radius: 0.625rem;
  background: var(--muted-light);
  color: var(--color-primary);
  font-size: 0.875rem;
  font-family: inherit;
}

.rides-search-btn {
  flex-shrink: 0;
}

.rides-error {
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-primary);
  border-radius: 0.5rem;
  background: rgba(12, 12, 11, 0.05);
  color: var(--color-primary);
  font-size: 0.875rem;
}

.rides-table-card {
  overflow: hidden;
  border-color: var(--color-primary);
}

.rides-table-wrap {
  overflow-x: auto;
}

.rides-table {
  width: 100%;
  min-width: 1320px;
  border-collapse: collapse;
}

.rides-table th,
.rides-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.rides-table th {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-secondary);
  background: var(--color-primary);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1;
}

.rides-table tbody tr:nth-child(even) {
  background: rgba(12, 12, 11, 0.02);
}

.rides-table tbody tr:hover {
  background: rgba(12, 12, 11, 0.05);
}

.rides-stack {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 110px;
}

.rides-name {
  font-weight: 600;
  font-size: 0.875rem;
}

.rides-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.rides-id {
  font-family: ui-monospace, monospace;
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--color-primary);
}

.rides-route span {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rides-platform {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-secondary);
  font-size: 0.75rem;
  font-weight: 600;
}

.rides-status {
  display: inline-flex;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.rides-status--active {
  background: rgba(245, 158, 11, 0.16);
  color: #B45309;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.rides-status--completed {
  background: rgba(41, 120, 86, 0.16);
  color: #1F6B4A;
  border: 1px solid rgba(41, 120, 86, 0.35);
}

.rides-status--cancelled {
  background: rgba(220, 69, 51, 0.14);
  color: #C23A28;
  border: 1px solid rgba(220, 69, 51, 0.32);
}

.rides-status--scheduled {
  background: rgba(0, 113, 235, 0.14);
  color: #0058B8;
  border: 1px solid rgba(0, 113, 235, 0.32);
}

.rides-cancel-reason {
  font-size: 0.8125rem;
  font-weight: 500;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rides-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 2.5rem 1rem !important;
}

.ride-detail-modal {
  width: min(960px, 96vw);
  max-width: none;
  max-height: 94vh;
  overflow-y: auto;
  padding: 1.75rem 2rem;
}

.ride-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.ride-detail-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.ride-detail-subtitle {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: ui-monospace, monospace;
}

.ride-detail-hero {
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  background: var(--color-primary);
  color: var(--color-tertiary);
  margin-bottom: 1rem;
}

.ride-detail-hero-main {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.ride-detail-platform {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--color-secondary);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700;
}

.ride-detail-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
  color: rgba(250, 250, 247, 0.75);
}

.ride-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 0.75rem;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.ride-detail-section-card {
  border-color: var(--color-primary);
}

.ride-detail-fields {
  display: grid;
  grid-gap: 0.65rem;
  gap: 0.65rem;
  padding-top: 0.25rem !important;
}

.ride-detail-fields div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ride-detail-fields span {
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.ride-detail-fields strong {
  font-size: 0.875rem;
}

.ride-detail-fare-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 0.75rem;
  gap: 0.75rem;
}

.ride-detail-cancel-card {
  border-color: var(--color-primary);
  background: rgba(12, 12, 11, 0.03);
}

.ride-detail-actors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-top: 0.25rem !important;
}

.ride-detail-actor {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--muted-light);
  font-size: 0.8125rem;
}

.ride-detail-empty-person {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.ride-detail-timeline {
  display: grid;
  grid-gap: 0.65rem;
  gap: 0.65rem;
  padding-top: 0.25rem !important;
}

.ride-detail-timeline-item {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.ride-detail-timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--color-secondary);
  border: 2px solid var(--color-primary);
  margin-top: 0.35rem;
  flex-shrink: 0;
}

.ride-detail-timeline-item div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.ride-detail-timeline-item strong {
  font-size: 0.875rem;
}

.ride-detail-timeline-item span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.ride-chat-card .ui-card-content {
  padding-top: 0.25rem !important;
}

.ride-chat-title {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.ride-chat-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ride-chat-error {
  margin: 0;
  padding: 0.65rem 0.85rem;
  border-radius: 0.5rem;
  background: rgba(12, 12, 11, 0.06);
  color: var(--color-primary);
  font-size: 0.875rem;
}

.ride-chat-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem 1rem;
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  border-radius: 0.75rem;
}

.ride-chat-empty p {
  margin: 0;
  font-size: 0.875rem;
}

.ride-chat-thread {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 360px;
  overflow-y: auto;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--muted-light);
}

.ride-chat-bubble-wrap {
  display: flex;
}

.ride-chat-bubble-wrap--passenger {
  justify-content: flex-start;
}

.ride-chat-bubble-wrap--driver {
  justify-content: flex-end;
}

.ride-chat-bubble-wrap--other {
  justify-content: center;
}

.ride-chat-bubble {
  max-width: min(78%, 520px);
  padding: 0.65rem 0.8rem;
  border-radius: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.ride-chat-bubble--passenger {
  background: var(--color-tertiary);
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
}

.ride-chat-bubble--driver {
  background: var(--color-primary);
  color: var(--color-tertiary);
}

.ride-chat-bubble--other {
  background: rgba(12, 12, 11, 0.08);
  border: 1px solid var(--border);
}

.ride-chat-bubble-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.6875rem;
}

.ride-chat-bubble-head strong {
  font-size: 0.75rem;
}

.ride-chat-bubble--driver .ride-chat-bubble-head span {
  color: rgba(250, 250, 247, 0.72);
}

.ride-chat-type {
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  background: rgba(190, 242, 100, 0.25);
  font-weight: 600;
}

.ride-chat-bubble-content {
  font-size: 0.875rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.ride-chat-time {
  font-size: 0.6875rem;
  opacity: 0.75;
}

.ride-chat-location {
  font-style: italic;
}

.ride-chat-image-link {
  display: block;
}

.ride-chat-image {
  max-width: 100%;
  max-height: 180px;
  border-radius: 0.5rem;
  object-fit: cover;
  border: 1px solid var(--border);
}

@media (max-width: 900px) {
  .top-nav-item span {
    display: none;
  }

  .top-nav-logout span {
    display: none;
  }

  .main-content {
    padding: 1rem;
    gap: 1rem;
  }

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

  .driver-detail-grid,
  .driver-detail-docs,
  .ride-detail-grid,
  .ride-detail-fare-row {
    grid-template-columns: 1fr;
  }

  .rides-filters-row {
    gap: 0.5rem;
  }
}

.support-panel .support-muted,
.lost-found-panel .lost-muted {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.support-error,
.lost-found-error {
  color: #b42318;
  font-size: 0.875rem;
}

.support-ticket-list,
.lost-item-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 65vh;
  overflow-y: auto;
}

.support-ticket-item,
.lost-item-row {
  text-align: left;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.support-ticket-item:hover,
.lost-item-row:hover {
  background: var(--muted-light);
}

.support-ticket-item.is-active,
.lost-item-row.is-active {
  background: var(--primary-light);
  border-color: rgba(12, 12, 11, 0.2);
}

.support-ticket-item-head,
.lost-item-row-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.support-ticket-subject,
.lost-item-title {
  font-weight: 600;
  color: var(--color-primary);
}

.support-ticket-meta,
.lost-item-meta {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.support-badge,
.lost-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
}

.support-badge-open,
.lost-badge-open {
  background: rgba(190, 242, 100, 0.45);
  color: var(--color-primary);
}

.support-badge-pending,
.lost-badge-in_progress {
  background: rgba(12, 12, 11, 0.08);
  color: var(--color-primary);
}

.support-badge-resolved,
.lost-badge-resolved {
  background: rgba(12, 12, 11, 0.12);
  color: var(--color-primary);
}

.support-badge-closed,
.lost-badge-closed {
  background: rgba(12, 12, 11, 0.06);
  color: var(--text-muted);
}

.support-detail,
.lost-detail {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.support-detail-header,
.lost-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.support-status-row,
.lost-status-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.support-messages {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 42vh;
  overflow-y: auto;
  padding: 0.25rem;
}

.support-message {
  max-width: 82%;
  padding: 0.6rem 0.85rem;
  border-radius: 0.85rem;
  font-size: 0.9rem;
  line-height: 1.45;
}

.support-message.is-user {
  align-self: flex-start;
  background: var(--muted-light);
  color: var(--color-primary);
}

.support-message.is-admin {
  align-self: flex-end;
  background: var(--color-primary);
  color: var(--color-tertiary);
}

.support-message-sender {
  font-size: 0.72rem;
  opacity: 0.75;
  margin-bottom: 0.25rem;
}

.support-message-image,
.image-thumb {
  display: block;
  margin-top: 0.5rem;
  max-width: 120px;
  max-height: 88px;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  overflow: hidden;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}

.image-thumb img,
.support-message-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(12, 12, 11, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.image-lightbox-dialog {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  max-width: min(92vw, 960px);
  max-height: 92vh;
}

.image-lightbox-full {
  max-width: 100%;
  max-height: calc(92vh - 3rem);
  object-fit: contain;
  border-radius: 0.75rem;
}

.image-lightbox-close {
  color: var(--color-tertiary);
}

.image-thumb-error {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #b42318;
}

.support-pending-photo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.support-pending-photo img {
  height: 72px;
  border-radius: 0.5rem;
  object-fit: cover;
}

.support-compose {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.support-attach-btn {
  flex-shrink: 0;
  padding: 0.5rem;
}

.support-reply-input {
  flex: 1 1;
}

.lost-detail-photo {
  max-width: 100%;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
}

.lost-detail-info {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.75rem 1rem;
  background: var(--muted-light);
  border-radius: 0.75rem;
}

/* Panel web — nav actions, dropdown, developer */
.top-nav-brand {
  text-decoration: none;
}

.top-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.top-nav-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 0.5rem;
  color: rgba(250, 250, 247, 0.85);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.top-nav-icon-btn:hover,
.top-nav-icon-btn.active {
  background: var(--color-secondary);
  color: var(--color-white);
}

.top-nav-dropdown {
  position: relative;
  flex-shrink: 0;
}

.top-nav-dropdown-trigger {
  font-family: inherit;
}

.top-nav-dropdown-trigger .rotated {
  transform: rotate(180deg);
}

.top-nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 200px;
  background: var(--color-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.65rem;
  padding: 0.35rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  z-index: 300;
}

.top-nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.45rem;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.8125rem;
}

.top-nav-dropdown-item:hover,
.top-nav-dropdown-item.active {
  background: var(--color-secondary);
  color: var(--color-white);
}

.export-menu-panel {
  position: fixed;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.35rem;
  background: var(--color-white);
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  box-shadow: 0 8px 24px rgba(12, 12, 11, 0.16);
}

.export-menu-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: none;
  border-radius: 0.45rem;
  background: transparent;
  color: var(--foreground);
  font-family: inherit;
  font-size: 0.8125rem;
  text-align: left;
  cursor: pointer;
}

.export-menu-item:hover {
  background: var(--color-secondary);
  color: var(--color-white);
}

.login-title {
  text-align: center;
  margin-bottom: 0.35rem;
  font-weight: 700;
  font-size: 1.35rem;
}

.login-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-submit {
  width: 100%;
  padding: 0.875rem;
  background: var(--color-secondary);
  color: var(--color-primary);
}

.dispatch-msg {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  border: 1px solid var(--border);
}

.dispatch-msg--ok {
  background: var(--primary-light);
  color: var(--color-primary);
}

.dispatch-msg--err {
  background: var(--muted-light);
  color: var(--color-primary);
}

/* ─── Panel forms, cards & tables ─── */
.panel-card-body {
  padding: 1.375rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.panel-card-body > .card-title {
  margin-bottom: 0;
}

.notifications-broadcast {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.panel-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.panel-section-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem 1.5rem 0;
}

.panel-section-head h2 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}

.panel-section-head p {
  margin: 0.4rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.panel-section-head svg {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--color-primary);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 1.25rem 1.5rem;
  gap: 1.25rem 1.5rem;
  padding: 0 1.5rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.form-field > span {
  font-size: 0.8125rem;
  font-weight: 500;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  background: var(--color-tertiary);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.625rem 0.875rem;
  color: var(--foreground);
  font-family: inherit;
  font-size: 0.875rem;
}

.form-field textarea {
  resize: vertical;
  min-height: 6.5rem;
  line-height: 1.45;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--primary-light);
}

.panel-section .dispatch-msg {
  margin: 0 1.5rem;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
  margin-top: 0.25rem;
}

.data-table-wrap {
  overflow-x: auto;
  margin-top: 0.25rem;
}

.data-table-wrap .table th {
  padding-top: 1rem;
  padding-bottom: 0.75rem;
}

.data-table-wrap .table td {
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.clientes-form-fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.clientes-form-fields .form-group {
  gap: 0.5rem;
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  display: block;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 1rem;
  gap: 1rem;
}

.developer-observability-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.developer-observability-list li {
  padding: 1rem 1.125rem;
  border: 1px solid var(--border);
  border-radius: 0.625rem;
  background: var(--muted-light);
}

.developer-observability-list strong {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
}

.developer-observability-list p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.developer-observability-list a {
  color: var(--color-primary);
  font-weight: 500;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  cursor: pointer;
}

.driver-ride-history-filters {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.driver-ride-history-filters label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8125rem;
  min-width: 140px;
}

.developer-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.developer-toolbar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.developer-tabs {
  margin-bottom: 0.25rem;
}

.developer-tab-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.developer-setup-bar {
  height: 10px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
  margin-bottom: 1rem;
}

.developer-setup-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.25s ease;
}

.developer-setup-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.developer-setup-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.65rem 0.75rem;
  border-radius: 0.65rem;
  border: 1px solid var(--border);
}

.developer-setup-list li.done {
  background: var(--primary-light);
}

.developer-setup-list li.pending {
  background: #fff7ed;
}

.developer-setup-dot {
  font-weight: 700;
  min-width: 1rem;
}

.developer-setup-list small {
  display: block;
  color: var(--muted);
  margin-top: 0.15rem;
}

/* ---------- Checklist de despliegue (sección Developer) ---------- */

.deploy-checklist {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.deploy-progress-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.deploy-progress-bar {
  flex: 1 1;
  height: 8px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}

.deploy-progress-bar-fill {
  height: 100%;
  background: var(--color-secondary);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.deploy-progress-label {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.deploy-toolbar {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.deploy-route {
  display: flex;
  flex-direction: column;
}

.deploy-cp {
  position: relative;
  padding-left: 1.6rem;
  padding-bottom: 0.75rem;
}

.deploy-cp::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 26px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.deploy-cp:last-child::before {
  display: none;
}

.deploy-cp-dot {
  position: absolute;
  left: 0;
  top: 14px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-tertiary);
  border: 2px solid var(--border);
  transition: background 0.15s, border-color 0.15s;
}

.deploy-cp[data-state='partial'] .deploy-cp-dot {
  border-color: var(--color-secondary);
}

.deploy-cp[data-state='done'] .deploy-cp-dot {
  border-color: var(--color-secondary);
  background: var(--color-secondary);
}

.deploy-cp-card {
  background: var(--color-white);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.deploy-cp-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: inherit;
}

.deploy-cp-code {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-secondary);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.deploy-cp-title {
  font-weight: 700;
  font-size: 0.92rem;
  flex: 1 1;
  min-width: 0;
}

.deploy-cp-count {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  font-size: 0.76rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.deploy-chev {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform 0.15s;
}

.deploy-chev.collapsed {
  transform: rotate(-45deg);
  margin-top: 3px;
}

.deploy-cp-body {
  border-top: 1px solid var(--border);
  padding: 0.25rem 1rem 0.75rem;
}

.deploy-cp-note {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin: 0.6rem 0.1rem 0.7rem;
  line-height: 1.55;
}

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

.deploy-step {
  border-top: 1px solid var(--border);
}

.deploy-step:first-child {
  border-top: none;
}

.deploy-step label {
  display: flex;
  gap: 0.65rem;
  padding: 0.65rem 0.1rem;
  cursor: pointer;
}

.deploy-step input[type='checkbox'] {
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  width: 17px;
  height: 17px;
  border-radius: 5px;
  border: 1.6px solid var(--border);
  background: var(--color-white);
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
  position: relative;
  transition: border-color 0.15s, background 0.15s;
}

.deploy-step input[type='checkbox']:checked {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
}

.deploy-step input[type='checkbox']:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 0px;
  width: 5px;
  height: 9px;
  border-right: 2px solid var(--color-white);
  border-bottom: 2px solid var(--color-white);
  transform: rotate(40deg);
}

.deploy-step-main {
  flex: 1 1;
  min-width: 0;
}

.deploy-step-title {
  font-size: 0.87rem;
  font-weight: 600;
}

.deploy-step input:checked ~ .deploy-step-main .deploy-step-title {
  color: var(--text-muted);
  text-decoration: line-through;
  -webkit-text-decoration-color: var(--border);
          text-decoration-color: var(--border);
}

.deploy-step-detail {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  line-height: 1.55;
}

.deploy-code {
  margin: 0.5rem 0 0.15rem;
  background: var(--color-primary);
  color: var(--color-tertiary);
  border-radius: 0.5rem;
  padding: 0.55rem 0.7rem;
  overflow-x: auto;
  font-size: 0.76rem;
  line-height: 1.6;
}

.deploy-code code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  white-space: pre;
}

.developer-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  grid-gap: 0.75rem;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.developer-health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  grid-gap: 0.75rem;
  gap: 0.75rem;
}

.developer-health-item {
  padding: 0.75rem;
  border-radius: 0.65rem;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.developer-health-item.up {
  background: var(--primary-light);
}

.developer-health-item.down {
  background: rgba(254, 97, 80, 0.12);
}

.developer-logs-table-wrap {
  overflow-x: auto;
}

.log-level {
  text-transform: uppercase;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}

.log-level--error {
  background: rgba(254, 97, 80, 0.15);
  color: #b91c1c;
}

.log-level--warn {
  background: rgba(234, 179, 8, 0.15);
  color: #a16207;
}

.log-level--info {
  background: var(--primary-light);
  color: var(--color-primary);
}

.log-message {
  max-width: 420px;
  word-break: break-word;
}

@media (max-width: 900px) {
  .form-grid {
    grid-template-columns: 1fr;
    gap: 1.125rem;
  }

  .clientes-form-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

  .top-nav-logout span {
    display: none;
  }
}

/* Sileo toasts — always above panel modals, brand black + white text */
[data-sileo-viewport] {
  z-index: 10000 !important;
  pointer-events: none;
}

[data-sileo-viewport] > * {
  pointer-events: auto;
}

[data-sileo-viewport] [data-sileo-title] {
  color: #ffffff !important;
}

[data-sileo-viewport] [data-sileo-description] {
  color: rgba(255, 255, 255, 0.88) !important;
}

[data-sileo-viewport] [data-sileo-badge] {
  color: #ffffff !important;
}

.public-legal {
  min-height: 100vh;
  background: var(--color-tertiary);
  display: flex;
  flex-direction: column;
}

.public-legal-header {
  padding: 1.5rem 1.5rem 0;
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}

.public-legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--color-primary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.75;
}

.public-legal-back:hover {
  opacity: 1;
}

.public-legal-main {
  flex: 1 1;
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
  padding: 1.5rem 1.5rem 4rem;
}

.public-legal-card {
  background: var(--color-white);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
}

.public-legal-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-primary);
  margin: 0 0 0.35rem;
}

.public-legal-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0 0 1.5rem;
}

.public-legal-toggle-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.public-legal-prose {
  white-space: pre-wrap;
  line-height: 1.7;
  color: var(--color-primary);
  font-size: 0.95rem;
}

.public-legal-hub-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.public-legal-hub-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  text-decoration: none;
  color: var(--color-primary);
  background: var(--color-white);
  font-weight: 600;
  transition: border-color 0.15s ease;
}

.public-legal-hub-link:hover {
  border-color: var(--color-secondary);
}

.public-legal-warning {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.25);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  color: #991b1b;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.public-legal-success {
  text-align: center;
  padding: 2rem 1rem;
}
/* ---------- Checklist de despliegue (sección Developer) ---------- */

.deploy-checklist {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.deploy-progress-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.deploy-progress-bar {
  flex: 1 1;
  height: 8px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}

.deploy-progress-bar-fill {
  height: 100%;
  background: var(--color-secondary);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.deploy-progress-label {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.deploy-toolbar {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.deploy-route {
  display: flex;
  flex-direction: column;
}

.deploy-cp {
  position: relative;
  padding-left: 1.6rem;
  padding-bottom: 0.75rem;
}

.deploy-cp::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 26px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.deploy-cp:last-child::before {
  display: none;
}

.deploy-cp-dot {
  position: absolute;
  left: 0;
  top: 14px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-tertiary);
  border: 2px solid var(--border);
  transition: background 0.15s, border-color 0.15s;
}

.deploy-cp[data-state='partial'] .deploy-cp-dot {
  border-color: var(--color-secondary);
}

.deploy-cp[data-state='done'] .deploy-cp-dot {
  border-color: var(--color-secondary);
  background: var(--color-secondary);
}

.deploy-cp-card {
  background: var(--color-white);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.deploy-cp-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: inherit;
}

.deploy-cp-code {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-secondary);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.deploy-cp-title {
  font-weight: 700;
  font-size: 0.92rem;
  flex: 1 1;
  min-width: 0;
}

.deploy-cp-count {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  font-size: 0.76rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.deploy-chev {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform 0.15s;
}

.deploy-chev.collapsed {
  transform: rotate(-45deg);
  margin-top: 3px;
}

.deploy-cp-body {
  border-top: 1px solid var(--border);
  padding: 0.25rem 1rem 0.75rem;
}

.deploy-cp-note {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin: 0.6rem 0.1rem 0.7rem;
  line-height: 1.55;
}

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

.deploy-step {
  border-top: 1px solid var(--border);
}

.deploy-step:first-child {
  border-top: none;
}

.deploy-step label {
  display: flex;
  gap: 0.65rem;
  padding: 0.65rem 0.1rem;
  cursor: pointer;
}

.deploy-step input[type='checkbox'] {
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  width: 17px;
  height: 17px;
  border-radius: 5px;
  border: 1.6px solid var(--border);
  background: var(--color-white);
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
  position: relative;
  transition: border-color 0.15s, background 0.15s;
}

.deploy-step input[type='checkbox']:checked {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
}

.deploy-step input[type='checkbox']:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 0px;
  width: 5px;
  height: 9px;
  border-right: 2px solid var(--color-white);
  border-bottom: 2px solid var(--color-white);
  transform: rotate(40deg);
}

.deploy-step-main {
  flex: 1 1;
  min-width: 0;
}

.deploy-step-title {
  font-size: 0.87rem;
  font-weight: 600;
}

.deploy-step input:checked ~ .deploy-step-main .deploy-step-title {
  color: var(--text-muted);
  text-decoration: line-through;
  -webkit-text-decoration-color: var(--border);
          text-decoration-color: var(--border);
}

.deploy-step-detail {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  line-height: 1.55;
}

.deploy-code {
  margin: 0.5rem 0 0.15rem;
  background: var(--color-primary);
  color: var(--color-tertiary);
  border-radius: 0.5rem;
  padding: 0.55rem 0.7rem;
  overflow-x: auto;
  font-size: 0.76rem;
  line-height: 1.6;
}

.deploy-code code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  white-space: pre;
}



.maps-usage-range {
  display: flex;
  gap: 0.35rem;
  padding: 0.25rem;
  background: var(--muted-light);
  border-radius: 0.625rem;
  border: 1px solid var(--border);
  width: -moz-fit-content;
  width: fit-content;
}

.maps-usage-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 110px;
  margin-top: 1.25rem;
  padding: 0.5rem 0.25rem 0;
  border-bottom: 1px solid var(--border);
}

.maps-usage-bar {
  flex: 1 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
  min-width: 4px;
}

.maps-usage-bar-stack {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 3px 3px 0 0;
  overflow: hidden;
}

.maps-usage-bar-cached {
  background: var(--primary-light);
  min-height: 0;
}

.maps-usage-bar-billed {
  background: var(--color-secondary);
  min-height: 0;
}

.maps-usage-legend {
  display: flex;
  gap: 1.25rem;
  margin-top: 0.6rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.maps-usage-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.maps-usage-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}

.maps-usage-dot--billed {
  background: var(--color-secondary);
}

.maps-usage-dot--cached {
  background: var(--primary-light);
  border: 1px solid var(--border);
}

.analytics-empty {
  color: var(--text-muted);
  font-size: 0.875rem;
  padding: 1.5rem 0;
  text-align: center;
}

.analytics-stripe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  grid-gap: 0.75rem;
  gap: 0.75rem;
}

.analytics-stripe-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  background: var(--accent-light);
}

.analytics-stripe-label {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.analytics-stripe-amount {
  font-size: 1.25rem;
  font-weight: 700;
}

.analytics-stripe-count {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.readonly-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  grid-gap: 0.75rem;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 1.25rem;
}

.readonly-password-row {
  display: flex;
  gap: 0.5rem;
}

.readonly-password-row .form-control {
  flex: 1 1;
  min-width: 0;
}

.readonly-credentials {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--color-secondary);
  border-radius: 0.6rem;
  background: var(--primary-light);
}

.readonly-credentials > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.readonly-credentials code {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.readonly-credentials span {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.readonly-credentials-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.readonly-banner {
  padding: 0.6rem 1rem;
  background: rgba(237, 161, 0, 0.16);
  border-bottom: 1px solid rgba(237, 161, 0, 0.4);
  color: #8a5d00;
  font-size: 0.85rem;
  text-align: center;
}

.zone-swatch {
  width: 10px;
  height: 26px;
  border-radius: 4px;
  flex-shrink: 0;
}

.zone-modal {
  max-width: 900px;
}

.zone-map {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.zone-map__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.zone-map__hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.zone-map__actions {
  display: flex;
  gap: 0.4rem;
}

.zone-map__canvas {
  position: relative;
  height: 380px;
  width: 100%;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #e8eaed;
  z-index: 0;
}

.zone-map__leaflet,
.zone-map__leaflet.leaflet-container {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 0 !important;
  cursor: crosshair;
}

.zone-map__canvas .leaflet-pane {
  z-index: 1 !important;
}

.zone-map__canvas .leaflet-top,
.zone-map__canvas .leaflet-bottom,
.zone-map__canvas .leaflet-control {
  z-index: 2 !important;
}

.zone-map__count {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}

.zone-vertex {
  background: var(--color-secondary);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  cursor: -webkit-grab;
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zone-vertex span {
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}

.ride-detail-head-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.developer-settings-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.developer-settings-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 0.25rem;
}

.developer-flag-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.developer-flag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

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

.developer-flag-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.developer-flag-copy strong {
  font-size: 0.9rem;
  font-weight: 600;
}

.developer-flag-copy small {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

@media (max-width: 640px) {
  .developer-flag-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }
}
.driver-wallet-modal {
  width: min(880px, calc(100vw - 2rem));
  max-width: none;
  max-height: 92vh;
  padding: 0;
  gap: 0;
  overflow: hidden;
  border-radius: 1rem;
}

.driver-wallet-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  grid-gap: 0.75rem;
  gap: 0.75rem;
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid var(--border);
  background: var(--color-tertiary);
}

.driver-wallet-head-icon,
.driver-wallet-section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--color-secondary);
  background: var(--color-primary);
}

.driver-wallet-head-icon {
  width: 40px;
  height: 40px;
  border-radius: 0.7rem;
}

.driver-wallet-head .driver-detail-close {
  align-self: center;
}

.driver-wallet-body {
  display: grid;
  grid-gap: 0.75rem;
  gap: 0.75rem;
  padding: 0.85rem;
  overflow-y: auto;
  overflow-x: hidden;
}

.driver-wallet-loading {
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--text-muted);
}

.driver-wallet-summary {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(330px, 1.3fr);
  grid-gap: 1rem;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border-radius: 0.8rem;
  color: var(--color-tertiary);
  background: var(--color-primary);
}

.driver-wallet-balance {
  display: flex;
  flex-direction: column;
}

.driver-wallet-balance > span {
  color: rgba(250, 250, 247, 0.7);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.055em;
}

.driver-wallet-balance strong {
  margin-top: 0.1rem;
  color: var(--color-secondary);
  font-size: clamp(1.8rem, 4vw, 2.45rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.driver-wallet-balance small {
  margin-top: 0.35rem;
  color: rgba(250, 250, 247, 0.62);
  font-size: 0.72rem;
}

.driver-wallet-statuses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 0.5rem;
  gap: 0.5rem;
}

.driver-wallet-status {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  grid-gap: 0.55rem;
  gap: 0.55rem;
  min-height: 54px;
  padding: 0.65rem 0.7rem;
  border: 1px solid rgba(250, 250, 247, 0.2);
  border-radius: 0.65rem;
  color: var(--color-tertiary);
  background: rgba(250, 250, 247, 0.07);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.driver-wallet-status:hover:not(:disabled) {
  border-color: var(--color-secondary);
  background: rgba(190, 242, 100, 0.1);
}

.driver-wallet-status:disabled {
  opacity: 0.6;
  cursor: wait;
}

.driver-wallet-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.driver-wallet-status.is-active .driver-wallet-status-dot {
  background: var(--color-secondary);
  box-shadow: 0 0 0 4px rgba(190, 242, 100, 0.14);
}

.driver-wallet-status > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.driver-wallet-status small {
  color: rgba(250, 250, 247, 0.58);
  font-size: 0.65rem;
}

.driver-wallet-status strong {
  overflow: hidden;
  font-size: 0.76rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.driver-wallet-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  grid-gap: 0.75rem;
  gap: 0.75rem;
}

.driver-wallet-panel,
.driver-wallet-history {
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  background: var(--color-tertiary);
  box-shadow: 0 6px 18px rgba(12, 12, 11, 0.04);
}

.driver-wallet-panel {
  display: flex;
  flex-direction: column;
  padding: 0.9rem;
}

.driver-wallet-section-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.driver-wallet-section-icon {
  width: 34px;
  height: 34px;
  border-radius: 0.55rem;
}

.driver-wallet-section-head h3,
.driver-wallet-history-head h3 {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.2;
}

.driver-wallet-section-head p,
.driver-wallet-history-head p {
  margin: 0.12rem 0 0;
  color: var(--text-muted);
  font-size: 0.7rem;
}

.driver-wallet-label {
  display: block;
  margin: 0 0 0.3rem;
  color: var(--foreground);
  font-size: 0.74rem;
  font-weight: 650;
}

.driver-wallet-label:not(:first-of-type) {
  margin-top: 0.65rem;
}

.driver-wallet-label span {
  color: var(--text-muted);
  font-weight: 400;
}

.driver-wallet-amount-input {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  grid-gap: 0.4rem;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0 0.8rem;
  border: 1px solid var(--color-primary);
  border-radius: 0.65rem;
  background: var(--color-tertiary);
}

.driver-wallet-amount-input:focus-within {
  box-shadow: 0 0 0 3px var(--primary-light);
}

.driver-wallet-amount-input > span {
  font-size: 1.15rem;
  font-weight: 800;
}

.driver-wallet-amount-input input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--foreground);
  background: transparent;
  font: inherit;
  font-size: 1.45rem;
  font-weight: 800;
}

.driver-wallet-amount-input em,
.driver-wallet-percent-fields em {
  color: var(--text-muted);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 700;
}

.driver-wallet-presets {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.4rem;
}

.driver-wallet-presets button {
  flex: 1 1;
  padding: 0.35rem 0.25rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--color-primary);
  background: var(--muted-light);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
}

.driver-wallet-presets button:hover:not(:disabled) {
  border-color: var(--color-primary);
  background: var(--primary-light);
}

.driver-wallet-recharge .form-control {
  min-height: 40px;
}

.driver-wallet-push-note {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin-top: 0.65rem;
  padding: 0.5rem 0.6rem;
  border-radius: 0.5rem;
  color: #166534;
  background: #ecfdf3;
  font-size: 0.68rem;
  line-height: 1.35;
}

.driver-wallet-push-note svg {
  flex: 0 0 auto;
  margin-top: 1px;
}

.driver-wallet-primary-action,
.driver-wallet-secondary-action {
  width: 100%;
  min-height: 40px;
  margin-top: 0.65rem;
  gap: 0.35rem;
}

.driver-wallet-percent-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 0.55rem;
  gap: 0.55rem;
}

.driver-wallet-percent-fields label > span {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.72rem;
  font-weight: 650;
}

.driver-wallet-percent-fields label > div {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  grid-gap: 0.25rem;
  gap: 0.25rem;
  min-height: 44px;
  padding: 0 0.6rem;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
}

.driver-wallet-percent-fields label > div:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--primary-light);
}

.driver-wallet-percent-fields input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--foreground);
  background: transparent;
  font: inherit;
  font-size: 1rem;
  font-weight: 750;
}

.driver-wallet-commission-help {
  flex: 1 1;
  margin: 0.75rem 0 0;
  padding: 0.6rem;
  border-radius: 0.5rem;
  color: var(--text-muted);
  background: var(--muted-light);
  font-size: 0.68rem;
  line-height: 1.45;
}

.driver-wallet-history {
  overflow: hidden;
}

.driver-wallet-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--border);
}

.driver-wallet-history-head > span {
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  color: var(--text-muted);
  background: var(--muted-light);
  font-size: 0.66rem;
  font-weight: 650;
  white-space: nowrap;
}

.driver-wallet-history-wrap {
  max-height: 230px;
  overflow: auto;
}

.driver-wallet-table {
  min-width: 660px;
}

.driver-wallet-table th,
.driver-wallet-table td {
  padding: 0.62rem 0.75rem;
  font-size: 0.72rem;
}

.driver-wallet-table th {
  top: 0;
}

.driver-wallet-table td:first-child,
.driver-wallet-table td:nth-child(4),
.driver-wallet-table td:nth-child(5) {
  white-space: nowrap;
}

.driver-wallet-movement {
  display: inline-flex;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  white-space: nowrap;
}

.driver-wallet-movement.is-credit {
  color: #166534;
  background: #dcfce7;
}

.driver-wallet-movement.is-debit {
  color: #9f1239;
  background: #ffe4e6;
}

.driver-wallet-credit,
.driver-wallet-table-balance {
  font-weight: 800;
}

.driver-wallet-credit {
  color: #16803a;
}

.driver-wallet-debit {
  color: #b42318;
  font-weight: 800;
}

.driver-wallet-empty {
  padding: 1.5rem !important;
  color: var(--text-muted);
  text-align: center !important;
}

@media (max-width: 760px) {
  .driver-wallet-modal {
    width: min(100% - 1rem, 620px);
    max-height: 96vh;
  }

  .driver-wallet-body {
    padding: 0.65rem;
  }

  .driver-wallet-summary,
  .driver-wallet-form-grid {
    grid-template-columns: 1fr;
  }

  .driver-wallet-summary {
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .driver-wallet-head {
    padding: 0.75rem;
  }

  .driver-wallet-head-icon {
    width: 36px;
    height: 36px;
  }

  .driver-wallet-statuses,
  .driver-wallet-percent-fields {
    grid-template-columns: 1fr;
  }

  .driver-wallet-table {
    min-width: 620px;
  }
}
.ui-segmented {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: var(--color-muted, #eef2f6);
}

.ui-segmented button {
  border: 0;
  border-radius: 9px;
  padding: 8px 14px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.ui-segmented button.active {
  background: #fff;
  color: var(--color-primary, #08294d);
  box-shadow: 0 1px 4px rgb(0 0 0 / 12%);
}

.maps-provider-options {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.maps-provider-option {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  cursor: pointer;
}

.maps-provider-option.is-selected {
  border-color: var(--primary, #d0195f);
  background: rgba(208, 25, 95, 0.04);
}

.maps-provider-option strong {
  display: block;
  font-size: 14px;
}

.maps-provider-option em {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-style: normal;
  opacity: 0.7;
}

.maps-test-result {
  margin-top: 10px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border, #e5e7eb);
  font-size: 13px;
}

.maps-test-result.is-ok {
  border-color: #16a34a;
  background: rgba(22, 163, 74, 0.06);
}

.maps-test-result.is-error {
  border-color: #dc2626;
  background: rgba(220, 38, 38, 0.06);
}

.maps-test-result ul {
  margin: 8px 0 0;
  padding-left: 4px;
  list-style: none;
}

.maps-test-result li {
  padding: 3px 0;
}

.maps-test-result em {
  font-style: normal;
  opacity: 0.6;
}

.developer-maps {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
}

.maps-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.maps-active-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: rgba(127, 127, 127, 0.08);
  font-size: 13px;
}

.maps-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.maps-dot.is-osm { background: #16a34a; }
.maps-dot.is-google { background: #eda100; }

.maps-reload {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  opacity: 0.6;
  display: inline-flex;
}

.maps-reload:hover { opacity: 1; }

.maps-save-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.maps-dirty {
  font-size: 13px;
  color: #b45309;
}

.maps-fallback {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
}

.maps-fallback strong { display: block; font-size: 14px; }
.maps-fallback em { display: block; margin-top: 2px; font-size: 12px; font-style: normal; opacity: 0.7; }

.maps-warn {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(234, 179, 8, 0.12);
  color: #92400e;
  font-size: 12px;
}

/* Detalle de un viaje de empresa (portal de la empresa y administrador). */
.modal-content.company-ride-modal {
  width: min(960px, 96vw);
  max-width: none;
  max-height: 94vh;
  overflow-y: auto;
}

.company-ride-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 1rem;
  gap: 1rem;
}

.company-ride-grid > * {
  min-width: 0;
}

.company-ride-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.company-ride-table th,
.company-ride-table td {
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.company-ride-table th:last-child,
.company-ride-table td:last-child {
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .company-ride-grid {
    grid-template-columns: 1fr;
  }
}

/* Paginas legales: marca, formato del documento y pie */
.public-legal-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary);
}
.public-legal-brand img {
  border-radius: 12px;
}
.public-legal-prose--rich {
  white-space: normal;
}
.public-legal-prose--rich p {
  margin: 0 0 0.85rem;
}
.public-legal-heading {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 1.6rem 0 0.5rem;
  color: var(--color-primary);
}
.public-legal-subheading {
  font-size: 0.98rem;
  font-weight: 700;
  margin: 1.1rem 0 0.4rem;
}
.public-legal-list {
  margin: 0 0 0.9rem;
  padding-left: 1.25rem;
}
.public-legal-list li {
  margin-bottom: 0.5rem;
}
.public-legal-info {
  margin: 1rem 0;
}
.public-legal-footer {
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
  padding: 0 1.5rem 2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}
.public-legal-footer p {
  margin: 0.2rem 0;
}

/*!********************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./node_modules/sileo/dist/styles.css ***!
  \********************************************************************************************************************************************************************************************************************************************************************************/
/* -------------------------------- Variables ------------------------------- */

:root {
	--sileo-spring-easing: linear(
		0,
		0.002 0.6%,
		0.007 1.2%,
		0.015 1.8%,
		0.026 2.4%,
		0.041 3.1%,
		0.06 3.8%,
		0.108 5.3%,
		0.157 6.6%,
		0.214 8%,
		0.467 13.7%,
		0.577 16.3%,
		0.631 17.7%,
		0.682 19.1%,
		0.73 20.5%,
		0.771 21.8%,
		0.808 23.1%,
		0.844 24.5%,
		0.874 25.8%,
		0.903 27.2%,
		0.928 28.6%,
		0.952 30.1%,
		0.972 31.6%,
		0.988 33.1%,
		1.01 35.7%,
		1.025 38.5%,
		1.034 41.6%,
		1.038 45%,
		1.035 50.1%,
		1.012 64.2%,
		1.003 73%,
		0.999 83.7%,
		1
	);

	--sileo-duration: 600ms;
	--sileo-height: 40px;
	--sileo-width: 350px;

	--sileo-state-success: oklch(0.723 0.219 142.136);
	--sileo-state-loading: oklch(0.556 0 0);
	--sileo-state-error: oklch(0.637 0.237 25.331);
	--sileo-state-warning: oklch(0.795 0.184 86.047);
	--sileo-state-info: oklch(0.685 0.169 237.323);
	--sileo-state-action: oklch(0.623 0.214 259.815);
}

/* ---------------------------------- Toast --------------------------------- */

[data-sileo-toast] {
	position: relative;
	cursor: pointer;
	pointer-events: auto;
	touch-action: none;
	border: 0;
	background: transparent;
	padding: 0;
	width: var(--sileo-width);
	height: var(--_h, var(--sileo-height));
	opacity: 0;
	transform: translateZ(0) scale(0.95);
	transform-origin: center;
	contain: layout style;
	overflow: visible;
}

[data-sileo-toast][data-state="loading"] {
	cursor: default;
}

[data-sileo-toast][data-ready="true"] {
	opacity: 1;
	transform: translateZ(0) scale(1);
	transition:
		transform calc(var(--sileo-duration) * 0.66) var(--sileo-spring-easing),
		opacity calc(var(--sileo-duration) * 0.66) var(--sileo-spring-easing),
		margin-bottom calc(var(--sileo-duration) * 0.66) var(--sileo-spring-easing),
		margin-top calc(var(--sileo-duration) * 0.66) var(--sileo-spring-easing),
		height var(--sileo-duration) var(--sileo-spring-easing);
}

/* Entry animation direction */
[data-sileo-viewport][data-position^="top"]
	[data-sileo-toast]:not([data-ready="true"]) {
	transform: translateY(-6px) scale(0.95);
}

[data-sileo-viewport][data-position^="bottom"]
	[data-sileo-toast]:not([data-ready="true"]) {
	transform: translateY(6px) scale(0.95);
}

/* Exit */
[data-sileo-toast][data-ready="true"][data-exiting="true"] {
	opacity: 0;
	pointer-events: none;
}

[data-sileo-viewport][data-position^="top"]
	[data-sileo-toast][data-ready="true"][data-exiting="true"] {
	transform: translateY(-6px) scale(0.95);
}

[data-sileo-viewport][data-position^="bottom"]
	[data-sileo-toast][data-ready="true"][data-exiting="true"] {
	transform: translateY(6px) scale(0.95);
}

/* ------------------------------- SVG Canvas ------------------------------- */

[data-sileo-canvas] {
	position: absolute;
	left: 0;
	right: 0;
	pointer-events: none;
	transform: translateZ(0);
	contain: layout style;
	overflow: visible;
}

[data-sileo-canvas][data-edge="top"] {
	bottom: 0;
	transform: scaleY(-1) translateZ(0);
}

[data-sileo-canvas][data-edge="bottom"] {
	top: 0;
}

[data-sileo-svg] {
	overflow: visible;
}

/* --------------------------------- Shapes --------------------------------- */

/* --------------------------------- Header --------------------------------- */

[data-sileo-header] {
	position: absolute;
	z-index: 20;
	display: flex;
	align-items: center;
	padding: 0.5rem;
	height: var(--sileo-height);
	overflow: hidden;
	left: var(--_px, 0px);
	transform: var(--_ht);
	max-width: var(--_pw);
}

[data-sileo-toast][data-ready="true"] [data-sileo-header] {
	transition:
		transform var(--sileo-duration) var(--sileo-spring-easing),
		left var(--sileo-duration) var(--sileo-spring-easing),
		max-width var(--sileo-duration) var(--sileo-spring-easing);
}

[data-sileo-header][data-edge="top"] {
	bottom: 0;
}

[data-sileo-header][data-edge="bottom"] {
	top: 0;
}

/* Header inner morphing */
[data-sileo-header-stack] {
	position: relative;
	display: inline-flex;
	align-items: center;
	height: 100%;
}

[data-sileo-header-inner] {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	white-space: nowrap;
	opacity: 1;
	filter: blur(0px);
	transform: translateZ(0);
}

[data-sileo-header-inner][data-layer="current"] {
	position: relative;
	z-index: 1;
	animation: sileo-header-enter var(--sileo-duration) var(--sileo-spring-easing)
		both;
}

[data-sileo-header-inner][data-layer="current"]:not(:only-child),
[data-sileo-header-inner][data-exiting="true"] {
	will-change: opacity, filter;
}

[data-sileo-header-inner][data-layer="prev"] {
	position: absolute;
	left: 0;
	top: 0;
	z-index: 0;
	pointer-events: none;
}

[data-sileo-header-inner][data-exiting="true"] {
	animation: sileo-header-exit calc(var(--sileo-duration) * 0.7) ease forwards;
}

/* ---------------------------------- Badge --------------------------------- */

[data-sileo-badge] {
	display: flex;
	height: 24px;
	width: 24px;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	padding: 2px;
	box-sizing: border-box;
	border-radius: 9999px;
	color: var(--sileo-tone, currentColor);
	background-color: var(--sileo-tone-bg, transparent);
}

/* ---------------------------------- Title --------------------------------- */

[data-sileo-title] {
	font-size: 0.825rem;
	line-height: 1rem;
	font-weight: 500;
	text-transform: capitalize;
	color: var(--sileo-tone, currentColor);
}

/* ------------------------------ State Colors ------------------------------ */

:is([data-sileo-badge], [data-sileo-title], [data-sileo-button])[data-state] {
	--_c: var(--sileo-state-success);
}

:is(
		[data-sileo-badge],
		[data-sileo-title],
		[data-sileo-button]
	)[data-state="loading"] {
	--_c: var(--sileo-state-loading);
}

:is(
		[data-sileo-badge],
		[data-sileo-title],
		[data-sileo-button]
	)[data-state="error"] {
	--_c: var(--sileo-state-error);
}

:is(
		[data-sileo-badge],
		[data-sileo-title],
		[data-sileo-button]
	)[data-state="warning"] {
	--_c: var(--sileo-state-warning);
}

:is(
		[data-sileo-badge],
		[data-sileo-title],
		[data-sileo-button]
	)[data-state="info"] {
	--_c: var(--sileo-state-info);
}

:is(
		[data-sileo-badge],
		[data-sileo-title],
		[data-sileo-button]
	)[data-state="action"] {
	--_c: var(--sileo-state-action);
}

:is([data-sileo-badge], [data-sileo-title])[data-state] {
	--sileo-tone: var(--_c);
	--sileo-tone-bg: color-mix(in oklch, var(--_c) 20%, transparent);
}

/* --------------------------------- Content -------------------------------- */

[data-sileo-content] {
	position: absolute;
	left: 0;
	z-index: 10;
	width: 100%;
	pointer-events: none;
	opacity: var(--_co, 0);
}

[data-sileo-content]:not([data-visible="true"]) {
	content-visibility: hidden;
}

[data-sileo-toast][data-ready="true"] [data-sileo-content] {
	transition: opacity calc(var(--sileo-duration) * 0.08) ease
		calc(var(--sileo-duration) * 0.04);
}

[data-sileo-content][data-edge="top"] {
	top: 0;
}

[data-sileo-content][data-edge="bottom"] {
	top: var(--sileo-height);
}

[data-sileo-content][data-visible="true"] {
	pointer-events: auto;
}

[data-sileo-toast][data-ready="true"]
	[data-sileo-content][data-visible="true"] {
	transition: opacity calc(var(--sileo-duration) * 0.6) ease
		calc(var(--sileo-duration) * 0.3);
}

[data-sileo-description] {
	width: 100%;
	text-align: left;
	padding: 1rem;
	font-size: 0.875rem;
	line-height: 1.25rem;
	contain: layout style paint;
	content-visibility: auto;
}

/* --------------------------------- Button --------------------------------- */

[data-sileo-button] {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 1.75rem;
	padding: 0 0.625rem;
	margin-top: 0.75rem;
	border-radius: 9999px;
	border: 0;
	font-size: 0.75rem;
	font-weight: 500;
	cursor: pointer;
	color: var(--sileo-btn-color, currentColor);
	background-color: var(--sileo-btn-bg, transparent);
	transition: background-color 150ms ease;
}

[data-sileo-button]:hover {
	background-color: var(--sileo-btn-bg-hover, transparent);
}

[data-sileo-button][data-state] {
	--sileo-btn-color: var(--_c);
	--sileo-btn-bg: color-mix(in oklch, var(--_c) 15%, transparent);
	--sileo-btn-bg-hover: color-mix(in oklch, var(--_c) 25%, transparent);
}

/* -------------------------------- Animations ------------------------------ */

[data-sileo-icon="spin"] {
	animation: sileo-spin 1s linear infinite;
}

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

@keyframes sileo-header-enter {
	from {
		opacity: 0;
		filter: blur(6px);
	}
	to {
		opacity: 1;
		filter: blur(0px);
	}
}

@keyframes sileo-header-exit {
	from {
		opacity: 1;
		filter: blur(0px);
	}
	to {
		opacity: 0;
		filter: blur(6px);
	}
}

/* -------------------------------- Viewports ------------------------------- */

[data-sileo-viewport] {
	position: fixed;
	z-index: 50;
	display: flex;
	gap: 0.75rem;
	padding: 0.75rem;
	pointer-events: none;
	max-width: calc(100vw - 1.5rem);
	contain: layout style;
}

[data-sileo-viewport][data-position^="top"]
	[data-sileo-toast]:not([data-ready="true"]) {
	margin-bottom: calc(-1 * (var(--sileo-height) + 0.75rem));
}

[data-sileo-viewport][data-position^="bottom"]
	[data-sileo-toast]:not([data-ready="true"]) {
	margin-top: calc(-1 * (var(--sileo-height) + 0.75rem));
}

/* Vertical edge */
[data-sileo-viewport][data-position^="top"] {
	top: 0;
	flex-direction: column-reverse;
}

[data-sileo-viewport][data-position^="bottom"] {
	bottom: 0;
	flex-direction: column;
}

/* Horizontal alignment */
[data-sileo-viewport][data-position$="left"] {
	left: 0;
	align-items: flex-start;
}

[data-sileo-viewport][data-position$="right"] {
	right: 0;
	align-items: flex-end;
}

[data-sileo-viewport][data-position$="center"] {
	left: 50%;
	transform: translateX(-50%);
	align-items: center;
}

@media (prefers-reduced-motion: no-preference) {
	[data-sileo-toast][data-ready="true"]:hover,
	[data-sileo-toast][data-ready="true"][data-exiting="true"] {
		will-change: transform, opacity, height;
	}
}

@media (prefers-reduced-motion: reduce) {
	[data-sileo-viewport],
	[data-sileo-viewport] *,
	[data-sileo-viewport] *::before,
	[data-sileo-viewport] *::after {
		animation-duration: 0.01ms;
		animation-iteration-count: 1;
		transition-duration: 0.01ms;
	}
}

/* --------------------------------- Themes -------------------------------- */

[data-sileo-viewport][data-theme="dark"] [data-sileo-description] {
	color: rgba(0, 0, 0, 0.5);
}

[data-sileo-viewport][data-theme="light"] [data-sileo-description] {
	color: rgba(255, 255, 255, 0.5);
}

