html {
	overflow: hidden;
}

body {
	overflow-y: auto;
	overflow-x: hidden;
}

@media (min-width: 992px) {
	.container {
		max-width: 98% !important;
	}
}

.thumbnail {
	width: 150px;
	height: 120px;
	border-radius: 5%;
}

.force-w-100 {
	background-size: 50% 50%;
	/*max-width: calc(100% - 60px) !important;*/
}

.nameLine {
	font-size: 12px;
	font-style: italic;
}

.phoneLine {
	font-size: 12px;
	font-style: italic;
	padding-left: 1px;
	margin-top: -6px;
}

.marginMinusSeven {
	margin-top: -20px;
}

.p-relative {
	position: relative;
}

.legend {
	font-size: 80%;
	line-height: 14px;
}

.hide-overflow {
	overflow: hidden;
}

.spinner {
	position: absolute;
	top: 0;
	bottom: 0;
	background-color: rgba(255, 255, 255, 0.7);
	left: 0;
	right: 0;
	z-index: 9999;
	opacity: 0;
	-webkit-transition: opacity 0.2s ease;
	-moz-transition: opacity 0.2s ease;
	transition: opacity 0.2s ease;
	pointer-events: none;
}

.active-spinner {
	opacity: 1;
	pointer-events: all;
}

.btnico {
	display: inline-block;
	font-weight: normal;
	text-align: center;
	white-space: nowrap;
	vertical-align: middle;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	border: 1px solid transparent;
	padding: 4px 4px;
	font-size: 1rem;
	line-height: 1.25;
	border-bottom-left-radius: 0.25rem;
	transition: all 0.15s ease-in-out;
}

.list-scroll-5 {
	display: block;
	height: calc(33px * 5);
	overflow-y: scroll;
}

.list-scroll-3 {
	display: block;
	max-height: calc(35px * 3);
	overflow-y: scroll;
}

.content-box {
	box-sizing: content-box;
}

.logo {
	margin-top: -38px;
	width: 128px;
	height: 64px;
	background-size: contain;
	background-repeat: no-repeat;
	background-image: url('../images/logo.png');
}

textarea {
	width: 100%;
	height: 100px;
}

.icon-col {
	max-width: 30px;
}

.ellipsis {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.text-terciary {
	color: #c4d0dc;
}

.card-slice {
	border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.card-header.with-buttons {
	position: relative;
}

.card-header .button-box {
	position: absolute;
	right: 10px;
	top: 0.75rem;
}

.card-header .button-box .header-button {
	background-color: #28a745;
	padding: 3px 5px;
	border-radius: 3px;
	color: white;
}

.drawing-pencil {
	position: relative;
}

.drawing-pencil:after {
	content: ' ';
	width: 16px;
	height: 4px;
	position: absolute;
	background-color: #28a745;
	top: 19px;
	left: 0px;
	border-radius: 4px;
	z-index: 0;
}

.modal.showModal {
	display: block;
	background-color: rgba(0, 0, 0, 0.6);
}

.modalContainer {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.75);
	z-index: 9000 !important;
	display: none;
}

.modalContainer.modalActive {
	display: flex;
	align-items: center;
	justify-content: center;
}

.waiting {
	color: #ffc107;
}

.customInput {
	width: 150px;
	border: 0px;
	background-color: white;
	color: #000000;
}

.scroll-control {
	height: 40vh;
	overflow-y: scroll;
}

.image-date {
	position: absolute;
	bottom: 0;
	right: 0;
	font-size: 11px;
	padding-left: 5px;
	padding-right: 5px;
	border-top-left-radius: 5px;
}

.notifications-counter {
	position: absolute;
	font-size: 9px;
	background-color: #dc3545;
	width: 13px;
	height: 13px;
	text-align: center;
	border-radius: 50%;
	top: 0;
	right: 7px;
	color: #ffffff;
	padding: 2px;
}

select.not-modifiable,
input.not-modifiable {
	opacity: 0;
}

.invisible {
	opacity: 0;
}

#checkbox {
	display: none;
}

.square {
	width: 100%;
	transition: all 0.75s 0.25s;
	transform: rotate(0);
}

.rounded {
	border-radius: 2% !important;
}

#checkbox:checked + .square {
	transform: rotate(90deg);
}

.photo-edit-wrapper {
	position: relative;
}

.photo-edit-canvas {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 2;
}

