font-face {
    font-family: 'Palatino';
    src: url('../fonts/Palatino-Roman.woff') format('woff'),
         url('../fonts/Palatino-Roman.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}
.pdf_contact-header h2,.pdf-contact-close span{
    color: white!important;
}
.restricted {
    /* display:none!important; */
    opacity: 0.5;
}
.restricted .pdf-item-link{
    /* pointer-events: none; */
    /* cursor: default; */
}
.pdf-unread-filter-wrapper label{
    border-color:#CECECC!important;
}
.pdf-unread-filter-wrapper>label:has(>input[type="checkbox"]:checked){
    background-color: #CECECC!important;
    color: black!important;
}
body {
    font-family: 'Arial', sans-serif;
}
/* Styles for the PDF list and submission form */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

main * {
    font-family: "Arial", serif!important;
}
h1, h2, h3, h4, h5, h6 {
    font-family: "Arial", serif!important;   
    font-weight: 600!important; 
}
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined'!important;
}
:root {
    --regular: 18px;
    --small: 14px;
    --large: 22px;
}

#users-wph-profile-popup{
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    position: fixed;
    background: white;
    z-index: 9999;
}
.users-overlay{
    backdrop-filter: blur(5px);
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
}
/* .pdf-header_content .menu-logo span::before {
    content: "";
    width: 75%;
    height: inherit;
    position: absolute;
    top: 10px;
    border-radius: 2px;
    background-color: inherit
} */
.pdf-mobile-menu-container.opened{
    display: flex!important;
}
.notificaciones,.pdf-mobile-menu {
    position: relative;
    cursor: pointer;
}
.pdf-desktop-menu{
    display: flex;
    gap: 5px;
}
.notifications-dropdown {
    padding-top: 30px;
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    -webkit-box-shadow: 0px 40px 21px -30px rgba(0, 0, 0, 0.34);
    -moz-box-shadow: 0px 40px 21px -30px rgba(0, 0, 0, 0.34);
    box-shadow: 0px 40px 21px -30px rgba(0, 0, 0, 0.34);
    border-top: 0;
    z-index: 1000;
    padding: 10px;
}

.notifications-dropdown ul {
    width: max-content;
    max-width: 300px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.notifications-dropdown li:first-child {
    border-top: 0;

}

.notifications-dropdown li {
    text-align: center;
    padding: 5px;
    border-top: 1px solid #CFCFCd;
}

.notifications-dropdown li a {
    text-decoration: none;
    color: #333;
}
    .pdf-header_content .menu-logo .burger {
    width: 30px;
    display: flex;
    align-items: center;
}

/* .pdf-header_content .menu-logo span::after {
    width: 125%;
    content: "";
    height: inherit;
    position: absolute;
    top: -10px;
    border-radius: 2px;
    background-color: inherit
} */

.pdf-loader-text span {
    font-size: calc(8vw + 1rem) !important;
}

.pdf-loader-text {
    color: #333333;
    z-index: 9999999;
    text-align: left;
}
.pdf-manage-users span{
    font-size: 38px!important;
    color: black;
}
.pdf-header_content .menu-logo .logo img {
    width: 120px;
    padding-block: 20px;

}

.pdf-header_content .menu-logo .logo {}

.pdf-header_content .menu-logo {
    gap: 20px;
}

/* .pdf-header_content .menu-logo span {
    width: 30px;
    height: 3px;
    background-color: #333333;
    border-radius: 2px;
    display: block;
    position: relative;
}
 */


.pdf-header_content {
    margin: auto;
    max-width: 1140px;

    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

#pdf-loading-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background-color: white;
    z-index: 9999;
    transition: transform 1s ease-in-out;
}

#pdf-loading-overlay.hidden {
    transform: translateY(-100%)
}

.pdf-header {
    border-bottom: 2px solid #CFCFCF;
    box-sizing: border-box;
    width: 100%;
    padding-inline: 24px;
}

