/* ==========================================================================
   Pantallas del operario de la brigada, en el movil. Encima de tema.css.

   Publico mayor y poco habituado al movil: letra grande, botones de al menos
   64 px de alto, una sola decision por pantalla y nada que escribir con el
   teclado del movil (el numero y el PIN se marcan en un teclado propio).
   ========================================================================== */

body.tema-operario {
	font-size: 1.125rem;
	background: var(--tema-fondo);
	min-height: 100vh;
}

.op-cabecera {
	background: var(--tema-superficie);
	border-bottom: 1px solid var(--tema-borde);
	padding: .75rem 1rem;
}

.op-contenedor {
	max-width: 28rem;
	margin: 0 auto;
	padding: 1.25rem 1rem 2rem;
}

.op-titulo {
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 .25rem;
}

.op-ayuda {
	color: var(--tema-texto-suave);
	margin-bottom: 1.25rem;
}

/* Lo que se va marcando: el numero se ve, el PIN son puntos. */
.op-pantalla {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .75rem;
	min-height: 4.5rem;
	margin-bottom: 1.25rem;
	background: var(--tema-superficie);
	border: 2px solid var(--tema-borde);
	border-radius: var(--tema-radio-grande);
	font-size: 2.5rem;
	font-weight: 700;
	letter-spacing: .15em;
}

.op-pantalla:focus-within {
	border-color: var(--tema-primario);
}

.op-pantalla input {
	width: 100%;
	border: 0;
	background: transparent;
	text-align: center;
	font: inherit;
	letter-spacing: inherit;
	color: var(--tema-texto);
}

.op-pantalla input:focus {
	outline: none;
}

.op-punto {
	width: 1.1rem;
	height: 1.1rem;
	border-radius: 50%;
	border: 2px solid var(--tema-texto);
}

.op-punto.lleno {
	background: var(--tema-texto);
}

.op-teclado {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: .75rem;
	margin-bottom: 1.25rem;
}

.op-tecla {
	min-height: 4.5rem;
	border: 1px solid var(--tema-borde);
	border-radius: var(--tema-radio-grande);
	background: var(--tema-superficie);
	color: var(--tema-texto);
	font-size: 1.85rem;
	font-weight: 700;
	box-shadow: var(--tema-sombra);
	touch-action: manipulation;
}

.op-tecla:active {
	background: var(--tema-primario-suave);
	border-color: var(--tema-primario);
}

.op-tecla--accion {
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--tema-texto-suave);
}

.op-boton {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	width: 100%;
	min-height: 4rem;
	border-radius: var(--tema-radio-grande);
	font-size: 1.35rem;
	font-weight: 700;
}

/* --- Jornada: inicio, areas, subareas y hecho -------------------------------- */

/* Empezar, Cambiar de tarea y Terminar jornada: lo mas grande de la pantalla. El
   texto va en mayusculas por CSS, no escrito asi, para que el lector de pantalla
   no lo deletree. */
.op-boton--grande {
	min-height: 5.5rem;
	margin-bottom: 1rem;
	font-size: 1.5rem;
	text-transform: uppercase;
	letter-spacing: .02em;
}

.op-boton .bi {
	margin-right: .25rem;
}

.op-ahora {
	margin-bottom: 1.25rem;
	padding: 1rem 1.25rem;
	background: var(--tema-superficie);
	border: 2px solid var(--tema-primario);
	border-radius: var(--tema-radio-grande);
}

.op-ahora p {
	margin: 0;
}

.op-ahora__etiqueta,
.op-ahora__desde {
	color: var(--tema-texto-suave);
}

.op-ahora__area {
	margin-top: .25rem !important;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.2;
}

.op-ahora__subarea {
	font-size: 1.25rem;
}

.op-ahora__desde,
.op-ahora__nota {
	margin-top: .5rem !important;
}

/* Lista de areas o subareas: un boton grande por opcion, con punto de color. */
.op-opciones {
	display: grid;
	gap: .75rem;
	margin: 0 0 1.25rem;
	padding: 0;
	list-style: none;
}

.op-opcion {
	display: flex;
	align-items: center;
	gap: .9rem;
	width: 100%;
	min-height: 4.5rem;
	padding: .75rem 1rem;
	border: 1px solid var(--tema-borde);
	border-radius: var(--tema-radio-grande);
	background: var(--tema-superficie);
	color: var(--tema-texto);
	font: inherit;
	text-align: left;
	text-decoration: none;
	box-shadow: var(--tema-sombra);
	touch-action: manipulation;
}

.op-opcion--centrada {
	justify-content: center;
	text-align: center;
}

