﻿@media print {
    #content{
        font-size:16px;

    }

    footer, .page-break, footer.page-break {
        display: block;
        /*page-break-before: always;*/

    }
    .colending-wrapper h2 {
        color: #f26522;
        border-color: #f26522;
    }
    #mainNav {
        padding: 10px;

    }
    .card .padding .mr-bottom{
        margin-top:70px;
    }

    section.sanction-letter h4, .print-view.sanction-letter h2 {
        font-size: 16px;
        font-weight: 700;
        border-bottom: 1px solid #f26522 !important;
        padding: 10px 0;
        color: #f26522 !important;
    }

    .col-md-4 {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 33.333333%;
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    .col-md-3 {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 25%;
        flex: 0 0 25%;
        max-width: 25%;
    }

    .table th {
        color: #000;
        font-weight: 900;
        background: #ebf4ff !important;
    }

    .colending-wrapper .table th {
        background: #f2652221 !important;
    }

    .colending-wrapper .title-n-popup h3 {
        color: #fff !important;
        padding: 15px;
        border-radius: 10px;
        border-bottom: 0;
        background: rgb(242,101,34) !important;
        background: linear-gradient( 90deg, rgba(242,101,34,1) 0%, rgba(251,205,183,1) 50%, rgba(255,255,255,1) 100%, rgba(255,255,255,1) 100%) !important;
    }

    #btnPrint, #preloader, .edit1, .edit {
        display: none;
    }

    .colending-wrapper .table th {
        background: #f2652221 !important;
    }

    .table thead th {
        background: #ebf4ff !important;
    }

    a.navbar-brand.logo-wrap {
        background: #00194c;
        width: 100%;
        padding: 0;
        margin: 0;
        display: flex;
    }

        a.navbar-brand.logo-wrap img {
            width: 150px;
        }

    .pdftitle {
        background: #ff8500;
        padding: 10px;
        color: #fff;
        font-weight: 600;
    }

    .table-primary, .table-primary > td, .table-primary > th {
        background-color: #b8daff !important;

    }

    .row {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        margin-right: -15px;
        margin-left: -15px;
    }

    .col-sm-4 {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 33.333333%;
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    .img-fluid {
        background: #00194c;
    }

    .avg-card {
        box-shadow: 0 0 1px 1px #f1f1f1;
        padding: 10px 0;
        margin: 0 0px 15px;
    }

    .col-md-3 {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 25%;
        flex: 0 0 25%;
        max-width: 25%;
    }

    .print-d-none {
        display: none;
    }

    .table {
        width: 100% !important;
    }
    a.navbar-brand.logo-wrap {
        background: #00194c !important;
        padding:10px;
    }
    .page-break {
        page-break-before: always ;

    }
    
    .print-d-cell {
        display: table-cell !important
    }

    td .card.padding .d-flex {
        display: block !important;
    }


    .hidden {
        display: table-cell !important;
    }

    td .card.padding .form-group.form-cell, td .card.padding .table {
        width: 100%;

    }

    #Div_Statement .print-d-block {
        column-span: all
    }

    body{
        font-size:14px !important;
        font-family:Arial !important;

    }
    .table td, .table th {
        font-size: 14px;
        padding: 10px;
    }
    .btnPrintStats btn btn-primary{
        display: none;
    }
    .colending-header.bg-dark {
        position: fixed;
        z-index:auto;
    }
    .colending-footer{
        display:none;
    }
    nav#mainNav {
        display: none;
    }

    button,.btn, .nav-tabs {
        display: none !important;
    }
    .img_pdflogo{
        background:#00194c !important;
        padding:10px;
        width:200px;
    }
    .text-end{
        text-align:right
    }
    .text-end img{
            display:block;
            margin-left:auto
        }
    .csaprint td {
        font-size: 11px !important
    }
    .colending-header.bg-dark{
        display:none
    }
    .content-wrapper{
        padding-top:0;
    }
    a.navbar-brand.logo-wrap.printlogo {
        background: #ffff !important;
        margin: 0;
        padding: 0;
    }
    .no-print {
        display: none !important;
    }

    
    #ornamentstbl td {
        vertical-align: top;
        word-wrap: break-word;
        white-space: normal;
    }

    #ornamentstbl tr {
        page-break-inside: avoid;
    }

   /*new css*/
    @page {
        size: auto; /* auto is the initial value */
        /* this affects the margin in the printer settings */
        margin: 25mm 25mm 25mm 25mm;
    }

    @page {
        size: A4;
        margin: 15mm 15mm 15mm 15mm;
    }
    .p-0{
        padding:0!important
    }
    #printarea {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
        overflow: visible !important;
        font-size: 12px!important;
    }

        #printarea table {
            width: 100% !important;
            max-width: 100% !important;
            table-layout: fixed !important;
            word-wrap: break-word !important;
            font-size: 12px !important;
        }
        #printarea table th,td{
            font-size: 12px !important;
        }

    .table-responsive {
        overflow: visible !important;
        overflow-x: visible !important;
    }

    .kfstbl {
        width: 100% !important;
        max-width: 100% !important;
        table-layout: fixed !important;
        border-collapse: collapse !important;
    }

        .kfstbl tr {
            page-break-inside: avoid !important;
        }

        /* Force clean word wrapping and drastically drop font sizing */
        .kfstbl th,
        .kfstbl td {
            font-size: 12px !important;
            line-height: 1.2 !important;
            padding: 4px !important;
            overflow: visible !important;
            word-wrap: break-word !important;
            white-space: normal !important;
            vertical-align: top !important;
        }

            /* Manually calibrate relative grid columns to completely prevent dynamic text squishing */
            .kfstbl td:nth-child(1) {
                width: 5% !important;
            }
            /* Sr No Column */
            .kfstbl td:nth-child(2) {
                width: 30% !important;
            }
            /* Parameter Label Column */
            .kfstbl td:nth-child(3) {
                width: 25% !important;
            }
            /* Account No Data */
            .kfstbl td:nth-child(4) {
                width: 20% !important;
            }
            /* Loan Type Static Label */
            .kfstbl td:nth-child(5) {
                width: 20% !important;
            }
            /* Loan Type Dynamic Data */

            /* Allow spanning cells to naturally take up full width instead of breaking grid lines */
            .kfstbl td[colspan] {
                width: auto !important;
            }
}
