:root {
	--bg-header: #1a1a1a;
	--text-header: #ffffff;
	--accent-color: #ffc107;
	--card-bg: #ffffff;
	--card-shadow: rgba(0, 0, 0, 0.08);
	--bg-footer: #f8f9fa;
	--text-footer: #212529;
}

[data-bs-theme="dark"] {
	--bg-header: #000000;
	--text-header: #ffffff;
	--text-muted-header: rgba(255, 255, 255, 0.5);
	--accent-color: #ffc107;
	--card-bg: #121212;
	/* Much darker */
	--card-shadow: rgba(0, 0, 0, 0.5);
	--bg-footer: #0a0a0a;
	/* Oscurecido aún más */
	--text-footer: #e9ecef;
}

body {
	padding-top: 52px !important;
	padding-bottom: 70px !important;
	font-family: 'Outfit', sans-serif;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.fw-bold {
	font-weight: 600 !important;
}

/* Dashboard & List Cards */
#inicio .card,
.list-item-card {
	border-radius: 12px;
	background-color: var(--card-bg) !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

[data-bs-theme="dark"] #inicio .card,
[data-bs-theme="dark"] .list-item-card {
	border-color: rgba(255, 255, 255, 0.05) !important;
	color: #fff !important;
}

#inicio .card:hover,
.list-item-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 24px var(--card-shadow) !important;
}

/* Headers */
.bg-dark {
	background-color: var(--bg-header) !important;
}

.border-warning {
	border-color: var(--accent-color) !important;
	border-bottom-width: 2px !important;
}

.text-warning {
	color: var(--accent-color) !important;
}

/* Navbar */
.navbar-dark .navbar-brand {
	color: var(--text-header);
}

#themeToggle {
	color: var(--text-header);
	opacity: 0.8;
	transition: opacity 0.2s;
}

#themeToggle:hover {
	opacity: 1;
}


/*****  MENU FOOTER  *****/
.navbarFooter {
	background-color: var(--bg-footer);
	bottom: 0;
	position: fixed;
	z-index: 20001;
	width: 100vw;
	display: flex;
	border-top: 1px solid rgba(0, 0, 0, 0.05);
	transition: background-color 0.3s ease;
}

.navbarFooter a {
	float: left;
	font-size: 16px;
	color: var(--text-footer);
	text-align: center;
	padding: 14px 16px;
	text-decoration: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex-grow: 1;
	min-width: 50px;
	overflow: hidden;
	white-space: nowrap;
	-webkit-tap-highlight-color: transparent;
	transition: background-color 0.15s ease-in-out, color 0.3s ease;
	background-color: transparent;
	border: 0.5px solid rgba(0, 0, 0, 0.05);
	border-left: none;
}

[data-bs-theme="dark"] .navbarFooter {
	border-top: 1px solid rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .navbarFooter a {
	border-color: rgba(255, 255, 255, 0.05);
}

.navbarFooter a:hover {
	background-color: rgba(0, 0, 0, 0.05) !important;
}

[data-bs-theme="dark"] .navbarFooter a:hover {
	background-color: rgba(255, 255, 255, 0.05) !important;
}


/*****  TECLADO  *****/
#teclado button {
	width: 100%;
	/* min-height: 50px; */
}

/* #teclado button.no-height {
  min-height: 0px !important;
} */

#teclado hr {
	margin: 5px 0;
}

#teclado .col-3,
#teclado .col-6 {
	padding: 2px;
}

@media (max-width: 991px) {
	#teclado .dropdown-menu {
		/*transform: translateX(-50%) translateY(22%) !important;*/
		transform: translate3d(-2px, 40px, 0px) !important;
	}
}



/*****  BARRA CLIENTE  *****/

.text-size-sm tr td,
tr th {
	font-size: 1rem;
}

.font-size-clientes {
	font-size: 1.3rem;
	padding-top: 1rem;
}

.font-size-clientes span {
	font-size: 1rem;
	padding: .4rem .4rem .5rem;
}

@media (max-width: 576px) {
	.font-size-clientes {
		font-size: 1.1rem;
	}
}

@media (max-width: 380px) {
	.font-size-clientes {
		font-size: 1rem;
	}

	.font-size-clientes span {
		font-size: 1rem;
		padding: .3rem .3rem .4rem;
		font-weight: normal !important;
	}

	.text-size-sm tr td,
	tr th {
		font-size: 0.75rem;
	}
}

@media (max-width: 346px) {
	.font-size-clientes {
		font-size: .9rem;
	}

	.font-size-clientes span {
		font-size: .8rem;
		padding: .2rem .2rem .3rem;
		font-weight: normal !important;
	}
}

/*****  MENU LATERAL *****/
.sidepanel {
	width: 0;
	position: fixed;
	z-index: 1;
	height: 100vh;
	top: 0;
	left: 0;
	background-color: #111;
	overflow-x: hidden;
	transition: 0.5s;
	padding-top: 60px;
}

.sidepanel2 {
	width: 100%;
	;
	position: fixed;
	z-index: 1;
	height: 0;
	top: 0;
	left: 0;
	background-color: #111;
	overflow-x: hidden;
	transition: 0.5s;
	padding-top: 60px;
}



.sidepanel a {
	padding: 8px 8px 8px 32px;
	text-decoration: none;
	font-size: .9rem;
	display: block;
	transition: 0.3s;
}


.sidepanel2 a {
	padding: 8px 8px 8px 32px;
	text-decoration: none;
	font-size: .9rem;
	display: block;
	transition: 0.3s;
}



.btn-grupo {
	margin-bottom: 55px;
	/* Tiene que igualar al 'padding-top' de 'sidepanel'  */
	text-align: left;
}

.btn-grupo a {
	background-color: #343a40;
	border: 1px solid #222;
	color: white;
	padding: 10px 24px;
	cursor: pointer;
	width: 100%;
	display: block;
	/* Make the buttons appear below each other */
}

.btn-grupo a:not(:last-child) {
	border-bottom: none;
	/* Prevent double borders */
}

.btn-grupo a:hover {
	background-color: #222;
	/* Add a background color on hover */
}

.navbarFooter .active,
.btn-grupo .active {
	background-color: #111;
}

.combo-btn {
	width: 100%;
	/* Hacer que los botones ocupen todo el ancho */
	margin-bottom: 10px;
	/* Espacio entre los botones */
}

.combo-details {
	padding: 10px;
	background-color: #f8f9fa;
	border: 1px solid #dee2e6;
	border-radius: 5px;
	margin-bottom: 15px;
}


#map {
	margin-top: 20px;
	width: 100%;
	height: 400px;
	border: 1px solid #ccc;
	border-radius: 8px;
}



/* Solo estilos mínimos necesarios para long-press y animación */
.btn-cliente.long-pressing {
	background-color: #0d6efd !important;
	color: white !important;
	transform: scale(0.98);
}

/* Efecto striped para botones */
.btn-cliente:nth-child(even) {
	background-color: #f8f9fa !important;
}

.btn-cliente:nth-child(odd) {
	background-color: #ffffff !important;
}

.modal-dialog-bottom {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	margin: 0;
	max-width: 100%;
}

.modal-dialog-bottom .modal-content {
	border-radius: 1rem 1rem 0 0;
	border: none;
}

#menuContextual.show {
	display: block !important;
}

#menuOverlay.show {
	display: block !important;
	opacity: 0.5;
}