

/***************************************************************
						ESTILOS GENERALES
****************************************************************/

.pointer {
	cursor: pointer;
}

/**********************
		COLORES
**********************/

/*
.bg-clr {
	background-color: #1DA7D5 !important;
}
*/

.bg-brd-clr {
	background-color: #1DA7D5;
	border: 1px solid #134793;
}

.input-group-prepend .input-group-text.grey-bg {
	background-color: #E9ECEF !important;
}

.white-bg {
	background-color:#FFF;
}

.btn-clr {
	border: 2px solid #008ebc;
	color: #008ebc;
}
.btn-clr:hover {
	background-color:#008ebc;
	color:#FFF;
}
.btn-clr:active {
	transform: scale(0.99);
	box-shadow: 3px 2px 8px 1px rgba(0, 0, 0, 0.24);
}

.brd-r-clr {
	border-right: 1px solid #134793;
}


/**********************
		CABECERA
**********************/
.color-helper-tooltip {
	width:20px;
	height:20px;
}
.color-helper-tooltip#amber {
	background-color: #FFCA2E;
}
.color-helper-tooltip#green {
	background-color: #8FDF82;
}
.color-helper-tooltip#red {
	background-color: #F96666;
}



/**********************
		INDEX
**********************/

@media all and (min-device-width: 576px){
	.hours-summary {
		font-size: 24px;
	}
}

@media all and (min-device-width: 768px){
	.hours-summary {
		font-size: 30px;
	}
}

@media all and (min-device-width: 992px){
	.hours-summary {
		font-size: 34px;
	}
}
@media all and (min-device-width: 1200px){
	.hours-summary {
		font-size: 36px;
	}
}


#calendar-link:focus, #calendar-link:active {
	outline: none !important;
	box-shadow: none;
}


/**********************
		CALENDARIO
**********************/

.favourite-project-row {
	background-color:#f6fb556b !important;
}

.fc .fc-daygrid-day.fc-day-today {
	background-color: #badbfd !important;
}

.fc .fc-bg-event {
	justify-content: center;
	align-items: center;
	display: flex;
	opacity:0.8 !important;
}
.fc-daygrid-day-top {
	opacity:1 !important;
}
.fc-event-title {
	color:#444;
	font-size: 2em !important;
}



.fc-icon-fa {
	font-family: FontAwesome;
}


/**********************
		MODAL
**********************/
.modal-header {
	border-bottom: 1px solid #808080;
}

.green-clr {
	color:#2ffd1d;
}

.navy-clr {
	color: #0b275b;
}


#tasks-table tbody tr {
	height:20px;
}
#tasks-table tbody tr td{
	padding:0 4px;
}

#see-prev-day:disabled i, #see-next-day:disabled i{
	color:#c8c8c8;
}


/**********************
		LOADING
**********************/

#loading {
	position: fixed;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	opacity: 0.5;
	background-color: #d9d9d9;
	z-index: 99;
}

@keyframes pulse {
	from {
	opacity: 1;
	transform: scale(1);
	}
	to {
	opacity: .25;
	transform: scale(.75);
	}
}
  
.spinner-box {
	width: 300px;
	height: 300px;
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: transparent;
}

.pulse-container {
	width: 120px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.pulse-bubble {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background-color: #3f7ff9;
}

.pulse-bubble-1 {
	animation: pulse .4s ease 0s infinite alternate;
}
.pulse-bubble-2 {
	animation: pulse .4s ease .2s infinite alternate;
}
.pulse-bubble-3 {
	animation: pulse .4s ease .4s infinite alternate;
}



/**********************
		MOBILE
**********************/

#mobile-assigned-hours {
	width:75px;
}

.mobile-length-wrapper .dataTables_length {
	text-align: left !important;
}


.responsive-calendar .fc-event-title {
	margin-top:0.8em !important;
	font-size: 1.2em !important;
}

