/* CSS Externo a las modificaciones de la plantilla */
/*  MENÚ */
.menu_movil{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}
.menu_section{
    width: 250px;
    height: 150px;
    background-color: rgb(243, 243, 243);
    border: 3.5px solid #313131;    
    border-radius: 9px;
    display: flex;
    justify-content: center;
    transition: all 0.3s ease-in;
}
.menu_section a{
    display: grid;
    align-items: center;
    justify-items: center;
    padding: 25px;
    text-align: center;
    font-size: 20px;
    width: 100%;
}
.menu_section:hover{
    cursor: pointer;
    transform: scale(1.1);
    /*box-shadow: 10px 5px 5px rgb(199, 199, 199);*/
}


/* EJERCICIOS */
#bloque-movimientos {
    display: none;
}


/* Caja */
.mygreen {
    color: green;
}

.my-icon-caja {
    width: 100px;
    height: 100px;
    border: 1px solid transparent;
    border-radius: 50%;
}

.caja-activated, .caja-hover:hover {
    border: 1px solid gainsboro;
    cursor: pointer;
    background-color: white;
}

.caja-disabled {
    background-color: gainsboro;
    cursor: default !important;
}

.formulario_venta label {
	display: inline-block;
	cursor: pointer;
	color: #212934;
	position: relative;
	padding: 5px 15px 5px 51px;
	font-size: 1em;
	border-radius: 5px;
	-webkit-transition: all 0.3s ease;
	-o-transition: all 0.3s ease;
	transition: all 0.3s ease;
}
.formulario_venta label:hover {
	background: white;
    color: var(--bs-primary);
}
.formulario_venta label:before {
	content: "";
	display: inline-block;
	width: 17px;
	height: 17px;
	position: absolute;
	left: 15px;
	top: 10px;
	border-radius: 50%;
	background: none;
	border: 3px solid var(--bs-primary);
}
.formulario_venta input[type=radio] {
	display: none;
}
.formulario_venta input[type=radio]:checked + label:before {
	display: none;
}
.formulario_venta input[type=radio]:checked + label {
	padding: 5px 15px;
	background: var(--bs-primary);
	border-radius: 2px;
	color: #fff;
}

.f-left {
    float: left;
}

.f-right {
    float: right;
}

.btn-fit {
    padding: 0px 10px;
}

.cursor-pointer {
    cursor: pointer;
}

#bloque_cliente_existente .select2.select2-container {
    width: 100% !important;
}

/* SUGERENCIAS */
#textarea_sugerencia{
    width: 100%;
    height: 160px;
    resize: none;
}
.sugerencia-trash:hover{
    cursor: pointer;
}

.isIncomplete {
    background: #ffe4c5 !important;
}

/* DISABLE */
.isDisabled {
	pointer-events: none  !important;
	background: #ffc5c5 !important;
	opacity: 0.5;
}

/* FASES */
/*
 * El codigo de color de fase lo comparten DOS sitios:
 *   #div-fases .<clase>   modules/fases.tpl (la tarjeta Fase de la programacion)
 *   .badge.fase-<valor>   el historial de programaciones (entrenamientos.tpl)
 *
 * Van en el MISMO selector a proposito: con dos paletas separadas, tarde o
 * temprano se cambia una y no la otra. Ojo al desajuste heredado: el valor del
 * enum es 'pcma' pero la clase de fases.tpl es '.pcm'.
 */
#div-fases {
	max-width: 180px;
}

#fases {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr 1fr 1fr 1fr;
	gap: 0px 0px;
	grid-auto-flow: row;
	justify-items: center;
	align-items: center;
	width: max-content;
	grid-template-areas:
    "pcm pcm"
    "pcb fmax"
    "afg hp"
    "tecnica tecnica"
    "obs obs";
}

#div-fases .pcm { grid-area: pcm; }
#div-fases .pcm,
.badge.fase-pcma { background: red; color: black; }

#div-fases .pcb { grid-area: pcb; }
#div-fases .pcb,
.badge.fase-pcb { background: orange; color: black; }

#div-fases .fmax { grid-area: fmax; }
#div-fases .fmax,
.badge.fase-fmax { background: orange; color: black; }

#div-fases .afg { grid-area: afg; }
#div-fases .afg,
.badge.fase-afg { background: yellow; color: black; }

