@media print {
    .print-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 100px;
        /* Adjust as needed */
        background: white;
        z-index: 1000;
        /* Ensure it stays on top */
    }

    .print-content {
        margin-top: 120px;
        /* Adjust to avoid overlap with the header */
    }

    .print-content p {
        page-break-after: auto;
    }

        .scopbox{
                flex: 1;
                    display: flex;
                    flex-direction: column;
                    justify-content: center;
                    align-items: center;
                    text-align: center;
                    padding: 7px 11px;
                    border-radius: 8px;
            background-color: #EEFFFB;
            border: 1px solid #89FFE6;
            box-sizing: border-box;
        }

    @page {
        margin: 5mm 0 0 0;
        /* Adjust page margins as needed */
    }

    /* Ensure the header is repeated on each page */
    header {
        position: running(header);
    }

    body::before {
        content: element(header);
        display: block;
    }
}

@media print {
    .print-content {
        page-break-inside: avoid;
    }

    .page-break {
        page-break-before: always;
    }
}
::ng-deep body,
::ng-deep h1,
::ng-deep h2,
::ng-deep h3,
::ng-deep h4,
::ng-deep h5,
::ng-deep h6,
::ng-deep p,
::ng-deep button,
::ng-deep a,
::ng-deep label,
::ng-deep input {
    font-family: "Arial", sans-serif !important;
}
.page-header {
    gap: 15px;
    display: flex;
    align-items: center;
    width: 96%;
    padding-bottom: 1rem;
    padding: 18px 0 0 37px !important;
}

.page-header .text-end {
    width: 190px;
}


.page-header .text-center {
    text-align: end;
}

.page-header .text-end {
    text-align: end;
    margin-left: 50px;
}

.print-section {
    position: relative;
}

.leevs .greenleef {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48%;
}

.leevs .redleef {
    position: absolute;
    top: 0;
    right: 0;
    width: 48%;
}

.footersign {
    display: flex;
    align-items: last baseline;
    justify-content: space-between;
    position: absolute;
    width: 95%;
    margin: auto;
    bottom: 0;
    padding: 0 18px 35px;
}

.compony p {
    margin: 0%;
    color: #fff;
}

.authname h3 {
    margin: 0%;
}

.authname p {
    margin: 0%;
}

.row {
    display: flex;
    gap: 18px;
    justify-content: space-between;
}

.col-md-5 {
    width: 40%;
}

.col-md-7 {
    width: 60%;
}

/* .main-containt {
    padding: 40px;
    height: 29rem;
    display: flex;
    width: 80%;
    margin: auto;
    align-items: center;
} */

.main-containt {
    padding: 0rem 0px 9rem 40px;
    margin: 9rem auto 0;
    display: flex;
    width: 80%;
    align-items: center;
    border-left: 2px solid;
    /* Fallback for browsers that don't support border-image */
    border-left-width: 2px;
    border-left-style: solid;
    border-image: linear-gradient(to bottom,
            green 45%,
            red 15%) 1 100%;
}


.certifiction-left h3 {
    font-size: 2.7rem;
    font-weight: 700;
    line-height: 32px !important;
    text-transform: uppercase;
    margin: 0px 0px 0px 0px !important;

}

