/* Kalendár voľných termínov (volne-terminy.html), dni dopĺňa dostupnost.js */
.dost-page { max-width: 1240px; }
.dost-page .article-header { max-width: 850px; margin-left: auto; margin-right: auto; }

.dost { margin: 30px 0 50px; }
.dost-nav { display: none; align-items: center; justify-content: center; gap: 18px; margin-bottom: 16px; }
.dost.ready .dost-nav { display: flex; }
.dost-month { min-width: 190px; text-align: center; font-size: 1.2rem; }
.dost-nav button {
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-hover);
    background: var(--bg-card); color: var(--text-primary); font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.dost-nav button:disabled { opacity: 0.3; cursor: default; }
.dost-nav .dost-today { width: auto; padding: 0 18px; border-radius: 22px; font-size: 0.95rem; font-weight: 600; }
.dost-status { text-align: center; color: var(--text-secondary); margin: 0 0 16px; }
.dost-status.err { color: var(--danger); }

.dost-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.dost-tab { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 0.8rem; }
.dost-tab th, .dost-tab td { border-bottom: 1px solid var(--border); padding: 0; text-align: center; }
.dost-tab tbody tr:last-child th, .dost-tab tbody tr:last-child td { border-bottom: 0; }
.dost-tab thead th { padding: 8px 0; min-width: 30px; font-weight: 600; color: var(--text-secondary); }
.dost-tab thead th span { display: block; font-size: 0.65rem; font-weight: 400; color: var(--text-muted); text-transform: lowercase; }
.dost-tab thead th em { display: block; font-size: 0.62rem; font-style: normal; font-weight: 600; color: var(--accent-light); text-transform: lowercase; }
.dost-tab thead th.we { color: var(--accent-light); }
.dost-tab thead th.today { color: var(--text-primary); box-shadow: inset 0 -3px 0 var(--accent); }
/* Stĺpec s názvami ostáva pri vodorovnom posune na mieste, preto potrebuje nepriehľadné pozadie. */
.dost-tab th:first-child {
    position: sticky; left: 0; z-index: 1; min-width: 150px; padding: 10px 12px; text-align: left;
    background: var(--bg-secondary); border-right: 1px solid var(--border);
}
.dost-tab tbody th a { display: block; font-size: 0.95rem; font-weight: 700; color: var(--text-primary); text-decoration: none; }
.dost-tab tbody th a:hover { color: var(--accent-light); }
.dost-tab tbody th span { display: block; font-size: 0.72rem; font-weight: 400; color: var(--text-muted); white-space: nowrap; }

.dost-tab td { height: 46px; }
.dost-tab td.f, .dost-lg.f { background: rgba(74, 222, 128, 0.22); }
.dost-tab td.f a { display: block; height: 46px; }
.dost-tab td.f a:hover, .dost-tab td.f a:focus-visible { background: var(--success); outline: none; }
/* Obsadené má okrem farby aj šrafovanie, aby sa dalo rozlíšiť bez vnímania farieb. */
.dost-tab td.b, .dost-lg.b {
    background: repeating-linear-gradient(135deg, rgba(248, 113, 113, 0.42) 0 4px, rgba(248, 113, 113, 0.2) 4px 8px);
}
.dost-tab td.x { opacity: 0.25; }
.dost-tab td + td { border-left: 1px solid var(--border); }
/* Hranica mesiacov v okne 30 dní. */
.dost-tab th.m1, .dost-tab td.m1 { border-left: 2px solid var(--accent); }

.dost-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin: 14px 0 0; color: var(--text-secondary); font-size: 0.9rem; }
.dost-lg { display: inline-block; width: 18px; height: 18px; border-radius: 4px; vertical-align: -4px; margin-right: 8px; }

@media (max-width: 600px) {
    .dost-tab th:first-child { min-width: 104px; padding: 8px; }
    .dost-tab tbody th span { white-space: normal; }
    .dost-tab thead th { min-width: 34px; }
}
