/*
 * Seletor de horário partilhado pelos fluxos de marcação (Marcar Reunião,
 * Marcar Visita e Enviar Opções de reunião) do painel de chamada.
 * A marcação vive em views/horario-selector.html e a lógica em
 * controllers/horario-selector.directives.js.
 */

.horario-selector {
	display: block;
}

.horario-selector .hs-toggle {
	display: flex;
	align-items: center;
	cursor: pointer;
	user-select: none;
	padding-bottom: 8px;
}

.horario-selector .hs-toggle-lbl {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #7b8191;
}

.horario-selector .hs-toggle-line {
	flex: 1;
	height: 1px;
	background: #d0d5dd;
	margin: 0 10px;
}

.horario-selector .hs-toggle i {
	font-size: 11px;
	color: #7b8191;
	transition: transform 0.2s;
}

.horario-selector .hs-dias {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 10px;
	overflow-y: auto;
	max-height: 520px;
	overflow-x: hidden;
}

.horario-selector .hs-dia {
	border: 1px solid #eef2f6;
	border-radius: 12px;
	background-color: #f8fafc;
	text-align: center;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition: box-shadow 0.15s;
}

.horario-selector .hs-dia:hover {
	box-shadow: 0 4px 12px rgba(16, 24, 40, 0.1);
}

.horario-selector .hs-dia-hoje {
	box-shadow: inset 0 0 0 2px var(--corPrincipal, #0097a7);
}

.horario-selector .hs-dia-cabecalho {
	background: linear-gradient(135deg, var(--corPrincipal-base, #00bcd4), var(--corPrincipal, #0097a7));
	color: #fff;
	font-weight: 700;
	padding: 6px 4px;
	display: flex;
	gap: 0.25rem;
	align-items: baseline;
	justify-content: center;
}

.horario-selector .hs-dia-cabecalho span {
	line-height: 1.3;
}

.horario-selector .hs-dia-semana,
.horario-selector .hs-dia-mes {
	font-size: 12px;
}

.horario-selector .hs-dia-numero {
	font-size: 18px;
}

.horario-selector .hs-dia-horarios {
	flex-grow: 1;
	overflow-y: auto;
	padding: 6px;
}

.horario-selector table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 3px;
	font-size: 10px;
}

.horario-selector td {
	padding: 5px 3px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	text-align: center;
	vertical-align: middle;
	font-weight: 600;
	color: #334155;
	background: #fff;
	cursor: pointer;
	transition:
		background 0.15s,
		border-color 0.15s;
}

.horario-selector tr:hover td {
	background: #c1d1d3;
}

.horario-selector .hs-slot-selecionado td {
	background: linear-gradient(135deg, var(--corPrincipal-base, #00bcd4), var(--corPrincipal, #0097a7)) !important;
	color: #fff !important;
	border-color: transparent !important;
	font-weight: 700;
}

.horario-selector .hs-slot-ocupado td {
	background: #fdecea !important;
	color: #b71c1c !important;
	cursor: not-allowed !important;
}

.horario-selector .hs-slot-reservado td {
	background: #fff8e1 !important;
	color: #a75e02 !important;
	cursor: not-allowed !important;
}

.horario-selector .hs-slot-ocupado td:hover,
.horario-selector .hs-slot-reservado td:hover,
.horario-selector tr:hover .hs-slot-ocupado td,
.horario-selector tr:hover .hs-slot-reservado td {
	background: #fdecea !important;
	border-color: #e2e8f0 !important;
}

.horario-selector tr:hover .hs-slot-reservado td {
	background: #fff8e1 !important;
}

.horario-selector .hs-slot-nota {
	font-size: 10px;
	color: #b71c1c;
}

.horario-selector .hs-slot-nota-reservado {
	color: #a75e02;
}

.horario-selector .hs-extra td {
	cursor: default;
	border: none;
	background: transparent;
	font-weight: 400;
	color: #818181;
	padding: 2px 0;
}

.horario-selector .hs-extra td:hover {
	background: transparent;
}

.horario-selector .hs-extra label {
	display: block;
	font-size: 11px;
	margin-bottom: 2px;
}

.horario-selector .hs-extra-linha {
	display: flex;
	gap: 4px;
	align-items: center;
	justify-content: center;
}

.horario-selector .hs-extra input {
	width: 78px;
	padding: 3px 4px;
	font-size: 11px;
	border: 1px solid #d0d5dd;
	border-radius: 6px;
}

.horario-selector .hs-extra button {
	padding: 2px 8px;
	font-size: 12px;
	line-height: 1.2;
	border: none;
	border-radius: 6px;
	background: #818181;
	color: #fff;
	cursor: pointer;
}

.horario-selector .hs-vazio {
	text-align: center;
	color: #94a3b8;
	font-size: 13px;
	padding: 12px;
}
