
#pdfWrapper {
    width: 800px;
    padding: 40px;
    font-family: Arial, sans-serif;
}

.pdf-header-row {
    display: flex;
    justify-content: space-between; /* title left, logo right */
    align-items: center;
    margin-bottom: 20px;
}


.pdf-title {
    color: #B4500F;
    margin: 0;
    font-size: 32px;
    text-align: left;
}

.pdf-header-logo-right {
    width: auto;
    height: 96px;
    margin-right: 10px;  
}

.pdf-subtitle {
    font-size: 14px;
    color: #B4500F;
    margin-bottom: 0px;
    margin-top: 20px;
    text-align: left;
}

.pdf-line {
    border: none;
    border-top: 2px solid #B4500F;
    margin: 10px 0 0 0;
    width: 100%;
}

.pdf-info-box {
    background-color: #f2f2f2;
    padding: 15px 20px;
    border-radius: 5px;
    font-size: 14px;
    color: #333;
    margin-top: 10px;
    margin-bottom: 10px;
    width: 49%;
    float: left;
    box-sizing: border-box;
}

.pdf-info-right {
    width: 49%;
    float: right;
    margin-right: 0;
}

.pdf-info-box2 {
    clear: both;
    background-color: #f2f2f2;
    padding: 15px 20px;
    border-radius: 5px;
    font-size: 14px;
    color: #333;
    margin-top: 10px;
    width: 100%;
    box-sizing: border-box;
}

.pdf-info-box3 {
    background-color: rgba(180, 80, 15, 0.2);
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 12px;
    text-align: center;
    color: #333;
    margin-top: 10px;
    width: 49%;
    float: left;
    box-sizing: border-box;
}

/* Full-width titles for DEM and Hydro maps */
.pdf-info-box8 {
    background-color: rgba(180, 80, 15, 0.2);
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 12px;
    text-align: center;
    color: #333;
    margin-top: 10px;
    width: 100%;            /* full width of parent */
    box-sizing: border-box;
}

.pdf-info-box3.pdf-info-right {
    width: 49%;
    float: right;
    margin-right: 0;
}

.pdf-map-wrapper {
    position: relative;
    width: 49%;  
}

.pdf-map-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.pdf-map-overlay1 {
    position: absolute;
    top: 20px; 
    left: 20px; 
    height: auto;
}

.pdf-map-overlay2 {
    width: 350px; 
    height: 350px; 
    margin-top: 0px;
    object-fit: contain;
}

.pdf-map-image { 
    width: 350px;
    height: 350px;   
    margin-top: 0px;
    object-fit: contain;
}

.pdf-hist-image {
    height: auto;
    margin-bottom: 100px;
    object-fit: contain;
}


.avoid-break {
    page-break-inside: avoid;
    break-inside: avoid;
    display: block;
}


.pdf-info-box4 {
    clear: both;
    background-color: #f2f2f2;
    padding: 15px 20px;
    border-radius: 5px;
    font-size: 14px;
    color: #333;
    margin-top: 35px;
    width: 100%;
    box-sizing: border-box;
}


.pdf-page-text {
  text-align: right;
  font-size: 8px;
  margin-right: 10px; 
  color: #555;
}

.pdf-page-text2 {
  text-align: right;
  font-size: 8px;
  margin-right: 10px; 
  margin-top: 95px;
  color: #555;
}




.pdf-table {
    float: none;
    margin-top: 0px;
}

.pdf-map-row {
    gap: 10px;
    margin-top: 0px;
}


.pdf-map-row.tables-row {
    margin-top: -30px;
}

.pdf-table th,
.pdf-table td {
    border: 0px solid #999;
    background-color: #f2f2f2;

    padding: 0px;
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 12px;
    margin-top: -30px;
}

.pdf-table th {
    background-color: #f2f2f2;
    color: #333;
}

.pdf-info-box5 {
    clear: both;
    background-color: #ffffff;
    padding: 15px 20px;
    font-size: 10px;
    color: #000000;
    margin-top: 10px; 
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    font-weight: bold;
}


.pdf-info-box6 {
    clear: both;
    background-color: #ffffff;
    padding: 15px 20px;
    font-size: 10px;
    color: #000000;
    margin-top: 0px;
    width: 100%;
    box-sizing: border-box;
}

#loadingOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 20000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-family: Arial, sans-serif;
    color: #333;
    font-size: 18px;
    text-align: center;
}

#loadingOverlay.show {
    display: flex;
}

#loadingOverlay img {
    width: 80px;
    height: auto;
    margin-bottom: 20px;
}

.pdf-map-fullwidth-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px 0;
}

.pdf-map-fullwidth1 {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  padding-left: 23px;
  padding-right: 7px; 
  /*border: 1px solid #ccc;*/
  /*border-radius: 8px;*/
  /*box-shadow: 0 0 8px rgba(0,0,0,0.1);*/
}


.pdf-map-fullwidth {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  /*border: 1px solid #ccc;*/
  /*border-radius: 8px;*/
  /*box-shadow: 0 0 8px rgba(0,0,0,0.1);*/
}