#div-fases .hp { grid-area: hp; }
#div-fases .hp,
.badge.fase-hp { background: yellow; color: black; }

#div-fases .tecnica { grid-area: tecnica; }
#div-fases .tecnica,
.badge.fase-tecnica { background: green; color: black; }

#div-fases .form-check {
	padding: 6px 20px;
	border-radius: 9px;
	font-weight: bold;
	margin-bottom: 5px;
}

#fases-obs p {	
	text-align: justify;
}

/* Formulario */
.form-control-datepicker {
    padding: 0.78rem 1rem !important;
}

/* Productos */
.fuentecilla {
	font-size: 11px;
}
.btn-small {
	padding: 0.2rem 1rem;
}

/* Menu home */
.menu-home:first-child {
	margin-bottom: 50px;
}
.sub-menu .menu_section {
	position: relative;
	border: 0;
    height: auto;
	background: var(--bg) !important;
}
.menu-home .menu_section {
	border: 0;
    height: auto;
	background: transparent !important;
}
.menu-home .menu_section .progress,
.sub-menu .menu_section .progress {
	width: 50%;
	margin: 0 auto;
}
.menu-home .menu_section.isIncomplete .progress-bar,
.sub-menu .menu_section.isIncomplete .progress-bar {
	background-color: #ffb867 !important;
}
.menu-home .menu_section.isDisabled .progress-bar,
.sub-menu .menu_section.isDisabled .progress-bar {
	background-color: grey !important;
}
.menu-home .menu_section .progress-bar,
.sub-menu .menu_section .progress-bar {
	background-color: green !important;
}
.icon-menu img {
	height: 100px;
}
.icon-menu p {
	margin: 10px 0;
	color: var(--bs-link-color);
}
.progress {
    --bs-progress-bg: #ffffff;
}
#datetimepicker {
	background: white;
	border: 1px solid #dde4ea;
	border-radius: 0.2rem;
	max-width: 20em;
}
#datetimepicker .picker-switch {
	color: #574fec;
}
#datetimepicker .day:not(.disabled) {
	color: #574fec;
}
#datetimepicker .day.today.disabled {
	background-color: #eee;
	border-color: #eee;
	color: #1c0950;
}
#datetimepicker .day.active {
	background: #574fec;
	color: white;
}
#datetimepicker .day.active.today {
	background: #574fec;
	color: white;
}
#datetimepicker .dow {
	color: rgba(87, 79, 236, 0.5)
}
#horas > div {
	width: fit-content;
	cursor: pointer;
	background: white;
	border: 1px solid #dde4ea !important;
	border-radius: 0.2rem;
	padding-top: 1.625rem !important;
	padding-bottom: 0.625rem !important;
	transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

#datetimepicker .datepicker > div {
	display: block;
}
#horas > div:focus {
	border-color: rgba(87, 79, 236, 0.5);
	outline: 0;
	box-shadow: 0 0 0 0.25rem rgba(87, 79, 236, 0.25);
}
.select_empleado {
	display: none;
}
.select_empleado.show {
	display: block;
}
.info {
	border-radius: 50%;
    font-size: 12px;
    width: 20px;
    height: 20px;
}
.hidden {
	display: none !important;
}

/* TIENDA */
.thumbnail {
	height: 200px;
}

.img-ficha-producto {
	max-height: 600px;
	object-fit: contain;
}

/* RESPONSIVE */
/* MOVIL */
@media (max-width:763px){
    .menu_movil{
        display: grid;
        grid-template-columns: 1fr 1fr;
        max-width: 900px;
        gap: 15px 10px;
    }    
    .menu_section{
        background-color: rgb(243, 243, 243);
        border: 3.5px solid #313131;
        color: #313131;
        font-weight: 500;
        padding: 20px;
        width: auto;
        height: auto;
        display: block;
    }
    .menu_section:hover{
        cursor: pointer;
        transform: none;
        box-shadow: none;
    }
    .menu_section a{
        display: block;
        width: 100%;
        text-align: center;
    }
    
    .secction_pequeña_izquierda_movil{
        grid-column: 1/2;
    }
    .secction_pequeña_derecha_movil{
        grid-column: 2/3;
    }
    .secction_grande_movil{
        grid-column: 1/3;
    }
    .ocultar-movil{
        display: none;
    }
}

