/* 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 {
	-ms-touch-action: pan-x pan-y;
	touch-action: pan-x pan-y;
	}

.leaflet-container.leaflet-touch-drag {
	-ms-touch-action: pinch-zoom;
	/* Fallback for FF which doesn't support pinch-zoom */
	touch-action: none;
	touch-action: pinch-zoom;
}

.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
	-ms-touch-action: none;
	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;
	-moz-box-sizing: border-box;
	     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;
	-webkit-transition: opacity 0.2s linear;
	   -moz-transition: opacity 0.2s linear;
	        transition: opacity 0.2s linear;
	}

.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
	opacity: 1;
	}

.leaflet-zoom-animated {
	-webkit-transform-origin: 0 0;
	    -ms-transform-origin: 0 0;
	        transform-origin: 0 0;
	}

svg.leaflet-zoom-animated {
	will-change: transform;
}

.leaflet-zoom-anim .leaflet-zoom-animated {
	-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
	   -moz-transition:    -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
	        transition:         transform 0.25s cubic-bezier(0,0,0.25,1);
	}

.leaflet-zoom-anim .leaflet-tile,
.leaflet-pan-anim .leaflet-tile {
	-webkit-transition: none;
	   -moz-transition: none;
	        transition: none;
	}

.leaflet-zoom-anim .leaflet-zoom-hide {
	visibility: hidden;
	}

/* cursors */

.leaflet-interactive {
	cursor: pointer;
	}

.leaflet-grab {
	cursor: -webkit-grab;
	cursor:    -moz-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:    -moz-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(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);
	width: 36px;
	height: 36px;
	}

.leaflet-retina .leaflet-control-layers-toggle {
	background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);
	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(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=);
	}

/* 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;
	-moz-box-sizing: border-box;
	     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;

	-webkit-transform: rotate(45deg);
	   -moz-transform: rotate(45deg);
	    -ms-transform: rotate(45deg);
	        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;
	-ms-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;
		}
	}

:root{
  --bg:#f8fafc;
  --card:#ffffff;
  --line:#e2e8f0;
  --text:#0f172a;
  --text-dark:#111827;
  --muted:#64748b;
  --primary:#d81921;
  --primary-hover:#b9141b;
  --primary-active:#991016;
  --primary2:#fff1f2;
  --primary-border:#fecdd3;
  --primary-glow:rgba(216, 25, 33, 0.2);
  --success:#16a34a;
  --warning:#d97706;
  --danger:#dc2626;
  --dark:#111827;
  --brand-black:#111111;
  --brand-red:#d81921;
  --brand-beige:#f4ede1;
  --shadow:0 10px 15px -3px rgba(0,0,0,0.06), 0 4px 6px -2px rgba(0,0,0,0.03);
  --shadow-sm:0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:0 4px 12px rgba(0,0,0,0.08);
  --radius:16px;
}

*{box-sizing:border-box}

body{margin:0;font-family:Inter,Segoe UI,-apple-system,BlinkMacSystemFont,Arial,sans-serif;background:#f4f6f9;color:var(--text)}

button,input,select,textarea{font-family:inherit}

/* Login Page Styles */