.pdf-header .menu-logo {
    align-items: center;
    display: flex;
    flex-direction: row;
}

.pdf-header .menu {
    gap: 10px;
    align-items: center;
    display: flex;
    flex-direction: row;
}

* {
    box-sizing: border-box;
}

p,
a,
li,
span,
button {
    font-size: var(--regular) !important;
    line-height: calc(var(--regular) + 5px);
}

.pdf-attributes {
    margin-top: 5px;
    font-size: 0.9em;
    color: #555;
}

#pdf-submission-form {
    margin-top: 20px;
}

#pdf-submission-form label {
    display: block;
    margin-bottom: 5px;
}

#pdf-submission-form input[type="text"],
#pdf-submission-form select,
#pdf-submission-form input[type="file"] {
    width: 100%;
    max-width: 400px;
    margin-bottom: 15px;
}

#pdf-submission-form input[type="submit"] {
    color: #fff;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
}

#pdf-submission-form input[type="submit"]:hover {
    background-color: #005177;
}

/* Styles for the PDF archive page */

.pdf-search-bar {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.pdf-search-bar input[type="text"] {
    flex-grow: 1;
    border-radius: 20px;
    border: none;
    background-color: #f5f5f5;
    width: 100%;
    max-width: 400px;
    padding: 10px;
    font-size: var(--small);
}

.pdf-search-bar input[type="text"]:focus-visible {
    outline: none;
}

.pdf-search-bar button {
    
}

.pdf-search-bar button:hover {}

.pdf-item {
    color: #333333;
    border: 2px solid #cfcfcd;
    padding: 15px;
    border-radius: 8px;
    transition: background-color 0.3s;
}

main a {
    color: initial;
    text-align: none !important;
}

.right-header a,
.left-header a,
.pdf-back-button,
a {
    text-decoration: none !important;
}



#add-new-pdf-button {
    z-index: 999;
    pointer-events: all;
    cursor: pointer;
    position: fixed;
    right: 100px;
    bottom: 100px;
}

.pdf-item-wrapper {
    position: relative;

}

input[type="file"]::file-selector-button {
    display: none;
}

.upload-pdf-btn,
.upload-pdf-btn:hover {
    height: min-content;
    border-bottom-right-radius: 0 !important;
    border-top-right-radius: 0 !important;
}

#pdf-upload-form label.pdf-upload-label {
    display: flex;
    margin-bottom: 20px;
    background-color: white;
    border: none;
    border-radius: 8px;
}

.pdf-delete-button {
    background: #808080;
    left: 55px;
}
.pdf-unread-filter-wrapper label{
    white-space: nowrap;
}

#pres-prev-page span, #pres-next-page span,#docs-prev-page span, #docs-next-page span,
#pdf-search-button span{
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    color: #808080;
    border: 2px solid #808080;
}
#pdf-search-button{
    background-color: transparent;
    border: 0;
    margin-left: -53px;
}
.pdf-edit-button,
.pdf-delete-button {
    cursor: pointer;
    position: absolute;
    padding: 7px;
    border-radius: 50px;
    color: white;
    bottom: 15px;
}

.pdf-edit-button {
    left: 15px;
    background: #808080;
}
.pdf-back-button{
    color:#808080;
}
.pdf-item .categories .category-item {
    font-size: var(--small) !important;
}
.pdf-item-link {
font-size: var(--regular);
transition: all 0.3s;
padding: 10px 20px;
font-weight: 600;
border-radius: 8px;
box-sizing: border-box;
color: black;
background: #CFD0CE;
cursor: pointer
}
.user-popup__logout a:hover{
    color: white;
}
.user-popup__logout{
    margin-top: calc(20px + .9rem);

}
.bj_pdf-body h2{
    color: white!important;
}
#lostpasswordform input{
    margin-bottom: 10px;
}
.download-pdf-btn,#pdf-upload-form input[type="submit"],.post_alert .pdf-item-link,#loginform-pdf input[type="submit"],.user-popup__logout a, #lostpasswordform button {
    font-size: var(--regular);
    transition: all 0.3s;
    padding: 10px 20px;
    font-weight: 600;
    border-radius: 8px;
    box-sizing: border-box;
    color: white;
    background: #0033a1;
    cursor: pointer;
    border:2px solid transparent;
}

