/* print dialog */

.modal-form.print-dialog .container     { width: 400px; }
@media screen and (max-width: 800px) {
	.modal-form.print-dialog .container { width: 300px; }
}

.print-dialog .header              { padding: 10px 30px; border-bottom: 1px solid #e5e5e5; }
.print-dialog .header > .title     { font-size: 18px; color: #282828; }
.print-dialog .header > .sub-title { font-size: 12px; color: #228cdf; }

.print-dialog .print-options         { padding: 30px; font-size: 14px; }
.print-dialog .print-options button  { margin: 20px auto 0; }
.print-dialog .print-options p       { margin: 0 0 10px; font-weight: 600; }

.print-dialog .indent1 { margin-left: 30px; }
.print-dialog .indent2 { margin-left: 60px; }

body.print             { margin: 0; padding: 0; background-color: #fff; }
body.print *           { font-family: Arial, Helvetica, sans-serif; }

body.print .assignment                                       { page-break-after: always; }
body.print .assignment > .article > .item                    { page-break-inside: avoid; orphans: 3; widows: 3; }
body.print .assignment > .article > .item.media              { page-break-inside: avoid; }
body.print .assignment > .article > .item.question           { page-break-inside: avoid; }

body.print .assignment > .article > .item.media .youtube-print     { page-break-inside: avoid; }
body.print .assignment > .article > .item.media .youtube-print img { display: block; max-width: 100%; max-height: 100vh; margin: 0 auto; }

body.print .assignment > .article                            { width: auto; }
body.print .assignment > .article > .item                    { box-shadow: none; margin: 0 10px 10px; padding: 10px; border: 1px solid #e5e5e5; }
body.print .assignment > .article > .item.header             { margin: 0 0 10px; border: none; }
body.print .assignment > .article > .item.incomplete         { border: none; font-size: 24px; color: red; }

body.print .assignment > .article > .item:before             { display: none; }
body.print .assignment > .article > .item:after              { display: none; }
body.print .assignment > .article > .item.icn-dot:after      { display: none; }
body.print .assignment > .article > .item.icn-check:after    { display: none; }
body.print .assignment > .article > .item.icn-question:after { display: none; }

body.print   *.print-logo { float: right; width: 112px; height: 28px; background: no-repeat center center; background-size: contain; }
body.print div.print-logo { background-image: url('/static/img/cikumas-downloaded-white.png'); }	
body.print img.print-logo { display: none; width: 112px; height: auto; }
body.print .assignment > .article > .item.header .inner { margin-right: 112px; padding-right: 20px; }
body.print .assignment > .article > .item.header .student { font-size: 14px; margin-top: 10px; }

@media print {
	@page { margin: 0.5cm; }
	body.print .assignment > .article > .item.header { color: #1f3c77; background-color: #fff; }
	body.print div.print-logo { display: none; }	
	body.print img.print-logo { display: block; }	
}

body.print .assignment > .article > .item     * { -webkit-print-color-adjust: exact !important; color-adjust: exact !important; }
body.print .assignment > .article > .stickers * { -webkit-print-color-adjust: exact !important; color-adjust: exact !important; }


body.print .assignment > .article > .item.question .question-comment { display: none; }
body.print .assignment > .article > .item.question .submit           { display: none; }
body.print .assignment > .article > .item.question button            { display: none; }

body.print .assignment > .article > .item.chapter a[href^="http://"]:after,
body.print .assignment > .article > .item.chapter a[href^="https://"]:after,
body.print .assignment > .article > .item.chapter a[href^="ftp://"]:after    { display: inline-block; content: " (" attr(href) ")"; color: #228cdf; font-size: small; }

body.print .assignment > .article > .item.result-neutral { background-color: #fff; }
body.print .assignment > .article > .item.result-good    { background-color: #fff; }
body.print .assignment > .article > .item.result-bad     { background-color: #fff; }
body.print .assignment > .article > .item.result-skipped { background-color: #fff; }

body.print .assignment > .article > .item.question .answer fieldset                { border: none; }
body.print .assignment > .article > .item.question .answer textarea                { border: none; padding: 0; overflow: hidden; }
body.print .assignment > .article > .item.question .answer .freevoice-wrap .remove { display: none; }

body.print .assignment > .article > .item.question .comment             { display: block; font-size: 14px; margin-top: 25px; }
body.print .assignment > .article > .item.question .comment .header     { font-size: 16px; }
body.print .assignment > .article > .item.question .comment       .text { display: block; font-style: italic; }
body.print .assignment > .article > .item.question .comment       audio { display: none; }
body.print .assignment > .article > .item.question .comment.audio .text { display: none; }
body.print .assignment > .article > .item.question .comment.audio audio { display: block; }


/* question-specific tweaks */

body.print .assignment > .article > .item.question .answer .order-wrap .fa-bars:before  { content: none; }

body.print .assignment > .article > .item.chapter.upload .upload-wrap           { max-width: 100%; overflow: hidden; }
body.print .assignment > .article > .item.chapter.upload .upload-wrap .upload   { width: auto; height: auto; border: none; max-width: 100%; }
body.print .assignment > .article > .item.chapter.upload .upload-wrap .upload i { margin: 0 15px 0 10px; width: auto; display: none; }
body.print .assignment > .article > .item.chapter.upload .upload-wrap .upload .name { width: auto; margin-right: 5px; }
body.print .assignment > .article > .item.chapter.upload .upload-wrap .upload .download-wrap { float: none; width: auto; max-width: 100%; border-left: none; text-align: left; }
body.print .assignment > .article > .item.chapter.upload .upload-wrap .upload .download-wrap a { display: inline-block; vertical-align: middle; }
body.print .assignment > .article > .item.chapter.upload .upload-wrap .upload .download-wrap a i { display: none; }

body.print .assignment .stickers .item                  { filter: none; width: auto; border: 1px solid #e5e5e5; box-shadow: none; }
body.print .assignment .stickers .item.note.p2          { filter: none; margin-left: 0; width: auto;  box-shadow: none; }
body.print .assignment .stickers .item.note.p3          { filter: none; margin-left: 0; width: auto;  box-shadow: none; }
body.print .assignment .stickers .item > .head > .close { display: none; }
body.print .assignment .stickers .item > .text          { padding: 5px; }

body.print .assignment > .article > .item.chapter   	{ display: block; width: auto; }
body.print .assignment > .article > .item.question  	{ display: block; width: auto; }
body.print .assignment > .article > .stickers       	{ display: none; width: 255px; min-height: 10px; margin-right: 10px; }
body.print .assignment > .article > .stickers       	{ position: relative; top: auto; right: auto; bottom: auto; }
body.print .assignment > .article > .stickers .item 	{ position: relative; top: auto; left: auto; margin-bottom: 10px; }

body.print .assignment > .article > .item.chapter.empty							{  }
body.print .assignment > .article > .item.chapter.empty .text					{ padding: 0; }
body.print .assignment > .article > .item.chapter.empty .text .placeholder		{ height: 147px; min-height: auto; border: 1px dashed #2b8ecd; }
body.print .assignment > .article > .item.chapter.empty .text .placeholder > * 	{ width: 100%; background-size: cover; }

body.print .assignment.show-stickers > .article > .item.chapter  { width: calc(100% - 265px - 42px); }
body.print .assignment.show-stickers > .article > .item.question { width: calc(100% - 265px - 42px); }
body.print .assignment.show-stickers > .article > .stickers      { display: block; float: right; }
body.print .assignment.show-stickers > .article > .stickers-end  { clear: both; }


body.print .assignment            .stickers .item .head { display: none; }
body.print .assignment.show-names .stickers .item .head { display: block; }

body.print .assignment cikumark        { position: relative; }
body.print .assignment .cite           { background-color: #fff !important; color: #000 !important; border: 1px solid #999 !important; border-radius: 50%; }
body.print .assignment .cite           { width: 16px; height: 16px; line-height: 16px; text-align: center; font-size: 12px; text-indent: 0; }
body.print .assignment .cite           { position: absolute; z-index: 10; margin: 0; padding: 0; }
body.print .assignment .item.chapter .cite { right: -8px; top: -8px; }
body.print .assignment .stickers     .cite { right: -2px; top: -2px; }

