@charset "UTF-8";
@import "bahmni-helper/variables";
@page {
    //margin-left: .5cm;
    //margin-right: .5cm;
    //margin-top: 10px;
    //margin-bottom: 10px;
}


body{
    font-family: Arial, sans-serif !important;
    font-size: 9pt;
    color: $black;
    background: #fff;
    -webkit-print-color-adjust: exact;
}
body pre {
    font-family: Arial, sans-serif !important;
    font-size: 9pt;
    color: $black;
    white-space: pre-wrap;
}

p,
h1,
h2,
h3,
table,
tr,
td,
div,
span,
li {
    margin: 0px;
    padding: 0px;
}

h1,
h2,
h3 {
    text-align: center;
}

.print-center {
    text-align: center;
}

.registrationCard-print-table {
    width: 150mm;
    height: 83mm;
    overflow: scroll;
    margin: 0 auto;
    table-layout: fixed;
}

.registrationCard-print-table td.registrationCard-photo {
    padding-top: 2px;
}

.print-table-left {
    width: 77mm;
}

.print-table-header {
    text-align: center;
    margin-top: 7.5pt;
    text-align: center;
}

.print-table-left-body {
    font-size: 4mm;
    margin-bottom: 0px;
    padding-bottom: 0px;
    margin-top: 15px;
}

.print-table-left-body li {
    margin: 0px;
    padding: 0px 0px 5px 0px;
    line-height: 18px
}

.caution {
    text-align: center;
    line-height: 20px;
}

.caution h3 {
    line-height: 25px;
    margin-bottom: 6px;
    margin-top: 12px;
}

.print-table-right {
    width: 77mm;
}

.print-table-right .logo {
    text-align: center;
    width: 12mm;
    padding: 0px;
    margin: 0px;
    height: 12mm;
}

.print-table-right-header {
    text-align: center;
    width: 42mm;
    text-align: left;
    height: 12mm;
}

.registrationCard-location {
    padding: 5px 8px 8px 8px;
}

.registrationCard-details {
    padding: 0mm 5mm 0mm 5mm;
}

.registrationCard-details-name {
    width: 70px;
}

.registrationCard-details-seperator {
    width: 20px;
    text-align: center;
}

.hindi-text {
    vertical-align: bottom;
}

.pgContainer {
    height: auto;
    min-height: initial;
    overflow: hidden;
}
/** Print Style for dashboard **/