.popup-submit-container {
    width: 100%;
    text-align: right;
}
#pdf-upload-form input[type="submit"]{
    border: 0;
}
#add-new-pdf-button,
#select-pdf-button,
.upload-pdf-btn:hover,
.pdf-item .categories .category-item{
    border: 0;
    transition: all 0.3s;
    padding: 10px 20px;
    font-weight: 600;
    border-radius: 8px;
    box-sizing: border-box;
    color: #333333;
    background: #CFCFCD;

}

.pdf-item-link-wrapper {
    text-align: right;
}
.pdf-item-link{
    display: inline-block;
    box-sizing: border-box;
}
.pdf-item * {
    margin: initial;
}

.pdf-item h4 {
    margin-bottom: 20px;
    font-size: var(--large);
    line-height: calc(var(--large) + 5px);
}
/* Estilos para dispositivos móviles */


/* Estilos para escritorio */
.pdf-item h4 {
    height: calc((var(--large) + 5px) * 3);
    overflow: hidden;

}
.pdf-excerpt {
    height: calc((var(--regular) + 5px) * 4);
}

textarea {
    margin-bottom: 0;
}

.pdf-items a,
.pdf-list a {
    text-decoration: none;
}

.pdf-list li {
    width: 100%;
    position: relative;
}

.pdf-item-wrapper {
    width: 100%;
}

.pdf-list,
.pdf-items {
    margin-top: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding-left: 0;
    list-style: none;
    gap: 20px;
}
.user-avatar-button:hover{
    background-color: initial!important;
}
/* Popup Form Styles */

.pdf-popup-form, #pdf-popup-restricted {
    display: none;
    backdrop-filter: blur(5px);
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.popup-logo {
    width: 150px;
    position: absolute;
    top: 16px;
    right: 20px;
}

.pdf-popup-content, .pdf-popup-restricted-wrapper {
    background-color: white;
    margin: 5% auto;
    /* 5% from the top and centered */
    padding: 40px;
    width: 90%;
    max-width: 500px;
    padding-top: 80px;
    /* Could be more or less, depending on screen size */
    position: relative;
    border-radius: 8px;
    -webkit-box-shadow: 3px 3px 4px 0px rgba(0, 0, 0, 0.425);
    -moz-box-shadow: 3px 3px 4px 0px rgba(0, 0, 0, 0.425);
    box-shadow: 3px 3px 4px 0px rgba(0, 0, 0, 0.425);
}
.pdf-popup-restricted-wrapper p:first-of-type{
    margin-top: 40px;
}
.pdf-popup-content h2 {
    color: #0033a1;
    margin-top: 20px;
}

.pdf-horizontal-scroll,
.pdf-list {
    padding: 40px;
    padding-left: 39px!important;
    margin-bottom: 0;
}

.pdf-popup-close,.pdf-popup-restricted-close {
    color: #808080;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px!important;
    font-weight: bold;
    cursor: pointer;
    z-index: 999;
}

.pdf-popup-close:hover,.pdf-popup-restricted-close:hover,.pdf-popup-restricted-close:focus, 
.pdf-popup-close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

#pdf_type {
}
.pagination-controls{
    align-items: center;
    padding-bottom: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;

}
#select-pdf-button {
    font-size: var(--small) !important;
}
#pres-prev-page, #pres-next-page,#docs-prev-page, #docs-next-page{
    background-color: transparent;
    border: none;
}
#pdf-upload-form label {
    display: block;
}

#pdf-upload-form input[type="text"]::placeholder,
#pdf-upload-form textarea::placeholder,
#pdf-upload-form select::placeholder,
#pdf-upload-form input[type="file"]::placeholder {
    color: #333333;
}

