:root { --bg:#f5f6f8; --fg:#1d2430; --muted:#6b7585; --brand:#0b6e8a; --line:#dfe3e8; }
* { box-sizing: border-box; }
body { margin:0; font:15px/1.5 system-ui,sans-serif; color:var(--fg); background:var(--bg); display:flex; min-height:100vh; }
.sidebar { width:230px; background:#fff; border-right:1px solid var(--line); padding:16px 12px; display:flex; flex-direction:column; position:sticky; top:0; height:100vh; overflow-y:auto; }
.brand { font-weight:700; font-size:18px; color:var(--brand); text-decoration:none; padding:4px 8px 16px; }
.nav-group { font-size:11px; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); padding:14px 8px 4px; }
.sidebar nav a { display:flex; gap:8px; padding:7px 8px; border-radius:6px; color:var(--fg); text-decoration:none; }
.sidebar nav a:hover { background:var(--bg); }
.sidebar nav a.active { background:var(--brand); color:#fff; }
.icon { width:1.4em; text-align:center; }
.userbox { margin-top:auto; padding:12px 8px 0; border-top:1px solid var(--line); display:flex; flex-direction:column; gap:2px; font-size:13px; }
button.link { background:none; border:0; color:var(--brand); padding:0; cursor:pointer; text-align:left; font:inherit; }
main { flex:1; padding:24px 32px; min-width:0; }
h1 { margin:0 0 16px; font-size:22px; }
.card { background:#fff; border:1px solid var(--line); border-radius:8px; padding:16px; }
table { width:100%; border-collapse:collapse; background:#fff; border:1px solid var(--line); border-radius:8px; }
th, td { text-align:left; padding:8px 12px; border-bottom:1px solid var(--line); }
th { font-size:12px; text-transform:uppercase; color:var(--muted); }
.muted { color:var(--muted); }
.grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:12px; }
.grid a.card { text-decoration:none; color:inherit; } .grid a.card:hover { border-color:var(--brand); }
label { display:block; margin-bottom:12px; font-size:13px; color:var(--muted); }
input, select { display:block; width:100%; padding:8px; border:1px solid var(--line); border-radius:6px; font:inherit; margin-top:4px; }
button { background:var(--brand); color:#fff; border:0; border-radius:6px; padding:8px 16px; font:inherit; cursor:pointer; }
td select { width:auto; margin:0; }
body.login { align-items:center; justify-content:center; }
.login-card { width:340px; }
.tab { display:inline-block; padding:5px 12px; margin-right:4px; border-radius:6px; background:#fff; border:1px solid var(--line); color:var(--fg); text-decoration:none; font-size:14px; }
.tab.on { background:var(--brand); color:#fff; border-color:var(--brand); }
.badge { display:inline-block; padding:1px 8px; border-radius:10px; background:#e6f1f5; color:var(--brand); font-size:12px; }
.badge.warn { background:#fdf0d5; color:#8a5a00; }
a { color:var(--brand); }
h2 { font-size:18px; margin:28px 0 10px; } h3 { font-size:16px; }
textarea { display:block; width:100%; padding:8px; border:1px solid var(--line); border-radius:6px; font:inherit; margin-top:4px; }
.form-narrow { max-width:560px; }
.row2 { display:grid; grid-template-columns:1fr 1fr; gap:12px; } .row3 { display:grid; grid-template-columns:2fr 1fr 1fr; gap:12px; }
label.check { display:flex; gap:8px; align-items:center; } label.check input { width:auto; margin:0; }
form.inline { display:inline; }
button.secondary { background:#fff; color:var(--brand); border:1px solid var(--brand); }
button.danger { background:#c0392b; } .danger-text { color:#c0392b !important; }
td.actions { white-space:nowrap; text-align:right; } td.actions > * { margin-left:10px; }
details.card { margin-top:12px; } details summary { cursor:pointer; font-weight:600; }
details[open] summary { margin-bottom:12px; }
.toolbar { display:flex; gap:8px; align-items:flex-end; flex-wrap:wrap; margin-bottom:12px; } .toolbar label { margin:0; }
.legend { display:flex; gap:16px; font-size:13px; } .legend i { display:inline-block; width:10px; height:10px; border-radius:2px; margin-right:5px; }
.tt { display:grid; grid-template-columns:56px repeat(7, minmax(110px,1fr)); background:#fff; border:1px solid var(--line); border-radius:8px; overflow-x:auto; }
.tt-head { padding:6px; text-align:center; font-size:13px; font-weight:600; border-bottom:1px solid var(--line); }
.tt-head.today { color:var(--brand); }
.tt-hours div { font-size:11px; color:var(--muted); padding:2px 4px; border-top:1px solid var(--line); box-sizing:border-box; }
.tt-day { position:relative; border-left:1px solid var(--line); background-image:linear-gradient(var(--line) 1px, transparent 1px); background-size:100% var(--px); }
.tt-day.today { background-color:#f2f9fb; }
.tt-lesson { position:absolute; left:2px; right:2px; padding:2px 5px; border-radius:4px; color:#fff; font-size:12px; line-height:1.25; overflow:hidden; text-decoration:none; }
a.tt-lesson:hover { filter:brightness(1.1); }


.topbar { margin-bottom:16px; display:flex; justify-content:space-between; align-items:center; gap:12px; } .topbar h1 { margin-bottom:0; }
.bell { position:relative; } .bell > summary { list-style:none; cursor:pointer; font-size:20px; position:relative; padding:4px 8px; user-select:none; } .bell > summary::-webkit-details-marker { display:none; }
.bell-count { position:absolute; top:-2px; right:-2px; background:#c0392b; color:#fff; font-size:11px; line-height:1; padding:3px 5px; border-radius:10px; }
.bell-head { display:flex; justify-content:space-between; align-items:center; padding:10px 12px; border-bottom:1px solid var(--line); } .bell-head form { margin:0; } .bell-head button { font-size:12px; }
.bell-item { display:block; padding:10px 12px; border-bottom:1px solid var(--line); text-decoration:none; color:inherit; } .bell-item:hover { background:#f5f9fb; }
.bell-item.unread { background:#eef6fa; } .bell-item span { display:block; font-size:13px; color:var(--muted); } .bell-item small { color:#9aa3ad; }

/* Toast: overlays the page, never shifts content */
.flash { position:fixed; top:16px; left:50%; transform:translateX(-50%); z-index:200; max-width:min(640px,92vw); padding:12px 18px; border-radius:8px; box-shadow:0 8px 24px rgba(0,0,0,.18); border:1px solid transparent; animation:flash-out .4s ease 9s forwards; cursor:pointer; }
.flash.ok { background:#e3f5e8; border-color:#b7e0c1; } .flash.err { background:#fde4e4; border-color:#f3b8b8; }
@keyframes flash-out { to { opacity:0; visibility:hidden; } }

/* Bell dropdown overlays the page */
.bell { position:relative; z-index:60; }
.bell-panel { position:absolute; right:0; top:calc(100% + 6px); width:360px; max-width:92vw; max-height:70vh; overflow:auto; background:#fff; border:1px solid var(--line); border-radius:10px; box-shadow:0 12px 32px rgba(0,0,0,.2); z-index:100; }

/* Last-edit note: separate footer strip */
.last-edit { display:flex; align-items:center; gap:6px; clear:both; margin:16px 0 0; padding:8px 0 0; border-top:1px dashed var(--line); font-size:11px; color:#8a94a1; }
.last-edit::before { content:'\f304'; font-family:'Font Awesome 5 Free'; font-weight:900; font-size:11px; }

/* Request / shift cards */
.shift { background:#fff; border:1px solid var(--line); border-radius:10px; margin-bottom:14px; overflow:hidden; }
.shift-head { display:flex; flex-wrap:wrap; align-items:center; gap:10px; padding:12px 16px; background:#f7fafb; border-bottom:1px solid var(--line); }
.shift-head .when { font-weight:600; font-size:16px; margin-right:auto; }
.shift-body { padding:12px 16px; }
.pill { display:inline-flex; align-items:center; gap:5px; padding:2px 10px; border-radius:999px; font-size:12px; background:#e6f1f5; color:var(--brand); white-space:nowrap; }
.pill.ok { background:#e3f5e8; color:#1e7a3a; } .pill.warn { background:#fdf0d5; color:#8a5a00; } .pill.bad { background:#fde4e4; color:#a12a2a; }
.people { list-style:none; margin:0; padding:0; } .people li { display:flex; align-items:center; gap:10px; padding:7px 0; border-bottom:1px solid #eef0f3; } .people li:last-child { border:0; }
.avatar { width:30px; height:30px; border-radius:50%; background:var(--brand); color:#fff; display:inline-flex; align-items:center; justify-content:center; font-size:12px; font-weight:600; flex:none; }
.people .grow { flex:1; } .people .role { color:var(--muted); font-size:13px; }
.requests { margin-top:12px; border:1px solid #f0dfb0; background:#fffaeb; border-radius:8px; padding:10px 12px; }
.requests h4 { margin:0 0 8px; font-size:13px; color:#8a5a00; text-transform:uppercase; letter-spacing:.04em; }
.request-row { display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:8px 0; border-top:1px solid #f0dfb0; } .request-row:first-of-type { border-top:0; }
.request-row .who { display:flex; align-items:center; gap:8px; min-width:180px; font-weight:600; }
.request-row select, .request-row input { width:auto; margin:0; padding:6px 8px; } .request-row input[name=admin_notes] { flex:1; min-width:140px; }
.shift-foot { display:flex; flex-wrap:wrap; align-items:center; gap:10px; padding:10px 16px; border-top:1px solid var(--line); background:#fcfcfd; }
.shift-foot .spacer { margin-left:auto; }
.enroll { display:flex; flex-wrap:wrap; align-items:center; gap:12px; padding:12px 16px; margin:12px 0; border:1px solid var(--line); border-left:4px solid var(--brand); border-radius:8px; background:#fff; }
.enroll.joined { border-left-color:#2e9a4f; background:#f3fbf5; } .enroll .grow { flex:1; }
.tabs { display:flex; gap:4px; border-bottom:1px solid var(--line); margin-bottom:16px; } .tabs a { padding:8px 16px; text-decoration:none; color:var(--muted); border-bottom:2px solid transparent; margin-bottom:-1px; } .tabs a.on { color:var(--brand); border-bottom-color:var(--brand); font-weight:600; }
.brand-logo { display:block; max-width:100%; max-height:48px; object-fit:contain; } .sidebar .brand { padding-bottom:12px; } .login-logo { max-height:72px; margin:0 auto 16px; }

/* ===== Mobile ===== */
.mobilebar, .nav-backdrop { display:none; }
.table-scroll { overflow-x:auto; -webkit-overflow-scrolling:touch; }
dialog { max-height:90vh; overflow:auto; }
dialog::backdrop { background:rgba(15,25,35,.45); }
@media screen and (max-width:760px) {
  body { display:block; font-size:16px; }
  .mobilebar { display:flex; align-items:center; gap:10px; position:sticky; top:0; z-index:70; height:54px; padding:0 8px; background:#fff; border-bottom:1px solid var(--line); }
  .mobilebar .menu-btn { background:none; color:var(--fg); font-size:24px; width:44px; height:44px; padding:0; border-radius:8px; }
  .mobilebar .brand { padding:0; flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .mobilebar .brand-logo { max-height:34px; }
  .sidebar { position:fixed; z-index:90; top:0; left:0; bottom:0; width:82vw; max-width:320px; height:100%; transform:translateX(-102%); transition:transform .22s ease; box-shadow:none; padding-top:12px; }
  .sidebar .brand { display:none; }
  body.nav-open .sidebar { transform:none; box-shadow:0 0 40px rgba(0,0,0,.35); }
  body.nav-open .nav-backdrop { display:block; position:fixed; inset:0; z-index:80; background:rgba(15,25,35,.45); }
  body.nav-open { overflow:hidden; }
  .sidebar nav a { padding:12px 10px; font-size:16px; }
  main { padding:14px 12px 28px; }
  h1 { font-size:20px; } h2 { font-size:17px; margin-top:22px; }
  .topbar { position:sticky; top:54px; z-index:50; margin:-14px -12px 12px; padding:10px 12px; background:var(--bg); }
  .bell-panel { position:fixed; left:8px; right:8px; top:60px; width:auto; max-width:none; max-height:75vh; }
  /* touch targets and no iOS zoom */
  input, select, textarea { font-size:16px; padding:11px 10px; min-height:44px; }
  button, .button, a.button { min-height:44px; padding:10px 16px; }
  button.link { min-height:0; padding:6px 0; }
  .card { padding:14px; }
  .row2, .row3 { grid-template-columns:1fr; }
  .toolbar { align-items:stretch; } .toolbar > .button, .toolbar > button, .toolbar > a.tab { flex:1 1 auto; text-align:center; }
  .tab { padding:9px 14px; }
  .tabs { overflow-x:auto; white-space:nowrap; } .tabs a { padding:10px 14px; }
  .grid { grid-template-columns:1fr 1fr; }
  td select, td input { width:100%; }
  form.inline { display:inline-block; }
  dialog { width:100% !important; max-width:100% !important; max-height:92vh; margin:auto 0 0; border-radius:14px 14px 0 0 !important; padding:16px !important; }
  .form-narrow, [style*="max-width:420px"], [style*="max-width:460px"], [style*="max-width:560px"], [style*="max-width:620px"], [style*="max-width:640px"] { max-width:100% !important; }
  .flash { top:8px; width:94vw; }
  .shift-head .when { flex-basis:100%; }
  .request-row .who { flex-basis:100%; } .request-row select, .request-row input, .request-row button { flex:1 1 100%; width:100%; }
  .shift-foot button, .enroll button { width:100%; } .enroll form { width:100%; }
  .people li { flex-wrap:wrap; }
  .tt { grid-template-columns:48px repeat(7, 130px); }
  /* tables: stacked cards when they have a header row, otherwise scroll */
  table.stack, table.stack tbody { display:block; border:0; background:none; }
  table.stack tr:first-child:has(th) { display:none; }
  table.stack tr { display:block; background:#fff; border:1px solid var(--line); border-radius:10px; padding:6px 12px; margin-bottom:10px; }
  table.stack td { display:flex; justify-content:space-between; align-items:center; gap:12px; text-align:right; border-bottom:1px solid #eef0f3; padding:9px 0; word-break:break-word; }
  table.stack td:last-child { border-bottom:0; }
  table.stack td::before { content:attr(data-label); color:var(--muted); font-size:12px; text-transform:uppercase; letter-spacing:.03em; text-align:left; flex:0 0 38%; }
  table.stack td:empty { display:none; }
  table.stack td[data-label=""]::before { display:none; }
  table.stack td.actions { justify-content:flex-end; flex-wrap:wrap; white-space:normal; }
  table.stack td.actions > * { margin-left:0; }
  table.stack td[colspan] { display:block; text-align:left; } table.stack td[colspan]::before { display:none; }
}

/* Interní vzdělávání: odznaky */
.medal { position:relative; display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; border-radius:50%; background:var(--c); color:#fff; font-size:15px; flex:none; }
.medal.big { width:64px; height:64px; font-size:28px; box-shadow:0 0 0 4px #fff, 0 0 0 6px var(--c); margin:6px; }
.medal.off { background:#d5dbe1; color:#fff; box-shadow:0 0 0 4px #fff, 0 0 0 6px #d5dbe1; }
.medal b { position:absolute; right:-10px; bottom:-8px; background:#1f2933; color:#fff; font-size:11px; border-radius:999px; padding:1px 6px; }
.medals { display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:12px; margin-bottom:18px; }
.medal-card { display:flex; flex-direction:column; align-items:center; text-align:center; gap:6px; padding:16px 12px; background:#fff; border:1px solid var(--line); border-radius:10px; text-decoration:none; color:inherit; }
.medal-card:hover { border-color:var(--brand); }
.medal-card.todo { background:#fafbfc; } .medal-card.todo strong { color:#52606d; }
.medal-hero { display:flex; align-items:center; gap:16px; margin-bottom:10px; }

/* Formátované popisy */
.rich { line-height:1.55; overflow-wrap:anywhere; }
.rich > :first-child { margin-top:0; } .rich > :last-child { margin-bottom:0; }
.rich h2, .rich h3, .rich h4 { margin:14px 0 6px; line-height:1.3; }
.rich ul, .rich ol { padding-left:24px; margin:8px 0; }
.rich blockquote { margin:8px 0; padding:4px 12px; border-left:3px solid var(--line); color:#52606d; }
.rich table { border-collapse:collapse; margin:8px 0; } .rich td, .rich th { border:1px solid var(--line); padding:4px 8px; }
.rich pre { background:#f3f5f7; padding:8px 10px; border-radius:6px; overflow:auto; }
.rich a { text-decoration:underline; }
.rte-wrap { border:1px solid var(--line); border-radius:8px; background:#fff; margin-top:4px; overflow:hidden; }
.rte-wrap:focus-within { border-color:var(--brand); }
.rte-bar { display:flex; flex-wrap:wrap; gap:2px; padding:4px; background:#f6f8fa; border-bottom:1px solid var(--line); }
.rte-bar button { min-height:36px; min-width:36px; padding:4px 8px; background:transparent; color:#323f4b; border:0; border-radius:6px; }
.rte-bar button:hover { background:#e4e9ee; }
.rte-sep { width:1px; background:var(--line); margin:4px 4px; }
.rte-area { padding:10px 12px; outline:none; max-height:50vh; overflow:auto; }

/* Položky na přehledu */
.items { display:grid; gap:8px; margin:8px 0 10px; }
.item { display:flex; align-items:center; gap:12px; padding:9px 10px; border:1px solid var(--line); border-radius:10px; background:#fafbfc; text-decoration:none; color:inherit; }
a.item:hover { border-color:var(--brand); }
.item-date, .item-ico { flex:none; width:44px; height:44px; border-radius:10px; background:var(--brand); color:#fff; display:flex; flex-direction:column; align-items:center; justify-content:center; line-height:1.1; }
.item-date b { font-size:17px; } .item-date { font-size:11px; }
.item-ico { background:#e4e9ee; color:#52606d; font-size:17px; } .item-ico.warn { background:#fdf0d5; color:#a06100; }
.item-body { display:flex; flex-direction:column; min-width:0; } .item-body strong { overflow-wrap:anywhere; }
.item-body small { color:#52606d; margin-top:2px; }

/* Tisk */
.print-sheet { max-width:820px; margin:12px auto; padding:36px 48px; background:#fff; border:1px solid var(--line); color:#111; font-family:Arial,sans-serif; }
.print-sheet h2 { font-size:21px; margin:0 0 4px; }
.print-sheet h3 { font-size:14px; border-bottom:1px solid #444; padding-bottom:5px; margin:20px 0 10px; }
.print-sheet .print-meta { margin:0 0 14px; font-size:13px; color:#333; line-height:1.6; }
.print-sheet table { width:100%; border-collapse:collapse; margin:6px 0 14px; }
.print-sheet th, .print-sheet td { border:1px solid #444; padding:6px 8px; text-align:left; font-size:13px; vertical-align:top; }
.print-sheet th { background:#eee; }
.print-sheet .blank td { height:34px; }
.print-sheet .sign { margin-top:48px; display:flex; justify-content:flex-end; }
.print-sheet .sign div { width:300px; border-top:1px solid #222; padding-top:5px; font-size:13px; }
.print-sheet .print-foot { margin-top:28px; padding-top:8px; border-top:1px solid #bbb; font-size:11px; color:#555; text-align:center; line-height:1.5; }
.print-sheet .rich { font-size:13px; }
@media print {
  @page { margin:12mm; }
  body { background:#fff; }
  .mobilebar, .sidebar, .nav-backdrop, .topbar, .print-toolbar, .flash, .no-print { display:none !important; }
  main { margin:0 !important; padding:0 !important; width:100% !important; max-width:none !important; }
  .print-sheet { max-width:none; margin:0; padding:0; border:0; box-shadow:none; }
  .print-sheet tr, .print-sheet .keep { break-inside:avoid; }
  table.stack, table.stack tbody { display:table !important; } table.stack tbody { display:table-row-group !important; }
  table.stack tr { display:table-row !important; } table.stack tr:first-child:has(th) { display:table-row !important; }
  table.stack td, table.stack th { display:table-cell !important; } table.stack td::before { display:none !important; }
  .table-scroll { overflow:visible !important; }
}
@media screen and (max-width:700px) { .print-sheet { padding:16px; } .print-sheet table { display:block; overflow-x:auto; } }

/* Tisk: logo, časová osa, informace o provozovně */
.pk-sheet { background:#fff; color:#1f2937; border:1px solid var(--line); border-radius:8px; padding:16px; margin:10px 0; }
.pk-page + .pk-page { margin-top:18px; border-top:1px dashed #bbb; padding-top:18px; }
.pk-header { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; border-bottom:2px solid #d01217; padding-bottom:10px; margin-bottom:12px; }
.pk-brand { display:flex; align-items:center; gap:12px; }
.pk-logo { height:54px; max-width:220px; object-fit:contain; }
.pk-logo-fallback { font-size:22px; font-weight:800; color:#d01217; }
.pk-title { font-size:20px; margin:0 0 4px; font-weight:800; }
.pk-meta { font-size:13px; color:#4b5563; line-height:1.5; } .pk-right { text-align:right; white-space:nowrap; }
.pk-footer { margin-top:12px; padding-top:8px; border-top:1px solid #e5e7eb; font-size:10px; color:#6b7280; display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.pk-sub { font-size:14px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:#374151; margin:10px 0 8px; }
.pk-tbl { width:100%; border-collapse:collapse; font-size:12px; table-layout:fixed; }
.pk-tbl th, .pk-tbl td { border:1px solid #d1d5db; padding:7px 8px; vertical-align:top; text-align:left; }
.pk-tbl th { background:#f3f4f6; text-transform:uppercase; font-size:11px; }
.pk-tbl .gap td { background:#fff3cd; color:#856404; font-weight:700; text-align:center; }
.pk-tl { border:1px solid #d1d5db; border-radius:6px; padding:10px; background:#fff; }
.pk-tl-head { position:relative; height:20px; margin-left:76px; border-bottom:2px solid #e5e7eb; margin-bottom:8px; }
.pk-tick { position:absolute; bottom:4px; transform:translateX(-50%); font-size:10px; font-weight:700; color:#6b7280; }
.pk-row { display:flex; align-items:stretch; min-height:46px; margin-bottom:6px; border-bottom:1px dashed #eceef1; padding-bottom:6px; }
.pk-label { width:76px; flex:none; display:flex; flex-direction:column; justify-content:center; border-right:2px solid #e5e7eb; padding-right:6px; margin-right:0; font-size:13px; }
.pk-label small { color:#6b7280; font-size:11px; }
.pk-track { position:relative; flex:1; min-height:44px; margin-left:0; }
.pk-grid { position:absolute; top:0; bottom:0; width:1px; background:#f0f1f3; }
.pk-block { position:absolute; top:0; bottom:0; display:flex; flex-direction:column; justify-content:center; border-radius:4px; overflow:hidden; box-sizing:border-box; }
.pk-block.lesson { background:#f8fafc; border:1px solid #dbe3ea; border-left:3px solid #d01217; padding:2px 4px; }
.pk-abbr { font-size:12px; font-weight:800; line-height:1.1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pk-time { font-size:9px; font-weight:700; color:#7f1d1d; margin-top:2px; white-space:nowrap; }
.pk-block.short { background:#f3f4f6; color:#9ca3af; align-items:center; border:1px solid #e5e7eb; font-size:11px; }
.pk-block.lunch { background:#fff3cd; color:#856404; border:1px solid #ffeeba; flex-direction:row; align-items:center; justify-content:center; font-size:11px; gap:4px; }
.pk-block.lunch span { font-size:9px; font-weight:700; white-space:nowrap; overflow:hidden; }
.pk-tl.compact .pk-row { min-height:0; height:19px; margin-bottom:0; padding-bottom:0; border-bottom:1px solid #eceef1; }
.pk-tl.compact .pk-track { min-height:0; }
.pk-tl.compact .pk-label { flex-direction:row; align-items:center; gap:5px; font-size:10px; }
.pk-tl.compact .pk-label small { font-size:10px; }
.pk-tl.compact .pk-block.lesson { flex-direction:row; align-items:center; gap:4px; padding:0 3px; }
.pk-tl.compact .pk-abbr { font-size:9px; flex:0 1 auto; } .pk-tl.compact .pk-time { font-size:8px; margin:0; flex:none; order:-1; }
.pk-row.weekend { background:#f5f6f8; }
.pk-legend { margin-top:8px; font-size:10px; color:#4b5563; display:flex; flex-wrap:wrap; gap:3px 14px; }
.pk-legend i { display:inline-block; width:9px; height:9px; border-radius:2px; margin-right:4px; }
.pk-premises { margin-top:12px; border:1.5px solid #374151; border-radius:6px; padding:8px 12px; }
.pk-prem-title { font-weight:800; text-transform:uppercase; letter-spacing:.05em; font-size:12px; margin-bottom:5px; }
.pk-premises dl { margin:0; display:grid; grid-template-columns:repeat(3, 1fr); gap:3px 18px; }
.pk-premises dt { font-size:9px; color:#6b7280; text-transform:uppercase; } .pk-premises dd { margin:0; font-size:11px; font-weight:600; }
@media screen and (max-width:700px) { .pk-premises dl { grid-template-columns:1fr; } .pk-sheet { overflow-x:auto; } .pk-tl { min-width:640px; } }
@media print {
  .pk-sheet { border:0; padding:0; margin:0; border-radius:0; overflow:visible; }
  .pk-page { break-after:page; page-break-after:always; margin:0 !important; border:0 !important; padding:0 !important; }
  .pk-page:last-child { break-after:auto; page-break-after:auto; }
  .pk-tl { min-width:0; } .pk-premises dl { grid-template-columns:repeat(3, 1fr); }
  .pk-tbl thead { display:table-header-group; } .pk-tbl tr { break-inside:avoid; }
  * { -webkit-print-color-adjust:exact; print-color-adjust:exact; }
}

.tt-event { background:#64748b; border:1px dashed rgba(255,255,255,.6); }