@media (max-width:991px){
	.nav-deep-xs {
		padding: 5px !important;
	}
}

/* HORAS SMARTY */
.horas{
	display: flex;
	align-items: center;
	/*justify-content: space-evenly;*/
}
.horas select{
	border: 1px solid #dde4ea;
	color: var(--bs-modal-color) !important;
	margin-left: 5px;
	border-radius: 0.35rem;
	padding: 0.46rem 1rem;
}

.horas select:first-child:before{
	content: ':';
	color: black;
}

#calendar .custom-add {
	z-index: 3;
}

/* CALENDARIO */
td.fc-timegrid-slot.fc-timegrid-slot-lane:hover {
    background: #655A8D80;
}
.fc-toolbar-chunk > button.fc-user-button,
.fc-toolbar-chunk > button.fc-ruser-button,
.fc-toolbar-chunk > button.fc-calendar-button {
    background-color: transparent !important;
    color: var(--bs-primary) !important;
    border-color: transparent !important;
    cursor: auto !important;
}
.fc-toolbar-chunk > button.fc-user-button:hover,
.fc-toolbar-chunk > button.fc-ruser-button:hover,
.fc-toolbar-chunk > button.fc-calendar-button:hover {
	box-shadow: none !important;
}
.fc-toolbar-chunk .fc-CresourceTimelineWeek-button,
.fc-toolbar-chunk .fc-CresourceTimeGridDay-button {
	margin-right: 25px;
}

li.context-menu-item.active {
	background: #655a8d;
	color: white;
}

li.context-menu-item.active:hover {
	box-shadow: rgba(86, 94, 100, 0.35) 3px -4px 5px 3px !important
}

/* HORAS RESERVAS */
#horas div {
	width: fit-content;
	cursor: pointer;
}

body.web_iframe {
    background-color: transparent;
    border-top: 1px solid #dde4ea;
    border-bottom: 1px solid #dde4ea;
}
body.web_iframe h2 {
    position: relative;
    margin-bottom: 40px;
    text-transform: uppercase;
    z-index: 1;
	color: black;
	font-family: 'Archivo Black', sans-serif;
    line-height: 46px;
    font-size: 36px;
}
body.web_iframe.layout-admin #middle form > .row.g-xl-5 > .col-12.mb-4 {
	padding: 30px 0;
}

/* PAGINATION */
.pagination{
    padding: 0.25rem;
    display: inline-flex;
    background-color: #f1f4f8;
    border-radius: 0.35rem;
    margin: 0;
}
.pagination li {
    --bs-nav-link-padding-x: 1rem;
    --bs-nav-link-padding-y: 0.5rem;
    --bs-nav-link-font-weight: ;
    --bs-nav-link-color: var(--bs-link-color);
    --bs-nav-link-hover-color: var(--bs-link-hover-color);
    --bs-nav-link-disabled-color: #1c0950;
    display: flex;
    flex-wrap: wrap;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.pagination li a{
    font-size: 0.875rem;
    padding: 0.344rem 0.65rem;
}

.pagination li.active a{
    color: var(--bs-primary) !important;
    background-color: #ffffff;
    box-shadow: 0 1px 3px 0 rgba(50, 50, 93, 0.08), 0 4px 6px 0 rgba(112, 157, 199, 0.08);
    border-radius: 0.35rem;
    padding-right: 1rem !important;
    padding-left: 1rem !important;
} 
.html-pagination{display: flex;justify-content: flex-end;}

/* ocultamos la palabra página que aparece al principio del pagination */
.html-pagination div > div:nth-child(1) {
    display: none;
}

/* label form required*/

label.required:before {
	content: '* ';
	color: red;
}

/*DATEPICKER HAKS*/
#dialog-form .datepicker > div, .collapse  .datepicker > div {
	display: block;
}

#dialog-form .datepicker .day.active.today{
	pointer-events: none;
}
/*FIN*/

span.span-version-barra {
    position: absolute;
    font-size: 0.6em;
    color: #E33678;
    left: 5px;
    top: 2px;
}

#navbarMainNav span.span-version-barra {
    top: 20px !important;
    left: 30px !important;
}

.collapse .bootstrap-datetimepicker-widget {
	min-height: 150px;
}