#pdf-upload-form input[type="text"]:focus-visible,
#pdf-upload-form textarea:focus-visible,
#pdf-upload-form select:focus-visible,
#pdf-upload-form input[type="file"]:focus-visible {
    outline: none;
}

#pdf-upload-form input[type="file"] {
    width: 100%;
    padding: 10px 20px;
}

#pdf-upload-form input[type="text"],
#pdf-upload-form textarea,
#pdf-upload-form select {
    width: 100%;
    background-color: #F5F5F5;
    margin-bottom: 20px;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: var(--small);
}



/* Categories */
.pdf-category-list {
    list-style: none;
    padding: 0;
    margin: 0 !important;
    display: flex;
    gap: 10px;
}

.pdf-category-list li {
    z-index: 99;
    margin: 0;
}

.pdf-category-list label {
    text-transform: uppercase;
}

/* Estilo base para las etiquetas */
.pdf-category-checkboxes {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 5px;
}

.pdf-category-checkboxes input[type="checkbox"],
.pdf-category-list input[type="checkbox"],
.popup-category-item input[type="checkbox"] {
    margin: 0;
    margin-left: 5px;
    display: none;
}

.pdf-subcategory-item input[type="checkbox"] {
    display: inline;
}

.popup-category-item {
    display: inline-block;
}

