
:root {
  --modal-background-color: #f9f9f9;
  --modal-background-color2: #f8f8f8;
  --detail-value-background-color: #f3f3f3;
  --secondary-color: #2ecc71;
  --font-size-large: 18px;
}


.pell-content p ,.ql-editor p {
    background-color: #f9f6f1;
    padding: 8px;
    border-left: 3px solid #ffc1079d;
    border-radius: 4px;
    margin: 8px 0 !important;
    line-height: 1.8;
}

.ql-editor {
  font-family: 'Montserrat', serif;
  font-size: 14px;
}

.ql-tooltip {
  transform: translateX(150px) translateY(10px) !important;
}

/* Modal styles 
.detail-label, .detail-value {
    display: inline-block;
    vertical-align: middle; 
  }
  
  .detail-label {
    width: 100px; 
    text-align: right; 
    margin-right: 10px; 
  }
  
  .detail-value {
    width: 320px;
  }
  
*/

.hidden {
    display:none;
}

.textareaHTML {
    /*font-family: monospace !important;*/
    background-color: white !important;

}
.renderHTML {

        white-space: pre-wrap; /* Mantiene saltos de línea */
        font-family: monospace;
        height: auto;
        max-height: 400px;
        overflow-y: auto !important;
        font-size:13px;
}
.highlight-variable-html-render {
    color: #010fa0;
    font-weight: bold;
    padding: 0 2px;
}
.highlight-html-render {
    color: #aa1919; /* Cambia el color según tus necesidades */
    padding: 0 2px;
    font-weight: bold;
}

.onlyfieldrow {
    flex: 1 1 calc(100%) !important;
}
.detail-field {

    display:flex;
    align-items: unset;
}  
.detail-row p {
    /*margin: 0px 10px 0px 0px !important;*/
    text-align: right !important;
   
}
.detail-row {
    margin-top: 10px;
    
}

.detail-field >div {
  flex-grow: 1;
  /* width: 94%; */
  /* overflow-x: hidden; */
}

.detail-field >div >div {
  flex-grow: 1;
  /* width: 94%; */
  /* overflow-x: hidden; */
}

.detail-label{
    flex-basis: calc(150px);
    flex-shrink: 0;
}   

.detail-label-long{
    flex-basis: calc(200px);
    flex-shrink: 0;
}   

@media (max-width: 500px) {

.detail-label {
    flex-basis: calc(80px);
    flex-shrink: 0;
}
}

.folder {
    display: inline-block;
    padding: 4px 20px;
    margin-right: 5px;
    background-color: #e9e9e9;
    border: 2px solid #ddd;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    color:black;
    
    
    
    transition: background-color 0.3s ease, border-color 0.3s ease;
    /*box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);*/
    position: relative;
    
    text-decoration: none;
    height: 23px;
    top: 3px;
}

@media (hover: none) {
    .folder:hover {
        background-color: transparent; /* o el color que prefieras */
    }
}

/*.folder:hover {
    /*background-color: #eaeaea;
    /*border-color: #bbb;
}*/

.folder-active {
  text-decoration: none;
    background-color: var(--modal-background-color);
    border-bottom: 2px solid var(--modal-background-color); /* Mantiene la "conexión" con el contenido visible */
    
    z-index: 1; /* Se coloca sobre las otras pestañas */
    top: 1px;
    height: 28px;
}

/* Para dar un efecto de continuidad entre las pestañas y el contenido */
.tab-content {
    border-top: 1px solid #ddd;
    padding-top: 8px;
   /* border: 2px solid #ddd;
    border-radius: 0 8px 8px 8px;
    padding: 20px;
    margin-top: -2px; 
    background-color: white;*/
}


.modal {
    display: none;
    position: fixed;
    
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    background-color: rgba(0,0,0,0.4);
    max-width: 100% !important;
    z-index:10;
    /*margin-top: env(safe-area-inset-top);
    margin-bottom: env(safe-area-inset-bottom);
   */

}

.modal2 {
    display: none;
    position: fixed;
    
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    background-color: rgba(0,0,0,0.4);
    max-width: 100% !important;
    z-index:20;
    /*margin-top: env(safe-area-inset-top);
    margin-bottom: env(safe-area-inset-bottom);
   */

}


.modal-content {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    
    border: 1px solid #888;
    width: 94%;
    max-width: 1000px;
    /*margin-left:5%;*/
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    min-height: 200px;
    overflow: auto;

    max-width: 1100px;
    margin-left: auto !important;
    margin-right: auto !important;
    
}     

@media (max-width: 768px) {
    .modal-content {
        width: 100%;
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 35px;
    font-weight: bold;
    /* margin-top: -15px; */
    position: absolute;
    right: 15px;
    top: -10px;
}
.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#modal-body {
    padding:20px;
    background-color: #f9f9f9;
}

