/* =============================== */
/* VARIABLES AISLADAS UX-APP       */
/* =============================== */

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

#ux-app p {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

#ux-app h4 {
    font-size:2rem;
    margin:1rem 0rem 2rem 0rem;
}

/* =============================== */
/* RICH TEXT EDITORS (PELL / QUILL) */
/* =============================== */

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

#ux-app .ql-editor {
  font-family: var(--font-body);
  font-size: 14px;
}

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

/* =============================== */
/* GENERALES                       */
/* =============================== */

#ux-app .hidden {
    display: none;
}

#ux-app .textareaHTML {
    background-color: white !important;
}

#ux-app .renderHTML {
    white-space: pre-wrap;
    font-family: monospace;
    max-height: 400px;
    overflow-y: auto !important;
    font-size: 13px;
}

#ux-app .highlight-variable-html-render {
    color: #010fa0;
    font-weight: bold;
    padding: 0 2px;
}

#ux-app .highlight-html-render {
    color: #aa1919;
    padding: 0 2px;
    font-weight: bold;
}

/* =============================== */
/* DETAIL FIELD STRUCTURES         */
/* =============================== */

#ux-app .onlyfieldrow {
    flex: 1 1 calc(100%) !important;
}

#ux-app .detail-field {
    display: flex;
    align-items: unset;
}

#ux-app .detail-row p {
    text-align: right !important;
}

#ux-app .detail-row {
    margin-top: 10px;
}

#ux-app .detail-field > div {
  flex-grow: 1;
}

#ux-app .detail-field > div > div {
  flex-grow: 1;
}

#ux-app .detail-label {
    flex-basis: 150px;
    flex-shrink: 0;
}

#ux-app .detail-label-long {
    flex-basis: 200px;
    flex-shrink: 0;
}

@media (max-width: 500px) {
  #ux-app .detail-label {
      flex-basis: 90px;
  }
  #ux-app p.detail-label {
    margin-right:8px;
  }
}

/* =============================== */
/* FOLDER TABS                     */
/* =============================== */

#ux-app .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 .3s, border-color .3s;
    position: relative;
    text-decoration: none;
    height: 23px;
    top: 3px;
}

@media (hover: none) {
    #ux-app .folder:hover {
        background-color: transparent;
    }
}

#ux-app .folder-active {
    background-color: var(--modal-background-color);
    border-bottom: 2px solid var(--modal-background-color);
    z-index: 1;
    top: 1px;
    height: 28px;
}

#ux-app .tab-content {
    border-top: 1px solid #ddd;
    padding-top: 8px;
}

/* =============================== */
/* MODALS                          */
/* =============================== */

#ux-app .modal,
#ux-app .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;
}

#ux-app .modal {
    z-index: 1000;
}

#ux-app .modal2 {
    z-index: 2000;
}

#ux-app .modal-content {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    border: 1px solid #888;
    width: 94%;
    max-width: 1100px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    
    overflow: auto;
    margin-left: auto !important;
    margin-right: auto !important;
    top: 45px !important;
}

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

#ux-app .close {
    color: #aaa;
    float: right;
    font-size: 35px;
    font-weight: bold;
    position: absolute;
    right: 15px;
    top: -10px;
}

#ux-app .close:hover,
#ux-app .close:focus {
    color: black;
    cursor: pointer;
}

#ux-app #modal-body,
#ux-app #modal-body2 {
    padding: 20px;
    background-color: #f9f9f9;
    
}

@media (max-width: 840px) {
  #ux-app #modal-body,
  #ux-app #modal-body2 {
      padding: 12px;
    
  }
}

/* =============================== */
/* DETAIL CONTAINER LAYOUT         */
/* =============================== */

#ux-app .container {
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 90px;
}

#ux-app .detail-container {
    display: flex;
    flex-wrap: wrap;
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 20px;
}

#ux-app .detail-row {
    flex: 1 1 50%;
    box-sizing: border-box;
    margin-bottom: 0;
}

@media (max-width: 840px) {
  #ux-app .detail-row {
      flex: 1 1 100%;
  }
}

#ux-app .detail-row:nth-child(3n) {
    margin-right: 0;
}


#ux-app .detail-row p {
    text-align: left;
    font-size: var(--font-size-app-elements);
}

#ux-app p.detail-label {
    color: #3b3b3b;
    font-size: var(--font-size-app-field-label);
    font-weight: bold;
    padding-top: 3px;
    margin: 0 16px 0 0 !important;
}


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

#ux-app .detail-value {
  padding: 3px 7px 3px 7px;
  border: 1px solid #bfbfbf;
  border-radius: 6px;
  background-color: var(--detail-value-background-color);
  min-height: 26px;
  width: fit-content;
  overflow: hidden;
}

/* =============================== */
/* FORM/ERROR/HELP TEXT            */
/* =============================== */

#ux-app .field-info {
    color:#63594c;
    font-size: 13px;
}

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

#ux-app .error {
    color: red;
}

#ux-app .top-buttons-actions {
  margin-bottom: 4px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

#ux-app .action-btn {
    background-color: whitesmoke;
    color: black;
    padding: 3px 9px;
    border-radius: 4px;
    border: 1px solid grey;
    min-width: 110px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    font-size: var(--font-size-tablegrid) !important;

}

#ux-app .action-btn:hover {
    background-color: lightgrey;
}

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

#ux-app .small-action-btn {
    background-color: whitesmoke;
    color: black;
    padding: 0px 6px;
    border-radius: 4px;
    border: 1px solid grey;
    min-width: 63px;
    cursor: pointer;
    font-size: var(--font-size-tablegrid);
}

#ux-app .small-action-btn:hover {
    background-color: lightgrey;
}

#ux-app .app-btn {
  background-color: #f5f1ee;
    color: #000000;
    padding: 2px 14px;
    border-radius: 14px;
    border: 1px solid grey;
    min-width: 75px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

#ux-app .app-btn:hover {
  background-color: #8c847c40;
}

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

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

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

#ux-app .detail-input {
    width: fit-content;
    padding: 3px 14px 3px 7px;
    border: 1px solid #888;
    border-radius: 6px;
    min-height: 26px;
    text-align: left;
}

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

#ux-app .empty-row {
    visibility: hidden;
}


/*************************/
/* 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: 1000;
    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 */