.popup-category-list {
    margin: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.custom-checkbox,
.pdf-category-list .pdf-category-item>label,
.popup-category-item>label {
    font-size: var(--small);
    display: inline-block;
    padding:10px 30px;
    margin: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s, border 0.3s;
    color: #333333;
    text-align: center;
    user-select: none;
    box-sizing: border-box;
    border: 2px solid #0033a1;
    text-transform: uppercase;
}

.pdf-category-item>label:has(>input[type="checkbox"]:checked),
.popup-category-item>label:has(>input[type="checkbox"]:checked) {
    background-color: #0033a1;
    color: white
}

.popup-subcategory-item input[type="checkbox"] {
    display: inline-block;
}

.pdf-subcategory-item label,
.popup-subcategory-item label {
    width: 100%;
    display: flex !important;
    justify-content: space-between;
    padding-inline: 30px;
    padding-block: 10px;
    font-size: var(--small);
    border-bottom: 2px solid #CFCFCD;
}

.pdf-subcategory-item:last-child label,
.popup-subcategory-item:last-child label {
    border-bottom: 0;
}

.pdf-subcategory-item label:hover,
.popup-subcategory-item label:hover {
    background-color: #333333 !important;
    color: white;
}

/* Opcional: Efecto hover */
.custom-checkbox:hover,
.pdf-category-list label:hover {
    background-color: #f5f5f5;
}


.bj_pdf-wrapper {
    padding: 50px 0 0 0;
    display: flex;
    align-items: center;
    flex-direction: column;
    max-width: 1200px;
    margin: auto;
    min-height: 100vh;
    box-sizing: border-box;
}

.bj_pdf-header .pdf-category-list {
    list-style: none;
    width: 100%;
    margin-block: 10px;
    margin-inline: 0;
    justify-self: center;
    justify-content: center;
    display: flex;
    flex-direction: row;
    padding-left: 0;
    flex-wrap: nowrap;
}

.bj_pdf-header {
    margin-bottom: 40px;
    max-width: 600px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    width: 100%;
}

.bj_pdf-body,.pdf_contact {
    border: 2px solid #0033a1;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    display: flex;
    width: 100%;
    flex-direction: row;
}

.bj_pdf-body-left {
    box-sizing: border-box;
}
.post_alert h4, .post_alert .pdf-excerpt{
    color: #0033a1!important;
}
.bj_pdf-body-left,
.bj_pdf-body-right {    
    flex: 1 0 auto;

}



.right-header {
    width: calc(100% + 2px);
}

.right-header a,
.left-header a {
    color: white !important;
}

.left-header *,
.right-header * {
    margin: initial;
}
.pdf_contact-header{
    padding: 40px;
    background-color: #0033a1;
}
.pdf_contact-header h2{margin: 0!important;}
.pdf_contact.opened{
    display: block;
}
.pdf-contact-close span{
    cursor: pointer;
    font-size: 40px !important;
    border: 1px solid white;
    border-radius: 50%;
    padding: 4px;
    font-weight: 300;
}
.pdf-contact-close{
    position: absolute;
    right: 40px;
    top: 40px;
}
.contacto img{
    cursor: pointer;
}
.pdf_contact{
    position: relative;
    margin-top: 50px!important;
    max-width: 1200px;
    margin: auto;
    display: none;
}
.pdf_contact-body{
    padding: 40px;
}
.contact-title{
    font-weight: 600;
    margin-bottom:.4rem ;
}
.left-header,
.right-header {
    top: -2px;
    position: relative;
    padding-bottom: 22px !important;
    padding-left: 40px !important;
    padding: 20px;
    background-color: #0033a1;
}

.left-header h3,
.right-header h3 {
    margin-bottom: 10px;
}
.left-header h2, .right-header h2{
    line-height: 2.5rem;
}


/* single page */
.pdf-container {
    position: relative;
    max-width: 1200px;
    margin: auto;
    margin-top: 40px!important;
    gap: 40px;
}
.pdf-viewer{
    height: 100%;
    margin: 0;
}
.pdf-column {
    width: 100%;
}


.pdf-header .menu .contacto span,
.pdf-header .menu .notificaciones span,.pdf-mobile-menu span {
    font-size: 40px !important;
    border: 1.8px solid #0033a1;
    border-radius: 50%;
    padding: 4px;
    font-weight: 300;
}

.pdf-excerpt {
    height:calc((var(--regular) + 5px) * 4);   
    overflow-y: hidden;
    margin-bottom: 20px;
}

.pdf-item .categories {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
}
.pdf-column-header h1{
    color: #0033a1;
}
.pdf-viewer {
    border: 1px solid #ccc;
    width: 100%;
    margin: 0!important;
}

.download-pdf-btn {
    display: none;
    position: absolute;
    bottom: 20px;
    right: 20px;
}
.pdf-column:first-of-type p{
    margin: 0!important;
}

.metadata-wrapper{
    display: none;
}
.metadata-button{
    position: absolute;
    top: 40px;
    right: 40px;
}
.pdf-metadata {
    top:0;
    position: sticky;
    padding: 40px;
    background-color: #f5f5f5;
    font-size: 16px;
    line-height: 1.5;
}

.pdf-metadata h2 {
    margin-top: 0;
}

.pdf-column-header * {
    margin: initial;
}

.pdf-column-header a {
    text-decoration: none;
}
.metadata-wrapper.opened{
    display: block;
    margin-top: 40px;
}
.metadata-button span{
    font-size: 40px !important;
    border: 1px solid #0033a1;
    border-radius: 50%;
    padding: 4px;
    font-weight: 300;
    cursor: pointer;
}
.pdf-column-header {
    padding-right: 50px;
}
.btn-pdf-download{
    display: block;
    padding-top: 20px;
    padding-bottom: 20px;
    border-block: 2px solid #CFCFCD;
}
/* Flecha para indicar que hay subcategorías. 
Podrías usar un ícono de Font Awesome o similar en lugar de este carácter '▶'. */
.toggle-subcategories,
.popup-toggle-subcategories {
    display: flex !important;
    transition: transform 0.3s ease !important;
    padding-right: 35px !important;
    position: relative;
}

.popup-toggle-subcategories {
    position: relative;
}

.toggle-subcategories>span,
.popup-toggle-subcategories>span {
    font-size: 30px !important;
    position: absolute;
    right: 0;
    top: 5px;
    color: #0033a1;
}

.show-subcategories ul {
    padding-left: 0;
    position: absolute;
    width: max-content;
    background: #F7F7F7;
    display: flex;
    flex-direction: column;
}

.pdf-category-item {
    position: relative;
}

/* Rotamos la flecha al abrir el menú */


/* Ocultamos la lista de subcategorías por defecto */
.pdf-subcategory-list {
    display: none;
    list-style: none;
    padding-left: 0;
    position: absolute;
    width: max-content;
    background: #F7F7F7;
}

/* Cuando el contenedor tiene la clase 'show-subcategories', se muestra la lista */
.pdf-category-item.show-subcategories>.pdf-subcategory-list {
    display: flex;
    flex-direction: column;
}

#selected-categories-list {
    flex-wrap: wrap;
    margin: 0;
    list-style: none;
    display: flex;
    justify-content: start;
    gap: 10px;
}