#modal-body2 {
    padding:20px;
    background-color: #f9f9f9;
}

/**/



/* css para detail-container *******************/
/* Ensure the body and html take the full height */


/* Main container taking full height */
.container {
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 90px;
}

/* Detail container with overflow */
.detail-container {
    display: flex;
    flex-wrap: wrap;
    flex-grow: 1; /* Make sure it takes the available height */
    overflow-y: auto; /* Enable vertical scroll if needed */
    overflow-x: hidden; /* Hide horizontal scroll if not needed */
    padding-right: 20px; /* Avoid content being cut off by the scrollbar */
}

/* Detail row styles 2 columns
.detail-row {
    flex: 1 1 calc(50% - 20px); 
    margin-right: 20px; 
    box-sizing: border-box;
    margin-bottom: 3px;
}
*/

/* Detail row styles */
.detail-row {
    flex: 1 1 calc(50%); /* Cambiado a 3 columnas */
   
    box-sizing: border-box;
    margin-bottom: 0px;
   
}

/* Responsive layout for smaller screens */
@media (max-width: 840px) {
  .detail-row {
      flex: 1 1 calc(100% - 20px);
  }
}


.detail-label {
    font-weight: normal;
    color: #3b3b3b;
    font-size: 13px;
    font-weight: bold;
    padding-top: 3px;
    margin: 0 16px 0 0 !important;
}



/*Ajuste para el último elemento de la fila para eliminar el margen derecho */
.detail-row:nth-child(3n) {
    margin-right: 0;
}


.detail-row p {
    margin: 8px 0px 0px 0px;
    text-align: left;
    font-size: var(--font-size-app-elements);
}

.detail-row strong {
    /*display: block; /* Make the label take the full width */
}

.detail-value  p {
    text-align: left !important;
    padding: 4px 0px 4px 0px;
}

.detail-value {
  text-align: left;
  padding: 3px 0px 3px 7px;
  border: 1px solid #bfbfbf;
  border-radius: 6px;
  /* margin-left: 10px; */
  padding-right: 14px;
  width: fit-content;
  overflow: hidden;
  background-color:var(--detail-value-background-color);
  min-height: 26px;

}


.field-info {
    color: darkblue;
    font-size: 11px;
}

.field-error {
    color: red;
    font-size: 11px;
}
.error {
    color: red;
}

.top-buttons-actions {
  margin-bottom: 4px;
  display:flex;
  gap:12px;
  flex-wrap: wrap;
  row-gap: unset;
}

.action-btn {
    background-color: whitesmoke;
    color: black;
    padding: 1px 9px;
    text-decoration: none;
    border-radius:4px;
    border:1px solid grey;
    margin-bottom: 4px;
    min-width: 93px;
    text-align: center;
    cursor: pointer;
  }
.action-btn:hover {
    background-color: lightgrey;
    
}


.csform-action-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 98%;
}

.small-action-btn {
  
    
    background-color: whitesmoke;
    color: black;
    padding: 0px 6px;
    text-decoration: none;
    border-radius:4px;
    border:1px solid grey;
    margin-bottom: 4px;
    min-width: 63px;
    text-align: center;
    cursor: pointer;
    font-size: var(--font-size-tablegrid);
  }
.small-action-btn:hover {
    background-color: lightgrey;
    
}

.app-btn { 
  
  background-color: #ededd1;
  color: black;
  padding: 2px 14px;
  text-decoration: none;
  border-radius:14px;
  border:1px solid grey;
  margin-bottom: 4px;
  min-width: 75px;
  text-align: center;
  cursor: pointer;
}

.app-caption {
  background-color: #f6f6c1;
  color: black;
  padding: 2px 10px;
  border-radius: 7px;
  border: 1px solid grey;

  min-width: 75px;
  text-align: center;
  font-size: var(--font-size-app-elements);
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 9px;
}
user agent stylesheet


.app-btn:hover {
  background-color: #eded98;
  
}

.save-btn {
  background-color: rgb(155 191 79 / 35%);
}

.delete-btn {
  background-color: rgba(217, 164, 183, 0.35);
}

textarea.detail-input {
    font-family: inherit;
    font-size: inherit;
}

.detail-input {
    width: 400px;
    text-align: left;
    padding: 3px 14px 3px 7px;
   
    border: 1px solid #888;
    border-radius: 6px;
    /* margin-left: 10px; */
    padding-right: 14px;
    width: fit-content;
    overflow: hidden;
    min-height: 26px;
}

select.detail-input {
    min-height: 36px;
}

