/* Existing screen CSS extracted from the previously generated file entrypoint. */

:root {
  --color-primary: #1e5fa8;
  --color-primaryLight: #aad4ff;
  --color-secondary: #f5f7fa;
  --color-accent: #f57c00;
  --color-white: #ffffff;
  --color-black: #2c2c2c;
  --color-text-dark: #111;
  --color-border-soft-dark: rgba(0, 0, 0, 0.08);
  --color-nav-link-bg: #f7fafe;
  --color-nav-link-bg-hover: #edf5ff;
  --spacing-xs: 4px;
  --spacing-2xs: 6px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 20px;
  --font-body: system-ui, Arial, sans-serif;
  --font-heading: var(--font-body);
  --fs-h3: 26px;
  --fs-h4: 22px;
  --fs-h5: 18px;
  --fs-h6: 16px;
  --fs-small: 14px;
  --fw-semibold: 600;
  --fw-bold: 700;
  --lh-heading: 1.25;
  --lh-small: 22.5px;
  --ls-body: 0.2px;
  --ls-heading: 0.5px;
  --border-width-sm: 1px;
  --shadow-pagination-link: 0 6px 18px rgba(59, 63, 140, 0.25);
  --shadow-pagination-number: 0 6px 18px rgba(75, 79, 114, 0.22);
  --shadow-button-hover: 0 8px 20px rgba(0, 0, 0, 0.25), 0 0 8px rgba(120, 140, 255, 0.3);
  --transform-button-hover: translateY(-2px) scale(1.02);
  --transition-fast: 0.2s ease-in-out;
}
*,*::before,*::after{box-sizing:border-box}html,body{margin:0;padding:0}body{background:var(--color-secondary);color:var(--color-text-dark);font-family:var(--font-body);line-height:1.6}
@media screen {
  .raspored-archive {
    background: var(--color-secondary);
    color: var(--color-text-dark);
    font-family: var(--font-body);
  }

  .raspored-archive__container {
    max-width: 100%;
    padding: var(--spacing-lg);
  }

  .raspored-archive__header {
    margin: 0 0 var(--spacing-lg);
    padding: var(--spacing-lg);
    background: var(--color-white);
    border: var(--border-width-sm) solid var(--color-border-soft-dark);
    border-left: 5px solid var(--color-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-pagination-number);
  }

  .raspored-matrix-header {
    display: grid;
    grid-template-columns: minmax(220px, 0.9fr) minmax(280px, 1.2fr) minmax(
        300px,
        1fr
      );
    gap: var(--spacing-lg);
    align-items: center;
  }

  .raspored-matrix-header__school {
    color: var(--color-text-dark);
    font-size: var(--fs-small);
    font-weight: var(--fw-bold);
    letter-spacing: var(--ls-body);
  }

  .raspored-matrix-header__center {
    text-align: center;
  }

  .raspored-matrix-header__title {
    margin: 0 0 var(--spacing-xs);
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: var(--fs-h3);
    font-weight: var(--fw-bold);
    line-height: var(--lh-heading);
    letter-spacing: var(--ls-heading);
    text-transform: uppercase;
  }

  .raspored-matrix-header__year,
  .raspored-matrix-header__date {
    color: var(--color-black);
    font-size: var(--fs-small);
    line-height: var(--lh-small);
  }

  .raspored-matrix-header__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--spacing-sm);
  }

  .raspored-matrix-header__mode-selector {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: var(--color-nav-link-bg);
    border: var(--border-width-sm) solid var(--color-border-soft-dark);
    border-radius: var(--radius-md);
  }

  .raspored-matrix-header__mode-selector label {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin: 0;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    color: var(--color-text-dark);
    font-size: var(--fs-small);
    font-weight: var(--fw-semibold);
    line-height: 1.2;
    cursor: pointer;
    transition:
      background-color var(--transition-fast),
      color var(--transition-fast),
      box-shadow var(--transition-fast);
  }

  .raspored-matrix-header__mode-selector label:hover {
    background: var(--color-nav-link-bg-hover);
  }

  .raspored-matrix-header__mode-selector input {
    margin: 0;
    accent-color: var(--color-primary);
  }

  .raspored-matrix-header__mode-selector label:has(input:checked) {
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-pagination-link);
  }

  .raspored-matrix-header__print-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--color-primary);
    color: var(--color-white);
    border: var(--border-width-sm) solid var(--color-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-pagination-link);
    font-family: var(--font-body);
    font-size: var(--fs-small);
    font-weight: var(--fw-bold);
    line-height: 1.2;
    cursor: pointer;
    transition:
      transform var(--transition-fast),
      box-shadow var(--transition-fast),
      background-color var(--transition-fast),
      border-color var(--transition-fast);
  }

  .raspored-matrix-header__print-button:hover,
  .raspored-matrix-header__print-button:focus {
    background: var(--color-accent);
    border-color: var(--color-accent);
    box-shadow: var(--shadow-button-hover);
    transform: var(--transform-button-hover);
  }

  .raspored-matrix,
  .raspored-daily-matrix {
    margin: 0;
    padding: var(--spacing-md);
    background: var(--color-white);
    border: var(--border-width-sm) solid var(--color-border-soft-dark);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-pagination-number);
  }

  .raspored-active-view {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--spacing-sm);
    margin: 0 0 var(--spacing-md);
    padding: 0 0 var(--spacing-sm);
    border-bottom: var(--border-width-sm) solid var(--color-border-soft-dark);
  }

  .raspored-active-view h2 {
    margin: 0;
    color: var(--color-primary);
    font-size: var(--fs-h5);
    font-weight: var(--fw-bold);
    line-height: var(--lh-heading);
  }

  .raspored-active-view p {
    margin: 0;
    color: var(--color-black);
    font-size: var(--fs-small);
    line-height: var(--lh-small);
  }

  .raspored-matrix__scroll,
  .raspored-daily-matrix__scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    border: var(--border-width-sm) solid var(--color-border-soft-dark);
    border-radius: var(--radius-md);
    background: var(--color-white);
  }

  .raspored-matrix__table,
  .raspored-daily-matrix__table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    background: var(--color-white);
    color: var(--color-text-dark);
    font-size: 11px;
    line-height: 1.25;
  }

  .raspored-matrix__table th,
  .raspored-daily-matrix__table th {
    background: var(--color-nav-link-bg);
    color: var(--color-text-dark);
    font-weight: var(--fw-bold);
  }

  .raspored-matrix__table td,
  .raspored-daily-matrix__table td {
    background: var(--color-white);
  }

  .raspored-matrix__table th,
  .raspored-matrix__table td,
  .raspored-daily-matrix__table th,
  .raspored-daily-matrix__table td {
    border: var(--border-width-sm) solid var(--color-border-soft-dark);
    padding: var(--spacing-xs) var(--spacing-2xs);
    text-align: center;
    vertical-align: middle;
    transition: background-color var(--transition-fast);
  }

  .raspored-matrix__table tbody tr:hover td,
  .raspored-daily-matrix__table tbody tr:hover td {
    background: var(--color-nav-link-bg-hover);
  }

  .raspored-daily-block {
    margin: 0 0 var(--spacing-lg);
  }

  .raspored-daily-block__title {
    margin: 0 0 var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--radius-md);
    font-size: var(--fs-h6);
    font-weight: var(--fw-bold);
    line-height: var(--lh-heading);
  }
}

