/* GORJE-673: the weekly plan as an A4 sheet (orodja/plan-tisk.js). The sheet is real millimetres; on screen it is scaled
   with zoom to its stage, in print it stands at full size and nothing else of the page is printed. Black and white
   printers: ink, grey and lines only (no fills that mean something), the type scales with --ptk-f when a week is long. */
.ptk-list { --ptk-crn: #111; --ptk-siva: #4a4a4a; --ptk-crta: #9a9a9a; --ptk-f: 1;
  width: 297mm; height: 210mm; padding: 11mm 12mm 9mm; box-sizing: border-box; overflow: hidden; display: flex; flex-direction: column;
  background: #fff; color: var(--ptk-crn); font-family: var(--f-tekst); font-size: calc(11pt * var(--ptk-f)); line-height: 1.3; text-align: left;
  -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.ptk-list * { box-sizing: border-box; margin: 0; padding: 0; }
.ptk-list h2, .ptk-list h3 { font: inherit; }
.ptk-list ul { list-style: none; }
.ptk-glava { display: flex; align-items: flex-end; justify-content: space-between; gap: 8mm; padding-bottom: 4mm; border-bottom: 1.2mm solid var(--ptk-crn); flex: none; }
.ptk-glava-levo { display: flex; flex-direction: column; gap: 3.5mm; min-width: 0; }
.ptk-znamka { --ptk-ze: calc(9mm / 251); display: flex; align-items: flex-end; color: #1E3444; }
.ptk-list img.ptk-logo { display: block; flex: none; height: calc(var(--ptk-ze) * 251) !important; width: calc(var(--ptk-ze) * 1079) !important; max-width: none !important; max-height: none !important; border-radius: 0; object-fit: contain; }
.ptk-znamka-beseda { display: flex; flex-direction: column; justify-content: space-between; height: calc(var(--ptk-ze) * 245); margin: 0 0 calc(var(--ptk-ze) * 3) calc(var(--ptk-ze) * 38);
  font-family: "Barlow Condensed", var(--f-glas), sans-serif; font-weight: 600; font-size: calc(var(--ptk-ze) * 140); line-height: .7; letter-spacing: 0; text-transform: uppercase; white-space: nowrap; color: inherit; }
.ptk-znamka-beseda > span { display: block; height: .7em; translate: 0 -.05em; }
.ptk-skupina { display: flex; align-items: center; gap: 3mm; }
.ptk-list .ptk-skupina img { width: 16mm !important; height: 16mm !important; max-width: none; object-fit: contain; filter: grayscale(1) contrast(1.08); }
.ptk-skupina b, .ptk-datum { font-family: var(--f-glas); font-weight: 700; font-size: 30pt; line-height: 1; }
.ptk-glava-desno { display: flex; flex-direction: column; align-items: flex-end; gap: 1.5mm; text-align: right; }
.ptk-nad { font-family: var(--f-glas); font-weight: 600; font-size: 13pt; letter-spacing: .08em; text-transform: uppercase; }
.ptk-osnutek { border: .6mm dashed var(--ptk-crn); border-radius: 1.5mm; padding: .6mm 2mm; font-weight: 800; font-size: 10pt; letter-spacing: .04em; text-transform: uppercase; }
.ptk-oznaka { align-self: flex-start; font-family: var(--f-glas); font-weight: 700; font-size: 10pt; letter-spacing: .08em; text-transform: uppercase; background: var(--ptk-crn); color: #fff; padding: .3mm 1.6mm; border-radius: 1mm; }
.ptk-spr { border: .6mm solid var(--ptk-crn); border-radius: 2mm; padding: 1.6mm; display: flex; flex-direction: column; gap: .8mm; font-size: calc(10.5pt * var(--ptk-f)); line-height: 1.2; }
.ptk-zapis { display: flex; gap: 8mm; margin-top: 4mm; border: .5mm solid var(--ptk-crn); border-radius: 3mm; padding: 3mm 4mm; flex: none; font-size: calc(11pt * var(--ptk-f)); line-height: 1.35; }
.ptk-zapis > div { flex: 1 1 0; min-width: 0; }
.ptk-zapis > div:first-child:last-child { columns: 2; column-gap: 8mm; }
.ptk-zapis h3 { font-family: var(--f-glas); font-weight: 700; font-size: 13pt; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1mm; column-span: all; }
.ptk-zapis p + p, .ptk-zapis li + li { margin-top: 1.2mm; }
.ptk-noga { display: flex; justify-content: space-between; gap: 6mm; margin-top: auto; padding-top: 2.6mm; border-top: .3mm solid var(--ptk-crta); font-size: 9pt; color: var(--ptk-siva); flex: none; }
.ptk-noga b { color: var(--ptk-crn); font-weight: 700; }
.ptk-list > .ptk-noga { margin-top: 3mm; }
.ptk-list > .ptk-zapis + .ptk-noga, .ptk-list > div + .ptk-noga { margin-top: auto; }

/* sheet A: 7 day columns */
.ptk-teden { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin-top: 5mm; border: .6mm solid var(--ptk-crn); border-radius: 3mm; overflow: hidden; flex: 1 1 auto; min-height: 0; }
.ptk-dan { padding: 3mm 2.6mm; border-left: .3mm solid var(--ptk-crta); display: flex; flex-direction: column; gap: calc(3.2mm * var(--ptk-f)); min-height: 0; overflow: hidden; }
.ptk-dan:first-child { border-left: 0; }
.ptk-dan h2 { font-family: var(--f-glas); font-weight: 600; font-size: 13pt; line-height: 1.1; padding-bottom: 2mm; border-bottom: .6mm solid var(--ptk-crn); white-space: nowrap; }
.ptk-dan h2 span { font-weight: 800; font-size: 19pt; letter-spacing: .02em; }
.ptk-ura { font-family: var(--f-glas); font-weight: 700; font-size: calc(24pt * var(--ptk-f)); line-height: 1; overflow-wrap: anywhere; }
.ptk-kje { font-size: calc(10.5pt * var(--ptk-f)); font-weight: 700; margin-top: .6mm; overflow-wrap: anywhere; }
.ptk-kaj { font-size: calc(13.5pt * var(--ptk-f)); line-height: 1.25; margin-top: 1mm; overflow-wrap: anywhere; hyphens: auto; }
.ptk-traja { font-size: 9.5pt; color: var(--ptk-siva); margin-top: .6mm; }
.ptk-prosto { font-family: var(--f-glas); font-size: 15pt; color: var(--ptk-crta); margin-top: 1mm; }

/* sheet D1: days x groups */
.ptk-tabela { margin-top: 4mm; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.ptk-tabela table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.ptk-tabela thead th { font-family: var(--f-glas); font-weight: 700; font-size: calc(14pt * var(--ptk-f)); text-align: left; padding: 0 2mm 1.6mm; border-bottom: .8mm solid var(--ptk-crn); white-space: nowrap; overflow: hidden; }
.ptk-tabela thead th:first-child { width: 21mm; }
.ptk-tabela thead img { display: inline-block; width: 8mm; height: 8mm; object-fit: contain; vertical-align: middle; margin-right: 1.2mm; filter: grayscale(1); }
.ptk-tabela tbody th { font-family: var(--f-glas); font-weight: 800; font-size: calc(15pt * var(--ptk-f)); text-align: left; vertical-align: top; padding: calc(1.3mm * var(--ptk-f)) 2mm; line-height: 1; }
.ptk-tabela tbody th small { display: block; font-weight: 600; font-size: calc(10.5pt * var(--ptk-f)); margin-top: .6mm; }
.ptk-tabela td { vertical-align: top; padding: calc(1.3mm * var(--ptk-f)) 2mm; border-left: .3mm solid var(--ptk-crta); font-size: calc(10.5pt * var(--ptk-f)); line-height: 1.2; overflow-wrap: anywhere; }
.ptk-tabela td b { font-family: var(--f-glas); font-weight: 700; font-size: calc(14pt * var(--ptk-f)); }
.ptk-tabela td span { font-weight: 700; font-size: calc(9.5pt * var(--ptk-f)); }
.ptk-tabela td .ptk-spr { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: .6mm 1.6mm; padding: .6mm 1.2mm; border-width: .4mm; }
.ptk-tabela tr.ptk-prvi > * { border-top: .3mm solid var(--ptk-crn); }
.ptk-tabela .ptk-nic, .ptk-tabela .ptk-prosta td { color: var(--ptk-crta); }
.ptk-tabela .ptk-prosta td { font-family: var(--f-glas); font-size: 12pt; }
.ptk-list--d .ptk-zapis { font-size: calc(10pt * var(--ptk-f)); margin-top: 3mm; padding-block: 2.4mm; }

/* the stage on screen: sheets like paper, scaled by plan-tisk.js (zoom) */
.ptk-oder { display: grid; gap: 1.25rem; justify-items: center; }
.ptk-oder .ptk-list { box-shadow: 0 1px 2px rgba(20, 38, 51, .12), 0 12px 32px -18px rgba(20, 38, 51, .35); }
.ptk-skrito { position: fixed; left: -400mm; top: 0; }
#ptk-tisk { display: none; }

/* the window «Plan tedna za tiskanje» */
.ptk-okno { width: min(78rem, calc(100vw - 2rem)); max-width: none; max-height: calc(100dvh - 2rem); padding: 1.5rem; border: 0; border-radius: var(--r-kartica);
  background: var(--sneg); color: var(--noc); box-shadow: var(--senca-okno); overflow: auto; scrollbar-gutter: stable; }
.ptk-okno h2:focus { outline: none; }
.ptk-okno::backdrop { background: var(--podlaga-okna); }
.ptk-okno-vrh { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem 1rem; }
.ptk-okno-gumbi { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.ptk-namig { margin: 0.5rem 0 1.25rem; max-width: 48rem; color: var(--megla); }
@media (max-width: 47.9375rem) {
  .ptk-okno { width: calc(100vw - 1rem); max-height: calc(100dvh - 1rem); padding: 1rem; }
  .ptk-okno-gumbi { width: 100%; }
  .ptk-okno-gumbi .gumb { flex: 1 1 auto; }
}

/* the button on the plan page cards */
.ptk-gumb { display: inline-flex; align-items: center; gap: 0.5rem; }
.ptk-gumb svg { width: 1.25rem; height: 1.25rem; flex: none; }

@media print {
  html.ptk-tiska body > :not(#ptk-tisk) { display: none !important; }
  html.ptk-tiska, html.ptk-tiska body { background: #fff !important; margin: 0 !important; padding: 0 !important; }
  html.ptk-tiska #ptk-tisk { display: block; }
  html.ptk-tiska #ptk-tisk .ptk-list { box-shadow: none; break-after: page; page-break-after: always; }
  html.ptk-tiska #ptk-tisk .ptk-list:last-child { break-after: auto; page-break-after: auto; }
}

/* the plan page card: «Natisni ali shrani PDF» and the download / notices link together at the bottom (cards in a row one height) */
.plan-skupina > .plan-povezave { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; padding-top: 0.375rem; }