.empty-row {
    visibility: hidden; /* Hide content of the empty element */
}



/*************************/
/* Multi select drop down */

.multi-select {
    display: flex;
    box-sizing: border-box;
    flex-direction: column;
    position: relative;
    width: 100%;
    user-select: none;
   
  }
  .multi-select .multi-select-header {
    
    border: 1px solid #888;
    border-radius: 6px;
    padding-right: 14px;
    padding: 1px 30px 1px 9px;
    overflow: hidden;
    gap: 7px;
    min-height: 36px;
  }
  .multi-select .multi-select-header::after {
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23949ba3' viewBox='0 0 16 16'%3E%3Cpath d='M8 13.1l-8-8 2.1-2.2 5.9 5.9 5.9-5.9 2.1 2.2z'/%3E%3C/svg%3E");
    height: 12px;
    width: 12px;
  }
  .multi-select .multi-select-header {
    border-color: #888;
  }
  .multi-select .multi-select-header.multi-select-header-active::after {
    transform: translateY(-50%) rotate(180deg);
  }
  .multi-select .multi-select-header.multi-select-header-active + .multi-select-options {
    display: flex;
  }
  .multi-select .multi-select-header .multi-select-header-placeholder {
    color: #65727e;
  }
  .multi-select .multi-select-header .multi-select-header-option {
    display: inline-flex;
    align-items: center;
    background-color: #f3f4f7;
    font-size: 14px;
    padding: 3px 8px;
    border-radius: 5px;
  }
  .multi-select .multi-select-header .multi-select-header-max {
    font-size: 14px;
    color: #65727e;
  }
  .multi-select .multi-select-options {
    display: none;
    box-sizing: border-box;
    flex-flow: wrap;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999;
    margin-top: 5px;
    padding: 5px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
  }
  .multi-select .multi-select-options::-webkit-scrollbar {
    width: 5px;
  }
  .multi-select .multi-select-options::-webkit-scrollbar-track {
    background: #f0f1f3;
  }
  .multi-select .multi-select-options::-webkit-scrollbar-thumb {
    background: #cdcfd1;
  }
  .multi-select .multi-select-options::-webkit-scrollbar-thumb:hover {
    background: #b2b6b9;
  }
  .multi-select .multi-select-options .multi-select-option, .multi-select .multi-select-options .multi-select-all {
    padding: 4px 12px;
    height: auto;
  }
  .multi-select .multi-select-options .multi-select-option .multi-select-option-radio, .multi-select .multi-select-options .multi-select-all .multi-select-option-radio {
    margin-right: 14px;
    height: 16px;
    width: 16px;
    border: 1px solid #ced4da;
    border-radius: 4px;
  }
  .multi-select .multi-select-options .multi-select-option .multi-select-option-text, .multi-select .multi-select-options .multi-select-all .multi-select-option-text {
    box-sizing: border-box;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: inherit;
    
    line-height: 20px;
  }
  .multi-select .multi-select-options .multi-select-option.multi-select-selected .multi-select-option-radio, .multi-select .multi-select-options .multi-select-all.multi-select-selected .multi-select-option-radio {
    border-color: gray;
    background-color: gray;
  }
  .multi-select .multi-select-options .multi-select-option.multi-select-selected .multi-select-option-radio::after, .multi-select .multi-select-options .multi-select-all.multi-select-selected .multi-select-option-radio::after {
    content: "";
    display: block;
    width: 3px;
    height: 7px;
    margin: 0.12em 0 0 0.27em;
    border: solid #fff;
    border-width: 0 0.15em 0.15em 0;
    transform: rotate(45deg);
  }

  

  .multi-select .multi-select-options .multi-select-option:hover, .multi-select .multi-select-options .multi-select-option:active, .multi-select .multi-select-options .multi-select-all:hover, .multi-select .multi-select-options .multi-select-all:active {
    background-color: #f3f4f7;
  }
  .multi-select .multi-select-options .multi-select-all {
    border-bottom: 1px solid #f1f3f5;
    border-radius: 0;
  }
  .multi-select .multi-select-options .multi-select-search {
    padding: 7px 10px;
    border: 1px solid #dee2e6;
    
    border-radius: 5px;
    margin: 10px 10px 5px 10px;
    width: 100%;
    outline: none;
    
  }
  .multi-select .multi-select-options .multi-select-search::placeholder {
    color: #b2b5b9;
  }
  .multi-select .multi-select-header, .multi-select .multi-select-option, .multi-select .multi-select-all {
    display: flex;
    flex-wrap: wrap;
    box-sizing: border-box;
    align-items: center;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    width: 100%;
    
    color: #212529;
    background-color: white;
  }

  /*************************/
 /* Multi select drop down */