.abajo {
    position: fixed;
    bottom: 10px;
    left: 50%;
    margin-left: -104.5px; /*104.5px is half of the button's width*/
}

  
/*HOME*/
 .btn-app {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 110px;
        padding: 16px 8px;
        border-radius: 12px;
        border: none;
        cursor: pointer;
        transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
        position: relative;
        user-select: none;
    }
    .btn-app:hover:not(.disabled) {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22) !important;
        filter: brightness(1.08);
    }
    .btn-app:active:not(.disabled) {
        transform: translateY(0);
        box-shadow: none !important;
        filter: brightness(0.95);
    }
    .btn-app.disabled {
        opacity: 0.35;
        pointer-events: none;
    }
    .btn-app i {
        font-size: 2rem;
        line-height: 1;
    }
    .btn-app .btn-label {
        font-size: 0.8rem;
        font-weight: 600;
        text-align: center;
        line-height: 1.3;
    }
    .btn-app .badge-count {
        position: absolute;
        top: 6px;
        right: 8px;
        font-size: 0.75rem;
        min-width: 22px;
        text-align: center;
        padding: 2px 6px;
        border-radius: 10px;
    }

    /* Grid 3 columnas por defecto */
    .app-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        width: 100%;
        max-width: 640px;
        margin: 0 auto 12px;
    }

    /* Pantallas pequeñas → 1 columna con layout horizontal */
    @media (max-width: 480px) {
        .app-grid {
            grid-template-columns: 1fr;
        }
        .btn-app {
            flex-direction: row;
            justify-content: flex-start;
            min-height: 64px;
            padding: 12px 16px;
            gap: 16px;
        }
        .btn-app i {
            font-size: 1.5rem;
            width: 28px;
            flex-shrink: 0;
        }
        .btn-app .btn-label {
            font-size: 0.9rem;
            text-align: left;
        }
        .btn-app .badge-count {
            top: 50%;
            transform: translateY(-50%);
            right: 12px;
        }
    }


.tippy-box[data-theme~='custom'] {
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
  
.tippy-box[data-theme~='custom'] .tippy-arrow {
    color: #ffffff;
}
/* Botón de expand de DataTables Responsive */
/* table.dt-responsive tbody td.dtr-control::before {
    width: 20px;
    height: 20px;
    line-height: 20px;
    border-radius: 50% !important;
    box-shadow: none !important;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
} */

/* Celda que contiene el botón */
/* table.dt-responsive tbody td.dtr-control {
    text-align: center;
    vertical-align: middle;
    padding: 0 16px;
    width: 32px;
	margin: auto;
} */

 /* En móvil, mostrar siempre el contenido del dropdown de configuración */
@media screen and (max-width: 1023px) {
    .nav__dropdown-always-open {
        display: block !important;
        overflow: visible !important;
        max-height: none !important;
        height: auto !important;
    }

    /* Ocultar la flecha en móvil ya que siempre está abierto */
    .nav__dropdown .fa-chevron-down {
        display: none;
    }
      .d-block.d-lg-none .nav__link {
        padding: 0.6rem 1rem;
        gap: 0.75rem;
        font-size: 0.95rem;
    }

    .d-block.d-lg-none .nav__icon {
        font-size: 20px !important;
        min-width: 20px;
    }
}

/* Ocultar cruz nativa del input search */
input[type="search"]::-webkit-search-cancel-button {
    display: none;
}

/* Posición de la goma de borrar*/
#searchForm .input-group {
    position: relative;
}


/*Desplegable*/
/* #users-table td.dtr-control {
    position: static !important;
    gap: 26px !important;
    display: flex !important;
    align-items: center !important;
}

#users-table td.dtr-control::before {
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
    line-height: 20px !important;
    position: static !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
} */


/* Centrar el botón vertical y horizontalmente */
table.dataTable.dtr-inline.collapsed tbody td.dtr-control {
    text-align: center;
    vertical-align: middle;
}
