/* Smart Timetable Manager: paper sheet, same layout as the printed training programme. */
.stm-paper { background: #fff; color: #000; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 1.25; padding: 18px 20px 22px; margin: 0 0 16px; border: 1px solid #d4d4d4; text-align: left; box-sizing: border-box; }
.stm-paper * { box-sizing: border-box; }
.stm-paper-wk { text-align: right; font-weight: 700; text-decoration: underline; min-height: 15px; font-size: 12px; }
.stm-paper-title { text-align: center; font-weight: 700; text-decoration: underline; font-size: 12.5px; margin-top: 4px; padding: 1px 0; }
.stm-paper-title.is-hl { background: #ffff00; }
.stm-paper-sub { text-align: center; font-weight: 700; text-decoration: underline; font-size: 12.5px; margin: 2px 0 10px; }
.stm-paper-scroll { overflow-x: auto; }
.stm-paper table.stm-paper-tbl { width: 100%; min-width: 860px; border-collapse: collapse; border: 1.5px solid #000; margin: 0; background: #fff; table-layout: fixed; }
.stm-paper .stm-paper-tbl th, .stm-paper .stm-paper-tbl td { border: 1px solid #000; padding: 1px 4px; font-size: 11.5px; color: #000; background: #fff; vertical-align: middle; text-align: left; height: 17px; font-family: Arial, Helvetica, sans-serif; line-height: 1.2; }
.stm-paper .stm-paper-tbl thead th { text-align: center; font-weight: 700; height: 40px; }
.stm-paper .stm-paper-tbl th:nth-child(1) { width: 8%; } .stm-paper .stm-paper-tbl th:nth-child(2) { width: 8%; } .stm-paper .stm-paper-tbl th:nth-child(3) { width: 4%; }
.stm-paper .stm-paper-tbl th:nth-child(4) { width: 18%; } .stm-paper .stm-paper-tbl th:nth-child(5) { width: 28%; } .stm-paper .stm-paper-tbl th:nth-child(6) { width: 5.5%; }
.stm-paper .stm-paper-tbl th:nth-child(7) { width: 4.5%; } .stm-paper .stm-paper-tbl th:nth-child(8) { width: 5%; } .stm-paper .stm-paper-tbl th:nth-child(9) { width: 19%; }
.stm-paper .stm-paper-tbl th:nth-child(10) { width: 9%; }
.stm-paper .stm-paper-tbl .c { text-align: center; white-space: nowrap; }
.stm-paper .stm-paper-tbl th.stm-paper-day { text-align: center; font-weight: 700; border-bottom: 1.5px solid #000; }
.stm-paper .stm-paper-tbl tbody tr:has(th.stm-paper-day) > * { border-top: 1.5px solid #000; }
.stm-paper .stm-paper-closed { text-align: center !important; font-weight: 700; font-size: 12px !important; }
.stm-paper-notes { margin-top: 14px; font-size: 11.5px; }
.stm-paper-notes table { border-collapse: collapse; margin: 4px 0 0 60px; border: 0; width: auto; }
.stm-paper-notes td { border: 0 !important; padding: 1px 12px 1px 0; font-size: 11.5px; background: transparent !important; }
.stm-paper-notes td.l { font-weight: 700; width: 18px; }
.stm-paper-notes td:nth-child(2) { width: 260px; }
.stm-paper-sign { display: flex; justify-content: space-between; gap: 20px; margin-top: 26px; font-size: 11.5px; padding: 0 50px; }
.stm-paper-sign small { display: block; font-size: 11px; margin-left: 8px; }

/* Interactive rows in the manager */
.stm-paper .stm-paper-tbl tr.stm-row-click td { cursor: pointer; }
.stm-paper .stm-paper-tbl tr.stm-row-click:hover td { background: #f1f5f9; }
.stm-paper .stm-paper-tbl tr.is-fixed td { background: #fffbe6; font-weight: 600; }
.stm-paper .stm-paper-tbl tr.is-selected td { background: #dbeafe !important; }
.stm-paper .stm-paper-tbl td.stm-ghost-cell { color: #94a3b8; font-style: italic; }
.stm-paper .stm-fixtag { display: inline-block; margin-left: 6px; font-size: 9px; font-weight: 700; background: #1e293b; color: #fff; border-radius: 3px; padding: 0 4px; vertical-align: 1px; font-style: normal; }
.stm-paper .stm-paper-tbl button.stm-mini { font: 600 11px Arial, sans-serif; padding: 1px 8px; border: 1px solid #93c5fd; background: #eff6ff; color: #1d4ed8; border-radius: 4px; cursor: pointer; min-height: 0; line-height: 1.4; box-shadow: none; text-transform: none; }

@media print {
	.stm-paper { border: 0; padding: 0; margin: 0; font-size: 10.5px; break-inside: avoid; }
	.stm-paper .stm-paper-tbl th, .stm-paper .stm-paper-tbl td { height: 13.4px; font-size: 10px; padding: 0 3px; line-height: 1.1; }
	.stm-paper .stm-paper-tbl thead th { height: 28px; }
	.stm-paper-title, .stm-paper-sub, .stm-paper-wk { font-size: 11px; }
	.stm-paper-sub { margin-bottom: 6px; }
	.stm-paper-notes { margin-top: 6px; font-size: 10px; }
	.stm-paper-notes td { font-size: 10px; padding: 0 12px 0 0; }
	.stm-paper-sign { margin-top: 12px; font-size: 10px; }
	.stm-paper table.stm-paper-tbl { min-width: 0; }
	.stm-paper .stm-paper-tbl tr.is-fixed td { background: #fff; font-weight: 400; }
	.stm-paper .stm-fixtag { display: none; }
}
