/**
 * Panel alumno — historial, selector de convocatoria y avisos propios.
 */

.depol-mr-panel__line-picker {
	flex: 1 1 auto;
	min-width: 0;
	max-width: 14rem;
}

.depol-mr-panel__line-select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	box-sizing: border-box;
	width: 100%;
	min-height: 37px;
	padding: 0.55rem 2.35rem 0.55rem 0.75rem;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background-color: var(--surface);
	background-image:
		linear-gradient(45deg, transparent 50%, currentColor 50%),
		linear-gradient(135deg, currentColor 50%, transparent 50%);
	background-repeat: no-repeat;
	background-position:
		right 1.05rem center,
		right 0.75rem center;
	background-size:
		0.35rem 0.35rem,
		0.35rem 0.35rem;
	color: var(--navy2);
	font-family: inherit;
	font-size: 0.875rem;
	color-scheme: light;
}

.depol-mr-panel__line-select:focus {
	outline: none;
	border-color: var(--navy);
	box-shadow: var(--focus-ring);
}

.depol-mr-panel__line-select::-ms-expand {
	display: none;
}

@media (max-width: 640px) {
	.depol-mr-panel__line-picker {
		order: 3;
		flex: 1 1 100%;
		max-width: none;
	}
}

.depol-mr-app__bar-sub .depol-mr-sim-calendar {
	display: block;
	width: 100%;
	box-sizing: border-box;
}

.depol-mr-sim-history__chips-row {
	display: flex;
	align-items: center;
	width: 100%;
	min-width: 0;
}

.depol-mr-sim-history__chips-row .depol-mr-sim-calendar__track {
	flex: 1 1 auto;
	min-width: 0;
	flex-wrap: nowrap;
	overflow-x: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.depol-mr-sim-history__chips-row .depol-mr-sim-calendar__track::-webkit-scrollbar {
	display: none;
}

.depol-mr-sim-history {
	position: relative;
}

.depol-mr-sim-history__popover {
	position: absolute;
	z-index: 20;
	width: min(100%, 22rem);
	margin-top: 0.75rem;
	padding: 0.9rem;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--surface);
	box-shadow: var(--shadow-md);
	box-sizing: border-box;
}

.depol-mr-sim-history__picker {
	display: grid;
	gap: 0.85rem;
}

.depol-mr-sim-history__picker-label {
	margin: 0 0 0.35rem;
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--textsub);
}

.depol-mr-sim-history__year-row,
.depol-mr-sim-history__carousel {
	display: grid;
	grid-template-columns: var(--depol-mr-touch-min) minmax(0, 1fr) var(--depol-mr-touch-min);
	align-items: center;
	gap: 0.45rem;
	max-width: 16rem;
}

.depol-mr-sim-history__year {
	min-width: 4rem;
	text-align: center;
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--navy2);
}

.depol-mr-sim-history__carousel-track {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	min-width: 0;
	overflow-x: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.depol-mr-sim-history__carousel-track::-webkit-scrollbar {
	display: none;
}

.depol-mr-app .depol-mr-sim-history__filter-chip,
.depol-mr-app .depol-mr-sim-history__nav {
	border: 1px solid var(--border2);
	border-radius: var(--radius-pill);
	background: var(--surface);
	color: var(--navy2);
	font-family: inherit;
	font-size: 0.82rem;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}

.depol-mr-app .depol-mr-sim-history__filter-chip {
	min-height: 2rem;
	padding: 0.35rem 0.7rem;
	white-space: nowrap;
}

.depol-mr-app .depol-mr-sim-history__filter-chip:hover,
.depol-mr-app .depol-mr-sim-history__nav:hover {
	border-color: var(--navy);
	background: var(--surface-brand-soft);
}

.depol-mr-app .depol-mr-sim-history__filter-chip.is-active {
	border-color: var(--navy);
	background: var(--navy);
	color: var(--on-dark);
}

.depol-mr-app .depol-mr-sim-history__nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: var(--depol-mr-touch-min);
	min-height: var(--depol-mr-touch-min);
}

.depol-mr-app .depol-mr-sim-history__nav:disabled {
	opacity: 0.42;
	cursor: not-allowed;
}

.depol-mr-app .depol-mr-sim-history__nav:focus-visible {
	outline: none;
	box-shadow: var(--focus-ring);
}

.depol-mr-theme-select {
	min-width: 12rem;
	max-width: 100%;
	padding: 0.5rem 2.35rem 0.5rem 1rem;
	border: 1px solid var(--border2);
	border-radius: var(--radius-pill);
	background-color: #fff;
	color: var(--navy2);
	font-family: inherit;
	font-size: 0.84rem;
	font-weight: 600;
	line-height: 1.25;
	cursor: pointer;
	color-scheme: light;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-image:
		linear-gradient(45deg, transparent 50%, currentColor 50%),
		linear-gradient(135deg, currentColor 50%, transparent 50%);
	background-repeat: no-repeat;
	background-position:
		right 1.05rem center,
		right 0.75rem center;
	background-size:
		0.35rem 0.35rem,
		0.35rem 0.35rem;
	box-shadow: var(--shadow-sm);
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

select.depol-mr-theme-select {
	width: 100%;
}

button.depol-mr-theme-select {
	padding-right: 1rem;
	background-image: none;
}

.depol-mr-theme-select::-ms-expand {
	display: none;
}

.depol-mr-theme-select:hover {
	border-color: var(--navy);
}

.depol-mr-theme-select:focus,
.depol-mr-theme-select:focus-visible {
	outline: none;
	border-color: var(--navy);
	box-shadow: var(--focus-ring);
}

select.depol-mr-theme-select option {
	font-family: inherit;
	font-size: 0.84rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--navy2);
	background-color: #fff;
}

select.depol-mr-theme-select option:checked {
	background-color: var(--surface-blue);
	color: var(--navy);
}

.depol-mr-app__admin-note {
	width: 100%;
	max-width: var(--depol-mr-content-max);
	margin: 0 auto;
	padding: 0.75rem var(--depol-mr-content-x);
	color: #1d2327;
	font-size: 0.86rem;
}

.depol-mr-sim-banner {
	margin: 0;
	padding: 0.85rem var(--depol-mr-content-x);
	background: rgba(var(--navy-rgb), 0.08);
	border-bottom: 1px solid var(--border2);
	color: var(--navy);
}

.depol-mr-sim-banner__text {
	margin: 0;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.45;
	text-align: center;
}
