#TreeWrapper {
    width: 100%;
    height: 80svh;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
}

#TreeChunksContainer,
#TreeControls {
    height: 100%;
}

#TreeChunksContainer {
    /*border: 3px solid teal;*/
    flex: 1;
    overflow-y: auto;
}

#TreeChunksContainer:hover {
    cursor: pointer;
}

#TreeControls {
    flex: 1;
    /*border: 3px solid orange;*/
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
}

#TreeControls_Constraints {
    width: 100%;
    flex-grow: 4;
}

#TreeControls_Controls,
#TreeControls_Special {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    flex-grow: 1;
}

#TreeControls_Controls > div,
#TreeControls_Special > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-grow: 1;
    flex-basis: auto;
    width: 100%;
    gap: 5px;
    padding: 3px;
}

#TreeControls_Controls > div > button,
#TreeControls_Special > div > button {
    border: 0;
    outline: unset;
    border-radius: 5px;
}

#ChangeNameCurrentFocused.active {
    background-color: var(--primary-background);
    color: var(--primary-color);
}
#ViewCurrentDocument.active,
#ViewCurrentContrato.active {
    background-color: var(--primary-background);
    color: var(--primary-color);
}

#SaveConfiguration.active {
    background-color: var(--primary-background);
    color: var(--primary-color);
} 
#RemoveCurrentSelected.active {
    background-color: var(--danger-background);
    color: var(--danger-color);
}
#CreateDocument.active {
    background-color: var(--success-background);
    color: var(--success-color);
}
#CreateDirectory.active {
    background-color: var(--success-background);
    color: var(--success-color);
}

#CrearContrato.active {
    background-color: var(--success-background);
    color: var(--success-color);
}

#ValidateDocument.active {
    background-color: var(--success-background);
    color: var(--success-color);
}

#ViewDocumentValidation.active {
    background-color: var(--primary-background);
    color: var(--success-color);
}

#CreateJustificante.active {
    background-color: var(--success-background);
    color: var(--success-color);
}

#ViewDocumentToJustify.active {
    background-color: var(--primary-background);
    color: var(--success-color);
}

#TreeControls_Controls button:not(.active):hover {
    cursor: default !important;
}

#TreeControls_Controls button.active:hover {
    cursor: pointer;
}

#TreeChunksContainer ul {
    padding: 2px 0;
}

#TreeChunks ul {
    border-left: 1px dashed lightgray;
}

#TreeChunks {
    width: 100%;
    min-height: 100%;
    height: fit-content;
}

#TreeChunks,
#TreeChunks ul {
    list-style: none;
}

li.TreeNode {
    /* display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 5px; */
    width: 100%;
    padding: 5px;
    user-select: none;
}

li.TreeNode.focused {
    border: 2px solid teal;
    border-radius: 5px;
}

#TreeControls_Constraints {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-direction: column;
  padding: 0 10px;
  gap: 10px;
  overflow-y: auto;
}

#TreeControls_Constraints > div > label {
  font-weight: bold;
}

#TreeControls_Constraints > div {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-direction: column;
  gap: 5px;
}

#TreeControls_Constraints div {
  width: 100%;
}

#IconViewer {
  width: 50px !important;
  height: 50px !important;
  border: 2px solid lightgray;
  border-radius: 5px;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#IconViewer:hover {
  cursor: pointer;
}

.TreeIcon {
  width: 25px;
  height: 25px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


#ModalAddDocument_stepper,
#ModalAddFolder_stepper,
#ModalCreateContrato_stepper {
    padding: 5px;
}

/* Client view */
#TreeWrapper.isuser #TreeChunks {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 5px;
    align-content: flex-start;
}

#TreeWrapper.isuser #TreeChunks:has([isdocument="false"]) li.TreeNode {
    height: 150px;
    width: 150px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    
    border: 1px solid lightgray;
    border-radius: 10px;
}

#TreeWrapper.isuser #TreeChunks:has([isdocument="true"]) {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0;
}

#TreeWrapper.isuser #TreeChunks:has([isdocument="true"]) li.TreeNode:nth-of-type(2n) {
    background-color: #e7e3e3;
}
#TreeWrapper.isuser #TreeChunks:has([isdocument="true"]) li.TreeNode:nth-of-type(2n - 1) {
    border: 1px solid lightgray;
}

#TreeWrapper.isuser #TreeChunks:has([isdocument="false"]) li.TreeNode > span {
    width: 100%;
    height: 100%;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-direction: column !important;
}

#TreeWrapper.isuser #TreeChunks:has([isdocument="false"]) li.TreeNode .TreeIcon {
    width: 75%;
    height: 75%;
}

#TreeWrapper.isuser li.TreeNode[ispending="true"] {
    border: 1px solid red !important;
}

#TreeWrapper.isuser li.TreeNode[tovalidate="true"] {
    border: 1px solid teal !important;
}

#ClientActions i:hover {
    cursor: pointer;
}

#FiltroNombre,
#FiltroFechaDesde,
#FiltroFechaHasta {
    padding: 0 !important;
    background-color: transparent !important;
    border: 0 !important;
    border-radius: 5px !important; 
}

#FiltroFechaDesde +.input-group-append,
#FiltroFechaHasta + .input-group-append {
    display: none !important;
}

input[id*="Filtro"] {
    width: 15vmin !important;
}

#ActionsHeader .input-group {
    padding: 0 !important;
    margin: 0 !important;
}

#DocumentToolbar button *:nth-of-type(2) {
    display: none !important;
    
}

#DocumentToolbar button:hover > *:nth-of-type(2) {
    display: block;
}

#DocumentToolbar button {
    min-width: 100%;
    max-width: fit-content;
}

#nav-content-UploadFileModal_stepper-0 {
    padding: 10px;
}

#CrearContratoClienteFields > span,
#CrearContratoPdfFields > span,
#CrearContratoLinked > span {
    width: 100%;
}

#CrearContratoClienteFields > span:hover,
#CrearContratoPdfFields > span:hover,
#CrearContratoLinked > span:hover,
#CrearContratoClienteFields > span.active,
#CrearContratoPdfFields > span.active,
#CrearContratoLinked > span.active {
    cursor: pointer;
    background-color : teal;
    color: white;
}

#CrearContratoFieldLink {
    user-select: none;
}

#MOSTRARNOTIFICACIONESCLIENTE {
    user-select: none;
}

#MOSTRARNOTIFICACIONESCLIENTE > span:hover {
    background-color: rgb(170, 170, 170) !important;
}

.gradient {
    background-color: #FFFAF6 !important;
    background-image: linear-gradient(270deg,rgba(255, 250, 246, 1) 0%, rgba(244, 177, 38, 1) 100%) !important;
    color: black !important;
}

.gradient * {
    color: black !important;  
}