/* Estilos Encabezado del documento */

/* Style del tooltip */

.ui-tooltip,
.arrow:after {
    background: black;
    border: 2px solid rgb(0, 0, 0);
}

.ui-tooltip {
    padding: 4px 10px;
    color: white;
    border-radius: 6px;
    box-shadow: 0 0 7px black;
}

.ui-widget.ui-widget-content {
    border: solid 0.1rem #000;
}

#header_container {
    display: flex;
    background: white;
    justify-content: space-between;
    border-bottom: solid 1px #ddd;
    font-size: 16px;
}

#document_information {
    display: inline-block;
    position: relative;
    background-color: white;
    height: 36px;
    border: none;
}

.hidden-mobile {
    display: inline-block !important;
}

.show_mobile {
    display: none;
}

#menu_intermedio {
    border: none;
    border-top: solid 1px #ddd;
    text-align: center;
    width: 40px;
    border-left: solid 1px #ddd;
}

#fab-container {
    position: absolute;
    width: 50px;
    height: 50px;
    bottom: 50px;
    right: 7%;
}

#fab {
    position: relative;
    top: 0;
}

#file-icon {
    position: relative;
    top: 16px;
    font-size: 300%;
    height: 30px;
}

/* Botones del encabezado */

.document_top_bar {
    position: relative;
    height: 36px;
    width: 40px;
    text-align: center;
    display: inline-block;
    padding-top: 3px;
}

.py-icons {
    position: relative;
    top: 4px;
}

.button-hover,.button-hover-dropdown {
    display: inline-block;
    cursor: pointer;
    text-align: center;
    color: #626262 !important;
    height: 36px;
    min-width: 36px;
    font-size: 16px !important;
}

.button-hover:hover {
    background: #eee;
}

.button-hover-dropdown:hover {
    background: #eee;
    position:relative;
    top:-6px;
}

.acceso-text {
    font-size: 120%;
}

.acceso-btn {
    position: relative;
    display: inline-block;
    margin-top: 10px;
}

.arrow-header {
    display: inline-block;
    width: 42px;
    height: 36px;
}

.btn-arrow {
    width: 74px;
}

.buttons-module {
    display: block;
    background: #fff !important;
    text-align: center;
    color: #626262 !important;
    height: 36px;
    font-size: 16px !important;
}

.buttons-module:hover {
    background: #eee !important;
}

#box_details {
    position: fixed;
    width: 340px;
    height: 100vh;
    right: -340px;
    top: 0;
    background: white;
    z-index: 200;
    border-left: solid 1px #ddd;
    border-top: solid 1px #ddd
}

#close_details {
    position: absolute;
    right: 12px;
    top: 10px;
}

#view_document {
    height: 95vh !important;
    overflow-y: scroll;
    width: 90%;
}

#document_footer {
    position: fixed;
    bottom: 0;
    height: 50px;
    left: 0;
    background: white;
    border: solid 1px #ddd;
}

#first_occordion_card {
    position: fixed;
}

#document_header {
    position: relative;
    z-index: 2;
    height: 36px;
}

#document_container {
    justify-content: space-between;
}

.buttons-module-mobile {
    position: relative;
    width: 36px;
    height: 36px;
}

.item-document-footer {
    cursor: pointer;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#menu_more_options {
    position: absolute;
    width: 240px;
    height: 90vh;
    padding-top: 24px;
    left: 30px;
    overflow-y: scroll;
}

#spiner {
    position: absolute;
    left: 46%;
    top: 46%;
}

/*  Scroll personalizado */
/* width */
::-webkit-scrollbar {
    width: 5px;
}

/* Track */
::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px grey;
    border-radius: 4px;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.titleTab {
    position: relative;
    top: -2px;
}

.badge {
    font-size: 10px !important;
}

#menu-extend {
    min-width: 36px !important;
    margin-bottom: 60px;
}

/* Estilos documento */
.btn-cancel {
    position: relative;
    display: inline-block;
    width: 140px;
    background: #aaa;
    border: 1px #aaa;
    color: white;
}

.btn-cancel:hover {
    background: #bbb;
    border: 1px #bbb;
    color: white;
}

.acceso-header {
    position: relative;
    background: #48b0f7 !important;
    color: white;
    height: 90px;
    padding-top: 0 !important;
}

.acceso-login {
    position: relative;
    top: 10px;
}

.acceso-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 90px;
}

#documentUser {
    line-height: 20px;
    padding-top: 6px;
    font-weight: bold;
    font-size: 16px;
}

#ul_aside_menu {
    position: relative;
    top: -5px;
    width: 85%;
    height: 38px;
}

.menu-aside {
    height: 38px !important
}

/* Se requiere para que el focus del arbol de documento no sea blanco*/
.fancytree-treefocus span.fancytree-active span.fancytree-title {
    color: red !important;
}

#tree_container{
    height:100vh
}

#documento ul {
    list-style-type: disc;
}

/* === SOLUCIÓN 1: SUBMENU CON HOVER === */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
    margin-left: -1px;
    border-radius: 0 6px 6px 6px;
}

/* Para dropstart, el submenu va hacia la izquierda */
.dropstart .dropdown-submenu .dropdown-menu {
    top: 0;
    right: 100%;
    left: auto;
    margin-top: -1px;
    margin-right: -1px;
    border-radius: 6px 0 6px 6px;
}

/* Mostrar submenu al hacer hover */
.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

/* Flecha indicadora */
.dropdown-submenu > a::after {
    display: block;
    content: " ";
    float: right;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
    border-width: 5px 0 5px 5px;
    border-left-color: #adb5bd;
    margin-top: 5px;
    margin-right: -10px;
}

.dropstart .dropdown-submenu > a::after {
    border-width: 5px 5px 5px 0;
    border-right-color: #adb5bd;
    border-left-color: transparent;
    margin-left: -10px;
    margin-right: 0;
}