@media print {
    @page {
        size: portrait;
        /* auto is the initial value */
        /* this affects the margin in the printer settings */
        /*margin: 25px 25px 25px 25px;*/
    }

    html {
        overflow: auto;
        display: block;
    }

    body {
        display: block;
        overflow: visible;
        width: 100%;
        margin: 0;
    }

    body::after {
        display: none;
    }

    body > form {
        display: block;
        overflow: visible;
        height: auto;
    }

    body > form > aside {
        display: none;
    }

    body > form > section {
        width: 100%;
    }

    body > form > section > header {
        display: none;
    }

    body h1 span.buttons, body h3 span.buttons {
        display: none;
    }

    section div.header {
        padding: 56px 0 16px 0;
        max-width: initial;
    }

    section div.article {
        padding: 0;
        max-width: initial;
    }

    hr {
        border-style: inset;
        border-width: 1px;
        box-shadow: none;
        height: 0;
    }

    article.edit {
        padding: 0;
        display: block;
        background: transparent;
        margin-top: 0;
    }

    article.edit dl {
        page-break-inside: avoid;
        break-inside: avoid;
        page-break-after: auto;
        break-after: auto;
        min-height: 0;
    }

    article.edit dl dt {
        color: black;
    }

    body article.edit dl dd span.button[data-permissions][data-action-type], article.edit dl dd span.button, article.edit dl dd label.button {
        display: none;
    }

    dl dd input[type=text], dl dd input[type=password], dl dd textarea, article.edit dl dd div.formated-text {
        border: none;
        box-shadow: none;
        color: rgba(34, 34, 34, 0.7490196);
        opacity: 1;
    }

    dl dd textarea {
        display: none;
    }

    dl dd input[type=text]:focus, dl dd input[type=text]:hover, dl dd input[type=password]:focus, dl dd input[type=password]:hover, dl dd textarea:focus,
    dl dd textarea:hover {
        border: none;
    }

    body div.option input[type=checkbox], body div.option input[type=radio] {
        display: block;
    }

    body div.option input[type=checkbox] + label, body div.option input[type=radio] + label {
        display: none;
    }

    .select2-container--confero .select2-selection--single, .select2-container--confero.select2-container--focus .select2-selection--single,
    .select2-container--confero .select2-selection--multiple, .select2-container--confero.select2-container--focus .select2-selection--multiple {
        border: none;
        box-shadow: none;
    }

    .select2-container--confero.select2-container--disabled .select2-selection--single {
        opacity: 1;
    }

    .select2-container--confero .select2-selection--single .select2-selection__arrow {
        background: transparent;
    }

    .select2-container--confero span.account u, .select2-container--confero span.account i {
        display: none;
    }

    .select2-container--confero .select2-selection--multiple .select2-selection__choice {
        background-color: transparent;
        border: none;
    }

    .select2-container--confero .select2-selection--multiple .select2-selection__choice__remove {
        display: none;
    }

    body div.file-upload div.file-list div span:first-of-type a {
        color: black;
    }

    body div.file-upload div.file-list div > span:first-of-type {
        box-shadow: none;
    }

    html.print body div.file-upload div.file-list div span:first-of-type a + span {
        background: transparent;
    }

    body div.doc-history {
        display: none
    }

    body div.doc-history.show {
        display: block;
    }

    body div.doc-history > fieldset > dl {
        max-height: 40px;
    }

    html.print body div.doc-history h4 {
        color: black;
    }

    body div.doc-history h4::after {
        display: none;
    }

    html.large div.table div.body > div.row:hover, html.medium div.table div.body > div.row:hover {
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }

    body div.tabs span.selected {
        box-shadow: none;
        border-bottom: 1px solid black;
    }

    div.header-hr {
        box-shadow: none;
        border-top: 1px solid #ddd;
    }

    body div.table div.head {
        box-shadow: none;
    }

    body div.table div.head div span.sort::before {
        display: none;
    }

    html.large div.table div.body > div.row, html.medium div.table div.body > div.row {
        box-shadow: none;
        page-break-inside: avoid;
        break-inside: avoid;
        page-break-after: auto;
        break-after: auto;
    }

    body div.table div.body > div.row.group-by:last-of-type, body div.table div.body > div.row.shadow:last-of-type {
        box-shadow: none;
    }

    div.table div.body > div.row * {
        box-shadow: none;
        page-break-inside: avoid;
        break-inside: avoid;
        page-break-after: avoid;
        break-after: avoid;
        page-break-before: avoid;
        break-before: avoid;
    }

    body div.table div.paging span {
        display: none;
    }

    body div.table div.body > div.row {
        padding: 4px 0;
    }

    body div.table div.body > div.row > div {
        font-size: 12px;
        line-height: 16px;
    }

    body div.table div.body > div.row > div.small, html.large body div.table div.body > div.row > div.html-large--small {
        font-size: 12px;
        line-height: 16px;
    }

    body div.table div.body > div.row > div.large, html.small body div.table div.body > div.row > div.large, html.medium body div.table div.body > div.row > div.large,
    html.large body div.table div.body > div.row > div.large {
        font-size: 12px;
        line-height: 16px;
    }

    div.article.wide > article.edit {
        padding: 0;
    }

    div.article.side-list > article {
        padding-top: 0
    }

    div.article.side-list > article div.search {
        display: none;
    }

    div.article.side-list > article > div.body-data {
        box-shadow: none;
    }

    fieldset.print-only {
        display: block;
    }

    dl dd > label {
        padding: 9px 15px;
    }

    div.banner dl dd > label {
        padding: 0;
    }

    div.balances dl dd > label {
        padding: 0;
    }

    div.balances dl {
        box-shadow: none !important;
        border-bottom: 1px solid #ddd;
    }

    h1 {
        font-size: 28px;
    }

    h3 {
        font-size: 20px;
    }

    html.print body.popup > form {
        display: none;
    }

    html.print body.popup > div.popup {
        padding: 0;
    }

    h2.accordion + div fieldset,
    h2.accordion + div h3,
    h3.accordion + div h3,
    h2.accordion + div h4,
    h2.accordion + div h5,
    h3.accordion + div h4,
    h3.accordion + div h5,
    h3.accordion + div fieldset,
    h4.accordion + div fieldset,
    h4.accordion + div hr,
    h3.accordion:not([data-mode="wizard"]) + div hr {
        max-height: 1500px;
        opacity: 1
    }

    h4.accordion + div hr,
    h3.accordion:not([data-mode="wizard"]) + div hr {
        margin: 16px 0 0 0;
    }

    h3.accordion + div > fieldset,
    h4.accordion + div > fieldset,
    h3.accordion + div > fieldset .repeater > fieldset {
        max-height: 100%;
    }
}