.fc-CresourceTimeGridDay-view th.fc-col-header-cell.fc-resource {
	writing-mode: vertical-rl;
	text-orientation: initial;
	text-align: left;	
	height: 70px;
}
.fc-resourceTimeGridDay-view  th.fc-col-header-cell.fc-resource span,
.fc-CresourceTimeGridDay-view th.fc-col-header-cell.fc-resource span{
	display: block;
	white-space: nowrap;
	text-overflow: ellipsis;	
	overflow: hidden;
}

span.discount {
	color: red;
	text-decoration: line-through red;
}

.cita {
	background: white;
}

a.empty_horario span {
	text-decoration: underline red;
	color: red;
}

footer {
	width: 100%;
	overflow-y: hidden;
	overflow-x: hidden;	
	font-size: 0.7em;
}
footer.force {
	border: 1px solid darkgray;
	position: fixed;
	left: 0;
	bottom: 0;
}
#mis_bonos .nav-sm .nav-link {
	word-break: auto-phrase;
}

select option.not {
	background-color: var(--bs-danger);
	color: white;
}

a:hover .badge-icon{
	display: none;
}

.fc-event-main .e_repetitiva {
	position: absolute;
	right: 3px;
	top: 16px;
	background: var(--fc-button-bg-color);
	color: var(--fc-button-text-color);
	padding: 0px 2px;
	font-weight: bold;
	line-height: 14px;
}

span.highlight {
	background: yellow;
}

/* TABLAS */

span.burgermenu {
	display: flex;
	align-items: center;
	min-height: 35px;
	padding: 0 !important;
	width: 30px;
	justify-content: center;
	text-align: center;
}

span.burgermenu > i{
	margin: 0 !important;
}

div.d-tablas {
	max-height: 70vh;
}

table.tablas {
	width: auto;
}
	
.table.tablas > :not(caption) > * > * {
	box-shadow: none;
}

.table.tablas tbody tr:hover td, .table tbody tr:hover th {
    background: rgba(0, 0, 0, 0.075) !important;
    color: #212529 !important;
}

table.tablas th {
	vertical-align: middle;
	background: white;
	/*text-align: center;*/
}
table.tablas td.list, table.tablas td.text {
	padding: 0;
	margin: 0;
}
table.tablas td {
	/*width: 100%;*/
	height: 15px;
}
table.tablas thead tr th {
	border-right-width: 1px;
}

table.tablas .td_content.i-list, table.tablas .td_content.i-text{
	display: flex;
	align-items: center;
	padding: 0.5rem 0.5rem;
}

table.tablas td.list select {
	/*box-shadow: inset 0px 0px 4px 0.2px rgba(87, 79, 236, 0.25);*/
	box-shadow: none;
	/*border: none*/;
	width: auto;
	min-width: calc(100% - 0.5em - 2px);
	/*height: 100%;*/
	height: calc(3.5rem + 2px);
	max-width: 15vw;
}

table.tablas td.text textarea {
	display: block;
	width: 100%;
	min-width: 30vh;
	height: 100%;
	border: 1px solid #eaf0f5;
	padding: 5px;
	color: inherit;
	resize: auto;
}
table.tablas tbody tr th input{
	width: 100%;
	border: 1px solid #eaf0f5;
	padding: 5px;
	color: inherit;
}
table.tablas tbody tr th input:focus-visible{
	 outline: none;
}
table.tablas tbody tr th span.hacks{
	display: none;white-space: pre;
}
table.tablas .td_content {
	width: 100%;
	height: 100%;
}

table.tablas thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  min-width: 120px;
  border-width: 0 1px;
}

table.tablas tbody th {
  /*position: relative;*/
}
table.tablas thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
}
table.tablas tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
}

.d-valoracion_content{
	opacity: 0;
}

div.i-checkbox .checkbox {
    height: 100%;
    text-align: center;
}

.colores[style*="--bg"] {
    background-color: var(--bg, white) !important;
    color: var(--color, black) !important;
}

.vselect2 + .select2 .select2-selection__rendered {
	padding-left: 0px !important;
}
.vselect2 + .select2 .select2-selection__rendered > div {
	line-height: 26px;
	padding-left: 5px;
}