.print-wrapper {
    font-family: Arial, sans-serif;
    font-size: 9pt;
    padding: 10px 20px 0;
    max-width: 21cm; // A4 size width
    margin: 0 auto;
    box-sizing: border-box;
    .has-uploaded-file {
        .uploaded-file {
            display: inherit;
            .fa-paper-clip {
                margin-top: 0;
                display: none;
            }
        }
    }
    a {
        color: $darkGray;
    }
    strong {
        font-family: Arial, sans-serif;
        font-weight: bold;
    }
    .visible-print {
        display: block;
    }
    .hidden-print {
        display: none;
    }
    .placeholder-text {
        font-size: 9pt;
        padding: 2px 10px;
        border: 0;
    }
    .has-link{
        pointer-events: none !important;
        &:hover{
           background: none !important;
        }
    }
    .print-header {
        text-align: center;
        color: $black;
        margin-bottom: 20px;
        .logo {
            width: 35px;
            vertical-align: middle;
            display: inline-block;
            margin-left: -40px;
        }
        h1 {
            font-size: 14pt;
            margin-bottom: 0;
            color: $black;
            font-family: Arial, sans-serif;
        }
        h2 {
            font-size: 10pt;
            margin-top: 5px;
            margin-bottom: 7px;
            color: $black;
            text-transform: capitalize;
            padding: 0;
            font-family: Arial, sans-serif;
            text-decoration: none;
            font-weight: normal;
        }
        .clinic-info{
            font-size: 12pt;
            margin-left: auto;
            margin-right: auto;
            margin-top: 1%;
            width: 50%;
            font-weight: bold;
            span { display: block }
            .address{
                margin-top: 10px;
                font-weight: normal;
            }
        }
        .print-title-with-logo{
            display: flex;
            align-items: center;
            justify-content: center;
        }

    }
    .hierarchy ul li {
        .tree-list-item {
            padding: 0 5px !important;
            background: none !important;
            i[class^="fa-"] {
                display: none;
            }
            .obs-date {
                -webkit-print-color-adjust: exact;
                font-weight: bold;
                font-size: 9pt;
                background: #C3C3C3 !important;
                padding: 2px 5px;
                display: block;
                margin: 2px 0;
            }
        }
    }
    .dashboard-sections {
        width: 100%;
        margin: 0;
        padding: 0;
        float: none;

    }
    .section-grid {
        border: 0;
        .visible-print{
            background: #ccc;
            padding: 2px;
            margin: 5px;
            font-size: 12px;
        }
        .repeated-table {
            padding: 5px;
        }
        th {
            background: #ccc;
        }
    }
    .dashboard-section,
    .visit-summary-page section.block {
        table {
            padding: 5px;
            th {
                background: #ccc;
            }
        }
        border: 0;
        margin: 0 0 5px;
        font-size: 7.5pt;
    }
    .visit-summary-page {
        .hierarchy ul li ul li.has-child {
            font-family: Arial, sans-serif;
            ul li {
                font-family: Arial, sans-serif;
                &.has-child {
                    font-family: Arial, sans-serif;
                }
            }
        }
    }
    h2.section-title {
        text-align: left;
        color: $black;
        font-size: 9.5pt;
        font-family: Arial, sans-serif;
        font-weight: bold;
        line-height: normal;
        padding: 0;
        margin: 0;
        border: 0;
        text-transform: uppercase;
        text-decoration: underline;
        background: none;
        [class^="fa-"] {
            display: none;
        }
        &.has-link {
            .title-link {
                text-decoration: none;
                border-bottom: 0;
            }
        }
    }
    .dashboard-section section.block.hierarchy .value-text-only {
        width: 40%;
        padding: 2px 5px;
    }
    .dashboard-section section.block.hierarchy .text-only {
        width: 100%;
        word-wrap: break-word;
        display: auto;
        padding-bottom: 5px;
    }
    table.history-diagnosis tbody .notes.inline-notes .left {
        display: none !important;
    }
    table.history-diagnosis .name {
        padding: 4px 0px 2px 10px;
    }
    section.block,
    .dashboard-section {
        border-radius: 0;
        border: 0;
        h2.section-title {
            text-align: left;
            color: $black;
            font-size: 9.5pt;
            font-family: Arial, sans-serif;
            font-weight: bold;
            line-height: normal;
            padding: 0;
            margin: 0;
            border: 0;
            text-transform: uppercase;
            text-decoration: underline;
            [class^="fa-"] {
                display: none;
            }
        }
        h2.encounter-info {
            text-align: left;
            color: $black;
            font-size: 9.5pt;
            font-family: Arial, sans-serif;
            font-weight: bold;
            line-height: normal;
            padding: 0;
            margin: 0;
            margin-top: 1%;
            border: 0;
            text-decoration: none;
            [class^="fa-"] {
                display: none;
            }
        }
        .form-field {
            border: 0;
            .time {
                display: none;
            }
        }
        .laborder-sub-heading {
            font-size: 9pt;
            font-weight: bold;
            border: none;
            padding: 0;
            background: none;
            .toggle-btn, [class^="fa-"], [class*=" fa-"] {
                display: none;
            }
        }
        table {
            border-collapse: separate;
            border: 0;
            margin: 0;
            padding: 0;
            height: auto;
            overflow: visible;
            &.printPrescription {
                margin-top: 10px;
                width: 100%;
                table-layout: fixed;
                border-collapse: collapse;
                -webkit-print-color-adjust: exact;
                tbody:nth-child(odd){
                    tr{
                        background:#EDEDED;
                    }
                }
                tr {
                    strong {
                        padding-left: 20px;
                        padding-bottom: 3px;
                    }
                }
                th {
                    padding-top: 6px;
                    padding-bottom: 4px;
                    &.sl-no-heading {
                        width: 8%;
                    }
                    &.drug-name-heading{
                        width: 30%;
                    }
                    &.dosage-instructions-heading{
                        width: 35%;
                    }
                    &.quantity-heading {
                        width: 15%;
                    }
                    &.start-date-heading {
                        width: 12%;
                    }
                    &.enc-sl-no-heading {
                        width: 10%;
                    }
                    &.enc-drug-name-heading{
                        width: 33%;
                    }
                    &.enc-dosage-instructions-heading{
                        width: 45%;
                    }
                    &.enc-start-date-heading {
                        width: 12%;
                    }

                }
                td {
                    padding: 5px 10px;
                    vertical-align: top;
                    &.inline-notes.notes {
                        padding-top: 0;
                    }
                    padding-bottom: 3px;
                    &:first-child {
                        padding-left: 14px;
                    }
                }
            }
            &.repeated-table {
                margin-bottom: 5px;
                &:last-child {
                    margin-bottom: 0;
                }
            }
            &.history-diagnosis .table-header {
                display: none;
            }
            thead {
                tr {
                    border: 0;
                    th {
                        border: 0;
                        font-size: 9pt;
                        font-weight: bold;
                        padding: 1px 5px;
                        color: $black;
                        background: none;
                        font-family: Arial, sans-serif;
                    }
                    .toggle-btn {
                        display: none;
                    }
                }
            }
            tbody {
                tr {
                    &, td, th {
                        border: 0;
                        font-size: 9pt;
                        padding: 0px 10px !important;
                        font-family: Arial, sans-serif;
                        text-align: left;
                    }
                    .name,
                    .drug,
                    .testUnderPanel {
                        width: 45%;
                    }
                    .value,
                    .dosage {
                        width: auto;
                    }
                    .value .is-abnormal {
                        font-weight: bold;
                        color: $darkGray !important;
                    }
                    .toggle-btn {
                        display: none;
                    }
                    .days {
                        min-width: 60px;
                    }
                }
            }
            .drug-discontinued {
                display: none;
            }
            &.h-scroll,
            &.pivot-table {
                border-collapse: collapse;
                tbody tr, thead tr {
                    padding: 0;
                    border: 0;
                    margin: 0;
                    td, th {
                        padding: 5px 10px;
                        border: 1px solid $lighterGray;
                        //border-right: 0;
                        font-size: 9pt;
                        vertical-align: top;
                        min-height: 18px;
                        height: 18px;
                        font-weight: normal;
                        span {
                            line-height: 1;
                            padding: 0;
                        }
                    }
                }
            }
        }
        .hierarchy ul li {
            &, ul li {
                border: 0;
                background: none;
                font-size: 9pt;
            }
            .testUnderPanel {
                width: 37%;
                padding-left: 0;
                .visit-start-date {
                    margin-right: 0;
                }
            }
        }
        .hierarchy ul ul ul {
            padding-left: 10px;
        }
        table.ipd-investigation-print {
            border-collapse: collapse;
            border-bottom: 1px solid $lighterGray;
            table-layout: fixed;
            font-size: 8pt;
            tbody tr, thead tr {
                th, td {
                    border: 1px solid $lighterGray;
                    border-width: 1px 1px 0 0;
                    display: table-cell;
                    font-weight: normal;
                    background: #fff;
                    height: 15px;
                }
            }
            tbody tr th,
            thead tr th:first-child {
                border-left: 1px solid $lighterGray;
                width: 38%;
            }
            span {
                &.range {
                    font-size: 8pt;
                }
                &.is-abnormal {
                    font-weight: bold;
                }
                &.ipd-test-results {
                    white-space: normal;
                    text-overflow: initial;
                    padding: 0px 5px;
                    border-right-color: $lighterGray;
                    display: inline-block;
                    float: left;
                }
            }
        }
    }
    .dashboard-patientInformation-section {
        table.patient {
            .value {
                width: auto;
            }
            .patient-img {
                display: none;
            }
            .patient-info td {
                background: none;
            }
            .patient-value {
                display: block;
                width: auto;
                float: left;
                padding-bottom: 2px;
                .patient-name {
                    font-size: 11pt;
                    text-decoration: underline;
                }
                .patient-gender-age {
                    font-size: 9pt;
                }
            }
            .address {
                .name {
                    display: none;
                }
            }
        }
    }
    .diagnosis-name.ruled-out {
        text-decoration: line-through;
    }
    .dashboard-radiology-section,
    .disposition-section,
    .radiology-investigations {
        ul {
            border: 0;
        }
        li {
            border: 0;
            a {
                padding: 1px 5px;
                font-size: 7.5pt;
            }
        }
    }
    .disposition-state {
        font-size: 10pt;
        .disposition-by {
            display: none;
        }
    }
    .dashboard-laborders-section table tr td {
        .date {
            display: none;
        }
        .value {
            width: 60%;
        }
    }
    .diagnosis table {
        .date, .toggle-btn {
            display: none;
        }
    }
    .notes {
        padding: 0px 5px 2px 20px;
        font-size: 8pt;
        background: none;
        color: #999;
        &.test-notes i[class^=fa-] {
            padding: 0;
            display: none;
        }
        &.print-notes {
            display: block !important;
        }
        pre,
        .content {
            color: #999;
            font-size: 8pt;
        }
        .footer-note .provider {
            display: none;
        }
    }
    .expander-row,
    .laborder-section li {
        padding: 0 5px;
    }
    .is-abnormal {
        color: $black !important;
        font-weight: bold !important;
    }
    button.toggle {
        display: none;
    }
    .visits-nav-bar {
        display: none; // Temporarily hidden.
        .prev-visit, .next-visit {
            display: none;
        }
        .visit-details {
            background: none;
            border: 0;
            font-family: Arial, sans-serif;
        }
        .visit-date {
            font-family: Arial, sans-serif;
        }
    }
    .ipd-treatment-section {
        display: none; // Hide the flowsheet which cant fit the A4 paper.
    }
    table.drug-order-table td.drug {
        border-left: 0 !important;
    }
    .fa {
        display: none !important;
    }
    .patient-info-fixed-postion-container {
        position:static;
        .patient-info-fixed{
            font-family: Arial, sans-serif !important;
        }
    }
    .patient-dashboard.visit {
        margin-top:15px;
    }
    .dashboard-sections-wrapper .dashboard-sections.halfpage-container{
        width: 100% !important;
        .LAYOUT_25_75{
            width:100%!important;
        }
        &.dashboard-sections-left{
            .LAYOUT_25_75{
                width:100%!important;
            }
        }
    }
    .dashboard-sections-wrapper .dashboard-sections.three-fourth-page-container{
        .LAYOUT_25_75{
            width:100% !important;
            float: left;
        }

        .LAYOUT_75_25{
            width: 100% !important;
        }
    }

    //Patient Monitoring Print Styles
    .patient-monitering-schedule-details li{
        width:auto;
        padding-right:10px;
        span{
            font-family: Arial, sans-serif;
            font-weight:bold;
        }
    }
    .patient-monitering-table {
        //height: 970px;
        //page-break-before: always;
        //page-break-after: always;
        //position: relative;
        //.rotate{
        //    transform: rotate(-90deg);
        //    position: absolute;
        //    margin-top: -440px;
        //    bottom: 0px;
        //    width: 880px;
        //    top: 50%;
        //    left: 50%;
        //    margin-left: -310px;
        //}
        .legends {
            font-family: Arial, sans-serif;
            span {
                padding-bottom: 11px;
                display: inline-block;
                &.monitoring-legends{
                    &--yellow:before{
                       content: "∅";
                    }
                    &--green:before{
                        content: "✓";
                    }
                    &--purple:before {
                        content: "✗";
                    }
                }
            }
        }

        .monitoring-table-scroll {
           width: 100%;
           margin-left:0;
           overflow: hidden;
           tr, td, th{
             page-break-inside: avoid !important;
             height:auto !important;
           }
           table tr {
               td,th{
                   font-size: 7pt;
                   padding: 5px 10px;

                   border: 1px solid $black !important;
                   &.monitoring-fixed-column{
                       position:static;
                       width:100px;
                       white-space: normal;
                       height:auto;
                   }
                   &.monitoring-results {

                       span{
                           margin-top: 50%;
                           transform: translateY(-50%);
                           text-align: center;
                           font-size: 12px;
                       }
                       &--green {
                           span.monitoring-results-print--green{
                               display: block;
                           }
                       }
                       &--purple {
                           span.monitoring-results-print--purple{
                               display: block;
                           }
                       }
                       &--yellow {
                           span.monitoring-results-print--yellow{
                               display: block;
                           }
                       }
                   }
               }
           }
        }

    }
}