@media screen and (max-width: 1024px) {
  .raspored-matrix-header {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .raspored-matrix-header__center {
    text-align: left;
  }

  .raspored-matrix-header__right {
    align-items: flex-start;
  }

  .raspored-matrix-header__mode-selector {
    justify-content: flex-start;
  }
}

@media screen and (max-width: 768px) {
  .raspored-archive__container {
    padding: var(--spacing-sm);
  }

  .raspored-archive__header,
  .raspored-matrix,
  .raspored-daily-matrix {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
  }

  .raspored-matrix-header__title {
    font-size: var(--fs-h4);
  }

  .raspored-matrix-header__mode-selector {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .raspored-matrix-header__print-button {
    width: 100%;
  }

  .raspored-active-view {
    display: block;
  }

  .raspored-active-view h2 {
    margin-bottom: var(--spacing-xs);
  }
}

/* =========================================================
   SCREEN POLISH KOREKCIJA — DNEVNI OVERFLOW I PRINT DUGME
   ========================================================= */

@media screen {
  body.print-odeljenja_dani .raspored-daily-matrix,
  body.print-profesori_dani .raspored-daily-matrix,
  body.print-kabineti_dani .raspored-daily-matrix {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
  }

  body.print-odeljenja_dani .raspored-daily-matrix__table,
  body.print-profesori_dani .raspored-daily-matrix__table,
  body.print-kabineti_dani .raspored-daily-matrix__table {
    width: 100% !important;
    min-width: 760px !important;
    max-width: none !important;
    table-layout: fixed !important;
  }

  .raspored-archive .raspored-matrix-header__print-button,
  .raspored-archive button.raspored-matrix-header__print-button {
    background: var(--color-primary) !important;
    color: var(--color-white) !important;
    border-color: var(--color-primary) !important;
    box-shadow: var(--shadow-pagination-link) !important;
  }

  .raspored-archive .raspored-matrix-header__print-button:hover,
  .raspored-archive .raspored-matrix-header__print-button:focus,
  .raspored-archive button.raspored-matrix-header__print-button:hover,
  .raspored-archive button.raspored-matrix-header__print-button:focus {
    background: var(--color-accent) !important;
    color: var(--color-white) !important;
    border-color: var(--color-accent) !important;
    box-shadow: var(--shadow-button-hover) !important;
  }
}

/* =========================================================
   SCREEN POLISH MIKRO-KOREKCIJA — ODELJENJA DANI PAGE OVERFLOW
   ========================================================= */

@media screen {
  body.print-odeljenja_dani {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  body.print-odeljenja_dani .raspored-archive,
  body.print-odeljenja_dani .raspored-archive__container {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  body.print-odeljenja_dani .raspored-daily-matrix {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
  }

  body.print-odeljenja_dani .raspored-daily-matrix__table {
    width: 100% !important;
    min-width: 760px !important;
    max-width: none !important;
    table-layout: fixed !important;
  }
}

/* =========================================================
   SCREEN POLISH MIKRO-KOREKCIJA — SAKRIJ PRINT-ONLY DAILY NA SCREEN-U
   ========================================================= */

@media screen {
  body.print-odeljenja_dani .raspored-print-only-daily,
  body.print-odeljenja_dani .raspored-print-day,
  body.print-odeljenja_dani .raspored-print-day__table,
  body.print-kabineti_dani .raspored-print-only-daily,
  body.print-kabineti_dani .raspored-print-day,
  body.print-kabineti_dani .raspored-print-day__table {
    display: none !important;
  }
}

/* =========================================================
   USKA CSS KOREKCIJA — DAILY MATRIX SCREEN OVERFLOW
   Scope: only screen daily modes
   ========================================================= */

@media screen {
  body.print-profesori_dani .raspored-daily-matrix,
  body.print-odeljenja_dani .raspored-daily-matrix,
  body.print-kabineti_dani .raspored-daily-matrix {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
  }

  body.print-profesori_dani .raspored-daily-matrix__scroll,
  body.print-odeljenja_dani .raspored-daily-matrix__scroll,
  body.print-kabineti_dani .raspored-daily-matrix__scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
  }

  body.print-profesori_dani .raspored-daily-matrix__table,
  body.print-odeljenja_dani .raspored-daily-matrix__table,
  body.print-kabineti_dani .raspored-daily-matrix__table {
    width: max-content;
    max-width: none;
  }
}

/* =========================================================
   USKA CSS KOREKCIJA R2 — DAILY BLOCK SCREEN OVERFLOW
   Scope: only screen daily modes
   Reason: actual table parent is .raspored-daily-block
   ========================================================= */

@media screen {
  body.print-profesori_dani .raspored-daily-block,
  body.print-odeljenja_dani .raspored-daily-block,
  body.print-kabineti_dani .raspored-daily-block {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
  }

  body.print-profesori_dani
    .raspored-daily-block
    > .raspored-daily-matrix__table,
  body.print-odeljenja_dani
    .raspored-daily-block
    > .raspored-daily-matrix__table,
  body.print-kabineti_dani
    .raspored-daily-block
    > .raspored-daily-matrix__table {
    width: max-content;
    max-width: none;
    min-width: 760px;
  }
}


@media print {
  @page { size: A4 portrait; margin: 5mm 5mm 6mm 5mm; }
  .raspored-matrix-header__mode-selector,
  .raspored-matrix-header__print-button { display: none !important; }
  html, body { margin: 0 !important; padding: 0 !important; background: #fff !important; color: #000 !important; }
  .raspored-archive__container,
  .raspored-archive__header,
  .raspored-matrix,
  .raspored-daily-matrix { margin: 0 !important; padding: 0 !important; }
  .raspored-matrix-header { grid-template-columns: 42mm 1fr 24mm !important; gap: 3mm !important; }
  .raspored-matrix-header__school,
  .raspored-matrix-header__year,
  .raspored-matrix-header__date { font-size: 8pt !important; line-height: 1.05 !important; }
  .raspored-matrix-header__title { font-size: 14pt !important; line-height: 1 !important; }
  .raspored-active-view { display: none !important; }
  .raspored-matrix__table,
  .raspored-daily-matrix__table { font-size: 7pt !important; line-height: 1.02 !important; }
  body.print-profesori_zbirno .raspored-matrix__table,
  body.print-kabineti_zbirno .raspored-matrix__table { font-size: 6.3pt !important; line-height: 1 !important; }
  body.print-odeljenja_zbirno .raspored-matrix__table { font-size: 6.8pt !important; line-height: 1.02 !important; }
  body.print-profesori_dani .raspored-daily-matrix__table,
  body.print-odeljenja_dani .raspored-daily-matrix__table,
  body.print-kabineti_dani .raspored-daily-matrix__table { font-size: 7.2pt !important; line-height: 1.02 !important; }
  .raspored-matrix__table th,
  .raspored-matrix__table td,
  .raspored-daily-matrix__table th,
  .raspored-daily-matrix__table td { padding: 0.8px 1px !important; border: 0.45pt solid #777 !important; }
  .raspored-daily-block { margin-bottom: 2.5mm !important; page-break-inside: auto !important; break-inside: auto !important; }
  .raspored-daily-block__title { font-size: 9pt !important; line-height: 1 !important; margin: 2mm 0 1mm 0 !important; padding-bottom: 0.5mm !important; border-bottom: 0.6pt solid #555 !important; }
  thead { display: table-header-group !important; }
  tr { page-break-inside: avoid !important; }
  .raspored-print-hide { display: none !important; }
}



@media print {
  body.print-profesori_zbirno .raspored-matrix,
  body.print-odeljenja_zbirno .raspored-matrix,
  body.print-kabineti_zbirno .raspored-matrix,
  body.print-profesori_zbirno .raspored-matrix__scroll,
  body.print-odeljenja_zbirno .raspored-matrix__scroll,
  body.print-kabineti_zbirno .raspored-matrix__scroll {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  body.print-profesori_zbirno .raspored-matrix__table,
  body.print-odeljenja_zbirno .raspored-matrix__table,
  body.print-kabineti_zbirno .raspored-matrix__table {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
    transform: none !important;
    transform-origin: top left !important;
  }

  body.print-profesori_zbirno .raspored-matrix__table th,
  body.print-profesori_zbirno .raspored-matrix__table td,
  body.print-odeljenja_zbirno .raspored-matrix__table th,
  body.print-odeljenja_zbirno .raspored-matrix__table td,
  body.print-kabineti_zbirno .raspored-matrix__table th,
  body.print-kabineti_zbirno .raspored-matrix__table td {
    padding: 0.3px 0.4px !important;
    overflow: hidden !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
  }

  body.print-profesori_zbirno .raspored-matrix__table {
    font-size: 5.25pt !important;
    line-height: 0.95 !important;
  }

  body.print-odeljenja_zbirno .raspored-matrix__table,
  body.print-kabineti_zbirno .raspored-matrix__table {
    font-size: 5.55pt !important;
    line-height: 0.98 !important;
  }

  body.print-profesori_zbirno .raspored-matrix__table th:first-child,
  body.print-profesori_zbirno .raspored-matrix__table td:first-child,
  body.print-odeljenja_zbirno .raspored-matrix__table th:first-child,
  body.print-odeljenja_zbirno .raspored-matrix__table td:first-child,
  body.print-kabineti_zbirno .raspored-matrix__table th:first-child,
  body.print-kabineti_zbirno .raspored-matrix__table td:first-child {
    width: 4.2mm !important;
  }

  body.print-profesori_zbirno .raspored-matrix__table th:nth-child(2),
  body.print-profesori_zbirno .raspored-matrix__table td:nth-child(2) {
    width: 20mm !important;
  }

  body.print-odeljenja_zbirno .raspored-matrix__table th:nth-child(2),
  body.print-odeljenja_zbirno .raspored-matrix__table td:nth-child(2),
  body.print-kabineti_zbirno .raspored-matrix__table th:nth-child(2),
  body.print-kabineti_zbirno .raspored-matrix__table td:nth-child(2) {
    width: 22mm !important;
  }

  body.print-profesori_zbirno .raspored-matrix-header,
  body.print-odeljenja_zbirno .raspored-matrix-header,
  body.print-kabineti_zbirno .raspored-matrix-header {
    margin-bottom: 1mm !important;
  }
}




@media print {
  @page raspored-zbirni-fit {
    size: A3 landscape;
    margin: 6mm 6mm 7mm 6mm;
  }

  body.print-profesori_zbirno,
  body.print-odeljenja_zbirno,
  body.print-kabineti_zbirno {
    page: raspored-zbirni-fit;
  }

  body.print-profesori_zbirno .raspored-archive__container,
  body.print-odeljenja_zbirno .raspored-archive__container,
  body.print-kabineti_zbirno .raspored-archive__container,
  body.print-profesori_zbirno .raspored-matrix,
  body.print-odeljenja_zbirno .raspored-matrix,
  body.print-kabineti_zbirno .raspored-matrix,
  body.print-profesori_zbirno .raspored-matrix__scroll,
  body.print-odeljenja_zbirno .raspored-matrix__scroll,
  body.print-kabineti_zbirno .raspored-matrix__scroll {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow: visible !important;
  }

  body.print-profesori_zbirno .raspored-matrix-header,
  body.print-odeljenja_zbirno .raspored-matrix-header,
  body.print-kabineti_zbirno .raspored-matrix-header {
    grid-template-columns: 58mm 1fr 30mm !important;
    margin-bottom: 1.2mm !important;
  }

  body.print-profesori_zbirno .raspored-matrix-header__school,
  body.print-profesori_zbirno .raspored-matrix-header__year,
  body.print-profesori_zbirno .raspored-matrix-header__date,
  body.print-odeljenja_zbirno .raspored-matrix-header__school,
  body.print-odeljenja_zbirno .raspored-matrix-header__year,
  body.print-odeljenja_zbirno .raspored-matrix-header__date,
  body.print-kabineti_zbirno .raspored-matrix-header__school,
  body.print-kabineti_zbirno .raspored-matrix-header__year,
  body.print-kabineti_zbirno .raspored-matrix-header__date {
    font-size: 9pt !important;
    line-height: 1.05 !important;
  }

  body.print-profesori_zbirno .raspored-matrix-header__title,
  body.print-odeljenja_zbirno .raspored-matrix-header__title,
  body.print-kabineti_zbirno .raspored-matrix-header__title {
    font-size: 16pt !important;
    line-height: 1 !important;
  }

  body.print-profesori_zbirno .raspored-matrix__table,
  body.print-odeljenja_zbirno .raspored-matrix__table,
  body.print-kabineti_zbirno .raspored-matrix__table {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
    transform: none !important;
    transform-origin: top left !important;
  }

  body.print-profesori_zbirno .raspored-matrix__table {
    font-size: 7.1pt !important;
    line-height: 1.02 !important;
  }

  body.print-odeljenja_zbirno .raspored-matrix__table,
  body.print-kabineti_zbirno .raspored-matrix__table {
    font-size: 7.4pt !important;
    line-height: 1.03 !important;
  }

  body.print-profesori_zbirno .raspored-matrix__table th,
  body.print-profesori_zbirno .raspored-matrix__table td,
  body.print-odeljenja_zbirno .raspored-matrix__table th,
  body.print-odeljenja_zbirno .raspored-matrix__table td,
  body.print-kabineti_zbirno .raspored-matrix__table th,
  body.print-kabineti_zbirno .raspored-matrix__table td {
    padding: 0.7px 0.8px !important;
    border: 0.45pt solid #777 !important;
    overflow: hidden !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
  }

  body.print-profesori_zbirno .raspored-matrix__table th:first-child,
  body.print-profesori_zbirno .raspored-matrix__table td:first-child,
  body.print-odeljenja_zbirno .raspored-matrix__table th:first-child,
  body.print-odeljenja_zbirno .raspored-matrix__table td:first-child,
  body.print-kabineti_zbirno .raspored-matrix__table th:first-child,
  body.print-kabineti_zbirno .raspored-matrix__table td:first-child {
    width: 5mm !important;
  }

  body.print-profesori_zbirno .raspored-matrix__table th:nth-child(2),
  body.print-profesori_zbirno .raspored-matrix__table td:nth-child(2) {
    width: 30mm !important;
  }

  body.print-odeljenja_zbirno .raspored-matrix__table th:nth-child(2),
  body.print-odeljenja_zbirno .raspored-matrix__table td:nth-child(2),
  body.print-kabineti_zbirno .raspored-matrix__table th:nth-child(2),
  body.print-kabineti_zbirno .raspored-matrix__table td:nth-child(2) {
    width: 28mm !important;
  }
}




.raspored-print-only-weekly {
  display: none;
}

@media print {
  @page raspored-weekly-readable {
    size: A4 portrait;
    margin: 8mm 7mm 9mm 7mm;
  }

  body.print-profesori_zbirno,
  body.print-odeljenja_zbirno,
  body.print-kabineti_zbirno {
    page: raspored-weekly-readable;
  }

  body.print-profesori_zbirno .raspored-matrix__scroll,
  body.print-odeljenja_zbirno .raspored-matrix__scroll,
  body.print-kabineti_zbirno .raspored-matrix__scroll {
    display: none !important;
  }

  body.print-profesori_zbirno .raspored-print-only-weekly,
  body.print-odeljenja_zbirno .raspored-print-only-weekly,
  body.print-kabineti_zbirno .raspored-print-only-weekly {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.print-profesori_zbirno .raspored-print-weekly-day,
  body.print-odeljenja_zbirno .raspored-print-weekly-day,
  body.print-kabineti_zbirno .raspored-print-weekly-day {
    display: block !important;
    width: 100% !important;
    margin: 0 0 7mm 0 !important;
    padding: 0 !important;
    break-inside: auto !important;
    page-break-inside: auto !important;
  }

  body.print-profesori_zbirno .raspored-print-weekly-day:not(:first-child),
  body.print-odeljenja_zbirno .raspored-print-weekly-day:not(:first-child),
  body.print-kabineti_zbirno .raspored-print-weekly-day:not(:first-child) {
    break-before: page !important;
    page-break-before: always !important;
  }

  body.print-profesori_zbirno .raspored-print-weekly-day__title,
  body.print-odeljenja_zbirno .raspored-print-weekly-day__title,
  body.print-kabineti_zbirno .raspored-print-weekly-day__title {
    margin: 0 0 3mm 0 !important;
    padding: 0 0 1.5mm 0 !important;
    border-bottom: 1pt solid #333 !important;
    color: #000 !important;
    font-size: 13pt !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
  }

  body.print-profesori_zbirno .raspored-print-weekly-day__table,
  body.print-odeljenja_zbirno .raspored-print-weekly-day__table,
  body.print-kabineti_zbirno .raspored-print-weekly-day__table {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    border-collapse: collapse !important;
    table-layout: fixed !important;
    background: #fff !important;
    color: #000 !important;
    transform: none !important;
  }

  body.print-profesori_zbirno .raspored-print-weekly-day__table {
    font-size: 8.4pt !important;
    line-height: 1.12 !important;
  }

  body.print-odeljenja_zbirno .raspored-print-weekly-day__table,
  body.print-kabineti_zbirno .raspored-print-weekly-day__table {
    font-size: 9pt !important;
    line-height: 1.14 !important;
  }

  body.print-profesori_zbirno .raspored-print-weekly-day__table th,
  body.print-profesori_zbirno .raspored-print-weekly-day__table td,
  body.print-odeljenja_zbirno .raspored-print-weekly-day__table th,
  body.print-odeljenja_zbirno .raspored-print-weekly-day__table td,
  body.print-kabineti_zbirno .raspored-print-weekly-day__table th,
  body.print-kabineti_zbirno .raspored-print-weekly-day__table td {
    border: 0.65pt solid #555 !important;
    padding: 1.4mm 1mm !important;
    text-align: center !important;
    vertical-align: middle !important;
    overflow: visible !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
    background: #fff !important;
  }

  body.print-profesori_zbirno .raspored-print-weekly-day__table thead th,
  body.print-odeljenja_zbirno .raspored-print-weekly-day__table thead th,
  body.print-kabineti_zbirno .raspored-print-weekly-day__table thead th {
    background: #f2f2f2 !important;
    font-weight: 700 !important;
  }

  body.print-profesori_zbirno .raspored-print-weekly-day__table th:first-child,
  body.print-profesori_zbirno .raspored-print-weekly-day__table td:first-child,
  body.print-odeljenja_zbirno .raspored-print-weekly-day__table th:first-child,
  body.print-odeljenja_zbirno .raspored-print-weekly-day__table td:first-child,
  body.print-kabineti_zbirno .raspored-print-weekly-day__table th:first-child,
  body.print-kabineti_zbirno .raspored-print-weekly-day__table td:first-child {
    width: 8mm !important;
  }

  body.print-profesori_zbirno .raspored-print-weekly-day__table th:nth-child(2),
  body.print-profesori_zbirno
    .raspored-print-weekly-day__table
    td:nth-child(2) {
    width: 32mm !important;
    text-align: left !important;
    font-weight: 700 !important;
  }

  body.print-odeljenja_zbirno .raspored-print-weekly-day__table th:nth-child(2),
  body.print-odeljenja_zbirno .raspored-print-weekly-day__table td:nth-child(2),
  body.print-kabineti_zbirno .raspored-print-weekly-day__table th:nth-child(2),
  body.print-kabineti_zbirno .raspored-print-weekly-day__table td:nth-child(2) {
    width: 28mm !important;
    text-align: left !important;
    font-weight: 700 !important;
  }

  body.print-profesori_zbirno .raspored-print-weekly-day__table thead,
  body.print-odeljenja_zbirno .raspored-print-weekly-day__table thead,
  body.print-kabineti_zbirno .raspored-print-weekly-day__table thead {
    display: table-header-group !important;
  }

  body.print-profesori_zbirno .raspored-print-weekly-day__table tr,
  body.print-odeljenja_zbirno .raspored-print-weekly-day__table tr,
  body.print-kabineti_zbirno .raspored-print-weekly-day__table tr {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }
}



.raspored-print-only-classes {
  display: none;
}

@media print {

  body.print-odeljenja_zbirno .raspored-matrix__scroll,
  body.print-odeljenja_zbirno .raspored-matrix__table,
  body.print-odeljenja_zbirno .raspored-daily-matrix,
  body.print-odeljenja_zbirno .raspored-daily-block,
  body.print-odeljenja_zbirno .raspored-daily-matrix__table,
  body.print-odeljenja_zbirno .raspored-print-only-daily,
  body.print-odeljenja_zbirno .raspored-print-only-weekly {
    display: none !important;
  }

  body.print-odeljenja_zbirno .raspored-print-only-classes {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.print-odeljenja_zbirno .raspored-print-classes-day {
    display: block !important;
    width: 100% !important;
    margin: 0 0 7mm 0 !important;
    padding: 0 !important;
    break-inside: auto !important;
    page-break-inside: auto !important;
  }

  body.print-odeljenja_zbirno .raspored-print-classes-day:not(:first-child) {
    break-before: page !important;
    page-break-before: always !important;
  }

  body.print-odeljenja_zbirno .raspored-print-classes-day__title {
    margin: 0 0 3mm 0 !important;
    padding: 0 0 1.5mm 0 !important;
    border-bottom: 1pt solid #333 !important;
    color: #000 !important;
    font-size: 13pt !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
  }

  body.print-odeljenja_zbirno .raspored-print-classes-day__table {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    border-collapse: collapse !important;
    table-layout: fixed !important;
    background: #fff !important;
    color: #000 !important;
    transform: none !important;
    font-size: 9pt !important;
    line-height: 1.14 !important;
  }

  body.print-odeljenja_zbirno .raspored-print-classes-day__table th,
  body.print-odeljenja_zbirno .raspored-print-classes-day__table td {
    border: 0.65pt solid #555 !important;
    padding: 1.4mm 1mm !important;
    text-align: center !important;
    vertical-align: middle !important;
    overflow: visible !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
    background: #fff !important;
  }

  body.print-odeljenja_zbirno .raspored-print-classes-day__table thead th {
    background: #f2f2f2 !important;
    font-weight: 700 !important;
  }

  body.print-odeljenja_zbirno .raspored-print-classes-day__table th:first-child,
  body.print-odeljenja_zbirno
    .raspored-print-classes-day__table
    td:first-child {
    width: 8mm !important;
  }

  body.print-odeljenja_zbirno
    .raspored-print-classes-day__table
    th:nth-child(2),
  body.print-odeljenja_zbirno
    .raspored-print-classes-day__table
    td:nth-child(2) {
    width: 28mm !important;
    text-align: left !important;
    font-weight: 700 !important;
  }

  body.print-odeljenja_zbirno .raspored-print-classes-day__table thead {
    display: table-header-group !important;
  }

  body.print-odeljenja_zbirno .raspored-print-classes-day__table tr {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }


  body.print-odeljenja_dani .raspored-matrix__scroll,
  body.print-odeljenja_dani .raspored-matrix__table,
  body.print-odeljenja_dani .raspored-daily-matrix,
  body.print-odeljenja_dani .raspored-daily-block,
  body.print-odeljenja_dani .raspored-daily-matrix__table,
  body.print-odeljenja_dani .raspored-print-only-classes,
  body.print-odeljenja_dani .raspored-print-only-weekly {
    display: none !important;
  }

  body.print-odeljenja_dani .raspored-print-only-daily {
    display: block !important;
  }
}


@media print {

  body.print-odeljenja_zbirno .raspored-print-classes-day {
    break-inside: avoid-page !important;
    page-break-inside: avoid !important;
  }

  body.print-odeljenja_zbirno .raspored-print-classes-day:not(:first-child) {
    break-before: page !important;
    page-break-before: always !important;
  }

  body.print-odeljenja_zbirno .raspored-print-classes-day__title {
    break-after: avoid-page !important;
    page-break-after: avoid !important;
    break-inside: avoid-page !important;
    page-break-inside: avoid !important;
  }

  body.print-odeljenja_zbirno .raspored-print-classes-day__table {
    break-before: avoid-page !important;
    page-break-before: avoid !important;
  }


  body.print-odeljenja_dani .raspored-print-day {
    break-inside: avoid-page !important;
    page-break-inside: avoid !important;
  }

  body.print-odeljenja_dani .raspored-print-day:not(:first-child) {
    break-before: page !important;
    page-break-before: always !important;
  }

  body.print-odeljenja_dani .raspored-print-day__title {
    break-after: avoid-page !important;
    page-break-after: avoid !important;
    break-inside: avoid-page !important;
    page-break-inside: avoid !important;
  }

  body.print-odeljenja_dani .raspored-print-day__table {
    break-before: avoid-page !important;
    page-break-before: avoid !important;
  }
}


@media print {
  body.print-odeljenja_dani .raspored-print-only-daily {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.print-odeljenja_dani .raspored-print-day {
    display: block !important;
    width: 100% !important;
    margin: 0 0 7mm 0 !important;
    padding: 0 !important;
    break-inside: avoid-page !important;
    page-break-inside: avoid !important;
  }

  body.print-odeljenja_dani .raspored-print-day:not(:first-child) {
    break-before: page !important;
    page-break-before: always !important;
  }

  body.print-odeljenja_dani .raspored-print-day__title {
    margin: 0 0 3mm 0 !important;
    padding: 0 0 1.5mm 0 !important;
    border-bottom: 1pt solid #333 !important;
    color: #000 !important;
    font-size: 13pt !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    break-after: avoid-page !important;
    page-break-after: avoid !important;
    break-inside: avoid-page !important;
    page-break-inside: avoid !important;
  }

  body.print-odeljenja_dani .raspored-print-day__table {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    border-collapse: collapse !important;
    table-layout: fixed !important;
    background: #fff !important;
    color: #000 !important;
    transform: none !important;
    font-size: 9pt !important;
    line-height: 1.14 !important;
    break-before: avoid-page !important;
    page-break-before: avoid !important;
  }

  body.print-odeljenja_dani .raspored-print-day__table th,
  body.print-odeljenja_dani .raspored-print-day__table td {
    border: 0.65pt solid #555 !important;
    padding: 1.4mm 1mm !important;
    text-align: center !important;
    vertical-align: middle !important;
    overflow: visible !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
    background: #fff !important;
  }

  body.print-odeljenja_dani .raspored-print-day__table thead {
    display: table-header-group !important;
  }

  body.print-odeljenja_dani .raspored-print-day__table thead th {
    background: #f2f2f2 !important;
    font-weight: 700 !important;
  }

  body.print-odeljenja_dani .raspored-print-day__table tr {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  body.print-odeljenja_dani .raspored-print-day__table th:first-child,
  body.print-odeljenja_dani .raspored-print-day__table td:first-child {
    width: 8mm !important;
  }

  body.print-odeljenja_dani .raspored-print-day__table th:nth-child(2),
  body.print-odeljenja_dani .raspored-print-day__table td:nth-child(2) {
    width: 28mm !important;
    text-align: left !important;
    font-weight: 700 !important;
  }
}



.raspored-print-only-teachers {
  display: none;
}

@media print {

  body.print-profesori_zbirno .raspored-matrix__scroll,
  body.print-profesori_zbirno .raspored-matrix__table,
  body.print-profesori_zbirno .raspored-daily-matrix,
  body.print-profesori_zbirno .raspored-daily-block,
  body.print-profesori_zbirno .raspored-daily-matrix__table,
  body.print-profesori_zbirno .raspored-print-only-classes,
  body.print-profesori_zbirno .raspored-print-only-daily,
  body.print-profesori_zbirno .raspored-print-only-weekly,
  body.print-profesori_dani .raspored-matrix__scroll,
  body.print-profesori_dani .raspored-matrix__table,
  body.print-profesori_dani .raspored-daily-matrix,
  body.print-profesori_dani .raspored-daily-block,
  body.print-profesori_dani .raspored-daily-matrix__table,
  body.print-profesori_dani .raspored-print-only-classes,
  body.print-profesori_dani .raspored-print-only-daily,
  body.print-profesori_dani .raspored-print-only-weekly {
    display: none !important;
  }

  body.print-profesori_zbirno .raspored-print-only-teachers,
  body.print-profesori_dani .raspored-print-only-teachers {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.print-profesori_zbirno .raspored-print-teachers-group,
  body.print-profesori_dani .raspored-print-teachers-group {
    display: block !important;
    width: 100% !important;
    margin: 0 0 7mm 0 !important;
    padding: 0 !important;
    break-inside: avoid-page !important;
    page-break-inside: avoid !important;
  }

  body.print-profesori_zbirno .raspored-print-teachers-group__title,
  body.print-profesori_dani .raspored-print-teachers-group__title {
    margin: 0 0 3mm 0 !important;
    padding: 0 0 1.5mm 0 !important;
    border-bottom: 1pt solid #333 !important;
    color: #000 !important;
    font-size: 13pt !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    break-after: avoid-page !important;
    page-break-after: avoid !important;
    break-inside: avoid-page !important;
    page-break-inside: avoid !important;
  }

  body.print-profesori_zbirno .raspored-print-teachers-group__table,
  body.print-profesori_dani .raspored-print-teachers-group__table {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    border-collapse: collapse !important;
    table-layout: fixed !important;
    background: #fff !important;
    color: #000 !important;
    transform: none !important;
    font-size: 8.8pt !important;
    line-height: 1.12 !important;
    break-before: avoid-page !important;
    page-break-before: avoid !important;
  }

  body.print-profesori_zbirno .raspored-print-teachers-group__table th,
  body.print-profesori_zbirno .raspored-print-teachers-group__table td,
  body.print-profesori_dani .raspored-print-teachers-group__table th,
  body.print-profesori_dani .raspored-print-teachers-group__table td {
    border: 0.65pt solid #555 !important;
    padding: 1.25mm 0.85mm !important;
    text-align: center !important;
    vertical-align: middle !important;
    overflow: visible !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
    background: #fff !important;
  }

  body.print-profesori_zbirno .raspored-print-teachers-group__table thead,
  body.print-profesori_dani .raspored-print-teachers-group__table thead {
    display: table-header-group !important;
  }

  body.print-profesori_zbirno .raspored-print-teachers-group__table thead th,
  body.print-profesori_dani .raspored-print-teachers-group__table thead th {
    background: #f2f2f2 !important;
    font-weight: 700 !important;
  }

  body.print-profesori_zbirno
    .raspored-print-teachers-group__table
    th:first-child,
  body.print-profesori_zbirno
    .raspored-print-teachers-group__table
    td:first-child,
  body.print-profesori_dani
    .raspored-print-teachers-group__table
    th:first-child,
  body.print-profesori_dani
    .raspored-print-teachers-group__table
    td:first-child {
    width: 8mm !important;
  }

  body.print-profesori_zbirno
    .raspored-print-teachers-group__table
    th:nth-child(2),
  body.print-profesori_zbirno
    .raspored-print-teachers-group__table
    td:nth-child(2),
  body.print-profesori_dani
    .raspored-print-teachers-group__table
    th:nth-child(2),
  body.print-profesori_dani
    .raspored-print-teachers-group__table
    td:nth-child(2) {
    width: 36mm !important;
    text-align: left !important;
    font-weight: 700 !important;
  }

  body.print-profesori_zbirno .raspored-print-teachers-group__table tr,
  body.print-profesori_dani .raspored-print-teachers-group__table tr {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }
}



@media print {

  body.print-profesori_zbirno .raspored-matrix__scroll,
  body.print-profesori_zbirno .raspored-matrix__table,
  body.print-profesori_zbirno .raspored-daily-matrix,
  body.print-profesori_zbirno .raspored-daily-block,
  body.print-profesori_zbirno .raspored-daily-matrix__table,
  body.print-profesori_zbirno .raspored-print-only-classes,
  body.print-profesori_zbirno .raspored-print-only-daily,
  body.print-profesori_zbirno .raspored-print-only-weekly,
  body.print-profesori_dani .raspored-matrix__scroll,
  body.print-profesori_dani .raspored-matrix__table,
  body.print-profesori_dani .raspored-daily-matrix,
  body.print-profesori_dani .raspored-daily-block,
  body.print-profesori_dani .raspored-daily-matrix__table,
  body.print-profesori_dani .raspored-print-only-classes,
  body.print-profesori_dani .raspored-print-only-daily,
  body.print-profesori_dani .raspored-print-only-weekly {
    display: none !important;
  }

  body.print-profesori_zbirno .raspored-print-only-teachers,
  body.print-profesori_dani .raspored-print-only-teachers {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }



  body.print-profesori_zbirno .raspored-print-teacher-week {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 5mm 0 !important;
    padding: 0 !important;
    break-inside: avoid-page !important;
    page-break-inside: avoid !important;
  }

  body.print-profesori_zbirno .raspored-print-teacher-week:not(:first-child) {
    break-before: auto !important;
    page-break-before: auto !important;
  }

  body.print-profesori_zbirno .raspored-print-teacher-week__title {
    margin: 0 0 2mm 0 !important;
    padding: 0 0 1mm 0 !important;
    border-bottom: 0.8pt solid #333 !important;
    color: #000 !important;
    font-size: 11pt !important;
    font-weight: 700 !important;
    line-height: 1.08 !important;
    break-after: avoid-page !important;
    page-break-after: avoid !important;
    break-inside: avoid-page !important;
    page-break-inside: avoid !important;
  }

  body.print-profesori_zbirno .raspored-print-teacher-week__table {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    border-collapse: collapse !important;
    table-layout: fixed !important;
    background: #fff !important;
    color: #000 !important;
    transform: none !important;
    font-size: 7.4pt !important;
    line-height: 1.08 !important;
    break-before: avoid-page !important;
    page-break-before: avoid !important;
  }

  body.print-profesori_zbirno .raspored-print-teacher-week__table th,
  body.print-profesori_zbirno .raspored-print-teacher-week__table td {
    border: 0.55pt solid #777 !important;
    padding: 0.9mm 0.75mm !important;
    text-align: center !important;
    vertical-align: middle !important;
    overflow: visible !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
    background: #fff !important;
  }

  body.print-profesori_zbirno .raspored-print-teacher-week__table thead {
    display: table-header-group !important;
  }

  body.print-profesori_zbirno .raspored-print-teacher-week__table thead th {
    background: #f2f2f2 !important;
    font-weight: 700 !important;
  }

  body.print-profesori_zbirno .raspored-print-teacher-week__table tr {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  body.print-profesori_zbirno
    .raspored-print-teacher-week__table
    th:first-child,
  body.print-profesori_zbirno
    .raspored-print-teacher-week__table
    td:first-child {
    width: 13mm !important;
    font-weight: 700 !important;
  }

  body.print-profesori_zbirno
    .raspored-print-teacher-week__table
    th:not(:first-child),
  body.print-profesori_zbirno
    .raspored-print-teacher-week__table
    td:not(:first-child) {
    width: auto !important;
  }



  body.print-profesori_dani .raspored-print-teachers-day {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 7mm 0 !important;
    padding: 0 !important;
    break-inside: auto !important;
    page-break-inside: auto !important;
  }

  body.print-profesori_dani .raspored-print-teachers-day:not(:first-child) {
    break-before: page !important;
    page-break-before: always !important;
  }

  body.print-profesori_dani .raspored-print-teachers-day__title {
    margin: 0 0 3mm 0 !important;
    padding: 0 0 1.5mm 0 !important;
    border-bottom: 1pt solid #333 !important;
    color: #000 !important;
    font-size: 13pt !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    break-after: avoid-page !important;
    page-break-after: avoid !important;
    break-inside: avoid-page !important;
    page-break-inside: avoid !important;
  }

  body.print-profesori_dani .raspored-print-teachers-day__table {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    border-collapse: collapse !important;
    table-layout: fixed !important;
    background: #fff !important;
    color: #000 !important;
    transform: none !important;
    font-size: 7.6pt !important;
    line-height: 1.06 !important;
    break-before: avoid-page !important;
    page-break-before: avoid !important;
  }

  body.print-profesori_dani .raspored-print-teachers-day__table th,
  body.print-profesori_dani .raspored-print-teachers-day__table td {
    border: 0.55pt solid #777 !important;
    padding: 0.75mm 0.55mm !important;
    text-align: center !important;
    vertical-align: middle !important;
    overflow: visible !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
    background: #fff !important;
  }

  body.print-profesori_dani .raspored-print-teachers-day__table thead {
    display: table-header-group !important;
  }

  body.print-profesori_dani .raspored-print-teachers-day__table thead th {
    background: #f2f2f2 !important;
    font-weight: 700 !important;
  }

  body.print-profesori_dani .raspored-print-teachers-day__table tr {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  body.print-profesori_dani .raspored-print-teachers-day__table th:first-child,
  body.print-profesori_dani .raspored-print-teachers-day__table td:first-child {
    width: 7mm !important;
  }

  body.print-profesori_dani .raspored-print-teachers-day__table th:nth-child(2),
  body.print-profesori_dani
    .raspored-print-teachers-day__table
    td:nth-child(2) {
    width: 27mm !important;
    text-align: left !important;
    font-weight: 700 !important;
  }

  body.print-profesori_dani
    .raspored-print-teachers-day__table
    th:nth-child(n + 3),
  body.print-profesori_dani
    .raspored-print-teachers-day__table
    td:nth-child(n + 3) {
    width: auto !important;
  }
}



@media print {
  body.print-profesori_zbirno .raspored-print-teacher-week {
    break-inside: avoid-page !important;
    page-break-inside: avoid !important;
    margin-bottom: 4mm !important;
  }

  body.print-profesori_zbirno .raspored-print-teacher-week:not(:first-child) {
    break-before: page !important;
    page-break-before: always !important;
  }

  body.print-profesori_zbirno .raspored-print-teacher-week__title {
    break-after: avoid-page !important;
    page-break-after: avoid !important;
    margin-bottom: 1.5mm !important;
  }

  body.print-profesori_zbirno .raspored-print-teacher-week__table {
    break-before: avoid-page !important;
    page-break-before: avoid !important;
    break-inside: avoid-page !important;
    page-break-inside: avoid !important;
  }

  body.print-profesori_dani .raspored-print-teachers-day {
    margin-bottom: 4mm !important;
  }

  body.print-profesori_dani .raspored-print-teachers-day:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    break-after: auto !important;
    page-break-after: auto !important;
  }

  body.print-profesori_dani .raspored-print-teachers-day__table {
    margin-bottom: 0 !important;
  }

  body.print-profesori_zbirno .generate-back-to-top,
  body.print-profesori_zbirno .back-to-top,
  body.print-profesori_zbirno .scroll-to-top,
  body.print-profesori_zbirno [href="#top"],
  body.print-profesori_dani .generate-back-to-top,
  body.print-profesori_dani .back-to-top,
  body.print-profesori_dani .scroll-to-top,
  body.print-profesori_dani [href="#top"] {
    display: none !important;
  }
}



@media print {
  body.print-profesori_zbirno .raspored-print-only-teachers {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 4mm !important;
    row-gap: 4mm !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: start !important;
  }

  body.print-profesori_zbirno .raspored-print-teacher-week {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    break-inside: avoid-page !important;
    page-break-inside: avoid !important;
  }

  body.print-profesori_zbirno .raspored-print-teacher-week:not(:first-child) {
    break-before: auto !important;
    page-break-before: auto !important;
  }

  body.print-profesori_zbirno .raspored-print-teacher-week__title {
    margin: 0 0 1mm 0 !important;
    padding: 0 0 0.6mm 0 !important;
    border-bottom: 0.6pt solid #333 !important;
    color: #000 !important;
    font-size: 8.6pt !important;
    font-weight: 700 !important;
    line-height: 1.05 !important;
    break-after: avoid-page !important;
    page-break-after: avoid !important;
  }

  body.print-profesori_zbirno .raspored-print-teacher-week__table {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    border-collapse: collapse !important;
    table-layout: fixed !important;
    font-size: 5.8pt !important;
    line-height: 1.02 !important;
    break-before: avoid-page !important;
    page-break-before: avoid !important;
    break-inside: avoid-page !important;
    page-break-inside: avoid !important;
  }

  body.print-profesori_zbirno .raspored-print-teacher-week__table th,
  body.print-profesori_zbirno .raspored-print-teacher-week__table td {
    border: 0.45pt solid #777 !important;
    padding: 0.45mm 0.35mm !important;
    text-align: center !important;
    vertical-align: middle !important;
    overflow: hidden !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
  }

  body.print-profesori_zbirno
    .raspored-print-teacher-week__table
    th:first-child,
  body.print-profesori_zbirno
    .raspored-print-teacher-week__table
    td:first-child {
    width: 8mm !important;
    font-weight: 700 !important;
  }
}



@media print {
  body.print-profesori_zbirno .raspored-print-only-teachers {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 5mm !important;
    row-gap: 6mm !important;
    align-items: start !important;
  }

  body.print-profesori_zbirno .raspored-print-teacher-week {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 2mm 0 !important;
    padding: 0 !important;
    break-inside: avoid-page !important;
    page-break-inside: avoid !important;
  }

  body.print-profesori_zbirno .raspored-print-teacher-week:not(:first-child) {
    break-before: auto !important;
    page-break-before: auto !important;
  }

  body.print-profesori_zbirno .raspored-print-teacher-week__title {
    margin: 0 0 1.4mm 0 !important;
    padding: 0 0 0.8mm 0 !important;
    border-bottom: 0.75pt solid #333 !important;
    font-size: 9.4pt !important;
    line-height: 1.08 !important;
    font-weight: 700 !important;
  }

  body.print-profesori_zbirno .raspored-print-teacher-week__table {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    border-collapse: collapse !important;
    table-layout: fixed !important;
    font-size: 6.65pt !important;
    line-height: 1.08 !important;
    break-before: avoid-page !important;
    page-break-before: avoid !important;
    break-inside: avoid-page !important;
    page-break-inside: avoid !important;
  }

  body.print-profesori_zbirno .raspored-print-teacher-week__table th,
  body.print-profesori_zbirno .raspored-print-teacher-week__table td {
    border: 0.5pt solid #666 !important;
    padding: 0.65mm 0.45mm !important;
    min-height: 4.2mm !important;
    text-align: center !important;
    vertical-align: middle !important;
    overflow: hidden !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
  }

  body.print-profesori_zbirno
    .raspored-print-teacher-week__table
    th:first-child,
  body.print-profesori_zbirno
    .raspored-print-teacher-week__table
    td:first-child {
    width: 8.5mm !important;
    font-weight: 700 !important;
  }
}



@media print {
  body.print-profesori_dani {
    print-color-adjust: exact !important;
    -webkit-print-color-adjust: exact !important;
  }

  body.print-profesori_dani .raspored-print-only-teachers {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.print-profesori_dani .raspored-print-teachers-day {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 4mm 0 !important;
    padding: 0 !important;
    break-inside: auto !important;
    page-break-inside: auto !important;
  }

  body.print-profesori_dani .raspored-print-teachers-day:not(:first-child) {
    break-before: page !important;
    page-break-before: always !important;
  }

  body.print-profesori_dani .raspored-print-teachers-day:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    break-after: auto !important;
    page-break-after: auto !important;
  }

  body.print-profesori_dani .raspored-print-teachers-day__title {
    margin: 0 0 2mm 0 !important;
    padding: 0 0 1mm 0 !important;
    border-bottom: 0.8pt solid #333 !important;
    font-size: 11.5pt !important;
    line-height: 1.05 !important;
    font-weight: 700 !important;
    break-after: avoid-page !important;
    page-break-after: avoid !important;
  }

  body.print-profesori_dani .raspored-print-teachers-day__table {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    border-collapse: collapse !important;
    table-layout: fixed !important;
    font-size: 7.05pt !important;
    line-height: 1.02 !important;
    break-before: avoid-page !important;
    page-break-before: avoid !important;
    break-inside: auto !important;
    page-break-inside: auto !important;
  }

  body.print-profesori_dani .raspored-print-teachers-day__table th,
  body.print-profesori_dani .raspored-print-teachers-day__table td {
    border: 0.5pt solid #666 !important;
    padding: 0.5mm 0.4mm !important;
    text-align: center !important;
    vertical-align: middle !important;
    overflow: hidden !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
  }

  body.print-profesori_dani .raspored-print-teachers-day__table tr {
    break-inside: auto !important;
    page-break-inside: auto !important;
  }

  body.print-profesori_dani .raspored-print-teachers-day__table thead {
    display: table-header-group !important;
  }

  body.print-profesori_dani .raspored-print-teachers-day__table th:first-child,
  body.print-profesori_dani .raspored-print-teachers-day__table td:first-child {
    width: 6mm !important;
  }

  body.print-profesori_dani .raspored-print-teachers-day__table th:nth-child(2),
  body.print-profesori_dani
    .raspored-print-teachers-day__table
    td:nth-child(2) {
    width: 24mm !important;
    text-align: left !important;
    font-weight: 700 !important;
  }

  body.print-profesori_dani
    .raspored-print-teachers-day__table
    th:nth-child(n + 3),
  body.print-profesori_dani
    .raspored-print-teachers-day__table
    td:nth-child(n + 3) {
    width: auto !important;
  }
}



@media print {
  body.print-kabineti_dani .raspored-matrix__scroll,
  body.print-kabineti_dani .raspored-matrix__table,
  body.print-kabineti_dani .raspored-print-only-weekly {
    display: none !important;
  }

  body.print-kabineti_dani .raspored-print-only-daily {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.print-kabineti_dani .raspored-print-day {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 5mm 0 !important;
    padding: 0 !important;
    break-inside: auto !important;
    page-break-inside: auto !important;
  }

  body.print-kabineti_dani .raspored-print-day:not(:first-child) {
    break-before: page !important;
    page-break-before: always !important;
  }

  body.print-kabineti_dani .raspored-print-day:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    break-after: auto !important;
    page-break-after: auto !important;
  }

  body.print-kabineti_dani .raspored-print-day__title {
    margin: 0 0 2mm 0 !important;
    padding: 0 0 1mm 0 !important;
    border-bottom: 0.8pt solid #333 !important;
    font-size: 11.5pt !important;
    line-height: 1.05 !important;
    font-weight: 700 !important;
    break-after: avoid-page !important;
    page-break-after: avoid !important;
  }

  body.print-kabineti_dani .raspored-print-day__table {
    display: table !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    border-collapse: collapse !important;
    table-layout: fixed !important;
    font-size: 7.2pt !important;
    line-height: 1.04 !important;
    break-before: avoid-page !important;
    page-break-before: avoid !important;
  }

  body.print-kabineti_dani .raspored-print-day__table th,
  body.print-kabineti_dani .raspored-print-day__table td {
    border: 0.5pt solid #666 !important;
    padding: 0.55mm 0.45mm !important;
    text-align: center !important;
    vertical-align: middle !important;
    overflow: hidden !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
  }

  body.print-kabineti_dani .raspored-print-day__table thead {
    display: table-header-group !important;
  }

  body.print-kabineti_dani .raspored-print-day__table th:first-child,
  body.print-kabineti_dani .raspored-print-day__table td:first-child {
    width: 7mm !important;
  }

  body.print-kabineti_dani .raspored-print-day__table th:nth-child(2),
  body.print-kabineti_dani .raspored-print-day__table td:nth-child(2) {
    width: 28mm !important;
    text-align: left !important;
    font-weight: 700 !important;
  }

  body.print-kabineti_dani .raspored-print-day__table th:nth-child(n + 3),
  body.print-kabineti_dani .raspored-print-day__table td:nth-child(n + 3) {
    width: auto !important;
  }
}



@media print {
  body.print-kabineti_dani .raspored-daily-matrix,
  body.print-kabineti_dani .raspored-daily-block,
  body.print-kabineti_dani .raspored-daily-matrix__scroll,
  body.print-kabineti_dani .raspored-daily-matrix__table,
  body.print-kabineti_dani .raspored-matrix__scroll,
  body.print-kabineti_dani .raspored-matrix__table,
  body.print-kabineti_dani .raspored-print-only-weekly {
    display: none !important;
  }

  body.print-kabineti_dani .raspored-print-only-daily {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.print-kabineti_dani .raspored-print-day {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 5mm 0 !important;
    padding: 0 !important;
    break-inside: auto !important;
    page-break-inside: auto !important;
  }

  body.print-kabineti_dani .raspored-print-day:not(:first-child) {
    break-before: page !important;
    page-break-before: always !important;
  }

  body.print-kabineti_dani .raspored-print-day:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    break-after: auto !important;
    page-break-after: auto !important;
  }

  body.print-kabineti_dani .raspored-print-day__title {
    margin: 0 0 2mm 0 !important;
    padding: 0 0 1mm 0 !important;
    border-bottom: 0.8pt solid #333 !important;
    font-size: 11.5pt !important;
    line-height: 1.05 !important;
    font-weight: 700 !important;
    break-after: avoid-page !important;
    page-break-after: avoid !important;
  }

  body.print-kabineti_dani .raspored-print-day__table {
    display: table !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    border-collapse: collapse !important;
    table-layout: fixed !important;
    font-size: 7.2pt !important;
    line-height: 1.04 !important;
    break-before: avoid-page !important;
    page-break-before: avoid !important;
  }

  body.print-kabineti_dani .raspored-print-day__table th,
  body.print-kabineti_dani .raspored-print-day__table td {
    border: 0.5pt solid #666 !important;
    padding: 0.55mm 0.45mm !important;
    text-align: center !important;
    vertical-align: middle !important;
    overflow: hidden !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
  }

  body.print-kabineti_dani .raspored-print-day__table thead {
    display: table-header-group !important;
  }

  body.print-kabineti_dani .raspored-print-day__table th:first-child,
  body.print-kabineti_dani .raspored-print-day__table td:first-child {
    width: 7mm !important;
  }

  body.print-kabineti_dani .raspored-print-day__table th:nth-child(2),
  body.print-kabineti_dani .raspored-print-day__table td:nth-child(2) {
    width: 28mm !important;
    text-align: left !important;
    font-weight: 700 !important;
  }

  body.print-kabineti_dani .raspored-print-day__table th:nth-child(n + 3),
  body.print-kabineti_dani .raspored-print-day__table td:nth-child(n + 3) {
    width: auto !important;
  }
}

/* =========================================================
   PTF-008 ATTEMPT 2 — PHYSICAL PRINT PARITY GUARD
   Source-derived specialized print DOM remains the only printed timetable body.
   ========================================================= */
@media print {
  @page vke-ptf008-classes-landscape {
    size: A4 landscape;
    margin: 7mm 7mm 8mm 7mm;
  }

  body.print-odeljenja_zbirno {
    page: vke-ptf008-classes-landscape;
  }

  .raspored-matrix-header__mode-selector,
  .raspored-matrix-header__print-button,
  .raspored-active-view {
    display: none !important;
  }

  body.print-odeljenja_zbirno .raspored-matrix__scroll,
  body.print-odeljenja_zbirno .raspored-daily-matrix,
  body.print-odeljenja_zbirno .raspored-print-only-weekly,
  body.print-odeljenja_zbirno .raspored-print-only-daily,
  body.print-odeljenja_zbirno .raspored-print-only-teachers {
    display: none !important;
  }

  body.print-odeljenja_zbirno .raspored-print-only-classes {
    display: block !important;
  }

  body.print-odeljenja_zbirno .raspored-print-classes-day {
    break-before: auto !important;
    page-break-before: auto !important;
    break-inside: avoid-page !important;
    page-break-inside: avoid !important;
  }

  body.print-odeljenja_zbirno .raspored-print-classes-day:last-child {
    break-after: auto !important;
    page-break-after: auto !important;
  }

  body.print-odeljenja_zbirno .raspored-print-classes-day__table {
    font-size: 8.2pt !important;
    line-height: 1.08 !important;
  }

  body.print-odeljenja_zbirno .raspored-print-classes-day__table th,
  body.print-odeljenja_zbirno .raspored-print-classes-day__table td {
    padding: 0.9mm 0.8mm !important;
  }
}



/* Real-source timetable screen geometry from raspored.css. */
.raspored-matrix__table,
.raspored-daily-matrix__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: #fff;
  color: #111;
  font-size: 10px;
  line-height: 1.05;
}

.raspored-matrix__table {
  min-width: 1060px;
}
.raspored-daily-matrix__table {
  min-width: 820px;
}

.raspored-matrix__table th,
.raspored-matrix__table td,
.raspored-daily-matrix__table th,
.raspored-daily-matrix__table td {
  border: 1px solid #b8b8b8;
  padding: 1px 2px;
  text-align: center;
  vertical-align: middle;
  overflow: hidden;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  background: #fff;
}

.raspored-matrix__table thead th,
.raspored-daily-matrix__table thead th {
  background: #f6f6f6;
  font-weight: 700;
}

/* Širine kolona */
.raspored-matrix__table th:first-child,
.raspored-matrix__table td:first-child,
.raspored-daily-matrix__table th:first-child,
.raspored-daily-matrix__table td:first-child {
  width: 26px;
}

.raspored-matrix__table th:nth-child(2),
.raspored-matrix__table td:nth-child(2) {
  width: 98px;
  text-align: left;
  font-weight: 600;
}

.raspored-daily-matrix__table th:nth-child(2),
.raspored-daily-matrix__table td:nth-child(2) {
  width: 120px;
  text-align: left;
  font-weight: 600;
}

/* Deblje granice za dane */
.raspored-matrix__table thead tr:nth-child(2) > th:nth-child(1),
.raspored-matrix__table thead tr:nth-child(2) > th:nth-child(10),
.raspored-matrix__table thead tr:nth-child(2) > th:nth-child(19),
.raspored-matrix__table thead tr:nth-child(2) > th:nth-child(28),
.raspored-matrix__table thead tr:nth-child(2) > th:nth-child(37),
.raspored-matrix__table tbody tr > td:nth-child(3),
.raspored-matrix__table tbody tr > td:nth-child(12),
.raspored-matrix__table tbody tr > td:nth-child(21),
.raspored-matrix__table tbody tr > td:nth-child(30),
.raspored-matrix__table tbody tr > td:nth-child(39) {
  border-left: 2px solid #555;
}

.raspored-matrix__table thead tr:first-child th:nth-child(n + 3) {
  border-left: 2px solid #555;
}
@media screen {
  .raspored-archive {
    background: var(--color-secondary);
    color: var(--color-text-dark);
    font-family: var(--font-body);
  }

  .raspored-archive__container {
    max-width: 100%;
    padding: var(--spacing-lg);
  }

  .raspored-archive__header {
    margin: 0 0 var(--spacing-lg);
    padding: var(--spacing-lg);
    background: var(--color-white);
    border: var(--border-width-sm) solid var(--color-border-soft-dark);
    border-left: 5px solid var(--color-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-pagination-number);
  }

  .raspored-matrix-header {
    display: grid;
    grid-template-columns: minmax(220px, 0.9fr) minmax(280px, 1.2fr) minmax(
        300px,
        1fr
      );
    gap: var(--spacing-lg);
    align-items: center;
  }

  .raspored-matrix-header__school {
    color: var(--color-text-dark);
    font-size: var(--fs-small);
    font-weight: var(--fw-bold);
    letter-spacing: var(--ls-body);
  }

  .raspored-matrix-header__center {
    text-align: center;
  }

  .raspored-matrix-header__title {
    margin: 0 0 var(--spacing-xs);
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: var(--fs-h3);
    font-weight: var(--fw-bold);
    line-height: var(--lh-heading);
    letter-spacing: var(--ls-heading);
    text-transform: uppercase;
  }

  .raspored-matrix-header__year,
  .raspored-matrix-header__date {
    color: var(--color-black);
    font-size: var(--fs-small);
    line-height: var(--lh-small);
  }

  .raspored-matrix-header__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--spacing-sm);
  }

  .raspored-matrix-header__mode-selector {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: var(--color-nav-link-bg);
    border: var(--border-width-sm) solid var(--color-border-soft-dark);
    border-radius: var(--radius-md);
  }

  .raspored-matrix-header__mode-selector label {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin: 0;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    color: var(--color-text-dark);
    font-size: var(--fs-small);
    font-weight: var(--fw-semibold);
    line-height: 1.2;
    cursor: pointer;
    transition:
      background-color var(--transition-fast),
      color var(--transition-fast),
      box-shadow var(--transition-fast);
  }

  .raspored-matrix-header__mode-selector label:hover {
    background: var(--color-nav-link-bg-hover);
  }

  .raspored-matrix-header__mode-selector input {
    margin: 0;
    accent-color: var(--color-primary);
  }

  .raspored-matrix-header__mode-selector label:has(input:checked) {
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-pagination-link);
  }

  .raspored-matrix-header__print-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--color-primary);
    color: var(--color-white);
    border: var(--border-width-sm) solid var(--color-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-pagination-link);
    font-family: var(--font-body);
    font-size: var(--fs-small);
    font-weight: var(--fw-bold);
    line-height: 1.2;
    cursor: pointer;
    transition:
      transform var(--transition-fast),
      box-shadow var(--transition-fast),
      background-color var(--transition-fast),
      border-color var(--transition-fast);
  }

  .raspored-matrix-header__print-button:hover,
  .raspored-matrix-header__print-button:focus {
    background: var(--color-accent);
    border-color: var(--color-accent);
    box-shadow: var(--shadow-button-hover);
    transform: var(--transform-button-hover);
  }

  .raspored-matrix,
  .raspored-daily-matrix {
    margin: 0;
    padding: var(--spacing-md);
    background: var(--color-white);
    border: var(--border-width-sm) solid var(--color-border-soft-dark);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-pagination-number);
  }

  .raspored-active-view {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--spacing-sm);
    margin: 0 0 var(--spacing-md);
    padding: 0 0 var(--spacing-sm);
    border-bottom: var(--border-width-sm) solid var(--color-border-soft-dark);
  }

  .raspored-active-view h2 {
    margin: 0;
    color: var(--color-primary);
    font-size: var(--fs-h5);
    font-weight: var(--fw-bold);
    line-height: var(--lh-heading);
  }

  .raspored-active-view p {
    margin: 0;
    color: var(--color-black);
    font-size: var(--fs-small);
    line-height: var(--lh-small);
  }

  .raspored-matrix__scroll,
  .raspored-daily-matrix__scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    border: var(--border-width-sm) solid var(--color-border-soft-dark);
    border-radius: var(--radius-md);
    background: var(--color-white);
  }

  .raspored-matrix__table,
  .raspored-daily-matrix__table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    background: var(--color-white);
    color: var(--color-text-dark);
    font-size: 11px;
    line-height: 1.25;
  }

  .raspored-matrix__table th,
  .raspored-daily-matrix__table th {
    background: var(--color-nav-link-bg);
    color: var(--color-text-dark);
    font-weight: var(--fw-bold);
  }

  .raspored-matrix__table td,
  .raspored-daily-matrix__table td {
    background: var(--color-white);
  }

  .raspored-matrix__table th,
  .raspored-matrix__table td,
  .raspored-daily-matrix__table th,
  .raspored-daily-matrix__table td {
    border: var(--border-width-sm) solid var(--color-border-soft-dark);
    padding: var(--spacing-xs) var(--spacing-2xs);
    text-align: center;
    vertical-align: middle;
    transition: background-color var(--transition-fast);
  }

  .raspored-matrix__table tbody tr:hover td,
  .raspored-daily-matrix__table tbody tr:hover td {
    background: var(--color-nav-link-bg-hover);
  }

  .raspored-daily-block {
    margin: 0 0 var(--spacing-lg);
  }

  .raspored-daily-block__title {
    margin: 0 0 var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--radius-md);
    font-size: var(--fs-h6);
    font-weight: var(--fw-bold);
    line-height: var(--lh-heading);
  }
}

/* Binding standalone title responsibility from the proven live winning cascade. */
.raspored-matrix-header__title{
  color:#14141a !important;
  font-size:22px !important;
  font-weight:700 !important;
  line-height:27.5px !important;
  white-space:normal;
}
.d16-date{white-space:nowrap}
.raspored-matrix-header__date{white-space:nowrap}
.raspored-slot-time{display:block;margin-top:1px;color:inherit;font-size:.72em;font-weight:400;line-height:1.1;white-space:nowrap}

@media screen {
  .raspored-matrix-header__title { font-family:var(--font-body) !important; }
  .raspored-active-view h2 { font-family:var(--font-body) !important; }
}
.raspored-matrix__table th:nth-child(2),
.raspored-matrix__table td:nth-child(2),
.raspored-daily-matrix__table th:nth-child(2),
.raspored-daily-matrix__table td:nth-child(2){
  white-space:nowrap;
}

/* Timetable-only original desktop responsibilities; no website shell or assets. */
@media screen and (min-width: 1200px) {
.raspored-matrix-header__school,
.raspored-matrix-header__year,
.raspored-matrix-header__date,
.raspored-matrix-header p {
  margin: 0 0 2px;
  line-height: 1.12;
}

.raspored-matrix-header__mode-selector label { white-space: nowrap; }

.raspored-matrix__table th:first-child,
.raspored-matrix__table td:first-child,
.raspored-daily-matrix__table th:first-child,
.raspored-daily-matrix__table td:first-child {
  width: 22px;
}

.raspored-matrix__table th:nth-child(2),
.raspored-matrix__table td:nth-child(2) {
  width: 86px;
}

body.print-profesori_zbirno .raspored-matrix__table,
body.print-kabineti_zbirno .raspored-matrix__table {
  font-size: 8.6px;
  line-height: 1;
  min-width: 1020px;
}

body.print-odeljenja_zbirno .raspored-matrix__table {
  font-size: 9px;
  line-height: 1.02;
  min-width: 980px;
}

.raspored-daily-matrix__table th:nth-child(2),
.raspored-daily-matrix__table td:nth-child(2) {
  width: 110px;
}

  .raspored-archive { font-size: 1.125rem; line-height: 1.5em; }
  .raspored-matrix-header__title {
    font-size: var(--fs-h3) !important;
    line-height: var(--lh-heading) !important;
  }
}

/* The original timetable header has grid display outside screen media.
   Existing named-page, specialized print-table and print typography rules remain. */
@media print {
  .raspored-matrix-header__title { font-family: Georgia, serif !important; }
  .raspored-matrix-header { display: grid; }
  .raspored-matrix-header p { margin: 0 0 2px; }
  .raspored-matrix-header__title {
    margin: 0 0 2px;
    font-size: 14pt !important;
    line-height: 1 !important;
  }
}

/* PROJECT_REQUIRED_PRINT_USABILITY_CORRECTION: preserve complete cell values. */
@media print {
  body:is(.print-odeljenja_zbirno, .print-odeljenja_dani,
          .print-profesori_zbirno, .print-profesori_dani,
          .print-kabineti_zbirno, .print-kabineti_dani)
    :is(.raspored-print-classes-day__table, .raspored-print-day__table,
        .raspored-print-weekly-day__table, .raspored-print-teacher-week__table,
        .raspored-print-teachers-day__table, .raspored-print-teachers-group__table)
    :is(th, td) {
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    white-space: normal !important;
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
    line-height: 1.15 !important;
  }

  body:is(.print-odeljenja_zbirno, .print-odeljenja_dani,
          .print-profesori_zbirno, .print-profesori_dani,
          .print-kabineti_zbirno, .print-kabineti_dani)
    :is(.raspored-print-classes-day__table, .raspored-print-day__table,
        .raspored-print-weekly-day__table, .raspored-print-teacher-week__table,
        .raspored-print-teachers-day__table, .raspored-print-teachers-group__table) tr {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }
}

@media screen {
  .raspored-matrix__scroll { width:100%; max-width:100%; min-width:0; overflow-x:auto; overflow-y:hidden; }
  .raspored-matrix__table { width:100%; min-width:100%; table-layout:fixed; }
  .raspored-matrix-cell__lesson { display:inline-block; min-width:0; font-size:12px; line-height:1.25; overflow-wrap:break-word; }
}
@media screen and (max-width:640px) {
  .raspored-matrix__scroll { max-width:100%; overflow-x:auto; overscroll-behavior-inline:contain; }
  .raspored-matrix__table { width:max-content; min-width:980px; max-width:none; }
}
