/* LABA Tables - Stili frontend (default in stile LABA) */
.laba-table-wrap {
	margin: 2em 0;
}

.laba-table-header {
	margin-bottom: 1.25em;
}

/* H1 - Titolo principale */
.laba-table-title {
	margin: 0 0 0.35em;
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1.2;
}

/* H2 - Primo sottotitolo */
.laba-table-subtitle-1 {
	margin: 0 0 0.25em;
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.3;
}

/* Spazio tra primo blocco e secondo titolo */
.laba-table-header-gap {
	height: 1.5em;
	margin: 0;
}

/* H1 - Secondo titolo (staccato) */
.laba-table-subtitle-2 {
	margin: 0.5em 0 0.25em;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.2;
}

/* H4 - Corso accademico */
.laba-table-subtitle-3 {
	margin: 0.2em 0 0;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.4;
	opacity: 0.95;
}

.laba-table-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.laba-table {
	margin: 0;
	width: 100%;
	border-collapse: collapse;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
}

.laba-table th,
.laba-table td {
	padding: 0.65em 0.9em;
	text-align: left;
	border: 1px solid #e5e7eb;
}

.laba-table thead th {
	background: #033157;
	font-weight: 600;
	font-size: 0.95rem;
	color: #fff;
	border-color: #033157;
}

.laba-table thead tr:first-child th:first-child {
	border-top-left-radius: 7px;
}

.laba-table thead tr:first-child th:last-child {
	border-top-right-radius: 7px;
}

.laba-table tbody tr:nth-child(even) {
	background: #fafafa;
}

.laba-table tbody tr:hover {
	background: #f5f5f5;
}

.laba-table .laba-col-corso .laba-corso-it {
	display: block;
	font-weight: 700;
}

.laba-table .laba-col-corso .laba-corso-en {
	display: block;
	font-size: 0.8em;
	opacity: 0.55;
	font-weight: 400;
	margin-top: 0.2em;
}

.laba-table .laba-col-calendario {
	text-align: center;
}

.laba-table .laba-col-calendario svg {
	display: inline-block;
	vertical-align: middle;
}

.laba-table-footer-row {
	margin: 1em 0 0;
	font-weight: 600;
	font-size: 0.95rem;
}

.laba-table-abbreviations {
	margin-top: 1.25em;
	padding: 0.9em 0;
	border-top: 1px solid #e5e7eb;
	font-size: 0.9rem;
}

.laba-abbr-title {
	margin: 0 0 0.6em;
	font-weight: 600;
}

/* Griglia in colonne (gruppi) */
.laba-abbr-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 0.4em 2em;
}

.laba-abbr-item {
	margin: 0;
}

/* ========== Selector corsi (dropdown capsula) ========== */
.laba-corsi-selector-wrap {
	margin: 2em 0;
	text-align: center;
}

/* Filtri corso + anno: sempre sulla stessa riga, centrati, stessa altezza */
.laba-corsi-selector-wrap .laba-corsi-selector-choices {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	justify-content: center;
	align-items: flex-end;
	gap: 2em;
	margin-bottom: 1.5em;
	width: 100%;
}

.laba-corsi-selector-wrap .laba-corsi-selector-choices .laba-step {
	display: flex !important;
	flex-direction: column;
	align-items: center;
	margin-bottom: 0;
	text-align: center;
	flex: 0 0 auto;
	min-width: 0;
	max-width: 320px;
}

.laba-corsi-selector-wrap .laba-corsi-selector-choices .laba-step .laba-corsi-select-label {
	text-align: center;
	margin-bottom: 0.5em;
}

.laba-corsi-selector-wrap .laba-corsi-selector-choices .laba-step .laba-corsi-select {
	margin-left: auto;
	margin-right: auto;
	width: 100%;
	box-sizing: border-box;
}

.laba-corsi-select-label {
	display: block;
	margin-bottom: 0.5em;
	font-weight: 600;
	font-size: 1rem;
}

/* Capsula: stile dropdown non default */
.laba-corsi-select {
	display: block;
	width: 100%;
	max-width: 420px;
	padding: 0.75em 1.25em;
	font-size: 1rem;
	line-height: 1.4;
	color: #333;
	background: #fff;
	border: 2px solid #e5e7eb;
	border-radius: 9999px;
	outline: none;
	cursor: pointer;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	padding-right: 2.5rem;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.laba-corsi-select:hover {
	border-color: #033157;
}

.laba-corsi-select:focus {
	border-color: #033157;
	box-shadow: 0 0 0 3px rgba(3, 49, 87, 0.15);
}

.laba-selector-table {
	margin-top: 1em;
}