.login-wrap{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:#f8fafc}

.login-hero{background:#ffffff;color:var(--text);padding:60px 48px;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden;border-right:1px solid var(--line)}

.login-hero-content{position:relative;z-index:2;max-width:520px;margin:auto 0}

.login-hero h1{font-size:42px;line-height:1.15;font-weight:900;color:#111827;margin:0 0 16px}

.login-hero h1 .highlight{color:var(--primary)}

.login-hero p{font-size:16px;line-height:1.6;color:#64748b;margin:0}

.brand{display:flex;gap:12px;align-items:center;font-weight:900;font-size:22px}

.logo{width:44px;height:44px;border-radius:12px;background:#fff;color:var(--primary);display:grid;place-items:center;font-weight:900;box-shadow:var(--shadow-sm)}

.login-card-wrap{display:grid;place-items:center;padding:32px;background:#f8fafc}

.login-card{width:min(440px,100%);background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:0 20px 25px -5px rgba(0,0,0,0.06), 0 8px 10px -6px rgba(0,0,0,0.04);padding:36px}

.login-card-header{text-align:center;margin-bottom:28px}

.login-card-header h2{font-size:24px;font-weight:900;color:#111827;margin:16px 0 6px}

.login-card-header p{font-size:14px;color:#64748b;margin:0}

.field{display:grid;gap:8px;margin-bottom:18px}

.field label{font-size:13px;font-weight:700;color:#334155}

.input-with-icon{position:relative;display:flex;align-items:center}

.input-with-icon .input-icon{position:absolute;left:14px;color:#94a3b8;display:flex;align-items:center;pointer-events:none}

.input-with-icon .input{padding-left:42px}

.input,.select,.textarea{width:100%;border:1px solid var(--line);border-radius:12px;padding:12px 14px;background:#fff;color:var(--text);outline:none;font-size:14px;transition:border-color 0.2s, box-shadow 0.2s}

.input:focus,.select:focus,.textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(216,25,33,0.12)}

.textarea{min-height:74px;resize:vertical}

/* Buttons */

.btn{border:0;border-radius:12px;padding:12px 18px;background:var(--success);color:#fff;font-weight:700;font-size:14px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:all 0.18s ease;box-shadow:0 2px 8px rgba(22, 163, 74, 0.25)}

.btn:hover{background:#15803d;box-shadow:0 4px 14px rgba(22, 163, 74, 0.35);transform:translateY(-1px)}

.btn:active{background:#166534;transform:translateY(0)}

.btn.primary{background:var(--success);box-shadow:0 2px 8px rgba(22, 163, 74, 0.25)}

.btn.primary:hover{background:#15803d;box-shadow:0 4px 14px rgba(22, 163, 74, 0.35)}

.btn.secondary{background:#f1f5f9;color:#1e293b;border:1px solid var(--line);box-shadow:none}

.btn.secondary:hover{background:#e2e8f0;color:#0f172a}

.btn.success{background:var(--success);box-shadow:0 2px 8px rgba(22, 163, 74, 0.25)}

.btn.success:hover{background:#15803d;box-shadow:0 4px 14px rgba(22, 163, 74, 0.35)}

.btn.warning,.btn.warn{background:var(--warning);box-shadow:0 2px 8px rgba(217, 119, 6, 0.25)}

.btn.warning:hover,.btn.warn:hover{background:#b45309;box-shadow:0 4px 14px rgba(217, 119, 6, 0.35)}

.btn.danger,.btn.brand-danger{background:var(--danger);box-shadow:0 2px 8px rgba(220, 38, 38, 0.25)}

.btn.danger:hover,.btn.brand-danger:hover{background:#b91c1c;box-shadow:0 4px 14px rgba(220, 38, 38, 0.35)}

.btn.brand-red{background:var(--primary);box-shadow:0 2px 8px rgba(216, 25, 33, 0.25)}

.btn.brand-red:hover{background:var(--primary-hover);box-shadow:0 4px 14px rgba(216, 25, 33, 0.35)}

.btn.small{padding:6px 12px;font-size:12px;border-radius:8px}

.full-width{width:100%}

/* App Layout */

.app-layout { display: flex; height: 100vh; overflow: hidden; background: #f4f6f9; }

.app-content { flex: 1; padding: 24px 32px; overflow-y: auto; max-width: 1440px; margin: 0 auto; width: 100%; }

/* Sidebar Navigation (Matching Clean Design Reference) */

.sidebar { width: 270px; background: #ffffff; border-right: 1px solid #eef2f6; display: flex; flex-direction: column; height: 100%; box-shadow: 2px 0 12px rgba(0,0,0,0.03); z-index: 10; flex-shrink: 0; }

.sidebar-header { padding: 18px 20px 16px; border-bottom: 1px solid #f1f5f9; display: flex; align-items: center; justify-content: center; background: #ffffff; }

.sidebar-header .brand-logo-img { height: 56px; max-width: 100%; object-fit: contain; }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 14px 10px; display: flex; flex-direction: column; gap: 10px; }

.sidebar-group { margin-bottom: 2px; }

.sidebar-group-title { display: flex; justify-content: space-between; align-items: center; padding: 6px 12px; background: transparent; color: #94a3b8; font-weight: 800; font-size: 11px; cursor: pointer; border-radius: 8px; user-select: none; transition: background 0.15s; text-transform: uppercase; letter-spacing: 0.05em; }

.sidebar-group-title:hover { color: #64748b; background: #f8fafc; }

.sidebar-group-title .chevron { font-size: 9px; color: #94a3b8; transition: transform 0.2s ease; }

.sidebar-group-content { display: flex; flex-direction: column; gap: 3px; margin-top: 4px; }

.sidebar-item { display: flex; align-items: center; gap: 10px; width: 100%; background: transparent; border: none; text-align: left; padding: 9px 12px; border-radius: 8px; font-weight: 600; color: #475569; cursor: pointer; transition: all 0.15s ease; font-size: 13px; position: relative; border-left: 3.5px solid transparent; }

.sidebar-item:hover { background: #f8fafc; color: #0f172a; }

.sidebar-item:hover svg { color: var(--primary); }

.sidebar-item.active { background: #fff1f2; color: var(--primary); font-weight: 700; border-left: 3.5px solid var(--primary); border-radius: 0 8px 8px 0; }

.sidebar-item.active svg { color: var(--primary); stroke: var(--primary); }

.sidebar-item svg { width: 18px; height: 18px; min-width: 18px; min-height: 18px; flex-shrink: 0; color: #64748b; transition: color 0.15s ease; }

.sidebar-footer { padding: 14px 16px; border-top: 1px solid #f1f5f9; background: #fafbfc; }

.sidebar-user { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }

.avatar { width: 34px; height: 34px; background: #fff1f2; color: var(--primary); border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex-shrink: 0; border: 1px solid #fecdd3; }

.user-info { overflow: hidden; }

.user-info b { font-size: 12.5px; color: #1e293b; }

.user-info .muted { font-size: 11.5px; color: #64748b; }

.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

.btn svg, .sidebar-footer svg { width: 16px; height: 16px; min-width: 16px; min-height: 16px; max-width: 16px; max-height: 16px; flex-shrink: 0; }

/* Hero Dashboard Banner */

.hero{margin:18px 0;display:grid;grid-template-columns:1.4fr repeat(4,1fr);gap:14px}

.hero-main{background:linear-gradient(135deg,#111827 0%, #1f2937 60%, #831015 100%);color:#fff;border-radius:24px;padding:24px;box-shadow:var(--shadow);position:relative;overflow:hidden}

.hero-main::after{content:'';position:absolute;right:-40px;top:-40px;width:180px;height:180px;border-radius:50%;background:rgba(216,25,33,0.25);filter:blur(30px)}

.hero-main h1{margin:0 0 8px;font-size:28px;font-weight:900}

.hero-main p{margin:0;color:rgba(255,255,255,.85);line-height:1.5}

.kpi{background:#fff;border:1px solid var(--line);border-radius:20px;padding:20px;box-shadow:var(--shadow)}

.kpi span{color:var(--muted);font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:0.05em}

.kpi strong{display:block;font-size:30px;margin-top:8px;color:#111827;font-weight:900}

/* Grids & Cards */

.grid{display:grid;grid-template-columns:360px 1fr 390px;gap:18px;align-items:start}

.grid.two{grid-template-columns:1fr 1fr}

.grid.full{grid-template-columns:1fr}

.grid.three{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;align-items:start}

.card{background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow);overflow:visible}

.double{grid-column:span 2}

.table-responsive{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}

.card-h{padding:18px 20px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:10px}

.card-h h3{margin:0;font-size:18px;font-weight:800;color:#111827}

.card-b{padding:20px}

.muted{color:var(--muted)}

/* Status Chips & Badges */

.chip{display:inline-flex;align-items:center;border-radius:999px;padding:5px 12px;background:#f1f5f9;color:#475569;font-size:12px;font-weight:700}

.chip.ok{background:#dcfce7;color:#15803d}

.chip.warn{background:#fef3c7;color:#b45309}

.chip.danger{background:#fee2e2;color:#b91c1c}

.chip.err{background:#fee2e2;color:#b91c1c}

.chip.brand{background:#fff1f2;color:var(--primary);border:1px solid #fecdd3}

.list{display:grid;gap:12px}

.item{border:1px solid var(--line);border-radius:16px;padding:16px;background:#fff;transition:border-color 0.2s, box-shadow 0.2s}

.item:hover{border-color:#cbd5e1}

.item.active{border-color:var(--primary);background:#fff9f9}

.row{display:flex;justify-content:space-between;gap:12px;align-items:center}

.title{font-weight:800;color:#111827}

.actions{display:flex;gap:8px;flex-wrap:wrap}

.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}

.full{grid-column:1/-1}

/* Tables */

.table{width:100%;border-collapse:collapse;font-size:14px}

.table th,.table td{padding:12px 14px;border-bottom:1px solid var(--line);text-align:left}

.table th{font-size:11px;color:#64748b;text-transform:uppercase;letter-spacing:.06em;font-weight:800;background:#fafbfc}

.table tr:hover td{background:#f8fafc}

/* Mini Map / Tracking */

.mini-map{height:320px;border:1px solid #cbd5e1;border-radius:20px;position:relative;overflow:hidden;background:linear-gradient(90deg,rgba(148,163,184,.14) 1px,transparent 1px),linear-gradient(0deg,rgba(148,163,184,.14) 1px,transparent 1px),linear-gradient(135deg,#f8fbff,#e2e8f0);background-size:34px 34px}

.road{position:absolute;height:10px;background:rgba(71,85,105,.18);border-radius:999px}

.r1{width:70%;left:12%;top:42%;transform:rotate(8deg)}

.r2{width:52%;left:28%;top:65%;transform:rotate(-19deg)}

.r3{width:50%;left:25%;top:25%;transform:rotate(30deg)}

.pin{position:absolute;transform:translate(-50%,-50%);width:34px;height:34px;border-radius:50%;border:3px solid #fff;color:#fff;font-weight:900;display:grid;place-items:center;box-shadow:0 9px 20px rgba(15,23,42,.22);cursor:pointer}

.pin.done{background:var(--success)}

.pin.pending{background:var(--warning)}

.pin.active{background:var(--primary);box-shadow:0 0 0 8px rgba(216,25,33,.14),0 12px 24px rgba(216,25,33,.28)}

.pin-label{position:absolute;transform:translate(-50%,16px);background:#fff;border:1px solid var(--line);border-radius:10px;padding:5px 8px;font-size:11px;font-weight:800;white-space:nowrap;box-shadow:var(--shadow-sm)}

.van{position:absolute;transform:translate(-50%,-50%);background:#111827;color:#fff;border-radius:999px;padding:8px 12px;z-index:2;font-size:12px;font-weight:700}

.timeline{display:grid;gap:10px}

.step{border-left:4px solid var(--primary);background:#fff9f9;border-radius:12px;padding:12px 14px}

.warehouse{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}

.wh{border:1px solid var(--line);border-radius:16px;background:#ffffff;padding:16px}

.wh strong{font-size:24px;display:block;margin-top:6px;color:#111827}

.cart-row{display:grid;grid-template-columns:1.4fr .55fr .65fr .8fr auto;gap:10px;align-items:center;border:1px solid var(--line);border-radius:12px;padding:12px;margin-bottom:8px;background:#fff}

.cart-head{background:#f8fafc;font-weight:800;font-size:11px;color:#64748b;text-transform:uppercase;letter-spacing:.05em}

/* KPI Cards */

.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 20px; }

.kpi-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); transition: transform 0.2s ease, box-shadow 0.2s ease; }

.kpi-card:hover { transform: translateY(-3px); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.08); }

.kpi-label { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; }

.kpi-value { font-size: 32px; font-weight: 900; margin-bottom: 4px; color:#111827; }

.text-center { text-align: center; }

.aisles-scroll::-webkit-scrollbar { display: none; }

.b2b-card { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }

.b2b-card:hover { transform: translateY(-6px) scale(1.01); }

@keyframes slideUp { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.floating-cart { animation: slideUp 0.4s ease-out; }

/* Modals & Overlays */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
}

.modal-content {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

@keyframes radarPulse {
  0% { transform: scale(0.9); opacity: 0.9; }
  50% { transform: scale(1.6); opacity: 0.3; }
  100% { transform: scale(2.2); opacity: 0; }
}

.radar-pulse-effect {
  animation: radarPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.custom-driver-marker, .custom-client-marker {
  background: transparent !important;
  border: none !important;
}

.leaflet-popup-content-wrapper {
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  font-family: inherit;
  padding: 4px;
}

.leaflet-popup-content {
  margin: 10px 14px;
  line-height: 1.4;
}

@media(max-width:1024px){
  .login-wrap,.hero,.grid.two,.grid.three{grid-template-columns:1fr}
  .form-grid,.warehouse{grid-template-columns:1fr}
  .app-layout { flex-direction: column; }
  .app-content { padding: 14px; }
  .cart-row{grid-template-columns:1fr}
  .login-hero{padding:32px; border-right:none; border-bottom:1px solid var(--line)}
  .login-hero h1{font-size:32px}
}
.pwa-mobile-container {
  /* Scope everything to this container to avoid polluting admin styles */
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: #f7f5f0;
  color: #3b2011;
  min-height: 100vh;
  width: 100vw;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10000;
  overflow-x: hidden;
  overflow-y: auto;
  padding-bottom: 80px; /* Space for bottom nav */
}

/* Reset inside PWA */
.pwa-mobile-container * {
  box-sizing: border-box;
}

.pwa-mobile-container h1, 
.pwa-mobile-container h2, 
.pwa-mobile-container h3, 
.pwa-mobile-container p {
  margin: 0;
  color: #3b2011;
}

/* Common Layout */
.pwa-header {
  padding: 20px 20px 10px 20px;
}

.pwa-header-subtitle {
  font-size: 0.85rem;
  color: #78685e;
  font-weight: 600;
  margin-bottom: 4px;
}

.pwa-header-title {
  font-size: 1.6rem;
  font-weight: 900;
}

/* Metrics Card */
.pwa-metrics-card {
  background: linear-gradient(135deg, #875c46, #6b4735);
  border-radius: 20px;
  padding: 20px;
  margin: 10px 20px 24px 20px;
  color: white;
  box-shadow: 0 8px 20px rgba(107, 71, 53, 0.2);
}

.pwa-metrics-card h1, .pwa-metrics-card p, .pwa-metrics-card div {
  color: white;
}

.pwa-metrics-subtitle {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-bottom: 4px;
}

.pwa-metrics-value {
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 4px;
}

.pwa-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.pwa-metrics-item {
  background: rgba(255, 255, 255, 0.15);
  padding: 12px;
  border-radius: 12px;
  text-align: left;
}

.pwa-metrics-item strong {
  font-size: 1.2rem;
  display: block;
}

.pwa-metrics-item span {
  font-size: 0.75rem;
  opacity: 0.9;
}

/* Section Title */
.pwa-section-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 20px 12px 20px;
}

/* Search Input */
.pwa-search-container {
  margin: 0 20px 16px 20px;
}

.pwa-search-input {
  width: 100%;
  padding: 14px 16px 14px 40px;
  border-radius: 14px;
  border: 1px solid #eae5de;
  background: white;
  font-size: 0.95rem;
  font-family: inherit;
  color: #3b2011;
  background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="none" stroke="%2378685e" stroke-width="2" xmlns="http://www.w3.org/2000/svg"><circle cx="11" cy="11" r="8"/><path d="M21 21l-4.35-4.35"/></svg>');
  background-repeat: no-repeat;
  background-position: 12px center;
  background-size: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.pwa-search-input:focus {
  outline: none;
  border-color: #875c46;
}

/* Cards (Clients, Products) */
.pwa-list {
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pwa-card {
  background: white;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  border: 1px solid #f0ebe4;
  cursor: pointer;
  transition: transform 0.1s ease;
}

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

.pwa-card-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.pwa-card-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.pwa-card-subtitle {
  font-size: 0.8rem;
  color: #78685e;
}

.pwa-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  font-size: 0.8rem;
  color: #78685e;
}

.pwa-card-action {
  font-weight: 800;
  color: #875c46;
}

/* Pills / Tags */
.pwa-pill {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 8px;
  display: inline-block;
}

.pwa-pill.danger {
  background: #fee2e2;
  color: #b91c1c;
}

.pwa-pill.success {
  background: #d1fae5;
  color: #047857;
}

.pwa-pill.warning {
  background: #fef3c7;
  color: #b45309;
}

.pwa-pill.default {
  background: #f1f5f9;
  color: #334155;
}

/* Bottom Nav */
.pwa-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: white;
  display: flex;
  justify-content: space-around;
  padding: 12px 10px 20px 10px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
  border-top: 1px solid #f0ebe4;
  z-index: 10100;
}

.pwa-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #a3958d;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  background: none;
  border: none;
  text-decoration: none;
}

.pwa-nav-item.active {
  color: #875c46;
}

.pwa-nav-icon {
  font-size: 1.4rem;
}

/* Buttons */
.pwa-btn {
  background: #875c46;
  color: white;
  border: none;
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(135, 92, 70, 0.3);
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

.pwa-btn.secondary {
  background: white;
  color: #3b2011;
  box-shadow: none;
  border: 1px solid #eae5de;
}

/* Product Row */
.pwa-product-row {
  display: flex;
  gap: 16px;
  background: white;
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  border: 1px solid #f0ebe4;
}

.pwa-product-img {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  background: #f7f5f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  font-size: 1.5rem;
  color: white;
  font-weight: bold;
}

.pwa-product-img img {
  max-width: 100%;
  max-height: 100%;
}

.pwa-product-details {
  flex: 1;
}

.pwa-product-title {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.pwa-product-sku {
  font-size: 0.75rem;
  color: #a3958d;
  margin-bottom: 6px;
}

.pwa-product-stock {
  font-size: 0.75rem;
  font-weight: 700;
  color: #047857;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}

.pwa-product-stock.low {
  color: #b45309;
}

.pwa-product-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pwa-product-price {
  font-size: 1.1rem;
  font-weight: 900;
}

.pwa-product-price span {
  font-size: 0.75rem;
  font-weight: 600;
  color: #a3958d;
}

/* Stepper (Quantity) */
.pwa-stepper {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border: 1px solid #eae5de;
  border-radius: 20px;
  padding: 4px 8px;
}

.pwa-stepper-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  font-weight: 600;
  color: #3b2011;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.pwa-stepper-value {
  font-weight: 900;
  font-size: 1rem;
  min-width: 20px;
  text-align: center;
}

/* Categories Bar */
.pwa-categories {
  display: flex;
  gap: 10px;
  padding: 0 20px;
  margin-bottom: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.pwa-categories::-webkit-scrollbar {
  display: none;
}

.pwa-category-pill {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  background: white;
  border: 1px solid #eae5de;
  white-space: nowrap;
  color: #3b2011;
  cursor: pointer;
}

.pwa-category-pill.active {
  background: #875c46;
  color: white;
  border-color: #875c46;
}

/* Back Button Header */
.pwa-back-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: #f7f5f0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.pwa-back-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  cursor: pointer;
  color: #3b2011;
  text-decoration: none;
}

.pwa-back-title {
  flex: 1;
}

/* Alert Banner */
.pwa-alert {
  background: #fef2f2;
  color: #991b1b;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.4;
  margin: 0 20px 16px 20px;
  display: flex;
  gap: 8px;
}

/* Totals Box */
.pwa-totals-box {
  background: #2b170c;
  color: white;
  padding: 20px;
  border-radius: 20px;
  margin: 20px;
  box-shadow: 0 8px 24px rgba(59, 32, 17, 0.3);
}

.pwa-total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.9rem;
  opacity: 0.9;
}

.pwa-total-final {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 1.5rem;
  font-weight: 900;
}

.pwa-total-final span:first-child {
  font-size: 1.2rem;
}

/* Action Area Fixed */
.pwa-fixed-action {
  position: fixed;
  bottom: 80px; /* Above bottom nav */
  left: 0;
  width: 100%;
  padding: 16px 20px;
  background: linear-gradient(to top, #f7f5f0 80%, rgba(247, 245, 240, 0));
  z-index: 10050;
  display: flex;
  gap: 12px;
}

/* Conditions Cards */
.pwa-conditions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 20px 20px 20px;
}

.pwa-condition-card {
  background: #f0ebe4;
  padding: 12px;
  border-radius: 12px;
}

.pwa-condition-label {
  font-size: 0.7rem;
  color: #78685e;
  font-weight: 700;
  margin-bottom: 4px;
}

.pwa-condition-val {
  font-size: 0.95rem;
  font-weight: 800;
}

/* Status Screen */
.pwa-success-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.pwa-success-icon {
  width: 80px;
  height: 80px;
  background: #d1fae5;
  color: #047857;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin-bottom: 24px;
}

.pwa-success-title {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.pwa-success-subtitle {
  font-size: 0.95rem;
  color: #78685e;
  line-height: 1.5;
  margin-bottom: 32px;
}

.pwa-summary-card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  border: 1px solid #f0ebe4;
  margin-bottom: 32px;
}

.pwa-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px dashed #eae5de;
  font-size: 0.95rem;
}

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

.pwa-summary-label {
  color: #78685e;
}

.pwa-summary-val {
  font-weight: 800;
}