img.photo-edit {
	position: relative;
	z-index: 1;
}

.hoverable {
	position: relative;
}

.hoverable .show-on-hover {
	display: none;
	top: calc(100% - 2px);
}

.hoverable:hover .show-on-hover {
	display: block;
}

@-webkit-keyframes round {
	0% {
		-webkit-transform: rotate(0deg);
		transform: rotate(0deg);
	}

	100% {
		-webkit-transform: rotate(360deg);
		transform: rotate(360deg);
	}
}

@keyframes round {
	0% {
		-webkit-transform: rotate(0deg);
		transform: rotate(0deg);
	}

	100% {
		-webkit-transform: rotate(360deg);
		transform: rotate(360deg);
	}
}

/* Estilos para archivos PDF en TODOs */
.pdf-thumbnail-compact {
	width: 80px;
	height: 80px;
	background-color: #f8f9fa;
	border: 2px solid #dc3545;
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 5px;
	box-sizing: border-box;
}

.pdf-thumbnail-compact i {
	font-size: 24px;
	color: #dc3545;
	margin-bottom: 4px;
}

.pdf-name {
	font-size: 10px;
	color: #333;
	word-break: break-word;
	line-height: 1.1;
	max-height: 22px;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

/* Estilos para marcadores de tareas TODO en el mapa */
/* Ahora usamos el sistema de marcadores personalizado definido en todo.css */

/* Estilo para destacar tarea después de guardar */
.task-highlight {
	background: linear-gradient(90deg, rgba(40, 167, 69, 0.2), rgba(40, 167, 69, 0.1), rgba(40, 167, 69, 0.2));
	border-left: 4px solid #28a745;
	animation: taskHighlight 3s ease-in-out;
	transition: all 0.3s ease;
}

@keyframes taskHighlight {
	0% {
		background: rgba(40, 167, 69, 0.3);
		transform: scale(1.02);
	}
	50% {
		background: rgba(40, 167, 69, 0.2);
	}
	100% {
		background: rgba(40, 167, 69, 0.1);
		transform: scale(1);
	}
}

@keyframes taskPulse {
	0% {
		transform: scale(1);
		opacity: 1;
	}
	50% {
		transform: scale(1.2);
		opacity: 0.7;
	}
	100% {
		transform: scale(1);
		opacity: 1;
	}
}

.todo-task-popup {
	min-width: 280px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.todo-task-popup h6 {
	font-weight: bold;
	color: #333 !important;
	margin-bottom: 12px;
}

.todo-task-popup button {
	transition: all 0.2s ease;
	box-shadow: 0 2px 4px rgba(0,123,255,0.2);
}

.todo-task-popup button:hover {
	background: #0056b3 !important;
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(0,123,255,0.3);
}

/* Estilos para los badges del popup */
.todo-priority-badge, .todo-status-badge {
	display: inline-block;
	padding: 3px 8px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 600;
	margin-right: 6px;
	margin-bottom: 4px;
}

/* Estilos para la foto del usuario en el popup */
.todo-user-avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #e9ecef;
	margin-right: 8px;
}

.todo-user-initial {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: linear-gradient(135deg, #007bff, #0056b3);
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-weight: bold;
	font-size: 14px;
	margin-right: 8px;
	border: 2px solid #e9ecef;
}

/* Estilos para los botones del popup */
.todo-task-popup button:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Botón de GPS específico */
.todo-task-popup button[onclick*="openGoogleMaps"]:hover {
	background: #0056b3 !important;
}

/* Botón de rotación del mapa */
#rotation-simple {
	transition: all 0.2s ease;
}

#rotation-simple:hover {
	transform: scale(1.05);
}

#rotation-simple.active {
	background-color: #007bff !important;
	color: white !important;
}

/* Estilos para el botón Crear Tarea en todos los tooltips del mapa */
.map-tooltip-container .create-task {
	background-color: #80007b !important; /* Morado */
	border-color: #80007b !important;
	color: white !important;
	border-radius: 3px;
	font-size: 12px;
	padding: 4px 8px;
	margin: 2px;
	transition: all 0.2s ease;
}

.map-tooltip-container .create-task:hover {
	background-color: #7b0778 !important; /* Morado más oscuro */
	border-color: #7b0778 !important;
	transform: translateY(-1px);
	box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.map-tooltip-container .create-task i {
	margin-right: 4px;
}
