body{
	background-color:#f8f9fa;
	color:#212529;
	font:14px 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	overflow:auto;
	margin:0;
	line-height:1.5}
.tabtytul{ /* tabelka z grafikiem (nagłówek) */
	background-color:#2c3e50;
	border-bottom:3px solid #34495e}
.tytul{ /* komórka z tytułem */
	background-color:#2c3e50;
	color:#ffffff;
	height:80px;
	font:bold 32px 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	border-bottom:3px solid #34495e;
	text-align:center;
	padding:15px 0}
.tytulnapis{ /* tytu� strony z cieniem (tylko IE) */
	padding-left:10px;width:400px;height:60px;filter:Shadow(Color=#666666,Direction=150)}
.tabela{ /* tabela z planem */
	border-color:#495057;
	border-collapse:collapse;
	margin:20px auto;
	box-shadow:0 4px 6px rgba(0,0,0,0.1);
	border-radius:8px;
	overflow:hidden;
	font-size:13px}

.tabela td,
.tabela th{
	padding:8px 6px;
	line-height:1.3}

.tabela th{
	background-color:#495057;
	color:#ffffff;
	font-size:14px;
	font-weight:600;
	text-align:center;
	border:1px solid #343a40;
	position:sticky;
	top:0;
	z-index:10}
td.g{ /* godzina */
	background-color:#e9ecef;
	color:#495057;
	font-weight:600;
	vertical-align:top;
	text-align:center;
	white-space:nowrap;
	min-width:90px;
	max-width:110px;
	width:100px;
	padding:12px 8px}
td.nr{ /* numer lekcji */
	background-color:#6c757d;
	color:#ffffff;
	font-weight:600;
	text-align:center;
	vertical-align:top;
	min-width:40px;
	max-width:50px;
	width:45px;
	padding:12px 8px}
td.l{ /* lekcja */
	background-color:#ffffff;
	color:#212529;
	vertical-align:top;
	min-width:160px;
	max-width:180px;
	width:170px;
	transition:background-color 0.2s ease;
	white-space:normal;
	word-break:break-word;
	padding:6px 8px;
	font-size:12px;
	line-height:1.2}

/* Styl dla małych ekranów */
@media (max-width: 1024px){
	td.l{
		min-width:140px;
		max-width:160px;
		width:150px;
		font-size:11px;
		padding:4px 6px}
}

@media (max-width: 768px){
	td.l{
		min-width:120px;
		max-width:140px;
		width:130px;
		font-size:10px;
		padding:3px 5px}
}
td.l:hover{
	background-color:#f8f9fa}
a.n{ /* nauczyciel */
	color:#0056b3;
	text-decoration:none;
	font-weight:500;
	transition:color 0.2s ease}
a.n:hover{
	color:#003d82;
	text-decoration:underline}
a.s{ /* sala */
	color:#28a745;
	text-decoration:none;
	font-weight:500;
	transition:color 0.2s ease}
a.s:hover{
	color:#1e7e34;
	text-decoration:underline}
a.k{ /* klasa */
	color:#dc3545;
	text-decoration:none;
	font-weight:500;
	transition:color 0.2s ease}
a.k:hover{
	color:#c82333;
	text-decoration:underline}
.p{ /* przedmiot */
	color:#212529;
	font-weight:600;
	font-size:11px;
	line-height:1.2;
	white-space:normal;
	word-wrap:break-word}

.op{ /* napis */
	font:10px 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	color:#6c757d;
	line-height:1.1}

/* Zmniejsz czcionkę dla długich nazw */
.p.dlugi{
	font-size:10px}

.op.dlugi{
	font-size:9px}
@media print{
.tabtytul{ /* nagłówek do druku */
	display:none}
}

/* Wysoki kontrast dla dostępności */
@media (prefers-contrast: more){
	body{background-color:#ffffff;color:#000000}
	.tabtytul{background-color:#000000}
	.tytul{background-color:#000000;color:#ffffff}
	.tabela{border-color:#000000}
	th{background-color:#000000;color:#ffffff;border-color:#000000}
	td{background-color:#ffffff;color:#000000;border-color:#000000}
	td.g{background-color:#f0f0f0;color:#000000}
	td.nr{background-color:#333333;color:#ffffff}
	a.n,a.s,a.k{color:#0000EE;text-decoration:underline}
	a.n:hover,a.s:hover,a.k:hover{color:#551A8B}
}

/* Responsywność */
@media (max-width: 768px){
	.tytul{font-size:24px}
	.tabela{font-size:12px}
	th,td{padding:8px 4px}
}

/* Podświetlenie bieżącej lekcji */
.aktualna-lekcja{
	background-color:#ffeb3b !important;
	color:#333 !important;
	font-weight:700 !important;
	border:2px solid #ffc107 !important;
	box-shadow:0 0 10px rgba(255,193,7,0.5) !important;
	position:relative !important;
	animation:pulse 2s infinite !important}

@keyframes pulse{
	0%{box-shadow:0 0 10px rgba(255,193,7,0.5)}
	50%{box-shadow:0 0 20px rgba(255,193,7,0.8)}
	100%{box-shadow:0 0 10px rgba(255,193,7,0.5)}
}

.aktualna-lekcja .p{
	color:#d32f2f !important;
	font-weight:700 !important}

.aktualna-lekcja a.n,
.aktualna-lekcja a.s,
.aktualna-lekcja a.k{
	color:#1976d2 !important;
	font-weight:600 !important}

.aktualna-przerwa-dol{
	border-bottom:4px solid #64b5f6 !important}
