/* ФФВИС Premium v2.5.91 – isolated exam schedule print document. */
@page{size:A4 landscape;margin:0}
*{box-sizing:border-box}
html,body{width:100%;margin:0;padding:0;background:#fff;color:#111;font-family:Georgia,"Times New Roman",serif;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.ffvis-exam-print-sheet{width:100%;padding:10mm 11mm 9mm;margin:0 auto;background:#fff}
.ffvis-exam-print-tools{display:flex;gap:12px;justify-content:center;align-items:center;padding:12px;background:#f4f4f4;font:14px Arial,sans-serif}
.ffvis-exam-print-tools button{border:1px solid #9a2033;background:#fff;padding:8px 16px;cursor:pointer}
.ffvis-exam-print-tools button:first-child{background:#9a2033;color:#fff}
.ff-exam-print-masthead{display:block;align-items:center;gap:0;margin:0 0 11px;padding:0;border-bottom:0}
.ff-exam-print-masthead__brand{display:none}

.ff-exam-print-masthead__brand strong{display:none;font-size:10.5px;font-weight:700}
.ff-exam-print-masthead__brand span{display:none;margin-top:4px;font-size:9.5px}
.ff-exam-print-masthead__title{text-align:center;line-height:1.08}
.ff-exam-print-masthead__title>strong{display:block;font-size:23px;letter-spacing:4px;font-weight:800}
.ff-exam-print-masthead__title>span{display:block;margin-top:6px;padding-bottom:0;border-bottom:0;font-size:12px;font-weight:700;text-transform:uppercase}
.ff-exam-print-masthead__title>b{display:block;margin-top:7px;font-size:16px;text-transform:uppercase}
.ff-exam-print-masthead__spacer{display:none}
.ff-exam-board{display:block!important;width:100%;margin:0;padding:0;border:0;box-shadow:none}
.ff-exam-board__head{display:block!important;border:0;padding:0 0 10px;background:#fff;text-align:center}
.ff-exam-board__head .ff-section-label,.ff-exam-board__head>small,.ff-exam-board__head>h2{display:none}
.ff-exam-board__badges{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin:0}
.ff-exam-board__badges span{border:0;background:transparent;padding:0;font-size:13px;font-weight:800;text-transform:uppercase}
.ff-exam-board__badges span+span:before{content:" · ";font-weight:400}
.ff-exam-board__head>p{margin:4px auto 0;max-width:90%;font-size:9px;line-height:1.35}
.ff-exam-section-public{display:block;margin:0 0 13px;border:0;box-shadow:none;break-inside:auto;page-break-inside:auto}
.ff-exam-section-public__head{display:block;padding:0;margin:0 0 6px;background:transparent;text-align:center;border:0;break-after:avoid;page-break-after:avoid}
.ff-exam-section-public__head h3{display:block;margin:0 auto 4px;width:100%;padding:5px 12px;background:#f5dfe2;border:0;color:#111;text-align:center;font:800 17px/1.15 Georgia,"Times New Roman",serif;text-transform:uppercase}
.ff-exam-section-public__head strong{display:block;text-align:center;font-size:11px;line-height:1.2;margin-top:2px}
.ff-exam-section-public__head p{margin:3px auto 0;text-align:center;font-size:9px}
.ff-exam-table-wrap{width:100%;overflow:visible;border:0}
.ff-exam-table{width:100%;min-width:0;border-collapse:collapse;table-layout:auto;font-family:Georgia,"Times New Roman",serif}
.ff-exam-table thead{display:table-header-group}
.ff-exam-table tr{break-inside:avoid;page-break-inside:avoid}
.ff-exam-table th,.ff-exam-table td{border:0.7px solid #c43b49;padding:5px 6px;vertical-align:middle;font-size:9px;line-height:1.18;background:#fff;color:#111;overflow-wrap:anywhere}
.ff-exam-table thead th{background:#f5dfe2;text-align:center;font-size:9.5px;font-weight:800}
.ff-exam-table__subject{width:31%}
.ff-exam-table__subject strong{font-weight:600}
.ff-exam-table__subject small{display:block;margin-top:2px;font-size:8px;font-weight:400}
.ff-exam-table__term{text-align:center;white-space:normal}
.ff-exam-table__term strong{display:block;font-size:9px;font-weight:700}
.ff-exam-table__term small{display:block;margin-top:2px;font-size:7.5px;font-style:normal;color:#333}
.ff-exam-table__examiner{width:24%}
.ff-exam-table tr.is-child .ff-exam-table__subject{padding-left:17px}
.ff-exam-table__group th{background:#f9eeee;text-align:left;font-weight:800}
.ff-exam-table__note td{background:#fafafa}
.ff-exam-table__note strong,.ff-exam-table__note span{display:block}
.ff-exam-table__note span{margin-top:3px}
@media print{
  html,body{margin:0!important;padding:0!important;background:#fff!important}
  .ffvis-exam-print-tools{display:none!important}
  .ffvis-exam-print-sheet{width:100%!important;max-width:none!important;margin:0!important;padding:10mm 11mm 9mm!important}
  .ff-exam-section-public__head{break-after:avoid!important}
}

.ff-exam-table__branch{width:16%;font-weight:600}

/* FFVIS 3.3.18 — center-left alignment in printed exam tables */
.ff-exam-table th,
.ff-exam-table td,
.ff-exam-table thead th,
.ff-exam-table__term,
.ff-exam-table__examiner,
.ff-exam-table__branch,
.ff-exam-table__subject{
  vertical-align:middle!important;
  text-align:left!important;
}

/* FFVIS 3.3.19 — print: one study year/section per page, no split tables */
@media print{
  @page{size:A4 landscape;margin:8mm 9mm 8mm}
  html,body{width:auto!important;height:auto!important;margin:0!important;padding:0!important;background:#fff!important}
  .ffvis-exam-print-sheet{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;background:#fff!important}

  /* Each year/section starts on its own printed page. */
  .ff-exam-section-public{
    display:block!important;
    width:100%!important;
    margin:0!important;
    padding:0!important;
    break-inside:avoid-page!important;
    page-break-inside:avoid!important;
  }
  .ff-exam-section-public + .ff-exam-section-public{
    break-before:page!important;
    page-break-before:always!important;
  }
  .ff-exam-section-public:not(:last-child){
    break-after:page!important;
    page-break-after:always!important;
  }

  /* Keep the year title, table header and rows together whenever possible. */
  .ff-exam-section-public__head{
    margin:0 0 5px!important;
    break-after:avoid-page!important;
    page-break-after:avoid!important;
  }
  .ff-exam-table-wrap,
  .ff-exam-table,
  .ff-exam-table tbody{
    break-inside:avoid-page!important;
    page-break-inside:avoid!important;
  }
  .ff-exam-table thead{display:table-header-group!important}
  .ff-exam-table tfoot{display:table-footer-group!important}
  .ff-exam-table tr,
  .ff-exam-table th,
  .ff-exam-table td{
    break-inside:avoid!important;
    page-break-inside:avoid!important;
  }

  /* Compact, readable print typography so a full academic year fits cleanly on A4 landscape. */
  .ff-exam-section-public__head h3{
    margin:0 0 4px!important;
    padding:5px 10px!important;
    font-size:15px!important;
    line-height:1.1!important;
    border-radius:3px!important;
  }
  .ff-exam-section-public__head strong{font-size:9.5px!important;margin-top:2px!important}
  .ff-exam-section-public__head p{font-size:8px!important;margin-top:2px!important}
  .ff-exam-table{
    width:100%!important;
    table-layout:fixed!important;
    border-collapse:collapse!important;
  }
  .ff-exam-table th,
  .ff-exam-table td{
    padding:4px 5px!important;
    font-size:8.2px!important;
    line-height:1.15!important;
    vertical-align:middle!important;
    text-align:left!important;
  }
  .ff-exam-table thead th{
    font-size:8.4px!important;
    font-weight:800!important;
    background:#f4dfe3!important;
  }
  .ff-exam-table__subject{width:24%!important}
  .ff-exam-table__branch{width:14%!important}
  .ff-exam-table__examiner{width:18%!important}
  .ff-exam-table__term strong{font-size:8.2px!important}
  .ff-exam-table__term small{font-size:7.2px!important;line-height:1.1!important}
  .ff-exam-table__subject small{font-size:7.2px!important}
  .ff-exam-table__group th{padding:4px 5px!important}

  /* Clean first-page heading; subsequent pages begin directly with the year heading. */
  .ff-exam-print-masthead{margin:0 0 7px!important}
  .ff-exam-print-masthead__title>strong{font-size:19px!important;letter-spacing:2.5px!important}
  .ff-exam-print-masthead__title>span{font-size:10px!important;margin-top:4px!important}
  .ff-exam-print-masthead__title>b{font-size:13px!important;margin-top:5px!important}
  .ff-exam-board__head{padding:0 0 7px!important}
  .ff-exam-board__badges span{font-size:10.5px!important}
  .ff-exam-board__head>p{font-size:8px!important;margin-top:3px!important}
}
