/*Linea exterior del sidebar*/
.book-tree { 
    background: white;
    border: 1px solidrgb(255, 0, 0);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px #1C1C1C; 
}

.filter-section {
    padding: 12px 16px;
    background-color: #E1BA38; /* Filtro color */
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
    color: #5f6368;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-icon {
    width: 16px;
    height: 16px;
    fill: #000000;
}

.main-book-item {
    padding: 12px 16px;
    background-color: #e8f0fe;
    border-bottom: 1px solid #e0e0e0;
    font-weight: 500;
    color: #1C1C1C;
    font-size: 14px;
}

/* .main-book-item.selected {
    background-color: #FFD706;
    color: white;
} */

.book-link {
    color: inherit;
    text-decoration: none;
}

.sidebar-content {
    max-height: 600px;
    overflow-y: auto;
}

.menu-section {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-item {
    border-bottom: 1px solid #f0f0f0;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-toggle {
    width: 100%;
    background: none;
    border: none;
    padding: 12px 16px;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #202124;
    transition: background-color 0.2s;
}

.menu-toggle:hover {
    background-color: #FFD706;
}

.menu-toggle.has-children {
    padding-right: 12px;
}

.expand-icon {
    width: 16px;
    height: 16px;
    fill: #5f6368;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.expand-icon.expanded {
    transform: rotate(180deg);
}

.submenu {
    display: none;
    background-color: #fafafa;
    border-top: 1px solid #f0f0f0;
}

.submenu.open {
    display: block;
}

.submenu-item {
    padding: 8px 16px 8px 32px;
    font-size: 13px;
    color: #5f6368;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.submenu-item:last-child {
    border-bottom: none;
}

.submenu-item:hover {
    background-color: #f0f0f0;
}

.submenu-item.selected {
    background-color: #FAFAFA;
    color: #1C1C1C;
    font-weight: 500;
}

.page-item {
    padding-left: 48px !important;
    font-size: 12px;
}

.draft-indicator {
    display: inline-block;
    background-color: #0414fb;
    color: white;
    font-size: 10px;
    padding: 1px 4px;
    border-radius: 2px;
    margin-left: 8px;
}

.entity-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.menu-text {
    flex: 1;
    white-space: normal;          /* Permite salto de línea */
    word-break: break-word;       /* Corta palabras largas si es necesario */
    display: flex;
    align-items: center;
    gap: 8px;
}


/*.my-custom-background {
    background-color: #FFD706;
}
*/

.sidebar-search-box-input {
    background-color: #e14c38;
    border-radius: 10px;
    

}

#header-search-box-input {
background-color: #E1BA38; /*Cambia color del background del buscar del acordeon*/
}

/* Centrado vertical del menú lateral */
.entity-sidebar {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centrado vertical */
    height: 100%;
}

.book-tree {
    width: 100%;
    max-width: 280px; /* Opcional: limitar ancho */
    box-sizing: border-box; /* Asegura que padding no rompa el layout */
}


.tri-layout,
.tri-layout-left {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.book-tree-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.book-tree-wrapper {
    padding: 1px; 
}



/* Estilos para el botón de búsqueda si también lo quieres integrar visualmente 
#header-search-box-button {
    background-color: #E1BA38 !important; /* Mismo color del div padre 
    border: none !important;              /* Elimina cualquier borde del botón 
    box-shadow: none !important;          /* Elimina cualquier sombra 
    color: #333 !important;               /* Color del icono (ajustar si es SVG u otra cosa) 
}

/* Si hay un enfoque (focus) en el input, asegúrate de que no tenga un borde azul o un anillo 
#header-search-box-input:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Si quieres que el contenedor de la forma también tenga el mismo fondo 
/* (Aunque ya tienes el div padre con el fondo, esto asegura si la forma en sí tiene un fondo) 
.search-box {
    background-color: #E1BA38 !important;
    border: none !important;
    box-shadow: none !important;
    display: flex; /* Para asegurar que el botón y el input estén en línea 
    align-items: center; /* Para alinear verticalmente 
}
*/
