﻿.Desktop-filepreview-sec {
    display: flex;
    overflow:hidden;
    width: 100%;
    height: 100%;
    /*for mobile scrolling */
    -webkit-overflow-scrolling: touch;
}
.d-filepreview {
    flex: 3;
    padding: 10px;
    box-sizing: border-box;

    height: 100%; /* Ensure that the d-filepreview takes full height */
    overflow:hidden; 
}
.filepreview {
    display: flex;
    justify-content: center;
    height: 100%;
    width: 100%;

}
.disablefilepreview-sec {
    display: flex;
    justify-content: center;
    align-items: center;
    color: grey;
    height: 470px
}
.download-sec {
    flex: 0.7;
}
.d-downbtn {
    padding: 10px;
    box-sizing: border-box;
    border-left: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    height: 462px;
    width: 100%;
}

.main-div-sm {
    display: flex;
    flex-direction: column;
    width: 100%;
    display: none
}
.download-btn-sec {
    display: flex;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}
.file-preview-sec {
    display: flex;
    justify-content: center;
    height: 300px;
    padding: 10px
}
.mob-previewdisabled {
    display: flex;
    justify-content: center;
    align-items: center;
    color: grey;
    height: 300px;
}
.footer-sec-sm {
    display: flex;
    justify-content: start;
    box-sizing: border-box;
    border-top: 1px solid #ccc;
    padding: 10px;
}


#officeviewer {
    display: none;
    width: 100%;
    height:585px;
}
@media (max-width:768px){
    #officeviewer{
        height:350px;
    }
}


#filepreview-downloadbtn-card {
    width: 100%;
    max-height: 700px;
    overflow-y: auto;
    
}


#pdfviewer {
    display: none;
    width: 100%;
    /* height: 100%;*/
    max-height: 700px;
    /*    max-width:100vw;*/
    overflow-y: auto;
    overflow-x:auto;
    padding: 10px;
    /*   padding: 10px;*/
    box-sizing: border-box;
    background-color: dimgrey;
    /*    overflow-y: scroll;*/
}

#imageviewer {

    max-height:80vh;
    object-fit: contain;
    max-width: 100%;
    height: auto;
}

#imagediv {
    display: flex;
    justify-content: center;
    width: 100%;
    align-items: center;
    margin: 0 auto;
}

/*#imagediv {*/
    /*    display: flex;
    justify-content: center;
    width: 100%;
    align-items: center;
    margin: 0 auto;*/
    /*min-height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;*/
    /*    max-height: 100%;
    overflow-y: auto;*/
/*}*/
@media (max-width: 768px) {
/*     Styles for screens smaller than or equal to 768px 
*/    
    #imagediv {
        max-width: 100%;
    }
}



#errorsec {
    display: none !important;
    display: flex;
    justify-content: center;
    align-items: center;
    color: grey;
    height: 470px;
    
}
#loadingsec {
    display: flex;
    justify-content: center;
    align-items: center;
    color: grey;
    height: 470px;
    position: relative;
}
#officeviewerMob{
  display:none;
  width:100%;
  margin-bottom:10px;
}
#pdfviewerMob{
    display:none;
    width:100%;
    margin-bottom:10px;
}
#imageviewerMb {
    display: none;
    width: 100%;
    margin-bottom: 10px;
}
#loadingsecMob {
    display: flex;
    justify-content: center;
    align-items: center;
    color: grey;
    height: 300px
}
#errorsecMob {
    display: none !important;
    display: flex;
    justify-content: center;
    align-items: center;
    color: grey;
    height: 300px
}
.mt-custom-download-btn{
    margin-top:15px !important;
}
/*loader style*/
.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    animation: spin 2s linear infinite;
    position: relative;
}
.progress-text {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
}
.progress-text p {
    font-weight: bold;
    font-size: 16px;
    color: grey;
    margin: 0; 
}
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}