.op-opcion:hover {
	border-color: var(--tema-primario);
	color: var(--tema-texto);
}

.op-opcion:active {
	background: var(--tema-primario-suave);
}

.op-opcion:focus-visible {
	outline: 3px solid var(--tema-primario);
	outline-offset: 2px;
}

.op-opcion__nombre {
	display: block;
	font-size: 1.3rem;
	font-weight: 700;
	line-height: 1.2;
}

.op-opcion__detalle {
	display: block;
	color: var(--tema-texto-suave);
	font-size: 1rem;
}

.op-color {
	flex: 0 0 auto;
	width: 1.1rem;
	height: 1.1rem;
	border-radius: 50%;
	background: var(--color, var(--tema-primario));
}

.op-hecho {
	text-align: center;
	margin-bottom: 1.5rem;
}

.op-hecho__check {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 6rem;
	height: 6rem;
	margin: .5rem auto 1rem;
	border: 3px solid var(--tema-exito);
	border-radius: 50%;
	background: var(--tema-exito-suave);
	color: var(--tema-exito);
	font-size: 3.5rem;
}

.op-hecho__detalle {
	margin-bottom: .25rem;
	font-size: 1.35rem;
	font-weight: 600;
}

.op-hoy {
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: 1px solid var(--tema-borde);
}

.op-hoy__titulo {
	font-size: 1.1rem;
	font-weight: 700;
}

.op-hoy li {
	padding: .3rem 0;
}

.op-hoy__horas {
	margin-right: .5rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.op-nota {
	font-size: 1.15rem;
}

.op-privacidad li {
	margin-bottom: .5rem;
}

/* Tablet compartida: desplegable con la brigada, del mismo alto que el recuadro
   del numero. Al tocarlo, la tablet abre su propia lista. Solo se cambian color
   y fondo, no background entero: la flecha es la imagen de fondo de .form-select. */
.op-selector {
	min-height: 4.5rem;
	margin-bottom: 1.25rem;
	padding-left: 1.25rem;
	border: 2px solid var(--tema-borde);
	border-radius: var(--tema-radio-grande);
	background-color: var(--tema-superficie);
	background-position: right 1.25rem center;
	background-size: 22px 18px;
	color: var(--tema-texto);
	font-size: 1.4rem;
	font-weight: 600;
	box-shadow: var(--tema-sombra);
	cursor: pointer;
}

.op-selector:focus {
	border-color: var(--tema-primario);
	box-shadow: 0 0 0 .25rem var(--tema-primario-suave);
}

.op-enlace {
	display: inline-block;
	padding: .75rem 0;
	color: var(--tema-texto-suave);
}

/* Solo en ordenador. En un movil o una tablet (el dedo como puntero principal,
   sin raton) se da por hecho que quien entra es un operario de la brigada. */
.op-solo-escritorio {
	display: block;
}

@media (hover: none) and (pointer: coarse) {
	.op-solo-escritorio {
		display: none;
	}
}

.op-error {
	font-size: 1.125rem;
	border-radius: var(--tema-radio-grande);
}

/* Los avisos que se cierran solos ("Deshecho", "Nota guardada") van abajo en las
   pantallas del operario: arriba tapaban el saludo y lo que acababa de tocar. */
.tema-operario .tema-toasts {
	top: auto;
	bottom: 1rem;
	left: .75rem;
	right: .75rem;
}

.tema-operario .tema-toasts .toast {
	width: 100%;
	font-size: 1.1rem;
}

/* Menu del operario en la cabecera: su nombre es el boton. Zonas de toque grandes,
   para dedos y vista de gente mayor. */
.op-usuario {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	min-height: 2.75rem;
	padding: .35rem .75rem;
	border: 1px solid var(--tema-borde);
	border-radius: var(--tema-radio-grande);
	background: transparent;
	color: var(--tema-texto);
	font-weight: 600;
}

.op-usuario:hover,
.op-usuario[aria-expanded="true"] {
	border-color: var(--tema-primario);
	color: var(--tema-texto);
}

.op-usuario .bi-person-circle {
	font-size: 1.35rem;
	color: var(--tema-primario);
}

.op-menu {
	min-width: 15rem;
	font-size: 1.1rem;
}

.op-menu .dropdown-item {
	padding: .7rem 1.25rem;
}

/* Una nota sin espacios (un enlace, un numero largo) no debe ensanchar la tarjeta. */
.op-ahora__nota {
	overflow-wrap: anywhere;
}

.op-menu .tema-opciones .dropdown-item {
	padding-left: 2.75rem;
}