.prescription-print {
    table tr {
        td, th {
            font-size: 9pt;
            min-width: 1.75cm;
        }
    }
    .patient-info {
        margin-bottom: 10px;
        td {
            font-weight: bold;
            .value {
                font-weight: normal;
            }
        }
    }
    .treatment-section {
        .drug-name, .dosage-days {
            width: 7cm;
        }
        .dosage-form span {
            float: left;
            margin-right: 5px;
            white-space: normal;
        }
    }
}
.dashboard-section{box-shadow: none}
.patient-gender-age, .patient-estimated-text, .patient-birth-time{
    display: none;
}

.treatment-section{
    .notes .footer-note{
        span{
            font-size: 10px;
            &.provider{
                display: inline-block !important;
                padding-bottom: 3px;
            }
        }
    }
}

#diagnosisComments{
    color: $black !important;
}



.print-patient-summary{
    &.print-wrapper{
      max-width: 100%;
    }
    .dashboard-section {
        margin-bottom: 0px;
        &.patientInformation{
            //border: 1px #ccc solid;
            //padding: 5px !important;
            table{
                border: none !important;
            }
        }
        .dashboard-tabular-obs-section.hasTable{
            height: 970px;
            page-break-before: always;
            page-break-after: always;
            &:last-child{
                //page-break-before: avoid;
            }
            position: relative;
            .rotate{
                transform: rotate(-90deg);
                position: absolute;
                margin-top: -470px;
                bottom: 0px;
                width: 940px;
                top: 50%;
                left: 50%;
                margin-left: -310px;
                table{
                    width: 100%;
                    table-layout: fixed;
                    word-break: break-all;
                    margin: 0;
                    padding:0 ;
                    tr{
                        th{
                            &:first-child{
                                width: 140px;
                            }
                        }
                    }
                }
            }
        }
        .block, .dashboard-tabular-obs-section, #Laboratory-Monitoring, .dashboard-more-info {
            margin: 0 0 25px;
        }
        .dashboard-patientInformation-section {
            table {
                /*td.name {
                    width: 27% !important;
                }*/
                tr, td, th{
                    border: none !important;
                }
                .patient-info{
                    .patient-value{
                        .patient-address {
                            display: inline-block;
                        }
                    }
                }
            }
        }
        h2.section-title{
            margin:0 0 3px !important;
            font-size: 13px !important;
        }
        .tabular-obs,.chronic-treatment, .dashboard-more-info .block{
            margin-top: 4px;
        }
        .hierarchy {
            ul{
                padding-left: 0 !important;
                li{
                    overflow: auto;
                    clear: none;
                    background: #fff;
                    .tree-list-item{
                        padding: 3px 5px !important;
                        &:first-child{
                            padding-top:0 !important;
                        }
                    }
                    ul{
                        overflow: hidden;
                        padding-left: 0 !important;
                        li{
                            &:nth-of-type(odd){
                                background: #fff;
                            }
                            &:nth-of-type(even){
                               background: #D9D8D8;
                            }
                            ul{
                                padding-left: 0 !important;
                                li{
                                    ul{
                                        li{
                                            padding-left: 10px !important;
                                            .tree-list-item{
                                                padding: 0px 5px 0px 0px !important;
                                            }
                                            &:nth-of-type(odd){
                                                background: #fff !important;
                                                ul{
                                                    li{
                                                        .testUnderPanel{
                                                            padding-right: 38% !important;
                                                        }
                                                        background: transparent !important;
                                                    }
                                                }
                                            }
                                            &:nth-of-type(even){
                                                background: #D9D8D8 !important;
                                                ul{
                                                    li{
                                                        padding: 0px 20% 0px 0px;
                                                        background: transparent !important;
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
            .value-text-only, .text-only{
                width: auto !important;
                padding: 0px 0px 0px !important;
                display:inline-block;
            }
            .testUnderPanel{
                //width: 65% !important;
                width: 484px !important;
                padding: 0px 0px 0px !important;
            }
            ul li ul li ul li ul li ul li ul li .tree-list-item {
            padding-left: 20px !important;
          }
        }
        .patient-info {
            table{
                border: 2px $darkerGrey solid !important;
                border-collapse: collapse !important;
                tr{
                    border: 2px $darkerGrey solid !important;
                    th{
                        background: #EAEAEA !important;
                        border: 2px $darkerGrey solid !important;
                        vertical-align: middle;
                    }
                    td{
                        background: #fff !important;
                        border: 2px $darkerGrey solid !important;
                        font-weight: bold;
                        span{
                            font-weight: normal;
                        }
                    }

                }
                &.h-scroll-print{
                    tr{
                        th{
                            font-weight: bold !important;
                        }
                    }
                }
            }
        }
        table{
            border: 1px $lightGray solid !important;
            border-collapse: collapse !important;
            tr{
                border: 1px $lightGray solid !important;
                th{
                    background: #EAEAEA !important;
                    border: 1px $lightGray solid !important;
                    vertical-align: middle;
                }
                td{
                    background: #fff;
                    border: 1px $lightGray solid !important;
                }
            }
        }
    }
    .dashboard-chronic-treatment-section .chronic-treatment .stopped{
        background: #fff !important;
    }
    .dashboard-sections-wrapper .dashboard-sections.three-fourth-page-container .LAYOUT_25_75{
        width:auto;
        float: none;
    }
    .dashboard-sections-wrapper .dashboard-sections.three-fourth-page-container .LAYOUT_75_25{
        width:auto;
        float: none;
    }
    .patient-info-fixed-postion-container{
        box-shadow: none;
        border-bottom: none;
        top: 65px;
        div.patient-info-fixed ul li.patient-name-image-container .patient-image[src*="blank-user"] {
            visibility: hidden !important;

        }

    }
    .dashboard-tabular-obs-section .tabular-obs table.tableAsColumn tr:first-child td{
        font-family: Arial, sans-serif !important;
        font-weight: bold;
    }
    .dashboard-section .hierarchy ul li ul li ul li ul li ul li ul li{
        padding-left: 0 !important;
    }
}

.is-abnormal-bold{
    font-family: Arial, sans-serif !important;
    font-weight: bold;
    color: #000 !important;
}

.registration-print-summary{
    .hierarchy {
        ul li{
            overflow:auto;
            clear:both;
        }
        .value-text-only, .text-only {
            width: 380px !important;
            float: right;
            padding: 2px 0 !important;
        }
    }
}

@media print {
    body {
        font-size: 20px;
    }
    .provider-info {
        font-size: medium;
        float: right;
        padding: 5px;
    }
    .sections-group {
        div div .section {
            margin-bottom: 30px;
        }
    }
}