#pdf-file-preview {
    gap: 20px;
    row-gap: 10px;
    margin-top: 10px;
    color: #555;
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    list-style: none;
}

#pdf-file-preview li a {
    font-size: var(--small) !important;
    color: #808080;
    cursor: pointer;
    
}

#popup-selected-categories-list {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#selected-categories-list label,
#popup-selected-categories-list label {
    text-transform: uppercase;
    margin-top: 20px !important;
    padding-right: 15px !important;
    font-size: var(--small) !important;
    display: inline-block;
    padding: 3px 20px;
    margin: 0;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s, border 0.3s;
    color: #808080;
    text-align: center;
    user-select: none;
    box-sizing: border-box;
    line-height: 24px;
    border: 2px solid #808080;
}

#selected-categories-list label span,
#popup-selected-categories-list label span {
    position: relative;
    bottom: -1px;
    color: #808080;
    margin-left: 5px;
}

.popup-subcategory-list {
    display: none;
    list-style: none;
    
}
.pdf-viewer-item{
    aspect-ratio:10/13;
}

.bj_pdf-body-right.full-width .pdf-list li{
    width:calc(50% - 10px);
}
.user-avatar-button {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    background: none;
    display: block;
  }
  
  .user-avatar-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  #user-popup-wrapper{
    backdrop-filter: blur(5px);
    position: fixed;
    z-index: 9991;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
  }
  .close-user-popup{
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px !important;
    font-weight: bold;
    cursor: pointer;
    z-index: 999;
  }

  .user-popup-window{
    background-color: white;
    margin: 5% auto;
    padding: 40px;
    max-width: 500px;
    padding-top: 88px;
    position: relative;
    border-radius: 8px;
    -webkit-box-shadow: 3px 3px 4px 0px rgba(0, 0, 0, 0.425);
    -moz-box-shadow: 3px 3px 4px 0px rgba(0, 0, 0, 0.425);
    box-shadow: 3px 3px 4px 0px rgba(0, 0, 0, 0.425);
  }