.gredenttext {
    background: linear-gradient(90deg, red, orange);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.certifiction-left p {
    font-size: 30.6px;
    font-weight: 400;
    line-height: 23px !important;
    text-transform: uppercase;
    margin: 12px 0px 0px 0px !important;
}

.ecoemernig {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 15px;
    margin: 3.5rem 0 1.6rem;
}

.ecoemernig img {
    width: 51%;
    border-right: 1px solid #878787;
    padding-right: 14px;
}

.ecoemernig p {
    font-size: 17.6px;
    font-weight: 500;
    font-style: italic;
    text-transform: uppercase;
    margin: 0;
    border-bottom: 2px solid red;
    margin-bottom: 0px;
}

.certifiction-left p span {
    color: #585858;
    font-size: 17px;
}

.certifiction-right p {
    color: #6e6e6e;
    font-size: 23px;
    margin: 8px 0px 24px 0px !important;
}

.certifiction-right h3 {
    color: #6e6e6e;
    font-size: 2.8rem;
    font-weight: 700;
    font-style: italic;
    margin: 0px 0px 24px 0px !important;
}

.responright {
    line-height: 0% !important;
    margin: 13px 0px -10px 0px !important;
}



/* gap report css  */

.card-body {
    padding: 0%;
}

.content {
    padding: 2.4rem 3rem 1rem 3rem;
    height: auto;
}

.page-header {
    justify-content: end;
    gap: 0px;
    width: 70%;
    margin: auto 10px auto auto;
}

.content h1 {
    font-size: 22px;
    font-family: "Arial", sans-serif !important;
    color: #373737;
    /* font-size: 10px; */
    margin: 0 0 12px 0px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.content p {
    /* font-size: 20px; */
    /* text-align: justify; */
    line-height: 34px;
    /* text-align: justify; */
    font-family: "Arial", sans-serif !important;
    color: #373737;
    font-size: 10px;
    font-style: normal;
    font-weight: 500;
    text-align: justify;
    line-height: normal;
}

.content .fs-14 {
    /* font-size: 18px; */
      font-size: 14px !important;
          line-height: 23px !important;
          font-weight: 500 !important;
          color: rgb(0, 0, 0) !important;
          font-family: Arial, sans-serif !important;
          overflow-wrap: break-word !important;
          hyphens: auto !important;

}

.content .fs-13 {
    font-size: 18px !important;
    color: #000 !important;
}

/* tr {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    text-align: justify;
} */

.lastcont {
    text-align: center;
}

.focuscard {
    display: flex;
    margin: 1rem 0 1rem 0;
    align-items: center;
    justify-content: space-between;
}

.cardcatg {
    text-align: center;
    padding: 12px 6px;
    height: 9rem;
    border: 1px solid #ddd;
    width: 6rem;
}

.cardcatg p {
    margin-top: 1rem;
}

.table {
    width: 100%;
    border-collapse: collapse;
}


th.scoretitle {
    text-align: center;
    border: 1px solid #000;
    width: 100%;
    margin-bottom: 1rem;
}

.finelscoretable tr {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gapthum {
    text-align: center;
    max-width: 240px;
    width: 200px;
}

.gaptext h4 {
    margin: 0%;
}

.generalbox {
    display: flex;
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    margin-bottom: 1rem;
}

.valuechainrow {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.valuechain {
    width: 320px;
    text-align: center;
}

.generalboxs {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.mainpagefirst {
    text-align: center;
}


/* 
.mainpagefirst {
    margin: 1rem 0;
    position: absolute;
    left: 0%;
    top: 46%;
    width: 100%;
    transform: translate(0%, -50%);
   
} */

.topbg {
    position: absolute;
    top: 0%;
    left: 0%;
}

.bottombg {
    position: absolute;
    bottom: 0%;
    right: 0%;
}

.mama {
    display: block;
    display: flex;
    width: 100%;
    padding: 0 1rem .6rem 1rem;
    gap: 0px;
    margin: 0rem 0 0rem auto;
    border-image: linear-gradient(to right, #F36816 50%, #009D48 50%) 1;
    border-bottom: 3px solid;
}


.bottomimgfix {
    text-align: end;
}

.pagebottom {
    /* position: absolute; */
    /* bottom: 0%; */
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    background: #FFD8C0;
    padding: 1px 20px;
    width: 98vw;
    margin-left: -30px;
}



.padingnumber {
    background-color: #009D48;
    padding: 0px 20px;
    color: #fff;
}


.padingnumber h1 {
    font-size: 18px;
}

.tablecont {
    display: flex;
    gap: 20px;
    align-items: center;
}

.tablecont h2 {
    margin: 1rem 0 20px 0;
    color: #373737;
    font-size: 32px;
    font-family: "Arial", sans-serif !important;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.status-no {
    display: inline-block;
    padding: 2px 12px;
    border: 2px solid #f37321;
    color: #f37321;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
}

.status-yes {
    display: inline-block;
    padding: 2px 12px;
    border: 2px solid green;
    color: green;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
}

.indexlist ol li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 18px 0 18px 0;
    color: #373737;
    font-family: "Arial", sans-serif;
    font-size: 18px;
    text-align: start;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.circle {
    /* width: 62px; */
    border-radius: 50%;
    margin: 0 auto 14px auto;
}

.info-card .circle {
    /* width: 62px; */
    /* height: 65px; */
    /* background-color: #ccc; */
    border-radius: 50%;
    margin: 0 auto 14px auto;
    /* margin-bottom: 0px; */
}

.info-card {
    flex: 1;
    text-align: center !important;
    padding: 0 8px;
}

.divider {
    width: 1px;
    height: 180px;
    background-color: #ddd;
}

.indexlist ul li {
    color: #373737;
    font-family: "Arial", sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    margin: 8px 0;
}

.indexlist ul {
    padding-left: 18px;
}

.indexlist ol {
    padding: 0%;
}

.eesign h4 {
    margin: 0px 0;
    color: #000;
    font-family: "Arial", sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.eesign p {
    color: #373737;
    font-family: "Arial", sans-serif;
    font-size: 10px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    margin: 0%;
}

.thankcertificate div {
    margin-left: 0% !important;
}

.cerfbox img {
    width: -webkit-fill-available !important;
}



::ng-deep .info-container {
    align-items: start !important;
    padding: 14px  16px !important;
}

::ng-deep .info-container img {
    width: 32px;
    height: 32px;
}

::ng-deep .info-container .info-card p {
    color: #8E8E8E;
    font-size: 13px !important;
    margin: 5px 0 -5px 0;
    line-height: 1.4;
}

::ng-deep .info-container .info-card span {
    font-weight: 600;
    font-size: 15px !important;
}

::ng-deep .info-container .divider {
    width: 1px;
    height: 120px !important;
    background-color: #ddd;
}

::ng-deep .scopbox {
    padding: 4px !important;
}

::ng-deep .scopbox .heading {
    font-size: 12px !important;
    margin: 0 0 2px 0 !important;
    line-height: 14px !important;
}

::ng-deep .scopbox p {
    line-height: 13px !important;
    font-size: 11px !important;
}

::ng-deep .ddh {
    padding: 12px !important;
}

::ng-deep .avbpolicy {
    padding: 3px 6px !important;
}

::ng-deep .policybox p {
    margin: 0% !important;
    font-size: 14px !important;
        padding: 4px;
}

::ng-deep .flexallpoliy {
    gap: 4px !important;
}

::ng-deep .environmentdashboard {
    padding: 12px !important;
}

::ng-deep .environmentdashboard h3 {
    margin-bottom: 0px !important;
}

::ng-deep .environmentdashboard .flexboxclass {
    align-items: center !important;
    justify-content: space-between !important;
    display: flex !important;
    margin-top: 11px;
}

::ng-deep .environmentdashboard .flexboxclass img {
    height: 80px !important;
    width: 80px !important;
}

::ng-deep .msmebox {
    padding: 8px !important;
}

::ng-deep .msmebox p {
    font-size: 11px !important;
    line-height: 13px !important;
}

::ng-deep .msmebox h6 {
    font-size: 16px !important;
    margin: 0 0 1px 0 !important;
}

::ng-deep .donut-grid {
    justify-content: center !important;
}

::ng-deep .flexsatyty {
    display: flex;
    gap: 4px;
}
::ng-deep .flexsatyty .saftybox {
    display: flex;
    gap: 30px;
    border-radius: 8px;
    background: #F9FAFB;
    width: fit-content;
    padding: 10px 16px;
    margin: 0 0 0rem 0;
    background: linear-gradient(#fff, #fff) padding-box, linear-gradient(to right, #D38A2C, #009D7C) border-box !important;
    border: 1px solid transparent !important;
}
::ng-deep  .saftybox h6{margin: 0 !important; font-weight: 500 !important; font-size: 11px !important; }
::ng-deep  .saftybox p{margin: 0 !important; font-size: 12px !important;}

::ng-deep .scoretable h2 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px 0 !important;
}
::ng-deep .scoretable p {
    margin: 0 0 8px 0;
}
::ng-deep  .innerdotborder{
    padding: 14px;
        border: 1px dotted #F36816;
}

::ng-deep  .group-cell {
  background-color: #fef1e6 !important;
  font-weight: bold;
  text-align: center;
  vertical-align: middle;
  padding: 10px;
  color: #000;
  border: 1px solid #ddd;
  font-size: 13px;
}

#chart-container{
     width: 83%;
        margin-top: 1rem !important;
        padding: 39px;
        max-width: 441px;
        margin: 2rem auto !important;
        border: 2px solid #E0DFDF;
        filter: drop-shadow(4px 4px 20px rgba(0, 0, 0, 0.10));
}

.generalchar{
    border: 2px solid #E0DFDF;
        filter: drop-shadow(4px 4px 20px rgba(0, 0, 0, 0.10));
}



.thankcertificate h2 {
    margin: 1rem 0;

    color: #000;
    font-family: "Arial", sans-serif !important;
    font-size: 20px !important;
    font-style: normal;
    font-weight: 900;
    line-height: normal;
}

.thankcertificate p {
    margin-bottom: 1rem;
    color: #373737;
}

.eesign {
    margin-top: 4rem;
}

.mainpagefirst img {
    margin: auto;
    width: 50%;
}

.mama .text-end {
    width: 95%;
    text-align: end;
}

.mainpagefirst h5 {
    font-size: 20px;
    line-height: 30px;
    margin: 4rem 0 7rem 0;
    color: #373737;
}

.marginziro div {
    margin-left: 0% !important;
    display: block !important;
}

.marginziro {}

.mainpagefirst h2 {
font-size: 54px;
    font-weight: 400;
    border-bottom: 12px solid #F36014;
    width: fit-content;
    padding: 0 0 25px;
    text-align: center;
    line-height: 80px;
    /* text-align: justify; */
}

*{
    color: #000 !important;
}

.mainpagefirst h4 {
    font-size: 56px;
    font-weight: 400;
    margin: 2rem 0 0 0;
    line-height: 70px;
}

.mainfirstpage {
    display: flex;
    flex-direction: column;
    height: 100% !important;
}

/* .yearreport {
    margin: 1rem 0;
    position: absolute;
    left: 6.2%;
    bottom: 3%;
    transform: translate(0%, -50%);
} */

.yearreport h4 {
    font-size: 54px;
    font-weight: 400;
    margin: 20rem 0 0 0;
    text-align: justify;
}

.yearreport h2 {
    font-size: 40px;
    text-transform: uppercase;
    margin-top: 2rem;
    font-weight: 600;
    line-height: 46px;
    text-align: justify;
    margin: 1rem 0 0 0;
}

.info-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 36px 16px;
    border: none;
    border-radius: 8px;
    border: 1px solid #E0DFDF;
    border: 1px solid #E0DFDF;
    box-shadow: none;
    filter: drop-shadow(4px 4px 20px rgba(0, 0, 0, 0.10));
}

.circle {
    /* width: 62px; */
    /* height: 65px; */
    /* background-color: #ccc; */
    border-radius: 50%;
    margin: 0 auto 14px auto;
    /* margin-bottom: 0px; */
}

.circle>p {
    font-size: 18px;
}

.info-card {
    p {
        color: #8E8E8E;
        font-size: 13px;
        margin: 5px 0 -5px 0;
        line-height: 1.4;
    }

    span {
        font-weight: 600;
        font-size: 15px;
    }
}

.info-card p a {
    font-size: 10px;
    color: #55A5FB;
    text-decoration: none;
}

.info-card {
    flex: 1;
    text-align: center;
    padding: 0 8px;
}

.divider {
    width: 1px;
    height: 140px;
    background-color: #ddd;
}

.mainbody {
    /* width: 595px; */
    width: 906px;
    margin: auto;
}

.profilethumb {
    display: flex;
    align-items: center;
    gap: 15px;
}

.scoretab table tr th {
    background: #000;
    color: #fff;
    padding: 16px 24px;
}

.scoretab {
    margin-top: 1.5rem;
}

.scoretab table tr td {
    color: #000;
    text-align: justify;
    border: 1px solid #ddd;
    padding: 16px 24px;
}

.scoretab table tr>td:first-child {
    background-color: #FFF6ED;
    vertical-align: middle;
}

.gap-container {
    padding: 14px;
    border: 1px solid rgba(128, 128, 128, 0.664);
    background-color: whitesmoke;
    display: flex;
}

.first-gap {
    flex: 1;
    border-left: 1px solid rgba(128, 128, 128, 0.664);
}

.second-gap {
    flex: 1;
    border-left: 1px solid rgba(128, 128, 128, 0.664);
}

.general-score {
    border-radius: 10px;
    background: #FFEFE0 !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
}

.fextbottom {
    display: flex;
    flex-direction: column;
    vertical-align: bottom;
    height: 922.5196850393702px;
    justify-content: end;
}

.general-score h3 {
    margin: 0%;
    font-size: 18px;
    font-weight: 600;
    color: #F36816;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 8px;
    vertical-align: top;
}

thead {
    display: table-header-group;
    /* Ensures table headers repeat on every page */

    background: #000;
}

tbody tr {
    page-break-inside: avoid;
    /* Prevent row break between pages */
}

.table {
    font-size: 14px;
}



@media print {
      .apexcharts-legend {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    background: white !important;
  }
  .apexcharts-legend-text {
    color: #000 !important;
  }
    app-brsr-core-dashboard {
        display: block !important;
        /* Ensure the component is visible */
        position: static !important;
        /* Avoid absolute positioning */
        width: 100% !important;
        overflow: visible !important;
    }


    /* Ensure tables inside the component are styled for print */
    app-brsr-core-dashboard table {
        width: 100%;
        border-collapse: collapse;
        page-break-inside: auto;
        /* Allow tables to break across pages */
    }

    app-brsr-core-dashboard th,
    app-brsr-core-dashboard td {
        /* Ensure borders are visible */
        padding: 8px;
        font-size: 12pt;
        /* Readable font size for print */
        text-align: justify;
    }

    /* Hide non-essential elements during print */
    .addbutton,
    .btn {
        display: none !important;
        /* Hide the print button */
    }

    .general-score {
        border-radius: 10px !important;
        background: #FFEFE0 !important;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 24px;
    }
}

.newstilefont p {
    /* line-height: 34px; */
    /* font-family: "Arial", sans-serif !important; */
    /* font-family: "Arial", sans-serif !important;
    color: #373737 !important;
    font-size: 13px !important;
    font-style: normal !important;
    font-weight: 500 !important;
    line-height: normal !important; */

    font-size: 14px !important;
        line-height: 23px !important;
        font-weight: 500 !important;
        color: rgb(0, 0, 0) !important;
        font-family: Arial, sans-serif !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
}

.newstilefont h2 {
    font-size: 18px;
    font-family: "Arial", sans-serif;
}



/* Remove Safari PDF background + shadow from ApexCharts */
.apexcharts-canvas svg {
  background: transparent !important;
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}

.apexcharts-canvas foreignObject {
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
}

.apexcharts-legend,
.apexcharts-title-text {
  background: transparent !important;
}


/* @media print {
  [appNormalizeText],
  [appNormalizeText] * {
    font-size: 14px !important;
    line-height: 23px !important;
    font-weight: 600 !important;
    color: #000 !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
  }

  [appNormalizeText] ul,
  [appNormalizeText] ol {
    padding-left: 0 !important;
    margin: 10px 0 !important;
  }

  [appNormalizeText] li {
    position: relative !important;
    padding-left: 20px !important;
    margin: 4px 0 !important;
  }

  [appNormalizeText] li > span:first-child {
    position: absolute !important;
    left: 0 !important;
    color: #000 !important;
    font-weight: bold !important;
  }

  [data-print-fontsize]      { font-size: attr(data-print-fontsize) !important; }
  [data-print-lineheight]    { line-height: attr(data-print-lineheight) !important; }
  [data-print-fontweight]    { font-weight: attr(data-print-fontweight) !important; }
  [data-print-color]         { color: attr(data-print-color) !important; }
} */


@media print {
  /* 1. Pehle sab kuch reset kar do (strong, headings, b ko bhi) */
  [appNormalizeText],
  [appNormalizeText] * {
    font-weight: 400 !important;
  }

  /* 2. Ab jo chahiye wo laga do — ab ye guaranteed lagega */
  [appNormalizeText],
  [appNormalizeText] * {
    font-size: 14px !important;
    line-height: 23px !important;
    font-weight: 600 !important;
    color: #000 !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    hyphens: auto !important;
  }

  /* 3. Strong, b, headings, th ko bhi force 600 kar do (triple protection) */
  [appNormalizeText] strong,
  [appNormalizeText] b,
  [appNormalizeText] h1, [appNormalizeText] h2, [appNormalizeText] h3,
  [appNormalizeText] h4, [appNormalizeText] h5, [appNormalizeText] h6,
  [appNormalizeText] th {
    font-weight: 600 !important;
  }

  /* 4. data-print attributes — Chrome/Edge PDF mein ye sabse reliable hote hain */
  [data-print-fontsize]      { font-size: attr(data-print-fontsize) !important; }
  [data-print-lineheight]    { line-height: attr(data-print-lineheight) !important; }
  [data-print-fontweight]    { font-weight: attr(data-print-fontweight) !important; }
  [data-print-color]         { color: attr(data-print-color) !important; }

  /* 5. Lists ko clean aur safe banao */
  [appNormalizeText] ul,
  [appNormalizeText] ol {
    padding-left: 0 !important;
    margin: 10px 0 !important;
    list-style: none !important;
  }

  [appNormalizeText] li {
    position: relative !important;
    padding-left: 20px !important;
    margin: 4px 0 !important;
    page-break-inside: avoid;
  }

  /* Bullet for <ul> */
  [appNormalizeText] ul > li::before {
    content: "•";
    position: absolute !important;
    left: 0 !important;
    font-weight: 600 !important;
    color: #000 !important;
  }

  /* Numbering for <ol> */
  [appNormalizeText] ol {
    counter-reset: item;
  }
  [appNormalizeText] ol > li {
    counter-increment: item;
  }
  [appNormalizeText] ol > li::before {
    content: counter(item) ".";
    position: absolute !important;
    left: 0 !important;
    font-weight: 600 !important;
    color: #000 !important;
  }
}


@media print {
  [data-print-fontweight]    { font-weight: attr(data-print-fontweight) !important; }
  [data-print-fontsize]      { font-size: attr(data-print-fontsize) !important; }
  [data-print-lineheight]    { line-height: attr(data-print-lineheight) !important; }
  [data-print-color]         { color: attr(data-print-color) !important; }
}