/* Týždenný rozvrh, čipy, presúvanie hodín. */

.scroll { overflow-x: auto; max-width: 100%; }
table.week { width: 100%; min-width: 2250px; table-layout: fixed; font-size: 11px; border-collapse: separate; border-spacing: 0; }
table.week col.day { width: 88px; }
table.week col.slot { width: 46px; }
table.week th, table.week td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1px 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.week tr > th:first-child { position: sticky; left: 0; z-index: 2; background: var(--panel); border-left: 1px solid var(--line); }
table.week tr:first-child th { font-size: 10px; font-weight: 600; padding: 2px 0; text-align: center; text-overflow: clip; }
table.week .busy { background: color-mix(in srgb, var(--red) 18%, var(--panel)); white-space: normal; vertical-align: top; text-overflow: clip; }
table.week .busy.dim { opacity: .35; }
table.week .busy.mark { box-shadow: inset 0 0 0 2px var(--red); }
table.week td.fit { background: color-mix(in srgb, var(--red) 10%, var(--panel)); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
a.chip { border: 1px solid var(--line); padding: 4px 8px; color: inherit; text-decoration: none; background: var(--panel); }
a.chip.on { border-color: var(--red); }
a.chip.placed { opacity: .55; }
h2.band { margin: 14px 0 4px; }
table.week td.busy a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  white-space: normal;
  overflow: hidden;
  line-height: 1.25;
  max-height: 3.75em;
  text-overflow: clip;
  color: inherit;
  text-decoration: none;
}
table.week a { display: block; overflow: hidden; text-overflow: ellipsis; color: inherit; text-decoration: none; }
table.week a:hover { color: var(--red); }
.year-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.year-tabs a { color: inherit; }
.year-tabs a[aria-current="page"] { font-weight: 650; color: var(--red); }

.thinking { opacity: 0; transform: translateY(4px); transition: opacity 180ms ease, transform 180ms ease; }
.thinking.on { opacity: 1; transform: none; }
table.week td.drop-zelena { outline: 2px solid #1f7a3a; outline-offset: -2px; }
table.week td.drop-cervena { outline: 2px solid var(--red); outline-offset: -2px; background: color-mix(in srgb, var(--red) 16%, transparent); }
table.week td.drop-modra { outline: 2px solid #2f6fed; outline-offset: -2px; }
table.week td.drop-siva { outline: 2px solid #8a847c; outline-offset: -2px; }
table.week td.drop-biela { outline: 2px dashed var(--muted); outline-offset: -2px; }
.move-legend { color: var(--muted); font-size: 12px; }
.move-offer { display: grid; gap: 8px; margin: 0 0 12px; padding: 12px; border: 1px solid var(--line); background: var(--panel); }
.move-offer button { justify-self: start; }