div.i-checkbox .checkbox label {
    height: 100%;
    width: 100%;
    cursor: pointer;
}
div.i-checkbox .checkbox input {
	display: none;
}
/*
div.i-checkbox .checkbox:has(input:checked) {
    background-color: var(--bg-checked);
}
*/


/*
table.tablas tr{
	display: inline-flex;
}

table.tablas thead th{
	display: flex;
}*/
span.span_result {
	background: inherit;
	margin-left: 1.5em;
	font-size: 10px;
	/*background: green;*/
	color: white;
	padding: 3px;
	border-radius: 6px;
}

.flex-direction-column {
	flex-direction: column;
	-webkit-flex-direction: column;
}

.form-floating .input-group + label {
	display: none;
}

#cab-links-menu .nav-item img {
    height: 40px;
}

#cab-links-menu * {
    background: transparent;
}

/* -----------------------------------------------------------------------------
 * Iconos de fuente en los botones de la cabecera (btns_empleados_cab.tpl).
 *
 * Van aqui y NO en fisic-v2.css porque la cabecera se pinta en todas las
 * paginas y fisic-v2.css solo se carga en las vistas ya migradas. La fuente
 * (subconjunto de Material Symbols) se carga desde layout/head.tpl siempre que
 * el cliente tenga home_diseno="v2".
 *
 * 34px para igualar la presencia de los SVG de 40px a los que sustituyen: el
 * glifo ocupa menos caja que la ilustracion.
 * -------------------------------------------------------------------------- */
#cab-links-menu .cab-ms {
    font-family: 'Material Symbols Outlined';
    font-weight: 400;
    font-style: normal;
    font-size: 34px;
    line-height: 40px;          /* misma altura que los <img> de al lado */
    display: block;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
    direction: ltr;
    font-feature-settings: 'liga';
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    color: var(--fv2-accent, #574FEC);
}

#cab-links-menu .nav-item:hover .cab-ms {
    opacity: .8;
}

.dt-button-collection .dropdown-menu a:not(.active) {
    color: grey;
}
/* PLANIFICACIÓN: botón "Eliminar semana" solo visible en la semana activa */
.semanas-pla li .del-semana { display: none; }
.semanas-pla li.active .del-semana { display: inline-flex; }

/* =============================================================================
 * ANCHO DE LAS PANTALLAS  —  ini: ancho_pantalla
 * -----------------------------------------------------------------------------
 * Lo que limita el ancho NO es <main id="middle"> (core.css ya le pone
 * max-width:100% !important), ni el mx-auto de su clase: es el .container de
 * Bootstrap, con max-width 1200px a partir de 1200px de viewport.
 *
 * Como .container se usa en ~48 plantillas, se ensancha aquí de una vez en
 * lugar de tocarlas una a una. La clase del <body> la pone layout/base.tpl
 * según la clave ancho_pantalla del .ini del cliente:
 *
 *     (ausente) / "normal"  ->  1200px   comportamiento de siempre
 *     "ancho"               ->  1600px   recomendado
 *     "full"                ->  100%     todo el monitor
 *
 * Ojo con "full": va de lujo en listados y tablas (facturas, usuarios, caja),
 * pero en formularios deja inputs de 1900px y líneas de texto larguísimas,
 * que es justo el motivo por el que .container existe.
 * ========================================================================== */
@media (min-width: 1200px) {

	body.layout-ancho .container,
	body.layout-ancho .container-sm,
	body.layout-ancho .container-md,
	body.layout-ancho .container-lg,
	body.layout-ancho .container-xl {
		max-width: 1600px;
	}

	body.layout-full .container,
	body.layout-full .container-sm,
	body.layout-full .container-md,
	body.layout-full .container-lg,
	body.layout-full .container-xl {
		max-width: 100%;
	}
}

/* Los distintivos de fase del historial: la forma, no el color (ver arriba) */
.badge[class*="fase-"] {
	font-weight: 700;
	letter-spacing: .03em;
}

/*
 * Hora seleccionada al reservar sin sesion iniciada. Antes la pintaba el JS
 * con estilos en linea; ahora es una clase, para que siga el color del tema y
 * se pueda reestilar. Esta regla es la del diseño CLASICO: la v2 la sobreescribe
 * en fisic-v2.css con el acento del cliente.
 */
.hora-actv {
	background: var(--bs-primary) !important;
	border-color: var(--bs-primary) !important;
	color: #fff !important;
}