@media (max-width: 1050px) {
    .left-header h2, .right-header h2{
        height: 5rem;
    }
}
.post-type-archive-pdf main.site-main{
    max-width: calc(100vw - 100px)!important;
    padding-inline: 10px;
}
@media (max-width: 768px) { 
    .bj_pdf-header .pdf-category-list{
        flex-wrap: wrap;
    }  
    .pdf-column, .pdf-column .pdf-viewer{
        border-radius: 0!important;
    }  
 
    .pdf-metadata{
        order: -1;
    }
    .left-header h2, .right-header h2{
        height: initial!important;
    }
    .bj_pdf-body{
        flex-direction: column;
    }
    .bj_pdf-body-right .pdf-item h4{
        font-size: calc(var(--large) - 2px);
        line-height: calc(var(--large) + 2px);
        height: calc((var(--large) + 3px));
        overflow: hidden;
    }
    .pdf-item h4{
        overflow: hidden;
        font-size: calc(var(--large) - 2px);
        line-height: calc(var(--large) + 2px);
        height: calc((var(--large) + 3px) * 3);
    }
    .bj_pdf-body-right .pdf-excerpt{
        height: calc((var(--regular) + 5px)* 2);
    }
    .bj_pdf-body-left .pdf-items .pdf-item-wrapper{
        width: 100%;
    }
    .bj_pdf-body-left.full-width .pdf-items{
        flex-wrap: wrap;
    }
    .bj_pdf-body-left .pdf-items{
        flex-wrap: nowrap;
    }
    
    .bj_pdf-body-left .pdf-horizontal-scroll{
        overflow: scroll;
    }
    
    .pdf-item-wrapper{
        flex-shrink: 0;
        width:50%;
    }
    #add-new-pdf-button{
        bottom: 20px;
        right: 20px;
    }
    .post-type-archive-pdf main.site-main{
        max-width: 100vw!important;
    }
}
.pdf-mobile-menu-wrapper{
    display: none;
}
@media (max-width: 550px) {    
    .pdf-desktop-menu{
        display: none;
    }
    .pdf-mobile-menu-wrapper{
        display: block;
        position: relative;
    }
    .pdf-mobile-menu-container{
        display: none;
        position: absolute;
        background: white;
        left: -120px;
        top: 60px;
        padding: 20px;
        box-sizing: border-box;
        -webkit-box-shadow: 0px 40px 21px -30px rgba(0, 0, 0, 0.34);
        -moz-box-shadow: 0px 40px 21px -30px rgba(0, 0, 0, 0.34);
        box-shadow: 0px 40px 21px -30px rgba(0, 0, 0, 0.34);
        border-top: 0;
        z-index: 1000;
        padding: 10px;
    }
    .pdf-horizontal-scroll, .pdf-list{
        padding: 20px!important;
    }
    .left-header h2, .right-header h2{
        height: initial!important;
    }
    .bj_pdf-body{
        flex-direction: column;
    }
    .bj_pdf-body-right .pdf-item h4{
        font-size: calc(var(--large) - 2px);
        line-height: calc(var(--large) + 2px);
        height: calc((var(--large) + 3px));
    }
    .pdf-item h4{
        font-size: calc(var(--large) - 2px);
        line-height: calc(var(--large) + 2px);
        height: calc((var(--large) + 3px) * 3);
    }
    .bj_pdf-body-right .pdf-excerpt{
        height: calc((var(--regular) + 5px)* 2);
    }
   
    .bj_pdf-body-left.full-width .pdf-items .pdf-item-wrapper{
        width: 100%;
    }
    .bj_pdf-body-left.full-width .pdf-items{
        flex-wrap: wrap;
    }
    .bj_pdf-body-left .pdf-items{
        flex-wrap: nowrap;
    }
    
    .bj_pdf-body-left .pdf-horizontal-scroll{
        overflow: scroll;
    }
    
    .pdf-item-wrapper{
        flex-shrink: 0;
        width:50%;
    }
    
    .bj_pdf-body-right.full-width .pdf-list li{
        width:100%;
    }
}
@media (min-width: 769px) {
    .bj_pdf-body-left.full-width .pdf-item-wrapper{
        width:calc(50% - 10px) ;
    }
    .bj_pdf-body-left.full-width{
        max-width: 100%;
        border-right:0;
    }
    .bj_pdf-body-left.full-width .left-header{
        width: calc(100% + 6px);
    }
    .bj_pdf-body-right.full-width{
        max-width: 100%;
    }
    .bj_pdf-body-right.full-width .pdf-list li{
        width:calc(50% -10px);
    }
    .bj_pdf-body-right.full-width .right-header{
        width:calc(100% + 4px);
        left: -2px;
    }
    .left-header {
        border-right: white 2px solid;
        width: calc(100% + 4px);
        left: -2px;
    
    }
   
    .bj_pdf-body-left, .bj_pdf-body-right{
        max-width: 50%;
    }
    .bj_pdf-body-left{
        border-right: 2px #0033a1 solid;
    }
}