/* Print: legacy MagniWebApp Content/old/print.css (its @media print block; the http:// font and the screen rule
   Bootstrap already has are left out), plus what Core's own screen styles need overriding to print the same. */
@media print {
    html, body {
        height: 100%;
    }

    body {
        transform: scale(.9);
    }

    .content-box .col-sm-9 {
        margin-left: 0px !important;
        width: 100%;
    }

    table td:first-child {
        height: 50px;
    }

    .Pivot .pvtHorizList {
        background: none !important;
    }

    .pvtUi .pvtUnused:before, .pvtRows:before {
        content: none !important;
    }

    .pvtUi .pvtRows {
        /*width: 100%*/
        /*display: none !important;*/
    }

    .pvtUi .pvtUnused,
    .pvtRowOrder,
    .pvtColOrder,
    .pvtTriangle {
        display: none !important;
    }

    .content-box {
        overflow-x: hidden !important;
    }

    @page {
        margin: 15mm 0mm 10mm;
        /*page-break-after: auto;*/
    }

    html, body {
        width: 100%;
        height: auto;
        background: white !important;
        padding: 2mm;
        display: contents;
    }

    .box-style {
        margin-bottom: 0px;
    }


    .only-print {
        display: block;
    }

    table td[class*="span"], table th[class*="span"], .row-fluid table td[class*="span"], .row-fluid table th[class*="span"] {
        display: table-cell;
    }

    .visible-print {
        display: inherit !important;
    }
    .visible-print-block {
        display: block !important;
    }

    .printContent {
        display: inline;
    }

    .printContent .pvtRendererArea {
        display: inherit;
    }

    .hidden-print {
        display: none;
    }

    /* DN RETIRADO POR PARTIR TODOS OS PRINTS E Não ver a necessidade

.row-fluid:before, .row-fluid:after {
  display: none;
  content: "";
  line-height: 0;
}

*/

    table td {
        padding: 2px 8px 2px 8px;
        font-size: 10px;
        line-height: 12px;
    }

    /*
table.OSInline {
  display: block !important;
}*/

    .docnavigation {
        display: none !important;
    }


    .docList div.TotalsAboveDiv {
        float: right;
    }

    a[href]:after {
        display: none !important;
    }

    .nowrap-text {
        white-space: nowrap;
    }

    .docList .status-block {
        height: 25px;
    }

    .docList div.TotalsAboveDiv td {
        padding: 2px;
    }

    .menu-items, .menu-box {
        display: none;
    }

    .box-style {
        border: none !important;
        box-shadow: none !important;
    }

    .content-box {
        padding: 0px !important;
        margin: 0px;
        border: 0 !important;
        overflow-y: hidden !important;
        height: auto !important;
    }

    .main-content {
        position: relative;
    }

    .companiesBlock {
        background: transparent !important;
    }

    .optionsBlock {
        display: none !important;
    }

    .btn {
        display: none !important;
    }

    .print-total {
        padding-top: 17px;
    }

    .docList table thead div {
        font-size: 12px !important;
    }

    .docList table td {
        padding-left: 2px;
        padding-right: 2px;
    }

    .docList table td a span {
        font-size: 10px !important;
    }

    .docList .status-block {
        height: 25px !important;
    }

    .docListTable .TableRecords_Header {
        padding-left: 2px;
        padding-right: 2px;
    }

    .wbDocumentList table td {
        font-size: 9px;
    }

    .wbDocumentList table.TableRecords tr td.total-cell span {
        font-size: 10px;
    }
}
/* Core: what its own screen styles need undone to print like legacy did (measured 2026-11-12 against legacy's
   stylesheets in print: black text, no status bars, 9px rows centred, totals unwrapped, no top gap). */
@media print {
    /* Toasts, the chat launcher, the bell's panel and the header never print. */
    .noty-notification,
    .announcements-bell-panel,
    .intercom-lightweight-app,
    #intercom-container,
    .header-container,
    .menu-box,
    .menu-items {
        display: none !important;
    }

    /* Core's layout scrolls inside fixed-height boxes on screen; in print everything flows to its full length
       (otherwise only the rows of the first screen print). */
    html,
    body,
    .mainWrapper,
    .content-wrapper,
    .main-content-container,
    .main-content-container > .content-box,
    .main-content-container .main-content,
    .content-box,
    #documents-page,
    .wbDocumentList {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    /* No room kept for the hidden header and side menu. */
    .content-wrapper,
    .main-content-container,
    .main-content-container > .content-box,
    .main-content-container .main-content {
        margin: 0 !important;
        padding: 0 !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        max-width: none !important;
    }

    /* The documents list: black on white like legacy's print. */
    .wbDocumentList,
    .wbDocumentList *,
    .TotalsAboveDiv,
    .TotalsAboveDiv *,
    .TotalsBelowDiv,
    .TotalsBelowDiv *,
    .Counter_Message {
        color: #000 !important;
    }

    .docListTable thead th a,
    .docListTable thead th span,
    .docListTable thead th div {
        color: #000 !important;
    }

    .docListTable .status-block {
        display: none !important;
    }

    .docListTable td {
        vertical-align: middle !important;
        font-size: 9px !important;
        line-height: 12px !important;
    }

    .docListTable a.table-link,
    .docListTable a.table-link span {
        font-size: 10px !important;
        font-weight: 600 !important;
        line-height: 12px !important;
        border-bottom: none !important;
        text-decoration: none !important;
    }

    .docListTable .documentTitle,
    .docListTable .document-description-span,
    .docListTable .nowrap-text,
    .docListTable .text-note,
    .docListTable .text-note span {
        font-size: 9px !important;
        line-height: 12px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .docListTable td.total-cell,
    .docListTable td.total-cell span {
        white-space: nowrap !important;
        font-size: 10px !important;
        font-weight: 700 !important;
    }

    .docListTable td i,
    .docListTable td i:before {
        font-size: 9px !important;
        line-height: normal !important;
        width: auto !important;
        height: auto !important;
    }
}
