html {
    /* COLOURS */

    --gray: #B7B6B6;
    --v-light-gray: #F5F4F4;
    --light-gray: #DCDDDC;
    --dark-gray: #686868;
    --blue: #96D2D7;
    --light-blue: #BAE1ED;
    --dark-blue: #658D91;
    --yellow: #F3DE78;
    --light-yellow: #F9EAAE;
    --dark-yellow: #D0B43D;
    --red: #E49189;
    --light-red: #EFB2AF;
    --dark-red: #B0706A;
    --ubk-blue: #0f4c81;
    --white:    #FFFFFF;
    --semi-white: #F0F0F0;

    --black:    #000000;
    --semi-transparent-white: rgba(255, 255, 255, 0.9);
    --semi-transparent-light-gray: rgba(220, 221, 220, 0.9);
    --opacity-60-ubk-blue: #0f4c8199;
    --green: #00aa52;

    /* SPACING SYSTEM */
    --s1: 0.25rem; /* 4px */
    --s2: 0.5rem;  /* 8px */
    --s3: 0.75rem; /* 12px */
    --s4: 1rem;    /* 16px */
    --s5: 1.25rem; /* 20px */
    --s6: 1.5rem;  /* 24px */
    --s7: 1.75rem; /* 28px */
    --s8: 2rem;    /* 32px */
    --s9: 2.5rem;  /* 40px */
    --s10: 3rem;   /* 48px */
    --s11: 3.5rem; /* 56px */
    --s12: 4rem;   /* 64px */

    /*DEFAULT FONT SETTINGS*/

    color: var(--dark-gray);
    letter-spacing: 0.05em;
    font-family: arial !important;
    font-size: 16px;

    /****** FIX ELEMENT WIDTH ERROR ******/
    /*box-sizing: border-box;*/
}
/**, *:before, *:after {
    box-sizing: inherit;
}*/
html:not(input) {
    user-select: none;
}
@media only screen and (min-width: 768px) and (max-width: 1024px) {
    body {
        font-size: 70%
    }

    .standard-form-input--select{
        height: 2.11em !important;
    }
}
@media only screen and (max-width: 767px) {
    body {
        font-size: 60%
    }

    .selected-drug .documentation > .btn{
        font-size: 0.8em;
    }

    .standard-form-input--select{
        height: 1.95em !important;
    }
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active
{
 -webkit-box-shadow: 0 0 0 30px white inset !important;
}


/******************
 ***** LAYOUT *****
 ******************/

#user-view {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
}
#main-sidebar-container.swipeable-element::after {
    content: url(/assets/icons/hamburger.svg);
    text-align: left;
    padding-top: 15px;
    background: var(--dark-gray);
    height: calc(100% - 15px);
}
#main-sidebar-container {
    display: flex;
    flex-direction: column;
}
#main-sidebar-container .sidebar {
    flex: 1;
}
#user-view #main-content-container {
    flex: 1;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
/******************
 ***** TOASTS *****
 ******************/

#toasts-container {
    position: fixed;
    z-index: 999;
    top: 5%;
    right: 5%;
}
.toast {
    background: var(--red);
    border-radius: 5px;
    height: 48px;
    --animation-duration: 0.3s;
    padding: 10px;
    display: flex;
    align-items: center;
    margin: 5px 0;
}
.toast.slide-in {
    animation-name: slide-in-toast;
    animation-duration: var(--animation-duration);
    animation-fill-mode: forwards;
}
.toast.slide-out {
    opacity: 0;
    margin-top: -53px;
    transition: all var(--animation-duration);
}
@keyframes slide-in-toast {
    from {opacity: 0; margin-top: 53px;}
    to {opacity: 1; margin-top: 5px;}
}
/****************************
 ***** OPTIONS DROPDOWN *****
 ****************************/

.options-dropdown {
    position: absolute;
    z-index: 1;
    background: white;
    font-size: smaller;
    box-shadow: 0 0 10px 0;
    border-radius: 5px;
}
.options-dropdown > .option {
    white-space: nowrap;
    padding: 10px;
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: inherit;
}
.options-dropdown > .option:not(:first-child) {
    border-top: solid 1px;
}
.dropdown-toggle {
    cursor: pointer;
    transform: rotate(-90deg);
    transition: transform .5s;
    width: 100%;
    height: 100%;
    display: block;
}
.dropdown-toggle.open {
    transform: rotate(90deg);
}
/******************
 ***** LAYOUT *****
 ******************/

.load-more-btn-container{
    position: relative;
}

/*#global-loading, .local-loading {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: white;
    z-index: 997;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .5s ease-in;
    pointer-events: none;
    margin: 0;
}*/
/*#global-loading.active, .local-loading.active {
    opacity: 1;
}*/

#global-loading, .local-loading {
    position: absolute;
    top: 400px;
    right: 0;
    bottom: 0;
    left: 0;
    background: transparent;
    z-index: 997;
    display: flex;
    /*align-items: center;*/
    justify-content: center;
    opacity: 0;
    transition: opacity .5s ease-in;
    pointer-events: none;
    margin: 0;
}
#global-loading.active, .local-loading.active {
    opacity: 1;
}

.ubk-loading-container {
    display: flex;
    flex-direction: column;
    height: auto;
    max-width: 450px;
    position: relative;
}

.ubk-loading-container .ubk-logo {
    display: flex;
    height: 60px;
    position: relative;
    animation: load-ubk-logo 2.5s infinite ease;
}

@keyframes load-ubk-logo {
    from {
        opacity: 0.2;
    }
    50% {
        opacity: 1;
    }
    to {
        opacity: 0.2;
    }
}

.ubk-loading-container .description {
    display: flex;
    color: var(--ubk-blue);
    margin-top: 35px;
    font-weight: bold;
    justify-content: center;
    font-size: larger;
}

.center-flex-row {
    -webkit-box-flex: 1;
     -webkit-flex: 1;
      flex: 1;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
     flex-direction: row;
    -webkit-align-items: center;
     align-items: center;
}

.center-flex-column{
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
     flex-direction: column;
    -webkit-justify-content: center;
     justify-content: center;
}

.full-center-by-margin{
    margin: auto;
}

.center-flex-row-user-data {
    -webkit-box-flex: 3;
     -webkit-flex: 3;
      flex: 3;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
     flex-direction: row;
    -webkit-align-items: center;
     align-items: center;
}

.center-flex-row-actions {
    -webkit-box-flex: 1;
     -webkit-flex: 1;
      flex: 1;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
     flex-direction: row;
    -webkit-align-items: center;
     align-items: center;
}

/********************************
 ***** ALTERNATE ROWS LIST *****
 ********************************/

.alternate-rows-list {
    /*--odd: var(--v-light-gray);*/
    --odd: var(--v-light-gray);
    --even: var(--light-gray);
}
.alternate-rows-list p {
    display: inline-block;
}
.alternate-rows-list .list-cell {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5px;
    white-space: pre-line;
}
.alternate-rows-list.left-padded > * {
    padding-left: 30px;
}
.alternate-rows-list > *:nth-child(odd) {
    background: var(--odd);
}
.alternate-rows-list > *:nth-child(even) {
    background: var(--even);
}
.alternate-rows-list > *:nth-child(odd) .alternate-rows-list {
    --odd: var(--light-yellow);
    --even: var(--yellow);
}
.alternate-rows-list > *:nth-child(even) .alternate-rows-list {
    --odd: var(--light-blue);
    --even: var(--blue);
}

.list-cell--h-centered{
    align-items: center;
}

.list-cell--h-inline-flex{
    -webkit-flex-direction: row !important;
     flex-direction: row !important;
    -webkit-justify-content: flex-start !important;
     justify-content: flex-start !important;
}

.list-cell--spaced{
    min-height: 60px;
}

.list-cell--head-1{
    padding: 15px 5px !important;
}
.list-cell--head-2{
    padding: 15px !important;
}
.list-cell--head-3{
    padding: 15px 0 !important;
}

/*******************************
 ***** ACCORDION OF TABLES *****
 ******************************/

.list-cell--accordion{
    -webkit-flex-direction: row !important;
     flex-direction: row !important;
    -webkit-justify-content: flex-start !important;
     justify-content: flex-start !important;
    position: relative;
}

.accordion-ctrl{
    padding-right: 9px;
    cursor: pointer;
}

.accordion-ctrl__bt{
    transition: transform 0.5s;
    -webkit-transform: rotate(-90deg);
     -ms-transform: rotate(-90deg);
      transform: rotate(-90deg);
    width: 0.6em;
}

.accordion-ctrl__bt.expanded {
    -webkit-transform: rotate(90deg);
     -ms-transform: rotate(90deg);
      transform: rotate(90deg);
}

/*******************
 ***** SURVEYS *****
 *******************/

.survey-answers-wrapper{
    position: relative;
}

#surveyViewMainPanel{
    overflow-y: auto;
}

#persDataFormWrapper{
    position: relative;
}

.survey-body {
    position: absolute;
    left: 10%;
    right: 5%;
    bottom: 10%;
    top: 125px;
    display: flex;
    flex-direction: column;
}
.survey-body .question-group:last-of-type {
    padding-bottom: 0;
}
.obligatory-mark:after {
    content: '*';
    /*font-size: 150%;*/
    color: var(--red);
}

.select-type-q-options-container-h {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    flex-direction: row;
}
.select-type-q-options-container-v-e {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    flex-direction: column;
}

.select-table-type-q {
    --col-width: 30px;
}
.select-table-type-q.c-r-table:nth-child(odd) {
    padding-bottom: 1px;
}
.select-table-type-q.c-r-table:nth-child(even) {
    padding-top: 1px;
}
.select-table-type-q .row-title {
    border: solid 1px var(--light-gray);
    border-radius: 5px;
    padding: 5px 10px;
    /*Ensure only 2 rows of text are displayed*/
    line-height: 2ex;
    height: 4ex;
}

.select-table-type-q .row-title-not-border {
    /*border: solid 1px var(--light-gray);*/
    border-radius: 5px;
    padding: 5px 10px;
    line-height: 3ex;
    height: 4ex;
}

.select-table-type-q .options {
    display: flex;
}
.select-table-type-q .table-cell {
    width: var(--col-width);
    border-radius: 5px;
    background: var(--light-gray);
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    margin: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.table-cell.double {
    width: 60px;
}

.select-table-type-q .options .table-cell:first-of-type {
    margin-left: 10px;
}
.select-table-type-q .table-label {
    width: var(--col-width);
    display: inline-block;
    margin: 0 5px;
    text-align: center;
}
.select-table-type-q .table-labels .table-label:first-of-type {
    margin-left: 10px;
}
.select-table-type-q .table-cell.selected {
    background: var(--ubk-blue);
    color: var(--white);
}
.survey-input {
    display: block;
    border: solid 1px var(--ubk-blue);
    border-radius: 5px;
    padding: 5px 10px;
    margin: 5px 0;
    width: calc(100% - 22px);
    /*To fill whole horizontal space, border and padding need to be subtracted*/
}
.survey-input:focus,
.survey-input.focused {
    border-width: 2px;
    margin: -1px -1px 4px -1px;
    outline: none;
    width: calc(100% - 24px);
    /*To fill whole horizontal space, border and padding need to be subtracted*/
}
input.survey-input:first-of-type:focus:not(.survey-input--dialog),
input.survey-input:first-of-type.focused:not(.survey-input--dialog){
    margin: 4px -1px -1px -1px;
}
.survey-input.number-input {
    display: flex;
    align-items: center;
}
.survey-input.number-input input {
    flex: 1;
}

.survey-input-time.incorrect:not(:focus) {
    background-color: var(--light-red);
}

.survey-input--dialog, .survey-input--dialog:focus, .survey-input--dialog.focused {
    margin: 5px auto;
    width: 80%;
    max-width: 408px;
}
.survey-select-btn {
    background: none;
    width: 100%;
    height: 100%;
    padding: 15px 20px;
    border: solid 1px var(--ubk-blue);
    border-radius: 10px;
    box-sizing: border-box;
    margin: 15px 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

.survey-select-btn-h {
    background: none;
    width: 25%;
    height: 100%;
    padding: 15px 20px;
    border: solid 1px var(--light-gray);
    border-radius: 10px;
    box-sizing: border-box;
    margin: 15px 10px 0 10px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    text-align: center;
}
.survey-select-btn-v-e {
    background: none;
    height: 100%;
    padding: 15px 20px;
    border: solid 1px var(--light-gray);
    border-radius: 10px;
    box-sizing: border-box;
    margin: 15px 10px 0 10px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    text-align: center;
    display: inline-block;
}
.survey-select-btn.selected {
    background: var(--light-gray);
}
.survey-select-btn-h.selected {
    background: var(--light-gray);
}
.survey-select-btn-v-e.selected {
    background: var(--light-gray);
}

input.survey-select-btn {
    outline: none;
    display: block;
}
.survey-contact-column {
    margin: 10px;
    position: absolute;
    top: 50%;
    left: 5px;
    right: 5px;
    transform: translateY(-50%);
}
/*******************
 ***** BUTTONS *****
 *******************/

.btn {
    background: var(--ubk-blue);
    border: solid 2px var(--ubk-blue);
    color: white;
    border-radius: .32em /*5px*/;
    display: inline-block;
    box-sizing: border-box;
    /*min-height: 1.75em;
    line-height: 1.5em;*/
    height: auto;
    white-space: pre-line;
    outline: 0;
    padding: .25em .5em;
    text-transform: uppercase;
    vertical-align: middle;
    -webkit-tap-highlight-color: transparent;
}

.btn-bigger {
    min-height: 2.75em /*45px*/;
    line-height: 2.5em /*40px*/;
    font-weight: bold;
}

.btn.ubk, btn-bigger.ubk {
    background: var(--ubk-blue);
    border: solid 2px var(--ubk-blue);
    color: white;
}

.btn.ubk-red {
    background: var(--red);
    border: solid 2px var(--red);
    color: white;
}

.btn.ubk.auto-height {
    background: var(--ubk-blue);
    border: solid 2px var(--ubk-blue);
    color: white;
    border-radius: .32em /*5px*/;
    display: inline-block;
    box-sizing: border-box;
    height: auto;
    white-space: pre-line;
    outline: 0;
    padding: .25em .5em;
    text-transform: uppercase;
    vertical-align: middle;
    -webkit-tap-highlight-color: transparent;
}

.btn.outline-ubk,
.btn.outline-ubk-with-hover {
    background: white;
    border: solid 2px var(--ubk-blue);
    color: var(--ubk-blue);
}

.btn.outline-ubk-with-hover:hover {
    background: var(--ubk-blue);
    border: solid 2px var(--ubk-blue);
    color: white;
}

.btn.outline-ubk-red-with-hover {
   background: white;
   border: solid 2px var(--red);
   color: var(--red);
}

.btn.outline-ubk-red-with-hover:hover {
    background: var(--red);
    border: solid 2px var(--red);
    color: white;
}

button > label {
    cursor: pointer;
}

.btn.wgi {
    background: var(--white);
    border: solid 2px var(--gray);
    color: gray;
}

.btn.wgi.auto-height {
    background: var(--white);
    border: solid 2px var(--gray);
    color: gray;
    border-radius: .32em /*5px*/;
    display: inline-block;
    box-sizing: border-box;
    height: auto;
    white-space: pre-line;
    outline: 0;
    padding: 0.25em .5em;
    text-transform: uppercase;
    vertical-align: middle;
    -webkit-tap-highlight-color: transparent;
}

.btn.wgi.sinborde {
    background: var(--white);
    border: solid 2px var(--white);
    color: gray;
}

.btn.selected {
    background: var(--dark-blue);

}

.btn.disabled {
    background-color: var(--very-light-gray) !important;
    box-shadow: none;
    color: var(--light-gray) !important;
    cursor: default;
    pointer-events: none;
}
.btn.disabled *,
.btn[disabled] * {
    pointer-events: none;
}
.btn.disabled:hover,
.btn[disabled]:hover {
    background-color: var(--very-light-gray) !important;
    color: var(--light-gray) !important;
}
.btn i {
    font-size: 1.3rem;
    line-height: inherit;
}
.btn {
    text-decoration: none;
    text-align: center;
    letter-spacing: .5px;
    transition: .2s ease-out;
    cursor: pointer;
}

.yellow-btn {
    background-color: var(--yellow);
    color: white;
}
.btn.gray {
    background-color: var(--gray);
    border-color: var(--gray);
    color: white;
}
.btn.gray.selected {
    background: var(--dark-gray);
}
.btn.transparent {
    background-color: transparent;
     border-color: var(--ubk-blue);
    color: var(--ubk-blue);
}
.btn--standard {
    font-size: smaller;
    height: initial;
    line-height: initial;
    padding: 10px;
}
.load-more-btn{
    display: block;
    width: 150px;
    margin: 20px auto;
}
.load-more-btn.custom-hidden{
    visibility: hidden;
}
.btn--confirm{
    padding: 6px;
    margin: 10px 4%;
    width: 70px;
}
.btn--dark-grey{
    background: var(--dark-gray);
    border: solid 2px var(--dark-gray);
}
.btn--transparent-blue{
    background-color: transparent;
    color: var(--ubk-blue);
}
.btn--inline-rt{
    margin-right: 0.7em;
}
.btn--inline-lt{
    margin-left: 0.7em;
}
.btn--multiline{
    margin-bottom: 0.7em;
    margin-right: 0.7em;
}
.btn--icon-sign{
    font-size: 1.5em;
    height: 30px;
    padding: 0 .25em;
}
/********************************
 ***** POSITIONING AND SIZE *****
 ********************************/

.marginalize {
    /*Must be inside relative parent*/

    position: absolute;
    top: 3%;
    right: 2%;
    bottom: 3%;
    left: 2%;
}
.tl-corner {
    position: absolute;
    top: 0;
    left: 0;
}
.bl-corner {
    position: absolute;
    bottom: 0;
    left: 0;
}
.tr-corner {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
}

.top {
    position: absolute;
    top: 0;
    z-index: 1;
}
.br-corner {
    position: absolute;
    bottom: 0;
    right: 0;
}

.br {
    position: absolute;
    bottom: 0;
}
/* FIXME Used by c-util/responsive-element. Make sure it's necessary*/

.expand-child>* {
    width: 100%;
}
/* TODO Will we use it? */

.h-proportional-to-w>div {
    /*needs to be followed by div encapsulating target element.
    http://wellcaffeinated.net/articles/2012/12/10/very-simple-css-only-proportional-resizing-of-elements/*/

    width: 100%;
    padding-top: 75%;
    /* Default aspect ratio. Can be overwritten by styling targeted div */

    position: relative;
}
.h-proportional-to-w>div>* {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}
.v-margin-5px {
    margin-top: 5px;
    margin-bottom: 5px;
}
.to-front {
    position: absolute;
    z-index: 1;
}
.clear-both {
    clear: both;
}
.left {
    float: left;
}
.right {
    float: right;
}
.panels-container {
    height: 100%;
}
.panels-container .panel {
    height: 100%;
    position: relative;
}
.fullscreen {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}
.full-h {
    height: 100%;
}
.relative {
    position: relative;
}
/************************
 ***** LANDING PAGE *****
 ************************/

#landing.background {
    /*background-image: url(/assets/landing.jpg);*/
    position: relative;
    height: 100vh;
    overflow: auto;
}
#landing .logo {
    height: 50px;
}
.landing-body {
    position: absolute;
    left: 5%;
    right: 5%;
    bottom: 5%;
    top: 100px;
}
.landing-body .landing-content {
    width: 40%;
}

#landing img {
    width: 30em;
    }

.anchors-container {
    font-size: smaller;
}
.anchors-container a:not(:first-child) {
    margin-left: 30px;
}
#legalRegisterBg{
    background-color: white;
    opacity: 0.8;
    padding: 5px;
    border-radius: 3px;
}
#legalRegisterText{
    font-size: smaller;
    color: black;
}
.btns-container .btn {
    padding: 10px;
    width: 250px;
    font-size: smaller;
    height: initial;
    line-height: initial;
}
.btns-container .btn:not(:first-child) {
    margin-left: 20px;
}
#login-register-container {
    margin-top: 20px;
    background: white;
    border-radius: 5px;
    color: var(--ubk-blue);
    box-shadow: 0 0 10px 0;
    padding: 20px 40px;
    text-align: left;
}
#login-register-container > *:not(:first-child) {
    margin-top: 20px;
}
input.invalid {
    border-color: #e8483e !important;
}
.call-me-req-box {
    border: solid 2px var(--ubk-blue);
    border-radius: 7px;
    display: flex;
    position: relative;
    height: 28px;
    line-height: 28px;
}
.call-me-req-box .btn {
    height: 100%;
}
.prefix-select {
    cursor: pointer;
    float: left;
    height: 100%;
    position: relative;
}
.prefix-select .trigger-btn {
    display: flex;
    align-items: center;
}
.number-input {
    flex: 1;
}
.number-input input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    height: 100%;
    padding: 0;
}
.prefix-select .arrow {
    transform: rotate(-90deg);
}

.end-nav-wrapper{
    display: inline;
}

.end-nav-btn{
    margin-left: 5px;
}

.end-nav-btn.simple-disabled{
    opacity: 0.6;
}

.lopd-txt{
    font-style: italic;
    font-size: smaller;
}

.lopd-confirmation__input{
    margin-right: 5px;
}

.lopd-confirmation__label{
    font-size: smaller;
}
/*******************
 ***** SIDEBAR *****
 *******************/

.ctx-menu {
    position: relative;
    margin-left: 2em;
    cursor: pointer;
}
.ctx-menu > img {
    height: 20px;
    display: block;
}
.ctx-menu .ctx-menu-content {
    right: 0;
    bottom: -10px;
    transform: translateY(100%);
    z-index: 100; /*2;*/
}
.ctx-menu .ctx-menu-content > * {
    padding: 10px;
    white-space: nowrap;
    overflow: hidden;
    cursor: pointer;
}

/*******************
 ***** SIDEBAR *****
 *******************/

.sidebar {
    height: 100%;
    background: var(--light-gray);
    color: var(--dark-gray);
    display: flex;
    flex-direction: column;
    transition: background .2s;
    position: relative;
}
.sidebar .logo-container {
    background: var(--dark-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
}
.sidebar .logo-container .logo {
    height: 65%;
    max-width: 80%;
}
.sidebar #collapse-btn {
    position: absolute;
    width: 20px;
    height: 20px;
    top: 10px;
    right: 10px;
}
.sidebar .options {
    padding: 0 10px;
    flex: 1;
    letter-spacing: 1.5px;
}
.sidebar .options .option {
    border-bottom: solid 1px var(--gray);
    padding: 10px 20px 10px 20px;
    height: 60px;
    line-height: 60px;
    cursor: pointer;
    font-size: x-small;
    white-space: nowrap;
}
.sidebar.main {
    position: relative;
}
.sidebar.main .options .option {
    padding: 10px 0 10px 20px;
}
.sidebar.darkened {
    height: 100%;
    background: var(--dark-gray);
    color: var(--light-gray);
    display: flex;
    flex-direction: column;
}
.sidebar.darkened .options .option {
    border-bottom: solid 1px var(--light-gray);
    padding: 10px 0 10px 20px;
    height: 60px;
    line-height: 60px;
    cursor: pointer;
}
.sidebar.darkened .options .option:first-of-type {
    border-top: solid 1px var(--light-gray);
}
.sidebar .options .option:hover {
    font-weight: bold;
}
.sidebar .options .option.option-selected {
    font-weight: bold;
    position: relative;
}
.sidebar .options .option.option-selected::after {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    content: "";
}
/*******************
 ***** TOOLBAR *****
 *******************/

.toolbar {
    --toolbar-h: 40px;
    background: var(--light-gray);
    padding: 10px 30px;
    height: var(--toolbar-h);
}
.toolbar * {
    vertical-align: middle;
}
.toolbar .options {
    float: left;
    height: 100%;
}
.toolbar .options .option {
    height: 100%;
}
.toolbar .options .option:not(:last-child) {
    margin-right: 10px;
}
.toolbar #refresh-btn {
    float: left;
    height: 100%;
    margin-left: 30px;
    border-radius: 50%;
    cursor: pointer;
}
.toolbar .user-info {
    float: right;
    height: 100%;
    text-align: right;
    position: relative;
}
.toolbar .user-info .avatar {
    height: var(--toolbar-h);
    width: var(--toolbar-h);
    border-radius: 50%;
    margin-left: 10px;
    display: inline-block;
    overflow: hidden;
}
.toolbar .user-info .avatar img {
    max-width: 100%;
    height: auto;
}
.toolbar .user-menu-container {
    width: 10px;
    height: 10px;
    margin-left: 10px;
    display: inline-block;
}
.toolbar .user-menu-container .toggle {
    cursor: pointer;
    transform: rotate(-90deg);
    transition: transform .5s;
    width: 100%;
    height: 100%;
    display: block;
}
.toolbar .user-menu-container.open .toggle {
    transform: rotate(90deg);
}
.toolbar .user-menu-container .user-menu {
    position: absolute;
    z-index: 1;
    background: white;
    bottom: 0;
    transform: translateY(100%);
    right: 0;
    text-align: right;
    font-size: smaller;
    box-shadow: 0 0 10px 0;
    border-radius: 5px;
}
.toolbar .user-menu-container .user-menu > .option {
    white-space: nowrap;
    padding: 10px;
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: inherit;
}
.toolbar .user-menu-container .user-menu > .option:not(:first-child) {
    border-top: solid 1px;
}

/* Nuevo diseño del toolbar */

.toolbar2 {
    --toolbar-h: 40px;
    background: var(--white);
    padding: 8px 30px;
    height: var(--toolbar-h);
    border: solid 2px var(--v-light-gray);
}

.toolbar2 * {
    vertical-align: middle;
}
.toolbar2 .options {
    float: left;
    height: 100%;
}
.toolbar2 .options .option {
    height: 100%;
}
.toolbar2 .options .option:not(:last-child) {
    margin-right: 10px;
}

.toolbar2 .left {
    float: left;
    height: 100%;
}
.toolbar2 .left #refresh-btn {
    display: inline-block;
    height: 40px;
    cursor: pointer;
}
.toolbar2 .left .app-state {
    display: inline-block;
    font-size: 24px;
    font-weight: bold;
    color: var(--ubk-blue);
    margin-left: .75em;
    vertical-align: bottom;
}

.toolbar2 .user-info {
    float: right;
    height: 100%;
    text-align: right;
}
.toolbar2 .user-info .avatar {
    height: var(--toolbar-h);
    padding: 0 2em 0 1em;
    display: inline-block;
    overflow: hidden;
    border-right: solid 1px var(--light-gray);
}
.toolbar2 .user-info .avatar img {
    height: 25px;
    width: 25px;
    cursor: pointer;
    padding: 7.5px 0;
}

.toolbar2 .user-info .menu {
    display: inline-block;
    padding-left: 2em;
    cursor: pointer;
}
.toolbar2 .user-info .menu img {
    height: 25px;
    width: 25px;
    padding-left: 1em;
}

.toolbar2 .nav-menu-btn-options {
    position: absolute;
    top: 55px;
    right: 0px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    padding: 0 1em .5em 1em;
    width: 15%;
    background: var(--white);
}

.toolbar2 .nav-menu-btn-options .option {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 30px;
    padding: .5em 1em;
}

.toolbar2 .nav-menu-btn-options .option:not(:first-child) {border-top: solid 1px var(--gray);}

.toolbar2 .user-menu-container {
    width: 10px;
    height: 10px;
    margin-left: 10px;
    display: inline-block;
}
.toolbar2 .user-menu-container .toggle {
    cursor: pointer;
    transform: rotate(-90deg);
    transition: transform .5s;
    width: 100%;
    height: 100%;
    display: block;
}
.toolbar2 .user-menu-container.open .toggle {
    transform: rotate(90deg);
}
.toolbar2 .user-menu-container .user-menu {
    position: absolute;
    z-index: 1;
    background: white;
    bottom: 0;
    transform: translateY(100%);
    right: 0;
    text-align: right;
    font-size: smaller;
    box-shadow: 0 0 10px 0;
    border-radius: 5px;
}
.toolbar2 .user-menu-container .user-menu > .option {
    white-space: nowrap;
    padding: 10px;
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: inherit;
}
.toolbar2 .user-menu-container .user-menu > .option:not(:first-child) {
    border-top: solid 1px;
}

/* Fin nuevo diseño del toolbar, aún queda por mirar que clases se han utilizado y cuales no para borrar las no usadas */

/***********************
 ***** MAIN SCREEN *****
 ***********************/

.main-screen {
    height: 100%;
    flex: 1;
    position: relative;
}
/*.main-screen > * {
    margin: 0 30px;
}*/
.main-screen .margin-asign {
    margin: 0 30px;
}
.main-screen .disabled {
    pointer-events: none;
    opacity: .3;
}
.list-wrapper{
    overflow: hidden;
}
.list .list-element-container {
    /*background: var(--light-gray);*/
    background: var(--semi-white);
    padding: 0 .5em;
}

.list .list-element-container-wgt {
    background: var(--white);
    padding: 0 .5em;
}

.list .list-element-container-DM {
    background: var(--v-light-gray);
    padding: 0 .5em;
}

.list > .list-element-container:first-child {
    border-top-left-radius: 1em;
    border-top-right-radius: 1em;
}
.list > .list-element-container:last-child {
    border-bottom-left-radius: 1em;
    border-bottom-right-radius: 1em;
}
.list .list-element-container:not(:last-child) .list-element {
    border-bottom: solid 1px var(--ubk-blue); /*gray*/
}
.search-input {
    min-width: 280px;
    border-radius: 5px;
    border: solid 1px var(--gray);
    padding: 3px 13px;
    display: flex;
    align-items: center;
}

.search-input-wgi {
    min-width: 280px;
    border-radius: 13px;
    border: solid 1px var(--gray);
    padding: 3px 13px;
    display: flex;
    align-items: center;
}

.search-input img {
    width: 20px;
}
.search-input input,
.search-input input:active,
.search-input input:focus {
    border: none;
    outline: none;
    background: none;
    flex: 1;
}
.list-header {
    display: flex;
    align-items: center;
    padding-left: 10px;
    height: 60px;
}
.list-header > img {
    margin: 15px;
}
.add-client-btn {
    width: 50px;
    border-radius: 50%;
}
.initial-phase-client-element {
    display: flex;
    flex-direction: row;
    align-items: center;
}
.initial-phase-client-element .state-type-icon {
    height: 50px;
    margin: 15px;
}
.initial-phase-client-element .state-type-icon img {
    height: 50px;
}
.initial-phase-client-element .client-list-icon {
    padding: 6px; /*10px*/
    border-radius: 50%;
    box-shadow: var(--gray) 0 0 10px 3px;
    margin: 1em; /*15px*/
    /*width: 30px;*/
    /*height: 30px;*/
    text-align: center;
}

.client-list-icon-not-shadow {
    padding: 6px; /*10px*/
    border-radius: 50%;
    margin: 1em; /*15px*/
    /*width: 30px;*/
    /*height: 30px;*/
    text-align: center;
}

.client-list-icon-wgt {
    padding: 5px;
    margin: 5px 0 5px 0;
    width: 40px;
    height: 22px;
    text-align: center;
    text-transform: uppercase;
}

.initial-phase-client-element .client-list-icon__img {
    height: 2.5em; /*30px;*/
    width: 2.5em; /*30px;*/
}
.initial-phase-client-element .client-list-icon__img--small {
    height: 22px;
    width: 22px;
    padding-top: 4px;
}
.initial-phase-client-element .client-data {
    flex: 1;
}
.client-list-alt-text{
    text-align: center;
}
/**********************
 ***** VI SECTION *****
 **********************/

#edition {
    display: flex;
    flex-direction: column;
    margin: 0;
    height: 100%;
    position: relative;
}
#edition .not-ready {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999999;
    background: white;
}
#edition-header {
    display: flex;
    align-items: center;
    background: var(--v-light-gray);
    height: 2.5em;
    padding: 1em 2em;
}
#edition-header #toggle-sections-visibility-btn {
    flex: 1;
}
#edition-header #target {
    flex: 5;
}
#edition-header #cancel-edition {
    display: flex;
    align-items: center;
    margin-left: 3em;
    cursor: pointer;
}
#edition-header #cancel-edition img {
    margin-left: 0.5em;
    width: 20px;
}
#edition-main {
    display: flex;
    flex-direction: column;
    /*height: calc(100vh - 112px);*/
    height: calc(100vh - (4rem + 80px));
}

#edition-main .alternate-rows-table{
    padding-bottom: 15px;
}

#section-selection {
    overflow-x: auto;
    display: flex;
    box-shadow: 0 0 25px -5px;
    background: var(--red);
    height: 20%;
    max-height: 80px;
    z-index: 1;
}

#section-selection .section-btn {
    flex: 1;
    min-width: 200px;
    height: 100%;
    display: flex;
    padding: 0 10px;
    color: #808080;
    position: relative;
}

#section-selection .section-btn span {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #D87F3A;

}

#section-selection .section-btn.selected::after { /*Indicator of selected section button*/
    position: absolute;
    content: '';
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;

    background: rgba(0,0,0,0.1);


}

#section-selection .section-btn:not(:last-of-type)::before { /*Vertical bar that separates section buttons*/
    position: absolute;
    z-index: 1;
    content: '';
    width: 1px;
    height: 80%;
    top: 10%;
    right: 0;

    background: currentColor;
}

#section-selection .section-btn .progress {
    transition: width .4s;
    background: var(--ubk-blue);
    height: 100%;
    position: absolute;
    left: 0;
    }



#section-selection3 {
    overflow-x: auto;
    display: flex;
    box-shadow: 0 0 25px -5px;
    background: var(--ubk-blue);

    z-index: 1;
}

#section-selection3 .section-btn {
    flex: 1;
    min-width: 200px;
    height: 80px;
    display: flex;
    padding: 0 10px;
    color: #808080;
    position: relative;
}

#section-selection3 .section-btn span {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--white);

}

#section-selection3 .section-btn.selected::after { /*Indicator of selected section button*/
    position: absolute;
    content: '';
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;

    background: rgba(0,0,0,0.1);


}

#section-selection3 .section-btn:not(:last-of-type)::before { /*Vertical bar that separates section buttons*/
    position: absolute;
    z-index: 1;
    content: '';
    width: 1px;
    height: 80%;
    top: 10%;
    right: 0;

    background: currentColor;

}

#section-selection3 .section-btn .progress {
    transition: width .4s;
    background: var(--ubk-blue);
    height: 100%;
    position: absolute;
    left: 0;


}



#subsection-selection {
    overflow-x: auto;
    display: flex;
    box-shadow: 0 0 25px -5px;
    background: var(--v-light-gray);
    z-index: 1;
}

#subsection-selection .subsection-btn {
    flex: 1;
    min-width: 200px;
    height: 50px;
    display: flex;
    padding: 0 10px;

    position: relative;
}

#subsection-selection .subsection-btn span {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

#subsection-selection .subsection-btn.selected::after { /*Indicator of selected section button*/
    position: absolute;
    content: '';
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.1);
}

#subsection-selection .subsection-btn:not(:last-of-type)::before { /*Vertical bar that separates section buttons*/
    position: absolute;
    z-index: 1;
    content: '';
    width: 1px;
    height: 80%;
    top: 10%;
    right: 0;
    background: currentColor;
}

#subsection-selection .subsection-btn .progress {
    transition: width .4s;
    background: var(--blue);
    height: 100%;
    position: absolute;
    left: 0;
}

/* new design for sections */

#section-selection2 {
    overflow-x: auto;
    display: flex;
    width: 100%;
    /*box-shadow: 0 0 25px -5px;*/
    /*background: var(--white);*/
    z-index: 2;
    color: var(--white);
    text-transform: uppercase;
    position: absolute;
}

#section-selection2 .section-menu{
    flex: 1;
    width: 100%;
    display: inline-block;
    padding: 0 1em;
}

#section-selection2 .section-menu .section-btn {
    flex: 1;
    width: 100%;
    height: 60px;
    display: flex;
    padding: 0 3em;
}

#section-selection2 .section-btn:nth-child(1) {background: #2f4ea1}
#section-selection2 .section-btn:nth-child(2) {background: #808080}
#section-selection2 .section-btn:nth-child(2) {background: #909090}
#section-selection2 .section-btn:nth-child(3) {background: #959595}
#section-selection2 .section-btn:nth-child(3) {background: #A2A2A2}
#section-selection2 .section-btn:nth-child(3) {background: #A6A6A6}

#section-selection2 .section-btn.invisible {
    background: var(--white);
    pointer-events: none;
}

#section-selection2 .section-menu .section-btn .text {
    display: inline-flex;
    flex: 2;
    justify-content: flex-start;
    align-items: center;
}

#section-selection2 .section-menu .section-btn .icon {
    display: inline-flex;
    flex: 1;
    justify-content: center;
    align-items: center;
}

#section-selection2 .section-menu .section-btn .icon .image-size {
    width: 1.2em;
    height: 1.2em;
    cursor: pointer;
}

#section-selection2 .section-menu .section-btn-options {
    flex: 1;
    width: 100%;
    z-index: 1;
    display: flex;
    flex-direction: column;
    padding: 0 1em .5em 1em
}

#section-selection2 .section-btn-options.position1 {
    background: #2f4ea1;
}

#section-selection2 .section-btn-options.position2 {
    background: #909090;
}

#section-selection2 .section-btn-options.position3 {
    background: #A6A6A6;
}

#section-selection2 .section-btn-options .option {
    display: flex;
    align-items: center;
    height: 30px;
    padding: .5em 1em;
}

#section-selection2 .section-btn-options .option:not(:first-child) {border-top: solid 1px var(--dark-gray);}

#section-selection2 .section-btn-options .option.selected {
    font-weight: bolder;
    pointer-events: none;
    font-style: italic;
}

/* final of new section selection */

#edition-main .sidebar {
    flex: 1;
    background: var(--v-light-gray);
    box-shadow: var(--dark-gray) 0px 20px 20px -25px inset;
    position: relative;
}
#edition-main .swipeable-element::after {
    content: 'mostrar áreas';
    box-shadow: var(--dark-gray) 0px 20px 20px -25px inset;
}
#edition-main .sidebar {
    overflow-x: hidden;
}
#edition-main #section-container {
    flex: 3;
    padding: 30px;
    overflow-x: auto;
    overflow-y: auto;
}
#edition-main #section-container2 {
    flex: 3;
    overflow-x: auto;
    overflow-y: auto;
}
.section-container-disabled {
    pointer-events: none;
}

.VI-section,
.VI-section .category {
    position: relative;
}

.question-group, .question-group .question{
    position: relative;
}

.VI-section .category::before,
.VI-section .question-group::before,
.VI-section .question-group .question::before {
    position: absolute;
    top: 0;
    bottom: 0;
    transform: translateX(-100%);
    background: var(--red);
    width: 5px;
    content: '';
}
.VI-section .category::before,
.VI-section .question-group::before {
    left: -10px;
}
.VI-section .category .question-group::before,
.VI-section .question-group .question::before {
    left: -20px;
}
.VI-section .category .question-group .question::before {
    left: -30px;
}
.VI-section *.incomplete.optional::before {
    background: var(--red);
}

.VI-section .category.complete::before,
.VI-section .question-group.complete::before,
.VI-section .question-group .question.complete::before {
    background: var(--ubk-blue);


}

.VI-section .category.some-complete::before,
.VI-section .question-group.some-complete::before,
.VI-section .question-group .question.some-complete::before {
    background: var(--yellow);


}


.VI-section .indent {
    margin-left: 10px;
}
.VI-section .category {
    padding-top: 10px;
    padding-bottom: 10px;
}
.question-group {
    padding-top: 10px;
    padding-bottom: 10px;
}
.question-group .question {
    padding-top: 10px;
    padding-bottom: 10px;
}
.question-group .question:first-of-type {
    padding-top: 20px;
}
.question-group .question:last-of-type {
    padding-bottom: 20px;
}
.VI-section .section-info {
    font-size: x-large;
}
.VI-section .category .category-label,
.VI-section .question-group .qg-title {
    font-size: larger;
    cursor: pointer;
    letter-spacing: 3px;
    font-weight: bold;
}
.VI-section .category .qg-title {
    color: var(--gray);
    letter-spacing: inherit;
}
.VI-section .category.expanded .category-label::after {
    content: ':';
    font-size: inherit;
}
.VI-section .question-group .qg-title {
    font-weight: bold;
    font-size: larger;
}
.VI-section .question .q-title {
    font-weight: bold;
}
.VI-section .question-group .qg-desc,
.VI-section .question .q-desc {
    color: var(--dark-blue);
    font-style: italic;
}

.attachment-container {
    max-height: 128px;
}
.attachment-container > * {
    max-height: inherit;
}
.attachment-container > img {
    cursor: pointer;
}

.VI-warning-pop-up {
    text-align: center;
    background: var(--v-light-gray);
    position: absolute;
    left: 30%;
    right: 30%;
    top: 50%;
    transform: translateY(-50%);
    max-height: 90vh;
    border-radius: 10px;
    overflow: hidden;
    padding: 20px;
}

.warning-pop-up {
    text-align: center;
    background: var(--v-light-gray);
    position: absolute;
    left: 15%;
    right: 15%;
    top: 50%;
    transform: translateY(-50%);
    max-height: 70vh;
    border-radius: 10px;
    overflow: auto;
    padding: 20px;
}
/***********************************
 ***** ADV TABLE QUESTION TYPE *****
 ***********************************/

.adv-table--header {
    background: var(--light-gray);
    display: flex;
    font-weight: bold;
    text-align: center;
}
.adv-table--header .adv-table--cell {
    padding: 10px;
}
.adv-table--cell {
    flex: 1;
    padding: 5px;
    box-shadow:
        1px 0 0 0 #888,
        0 1px 0 0 #888,
        1px 1px 0 0 #888,
        1px 0 0 0 #888 inset, /* Just to fix the corner */
        0 1px 0 0 #888 inset;
    /* From: http://vlst.nl/x/e2 */
    -ms-word-break: break-word;
     word-break: break-word;

    /* Non standard for webkit */
    word-break: break-word;

    -webkit-hyphens: auto; /* Saf 5.1+ */
     -moz-hyphens: auto; /* Fx 6.0+ */
      -ms-hyphens: auto; /* IE 10+ */
       hyphens: auto; /* None yet */
}
.adv-table--cell input {
    width: 100%;
    border: none;
}

.adv-table--cell input::placeholder {
    opacity: .5;
}

/*****************
 ***** DRUGS *****
 *****************/

#selectedDrugsContainer, #medications-question{
    position: relative;
}

#medications-question > *,
#drug-search > * {
    /* margin-top: 20px;*/
    /*margin-bottom: 20px;*/
    margin: 0.75rem 0 1.2rem 0.75rem;
}
#search-modes .mode-option:not(:first-child) {
    margin-left: 20px;
}
#search-modes .mode-option input {
    margin-right: 10px;
}
#search-bar {
    --bar-height: 30px;
    height: var(--bar-height);
    align-items: center;
}

#search-bar #selected-drug {
    margin-left: 20px;
}

#search-bar input,
#search-bar .img-container {
    border-radius: 0.35em;
}
#search-bar input {
    border: solid 1px var(--blue);
    padding: 5px 10px;
    -webkit-box-flex: 1;
     -webkit-flex: 1;
      flex: 1;
    max-width: 400px;
}
#search-bar input:focus,
#search-bar input.focused {
    border-width: 2px;
    margin: -1px;
    outline: none;
}
#search-bar .img-container {
    margin-left: 1em;
    width: var(--bar-height);
    height: 100%;
    background: var(--ubk-blue);
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
     align-items: center;
    -webkit-justify-content: center;
     justify-content: center;
}
#search-bar .img-container img {
    height: 75%;
}
.selected-drug {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
     align-items: center;
    margin: 10px 0;
}
.selected-drug > *:not(:first-child) {
    margin-left: 10px;
}
.selected-drug.legend {
    font-weight: bold;
}
.selected-drug__drug_name{
    margin-bottom: 10px;
}
.selected-drug__head-sec {
    -webkit-box-flex: 2;
     -webkit-flex: 2;
      flex: 2;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: baseline;
     align-items: baseline;
    -webkit-flex-direction: column;
     flex-direction: column;
}

.selected-drug__head-sec.edition-mode{
    -webkit-box-flex: 1;
     -webkit-flex: 1;
      flex: 1;
}

.drug-name-head{
    -webkit-box-flex: 2;
     -webkit-flex: 2;
      flex: 2;
}
.selected-drug .mini-btn:not(:first-child) {
    margin-left: 10px;
}
.mini-btn--weekday-group-sel{
    margin-left: 0 !important;
    white-space: nowrap;
}

.selected-drug .posology {
    -webkit-box-flex: 2;
     -webkit-flex: 2;
      flex: 2;
}
.selected-drug .posology.edition-mode {
    -webkit-box-flex: 2.8;
    -webkit-flex: 2.8;
    flex: 2.8;
}
.selected-drug .mini-btn {
    font-size: smaller;
    color: var(--gray);
    text-decoration: underline;
    cursor: pointer;
    font-style: italic;
}
.posology span:hover {
    color: var(--dark-gray);
}
.selected-drug .documentation {
    -webkit-box-flex: 1 1 6%;
     -webkit-flex: 1 1 6%;
      flex: 1 1 6%;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
     flex-direction: column;
}
.selected-drug .documentation > * {
    flex: 1;
}

.selected-drug .documentation > .btn:first-child {
    margin-bottom: 0.4em;
}

.btns-drugs{
    margin-top: 20px;
}

/********************
 ***** ANALYSIS *****
 ********************/

.analysis-table-header {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    font-weight: bold;
    font-size: larger;
}
.analysis-table-header > div,
.summary-row:not(.header) > div {
    flex: 1;
    padding: 0.38em;
}
.analysis-table-header .narrow-cell,
.summary-row:not(.header) > .narrow-cell {
    flex: initial;
    width: 12%;
    max-width: 120px;
}
.narrow-cell--bottom-aligned{
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: flex-end;
     align-items: flex-end;
}
.analysis-table-subtitle{
    font-size: 0.7em;
}

.analysis-table-header__column-narrow{
    flex: initial;
    width: 24%;
    max-width: 240px;
}

.analysis-table-header__column-no-padding-lf{
    padding-left: 0 !important;
}
/* THIS IS TO PREVENT IMAGE SIZE CHANGE */
/*.narrow-cell img {
    width: 100%;
}*/
.summary-row.header {
    padding: 5px;
}

.summary-row-interrai.header {
    color: var(--white);
    font-weight: bold;
    padding: 5px;
    background-color: var(--ubk-blue);
}

.summary-row:not(.header) {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
}

.summary-row-interrai:not(.header) {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
}
.area-summary .summary-row.header {
    color: var(--blue);
    font-weight: bold;
}
.objective-cell {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
}
.objective-cell > div {
    flex: 1;
    display: flex;
    align-items: center;
}
.activation-cell .dropdown-toggle,
.objective-cell .dropdown-toggle {
    height: 10px;
    width: 10px;
    display: inline-block;
}
.activation-cell .option {
    display: flex:
    align-items: center;
}
.activation-cell .option img {
    margin-right: 10px;
}

.objective-cell .dropdown-toggle {
    margin-right: 10px;
}

.cell-header-icons{
    margin-top: 0.3em;
}

.table-icon{
    width: 35px;
    max-height: 1.3em;
}

.table-icon--with-text{
    width: 18px;
    padding-right: 0.1em;
}

.table-icon-caption{
    font-size: 0.7em;
}

.table-legend{
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
     flex-direction: row;
    -webkit-justify-content: flex-end;
     justify-content: flex-end;
    -webkit-align-items: center;
     align-items: center;
    margin-bottom: 1em;
}

.legend-label{
    font-size: 0.8em;
    font-weight: bold;
    margin-right: 2em;
}

.square-symbol{
    border-radius: 50%;
    width: 1.6em;
    height: 1.6em;
    display: inline-block;
    margin-right: 0.4em;
}

.square-symbol--violet{
    background-color: #9986b7;
}

.square-symbol--blue{
    background-color: #96d2d7;
}

.square-symbol--yellow{
    background-color: #f3de78;
}

.square-symbol--small{
    width: 1em;
    height: 1em;
}

/***************
 ***** NNN *****
 ***************/

.NNNs {
    --padding-v: 5px;
    --counter-margin: -5px -5px -5px 0;
}
.NNNs .nanda,
.NNNs .noc,
.NNNs .nic {
    padding: var(--padding-v);
}
.NNNs .NOCs,
.NNNs .NICs {
    margin: var(--counter-margin);
}
.sub-NNNs {
    margin-left: 20px;
}

/********************
 ***** COMMENTS *****
 ********************/

#comments-main .list-wrapper {
    overflow: initial;
}
.comment-popup {
    text-align: center;
    background: var(--v-light-gray);
    position: absolute;
    left: 15%;
    right: 15%;
    top: 50%;
    transform: translateY(-50%);
    max-height: 90vh;
    border-radius: 20px;
    overflow: hidden;
    padding: 20px;
}
.comment-popup textarea {
    width: 100%;
}
.comment-popup--send-btn {
    margin-top: 10px;
}

/*.comment-popup--send-btn.selected {
    background: var(--dark-blue);
}
.comment-popup--send-btn.disabled {
    background-color: var(--very-light-gray) !important;
    box-shadow: none;
    color: var(--light-gray) !important;
    cursor: default;
    pointer-events: none;
}
.comment-popup--send-btn.disabled *,
.comment-popup--send-btn[disabled] * {
    pointer-events: none;
}
.comment-popup--send-btn.disabled:hover,
.comment-popup--send-btn[disabled]:hover {
    background-color: var(--very-light-gray) !important;
    color: var(--light-gray) !important;*/

.comments--list-header {
    display: flex;
    position: relative;
    padding: 0 10px;
}
.comments--list-header .topic,
.comments--list-header .importance,
.comments--list-header .text {
    flex: 1;
    padding: 10px;
    font-weight: bold;
}
.comments--list-header .add-comment-btn {
    position: absolute;
    right: 0;
    bottom: 0;
    padding: 10px;
    height: 50px;
}

/***********************
 ***** CLIENT DATA *****
 ***********************/

.user-card,
.custom-dialog {
    background: white;
    position: absolute;
    left: 15%;
    right: 15%;
    top: 50%;
    transform: translateY(-50%);
    max-height: 90vh;
    border-radius: 20px;
    overflow: hidden;
}
.user-card.disabled {
    pointer-events: none;
}
.user-card:before {
    content: '';
    height: 100px;
    width: 100%;
    background: var(--yellow);
    background: -webkit-linear-gradient(left top, var(--blue), var(--yellow)); /* For Safari 5.1 to 6.0 */
    background: -o-linear-gradient(bottom right, var(--blue), var(--yellow)); /* For Opera 11.1 to 12.0 */
    background: -moz-linear-gradient(bottom right, var(--blue), var(--yellow)); /* For Firefox 3.6 to 15 */
    background: linear-gradient(to bottom right, var(--blue), var(--yellow)); /* Standard syntax */
    display: block;
}
.user-card.disabled:after {
    content: '';
    height: 100%;
    width: 100%;
    position: absolute;
    background: rgba(0, 0, 0, 0.5);
    top: 0;
    border-radius: 20px;
}
.card-header {
    height: 0;
    overflow: visible;
    display: flex;
}
.card-header img {
    box-shadow: 0 5px 10px 0 var(--gray);
    border-radius: 50%;
}
.card-header * {
    transform: translateY(-50%);
}
.card-header:before {
    content: '';
    flex: 1;
}
.card-header .options {
    flex: 1;
}
.card-header .options img {
    margin: 0 10px;
    height: 40px;
    background: var(--light-gray);
}
.card-header img.avatar {
    height: 80px;
    width: 80px;
    background: var(--blue);
    border-radius: 50%;
    margin: 0 20px;
}
.card-content {
    padding: 50px;
    overflow: auto;
    text-align: center;
}
.card-content .data-detail:not(:first-of-type) {
    margin-top: 20px;
}
.card-content .data-detail * {
    display: block;
}
.card-content .data-detail input {
    display: inline-block;
}
.card-content .data-detail .title {
    font-size: smaller;
    margin-bottom: 5px;
}
.custom-dialog {
    padding: 4%;
    overflow: auto;
    text-align: center;
    left: 22%;
    right: 22%;
}
.custom-dialog__data-row {
    margin-top: 30px;
    text-align: center;
}
.custom-dialog__label-mandatory {
    display: block;
    text-align: center;
    margin-top: 30px;
    font-size: smaller;
    color: var(--red);
    font-style: italic;
}
.custom-dialog__q-label{
    font-size: smaller;
    font-style: italic;
}

/*****************
 ***** FORMS *****
 *****************/

.standard-form-input{
    border-radius: 5px;
    border: solid 2px var(--ubk-blue);
    padding: 0.25em 0.3em 0.25em 0.3em;
}

.standard-form-input--number{
    max-width: 70%;
    padding: 0.25em 0 0.25em 0.3em;
}

.standard-form-input--dataset{
    width: 195px;
}

.standard-form-input--select{
    vertical-align: top;
    height: 1.9em;
}

.standard-form-input--textarea{
    height: auto;
    box-sizing: border-box;
    resize: none;
    margin-top: 1em;
}

.standard-form-input--txtarea-drugs{
    width: 75%;
    max-width: 790px;
}

.standard-form-label{
    cursor: pointer;
}

.standard-form-label--inline{
    margin-right: 0.5em;
}

.standard-form-label--block{
    display: block;
    margin-bottom: 1em;
}

.standard-form-input.disabled {
    background-color: var(--very-light-gray) !important;
    box-shadow: none;
    color: var(--light-gray) !important;
    cursor: default;
    pointer-events: none;
}

.inline-selector{
    display: inline-block;
    margin-right: 1em;
}

.inline-selector__label{
    margin-left: 5px;
}

.inline-selector--meal-intake{
    width: 19%;
    margin-right: 1%;
}

.inline-selector--multiline-select{
    margin-bottom: 1em;
}

.inline-selector--multiline-checkbox{
    margin-bottom: 2em;
}

.form-block{
    margin: 1.9em 0;
}

.meal-intake-sel-wrapper{
    max-width: 900px;
}

.inline-selector--multiline-select-interrai{
    /*margin-bottom: 1em;*/
    margin-top: 1em;
}

.block-selector{
    display: block;
    text-align: left;
    margin-right: 1em;
}

.block-selector--multiblock-checkbox{
    margin-bottom: .7em;
}

/*******************
 ***** TOOLTIP *****
 *******************/

.shadowed-tooltip-invoker {
    position: relative;
    cursor: pointer;
}

.shadowed-tooltip {
    position: absolute;
    z-index: 999;
}

.shadowed-tooltip--arrow {
    filter: brightness(5) drop-shadow(0 0 3px black);
    -webkit-filter: brightness(5) drop-shadow(0 0 3px black);
    -moz-filter: brightness(5) drop-shadow(0 0 3px black);
    transform: rotate(90deg);

    display: block;
    position: relative;
}

.shadowed-tooltip--content-box {
    border-radius: 5px;
    background: var(--ubk-blue);
    max-width: 70vw;
    min-width: 30vw;
    position: relative;
    padding: 15px;
    left: -15px;
    top: -1px;
}

.shadowed-tooltip--content-box:before {
    content: '';
    box-shadow: 0 0 8px -1px black;
    border-radius: 5px;
    z-index: -1;
    top: 0; right: 0; bottom: 0; left: 0;
    position: absolute;
}

/*****************
 ***** OTHER *****
 *****************/

#comments-main {
    margin: 20px;
}

#comments-main .comment {
    display: flex;
}

#comments-main .comment > div {
    flex: 1;
    padding: 10px;
}
.placeholder,
.placeholder::placeholder {
    color: var(--gray);
    font-style: italic;
}

.back-btn {
    color: var(--gray);
    margin-right: 20px;
    display: flex;
    align-items: center;
}
.back-btn > img {
    height: 1em;
    margin-right: 5px;
}

/*****************
 ***** OTHER *****
 *****************/

.s-shadow {
    box-shadow: 0 0 10px 0 var(--gray);
}
.flex {
    display: flex;
}
.remaining-space {
    flex: 1;
}
.swipeable-element {
    --transition-time: .4s;
    position: relative;
    transition: max-width var(--transition-time), margin-right var(--transition-time);
    max-width: 50%;
}
.swipeable-element > * {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}
.swipeable-element.swiped-out {
    max-width: 0;
    margin-right: 35px;
}
.swipeable-element::after {
    content: 'swipe in';
    writing-mode: vertical-lr;
    position: absolute;
    height: 100%;
    width: 0;
    right: 0;
    z-index: 2;
    background: var(--v-light-gray);
    /*border-radius: 0 50% 50% 0;*/

    text-align: center;
    line-height: 35px;
    overflow: hidden;
    transition: width var(--transition-time), right var(--transition-time);
}
.swipeable-element.swiped-out::after {
    width: 35px;
    right: -35px;
}
.stretch-v {
    height: 100%;
}
.background {
    background-color: rgba(0, 0, 0, 0);
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
}
.element-with-tooltip {
    position: relative;
}
.tooltip {
    display: none;
    pointer-events: none;
}
.element-with-tooltip:hover .tooltip {
    display: block;
    bottom: -20px;
    right: 5px;
    position: absolute;
    z-index: 1;
    background: var(--dark-gray);
    color: white;
    padding: 5px;
}
.tooltip-popup-scrim {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 998;
}
.tooltip-popup {
    transform: translate(-50%, calc(-100% - 10px));
    position: absolute;
}
.tooltip-popup-scrim .tooltip-w-arrow {
    z-index: 999;
    position: relative;
    background: var(--v-light-gray);
    border-radius: 10px;
    padding: 10px;
    box-shadow: 5px 5px 10px -2px;
}
.tooltip-popup-scrim .tooltip-w-arrow::after {
    content: "";
    position: absolute;
    top: 99%;
    left: 50%;
    margin-left: -10px;
    border-width: 10px;
    border-style: solid;
    border-color: var(--v-light-gray) transparent transparent transparent;
}
.tooltip-w-arrow .tooltip-content {
    padding: 25px 20px 20px 20px;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
}
.popup-element {
    position: absolute;
    top: 5%;
    bottom: 5%;
    left: 5%;
    right: 5%;
    background: white;
    padding: 30px;
    overflow: auto;
}
.popup-close-btn {
    position: absolute;
    right: 0;
    top: 0;
    height: 20px;
    padding: 5px;
    cursor: pointer;
}
.popup-close-btn img {
    height: 20px;
}

.popup-close-btn2 {
    position: absolute;
    right: 0;
    top: 0;
    height: 20px;
    padding: .8em;
    cursor: pointer;
    background: var(--ubk-blue);
}
.popup-close-btn2 img {
    height: 20px;
}

.disable-popup-inside-element {
    opacity: 0.3;
    pointer-events: none;
}

.b {
    font-weight: bold;
}
.truncate-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.survey-form {
    display: flex;
    flex-direction: column;
}
.survey-form .question-group {
    overflow-y: auto;
}
.progress-bar {
    background: var(--light-gray);
    width: calc(100% - 20px);
    height: 10px;
    border-radius: 5px;
    margin-top: 40px;
}
.progress-bar .progress {
    background: var(--ubk-blue);
    color: var(--white);
    height: 100%;
    border-radius: 5px;
    transition: width .4s;
    position: relative;
}
.progress-bar .progress::before {
    content: '';
    position: absolute;
    right: 3px;
    top: -35px;
    width: 30px;
    height: 30px;
    -webkit-border-radius: 80% 0 55% 50% / 55% 0 80% 50%;
    border-radius: 80% 0 55% 50% / 55% 0 80% 50%;
    background: var(--ubk-blue);
    color: var(--white);
    -webkit-transform: translateX(50%) rotateZ(135deg);
    transform: translateX(50%) rotateZ(135deg);
}
.progress-bar .progress::after {
    position: absolute;
    content: attr(value);
    right: 3px;
    top: -30px;
    transform: translateX(50%);
}
.main-ontop-panel {
    background: var(--semi-transparent-white);
}
.side-ontop-panel {
    background: var(--semi-transparent-light-gray);
}
.wait-spinner {
    height: 60px;
    width: 60px;
    position: relative;
    animation: load 1.7s infinite ease;
}
.dot {
    width: 35%;
    height: 35%;
    border-radius: 50%;
    position: absolute;
}
.yellow.dot {
    background: #2f4ea1; /*#F3DE78;*/
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}
.red.dot {
    background: var(--green); /*#E49189;*/
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}
.blue.dot {
    background: var(--green); /* #96D2D7;*/
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}
.gray.dot {
    background: #2f4ea1;/*#B7B6B6;*/
    bottom: 50%;
    left: 0;
    transform: translateY(50%);
    border-radius: 100% / 50%;
    width: 17.5%;
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
}

.gray2.dot {
    background: var(--green); /*#B7B6B6;*/
    bottom: 50%;
    left: 0;
    transform: translateY(50%);
    border-radius: 100% / 50%;
    width: 17.5%;
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
}


@keyframes load {
    from {
        -webkit-transform: rotate(0deg);
        transfrom: rotate(0deg);
    }
    to {
        -webkit-transform: rotate(360deg);
        transfrom: rotate(360deg);
    }
}
.dropdown {
    background: var(--light-gray);
    position: absolute;
    font-size: x-small;
}
.dropdown .option {
    cursor: pointer;
}
.dropdown .option:hover {
    background: var(--gray);
}
.flex-center {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: center;
     justify-content: center;
    -webkit-align-items: center;
     align-items: center;
}

.flex-baseline{
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: baseline;
     align-items: baseline;
}

/**************************
 ***** DELETED CLIENTS *****
 **************************/
.deleted-client-row{
    display: flex;
    padding-top: 10px;
}

.deleted-client-row__col{
    box-sizing: border-box;
    padding: 0 5px;
}

.deleted-client-row__col--name{
    width: 25%;
}

.deleted-client-row__col--date{
    width: 15%;
}

.deleted-client-row__col--reason{
    width: 18%;
}

.deleted-client-row__col--actions{
    width: 27%;
}

.deleted-client-row__btn{
    margin-right: 10px;
    margin-bottom: 3px;
}

.deleted-client-row__btn.wgi{
   height: 26px;
}

/*****************************
 ***** POTENTIAL CLIENTS *****
 *****************************/

 .potential-client-row{
     display: flex;
     padding-top: 10px;
 }

 .potential-client-row__col{
     box-sizing: border-box;
     padding: 0 5px;
 }

 .potential-client-row__col--header-name{
     /*width: 25%;*/
     width: 25%;
     font-weight: bold;
     margin-left: 30px;
     padding: 10px 0 20px 0;
 }

 .potential-client-row__col--header-date{
     /*width: 15%;*/
     width: 25%;
     font-weight: bold;
     margin-left: 30px;
     padding: 10px 0 20px 0;
 }

 .potential-client-row__col--header-status-state{
     /*width: 35%;*/
     width: 25%;
     font-weight: bold;
     margin-left: 30px;
     padding: 10px 0 20px 0;
 }

 .potential-client-row__col--header-actions{
     /*width: 25%;*/
     width: 25%;
     font-weight: bold;
     margin-left: 30px;
     padding: 10px 0 20px 0;
 }

 .potential-client-row__col--name{
      width: 33.34%;
      /*margin-left: 10px;*/
  }

  .potential-client-row__col--date{
      width: 20%;
      text-align: center;
  }

  .potential-client-row__col--status-state{
      width: 46.66%;
      /*margin-left: 10px;*/
  }

  .potential-client-row__col--actions{
      width: 25%;
  }

 .potential-client-row__btn{
     margin-right: 10px;
     margin-bottom: 3px;
 }

 .potential-client-row__btn.wgi{
    width: 18%;
 }

 .under-header-line {
    height: 2px;
    background-color: var(--dark-gray);
    border-style: none;
    margin-bottom: 20px;
 }

/*****************************
 ***** USER PROFILE DATA *****
 *****************************/

#posibleUserProfileContainer {
    position: relative;
}

.user-personal-data {
    margin-top: 10px;
    padding-bottom: 10px;
    background: var(--light-gray);
    display: flex;
    flex-direction: row;
}

.user-personal-data-position {
    margin-left: 50px;
    width: 50%;
}

.user-profile-header {
    font-size: 20px;
    font-style: bold;
    margin-left: 5px;
}

.client-name {
    font-size: 24px;
    margin-bottom: 10px;
    margin-left: 25px;
}

.client-name-edit {
    font-size: 16px;
    margin-bottom: 10px;
    margin-left: 25px;
}

.relative-name-edit {
    font-size: 16px;
    margin-bottom: 10px;
    margin-left: 25px;
    width: 80%;
}

.client-data {
    font-size: 16px;
        margin-left: 35px;
}

.vi-difference-of-days-icon {
    position: relative;
    height: 40px;
    margin: 22px 2px 18px 2px;
}

.vi-difference-of-days-icon img {
    height: 40px;
}

.status-data-container {
    margin-top: 30px;
    padding-bottom: 10px;
    padding-top: 20px;
    background: var(--white);
}

.status-data {
    font-size: 16px;
    margin-left: 35px;
    margin-bottom: 10px;
    white-space: pre-line;
}

.add-status-btn {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: center;
     justify-content: center;
    margin-top: 35px;
    margin-bottom: 35px;
}

.add-status-popup {
    text-align: center;
    background: var(--v-light-gray);
    position: absolute;
    left: 15%;
    right: 15%;
    top: 50%;
    transform: translateY(-50%);
    max-height: 90vh;
    border-radius: 10px;
    overflow: hidden;
    padding: 20px;
}

.status-text-input {
    display: block;
    border: solid 1px var(--blue);
    border-radius: 5px;
    padding: 5px 10px;
    margin: 5px 0;
    width: calc(75%);
    /*margin-left: auto;*/
    margin-right: auto;
    /*To fill whole horizontal space, border and padding need to be subtracted*/
}

.survey-textarea-input {
    display: block;
    border: solid 1px var(--blue);
    border-radius: 5px;
    padding: 5px 10px;
    margin: 5px 0;
    width: calc(100% - 22px);
    resize: none;
}

.client-name-surname-form-input{
    border-radius: 5px;
    border: solid 2px var(--ubk-blue);
    padding: 0.25em 0.3em 0.25em 0.3em;
}

.client-name-surname-form-input.incomplete:not(:focus) {
    border: solid 2px var(--red);
}

.user-data-row .client-name-surname-form-input[type="password"]:focus + span {
    display: none;
}

.relative-name-surname-form-input{
    border-radius: 5px;
    border: solid 2px var(--blue);
    padding: 0.25em 0.3em 0.25em 0.3em;
    margin-bottom: 2em;
    margin-bottom: 2em;
    width: 80%;
}


/***************
 ***** HPS *****
 ***************/

/** Problemas Detectados **/

.hps-table-container {
    /*display: flex;
    flex-direction: column;
    width: auto;*/
    padding: 0 20px;
    /*align-items: center;
    justify-content: center;*/
}

/*headers*/

.hps-ap-table-header, .hps-pp-table-header {
    display: flex;
    flex: 1;
    min-height: 3em;
    height: auto;
    flex-direction: row;
    align-items: center;
    border-bottom: solid 1px var(--gray);
    font-size: 18px;
}

.hps-ap-table-header .title1, .hps-pp-table-header .title1 {
    display: flex;
    flex: 3;
    justify-content: flex-start;
    font-size: larger;
    font-weight: bold;
    padding: .38em;
}

.hps-ap-table-header .title2 {
    display: flex;
    flex: 2;
    justify-content: flex-start;
    font-size: larger;
    font-weight: bold;
    padding: .38em;
}

.hps-ap-table-header .title3 {
    display: flex;
    flex: 3;
    justify-content: flex-start;
    font-size: larger;
    font-weight: bold;
    padding: .38em;
}
.hps-ap-table-header .title4 {
    display: flex;
    flex: 2;
    justify-content: flex-end;
    padding: .38em;
}

.hps-pp-table-header.disabled {
    opacity: .2;
    pointer-events: none;
}

/*table rows*/

.hps-list-row:nth-child(even) {background: var(--v-light-gray);}

.hps-ap-summary-row,
.hps-pp-summary-row {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: center;
    min-height: 3em;
    height: auto;
    margin: 0 10px;
    font-size: 16px;
    /*border-bottom: solid 1px var(--light-gray);*/
}

.hps-pp-summary-row {align-items: center;}

.hps-ap-summary-row .prob-name {
    display: inline-flex;
    flex: 3;
    padding: .35em;
    text-transform: uppercase;
}

.hps-ap-summary-row .prob-kbs {
    display: inline-flex;
    flex: 2;
    padding: .35em;
    text-transform: uppercase;
    letter-spacing: .35em;
}

.hps-ap-summary-row .prob-kbs.critical {color: var(--red);}
.hps-ap-summary-row .prob-kbs.very-critical {color: var(--red); font-weight: bold;}

.hps-ap-summary-row .prob-sign-container {
    display: inline-flex;
    flex-direction: column;
    flex: 5;
    padding: .35em;
}

.hps-ap-summary-row .prob-sign-container .sign {
    display: flex;
    min-height: 2em;
    height: auto;
    align-items: center;
    justify-content: flex-start;
}

.hps-ap-summary-row .prob-sign-container .sign:not(:last-child) {
    border-bottom: dashed 1px var(--light-gray);
}

.hps-ap-summary-row .prob-sign-container .sign .text {
    display: flex;
    flex: 1;
    padding: .6em 1em;
    text-transform: capitalize;
}

.hps-ap-summary-row .prob-btns-container {
    display: inline-flex;
    flex-direction: row;
    /*padding: .35em;*/
}

.hps-ap-summary-row .prob-btns-container .ap-row-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .6em;
}

.hps-ap-summary-row .prob-btns-container .ap-row-btn img {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.hps-pp-summary-row .prob-name {
    display: inline-flex;
    flex: 4;
    padding: .35em;
    text-transform: uppercase;
}

.hps-pp-summary-row .action {
    display: inline-flex;
    flex: 1;
    justify-content: flex-end;
    padding: .35em;
    color: var(--ubk-blue);
    cursor: pointer;
}

/* hps edition pencil icon and hps remove sign icon*/

.hps-t-edition-icon,
.hps-t-edition-remove-sign-icon,
.hps-t-more-info-icon {
    padding-left: 15px;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.hps-t-edition-remove-sign-icon {justify-content: flex-end; padding-right: 1em;}

.hps-t-edition-icon img,
.hps-t-more-info-icon img {
    width: 1em;
    height: 1em;
}

.hps-t-edition-remove-sign-icon img {
    width: .8em;
    height: .8em;
}


/* hps table extra functions */

.add-hps-extra-q-popup {
    text-align: left;
    background: var(--v-light-gray);
    position: absolute;
    left: 5%;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    max-height: 90vh;
    border-radius: 10px;
    overflow: hidden;
    padding: 20px;
    overflow-x: auto;
    overflow-y: auto;
}
.center-flex-column-red {
    background: var(--light-red);
}

.save-cancel-btns-position {
    margin-top: 2em;
    text-align: center;
}

.add-problem-btn {
    color: var(--ubk-blue);
    text-decoration: underline;
    display: inline-block;
    font-weight: bold;
}

.add-hps-extra-problem-popup,
.add-hps-extra-sign-popup,
.add-hps-kbs-popup,
.add-nanda-activation-popup {
    text-align: left;
    background: var(--v-light-gray);
    position: absolute;
    left: 10%;
    right: 10%;
    top: 5%;
    bottom: 5%;
    /*transform: translateY(-50%);*/
    max-height: 90vh;
    overflow: hidden;
    padding: 2em 3em;
    /*overflow-x: auto;*/
    overflow-y: auto;
}

.hps-all-kbs-problem-selection-container,
.hps-all-signs-problem-selection-container {
    background: var(--white);
    border: solid 1px var(--light-gray);
    height: 2em;
    width: auto;
    display: inline-block;
}

.hps-problem-activation-selection-container,
.hps-sign-activation-selection-container {
    overflow-y: auto;
    /*max-height: 33em;*/
    /*max-height: max-content;*/
    max-height: 80%;
    margin: 2em 1em;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    font-size: 14px;
    overflow-y: auto;
}

.hps-kbs-selection-container {margin: 2em 1em; font-size: 14px;}


.DE-characteristic-table-def-rel {
    margin: 1em 1em 1em 1em;
    display: flex;
    flex-direction: row;
    font-size: 16px;
}

.DE-def-characteristic-table-container,
.DE-rel-characteristic-table-container {
    /*overflow-y: auto;*/
    /*max-height: 33em;*/
    display: flex;
    flex: 1;
    flex-direction: column;
}

.DE-risk-characteristic-table-container,
.DE-noc-selection-container,
.DE-nic-selection-container {
    /*overflow-y: auto;*/
    display: flex;
    flex: 1;
    flex-direction: column;
    /*max-height: 33em;*/
    margin: 1em 5em 1em 5em;
    font-size: 16px;
}

.DE-def-characteristic-table-container .header,
.DE-rel-characteristic-table-container .header,
.DE-risk-characteristic-table-container .header,
.DE-noc-selection-container .header,
.DE-nic-selection-container .header {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.DE-def-characteristic-table-container .header .selector,
.DE-rel-characteristic-table-container .header .selector,
.DE-risk-characteristic-table-container .header .selector,
.DE-noc-selection-container .header .selector,
.DE-nic-selection-container .header .selector {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 14px;
    font-style: italic;
    height: auto;
    min-height: 2em;
    padding: .1em 0;
    width: 100%;
}

.DE-charact-select-all-checkbox-input {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    margin-right: 15px;
}

.DE-charact-select-all-input-label {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    flex: 1;
}

.DE-def-characteristic-table-container .header .text,
.DE-rel-characteristic-table-container .header .text,
.DE-risk-characteristic-table-container .header .text,
.DE-noc-selection-container .header .text,
.DE-nic-selection-container .header .text {
    display: flex;
    width: 100%;
    font-size: 16px;
    text-transform: uppercase;
    font-weight: bold;
    padding: .3em 0;
}

.DE-def-rel-charact-opt-table-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: .5em 1em .5em 0;
}

.DE-risk-charact-opt-table-container,
.DE-noc-opt-table-container,
.DE-nic-opt-table-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: .5em 1em .5em 0;
}

.DE-nic-opt-table-container .selected-nic-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.DE-def-rel-charact-opt-table-container .charact-select-btn,
.DE-risk-charact-opt-table-container .charact-select-btn,
.DE-noc-opt-table-container .noc-select-btn,
.DE-nic-opt-table-container .nic-select-btn,
.DE-nic-opt-table-container .selected-nic-container .nic-select-btn {
    display: flex;
    width: 100%;
    min-height: 40px;
    margin: .5em 0;
}

.DE-def-rel-charact-opt-table-container .charact-select-btn .text,
.DE-risk-charact-opt-table-container .charact-select-btn .text,
.DE-noc-opt-table-container .noc-select-btn .text,
.DE-nic-opt-table-container .nic-select-btn .text,
.DE-nic-opt-table-container .selected-nic-container .nic-select-btn .text {
    display: flex;
    flex: 1;
    justify-content: flex-start;
    align-items: center;
    padding: .3em 1em;
    border: solid 1px var(--light-gray);
    margin: 0 .5em;
}

.DE-def-rel-charact-opt-table-container .charact-select-btn .text.proposed,
.DE-risk-charact-opt-table-container .charact-select-btn .text.proposed,
.DE-noc-opt-table-container .noc-select-btn .text.proposed,
.DE-nic-opt-table-container .nic-select-btn .text.proposed,
.DE-nic-opt-table-container .selected-nic-container .nic-select-btn .text.proposed {
    background: var(--light-gray);
}

.DE-def-rel-charact-opt-table-container .charact-select-btn .text.selected,
.DE-risk-charact-opt-table-container .charact-select-btn .text.selected,
.DE-noc-opt-table-container .noc-select-btn .text.selected,
.DE-nic-opt-table-container .nic-select-btn .text.selected,
.DE-nic-opt-table-container .selected-nic-container .nic-select-btn .text.selected {
    background: var(--ubk-blue);
    color: var(--white);
    border: solid 1px var(--ubk-blue);
}


.hps-problem-select-btn,
.hps-sign-select-btn,
.DE-characteristic-select-btn {
    display: flex;
    width: 50%;
    min-height: 50px;
    height: auto;
    margin: .5em 0;
}

.hps-problem-select-btn .text,
.hps-sign-select-btn .text,
.DE-characteristic-select-btn .text {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
    padding: 7.5px 1em;
    border: solid 1px var(--light-gray);
    margin: 0 .5em;
}

.hps-problem-select-btn .text.selected,
.hps-sign-select-btn .text.selected,
.DE-characteristic-select-btn .text.selected {
    background: var(--ubk-blue);
    color: var(--white);
    border: solid 1px var(--ubk-blue);
}

.activate-problem-btn-container,
.activate-sign-btn-container,
.valorate-kbs-btn-container,
.activate-DM-diagnostic-btn-container,
.activate-DE-diagnostic-btn-container {
    display: flex;
    flex: 1;
    align-items: center;
    /*justify-content: center;*/
    margin: 3em 2.75em 1.5em 2.75em;
}

.activate-problem-btn-container .action-btn,
.activate-sign-btn-container .action-btn,
.valorate-kbs-btn-container .action-btn,
.activate-DM-diagnostic-btn-container .action-btn,
.activate-DE-diagnostic-btn-container .action-btn {
    background: var(--v-light-gray);
    color: var(--gray);
    display: inline-flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    height: 3em;
    border: solid 1px var(--gray);
    margin: 0 .75em;
    pointer-events: none;
}

.activate-sign-btn-container .next-action-btn {
    background: var(--v-light-gray);
    color: var(--gray);
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    height: 3em;
    border: solid 1px var(--gray);
    padding: 0 .75em;
    pointer-events: none;
}

.activate-problem-btn-container .action-btn.active,
.activate-sign-btn-container .action-btn.active,
.activate-sign-btn-container .next-action-btn.active,
.valorate-kbs-btn-container .action-btn.active,
.activate-DM-diagnostic-btn-container .action-btn.active,
.activate-DE-diagnostic-btn-container .action-btn.active {
    background: var(--light-gray);
    color: var(--dark-gray);
    border-color: var(--light-gray);
    pointer-events: auto;
}

.add-sign-btn {
    background: var(--white);
    color: gray;
    border-radius: 5px;
    display: inline-block;
    box-sizing: border-box;
    height: 18px;
    line-height: 12px;
    outline: 0;
    margin: 0 .5em 0 1em;
    padding: 2px .5rem;
    text-transform: uppercase;
    vertical-align: middle;
    -webkit-tap-highlight-color: transparent;
}

.problem-cell-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
}

.problem-cell-left {
    display: inline-flex;
    width: 70%;
}

.problem-cell-right {
    display: inline-flex;
    justify-content: flex-end;
    width: 30%;
}

/***** MEDICAL DIAGNOSIS *****/

#medical-diagnosis-main {
    display: flex;
    flex-direction: column; /* flex-direction: column; -- Antes para las tablas azules de DM y DE */
    margin: 0;
    position: relative;
    overflow-x: auto;
    overflow-y: auto;
}

/*** DM - medical evaluation ***/

.DM-evaluation-table-header {
    background: var(--v-light-gray);
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    height: 60px;
}

.DM-evaluation-left-table-header {
    background: var(--light-gray);
    display: inline-flex;
    align-items: center;
    width: 30%;
    height: 100%;
}

.DM-evaluation-right-table-header {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    width: 70%;
    height: 100%;
}

.DM-evaluation-right-table-header-search-container {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    height: 100%;
}

.DM-evaluation-main-header {
    font-weight: bold;
    padding: 0 2em 0 2em;
    text-transform: uppercase;
}

.DM-evaluation-search-input2 {
    background: var(--white);
    height: 38px;
    display: inline-flex;
    width: auto;
    border: solid 1px var(--light-gray);
    align-items: center;
    justify-content: flex-start;
    margin-right: 2em;
}

.DM-evaluation-search-input2 input,
.DM-evaluation-search-input2 input:active,
.DM-evaluation-search-input2 input:focus {
        display: inline-flex;
        border: none;
        outline: none;
        background: none;
        padding: .3em 1em;
}

/*.DM-evaluation-search-input2 input::placeholder,
.add-diagnostic-textarea-input::placeholder,
.add-diagnostic-age-date::placeholder,
.add-diagnostic-labeled-text-container input::placeholder {
    color: var(--light-gray);
}*/

.DM-evaluation-search-btn2 {
    background: var(--ubk-blue);
    height: 30px;
    width: 30px;
    display: inline-flex;
    border-radius: 5px;
    margin-right: 64px;
    align-items: center;
    justify-content: center;
}

.DM-evaluation-search-btn2 img {
    cursor:pointer;
    width: 50%;
    height: 50%;
    transform: rotate(45deg);
}

/*viejo search DM evaluation*/
.DM-evaluation-search-input-position {
    /*margin: 0 2em 0 2em;*/
    width: 100%;
    /*display: flex;*/
    /*justify-content: center;*/
}

.DM-evaluation-search-input {
        background: var(--white);
        /*width: 100%;*/
        border-radius: 5px;
        border: solid 1px var(--gray);
        display: flex;
        align-items: center;
        border-radius: 5px;
        margin: 0 2em 0 2em;
}

.DM-evaluation-search-input input,
.DM-evaluation-search-input input:active,
.DM-evaluation-search-input input:focus {
        display: inline-flex;
        border: none;
        outline: none;
        background: none;
        width: 80%;
        padding: .3em 1em;
}

.DM-evaluation-search-input .DM-search-btn {
    background: var(--v-light-gray);
    display: inline-flex;
    width: 20%;
    padding: .3em 1em;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    border-left: 1px solid var(--gray);
    justify-content: center;
}

/* viejo dm search evaluation input*/

.DM-evaluation-table-content {
    display: flex;
    flex-direction: row;
    /*align-items: center;*/
    width: 100%;
}

.DM-evaluation-left-table {
    background: var(--white);
    display: inline-flex;
    flex-direction: column;
    /*align-items: center;*/
    width: 30%;
}

.DM-evaluation-right-table {
    display: inline-flex;
    flex-direction: column;
    /*align-items: center;*/
    width: 70%;
}

.DM-diagnostic-function-select {
    background: var(--v-light-gray);
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.DM-evaluation-function-selector{
    background: var(--white);
    border: solid 1px var(--light-gray);
    height: 38px;
    width: 90%;
}

.DM-evaluation-cie10-left-list {
    max-height: 40em;
    overflow-y: auto;
    width: 100%;
    background: var(--v-light-gray);
    padding: .5em 0 .8em 0;
}

.list .list-element-container-DM-new {
    background: var(--v-light-gray);
    margin: 0 10px;
}

.list > .list-element-container-DM-new:first-child {
    padding-top: 10px;
}
.list > .list-element-container-DM-new:last-child {
    padding-bottom: 10px;
}

.list .list-element-container-evaluation-opt {
    background: var(--v-light-gray);
    padding: 0 8px 0 16px;
}

.list .list-element-container-evaluation-opt-white {
    background: var(--white);
    padding: 0 16px 0 25px;
    /*font-size: 18px;*/
    font-size: 16px;
}

.list .list-element-container-evaluation-opt.selected,
.list .list-element-container-evaluation-opt-white.selected {
    background: var(--ubk-blue);
    color: var(--white);
}

.list .list-element-container-evaluation-opt.active-diagnostic,
.list .list-element-container-evaluation-opt-white.active-diagnostic {
    font-weight: bold;
    color: var(--ubk-blue);
    /*pointer-events: none;*/
}

.DM-evaluation-option-code {
    display: inline-flex;
    align-items: baseline;
    justify-content: flex-start;
    width: 15%;
    padding-right: 5px;
}

.DM-evaluation-option-title {
    display: inline-flex;
    align-items: baseline;
    justify-content: flex-start;
    width: 85%;
}

.DM-evaluation-option-arrow {
    display: inline-flex;
    width: 10%;
    justify-content: center;
    align-items: center;
}

.DM-evaluation-option-arrow .icon-size {
    width: 1.2em;
    height: 1.2em;
    transform: rotate(-90deg);
}

/* viejo input dm checkbox */
.DM-checkbox-input {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 10%;
}

.DM-checkbox-input-label {
    display: inline-flex;
    align-items: center;
    justify-content: start;
    width: 90%;
}

.DM-checkbox-input-label-selected {
    /*background: var(--light-gray);*/
    font-weight: bolder;
}

/*viejo input dm checkbox */

#DM-evaluation-right-table-container {
    background: var(--white);
    padding: 4em 4em;
}

.DM-evaluation-right-table-container-encapsulation {
    display: flex;
    padding: 1em 1.5em;
    background: var(--v-light-gray);
    min-height: 40px;
    align-items: center;
}

.DM-evaluation-right-table-group-header {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    /*width: 50%;*/
    font-weight: bold;
    /*font-size: 18px;*/
    font-size: 16px;
    flex: 1;
}

.DM-evaluation-cie10-right-list {
    max-height: 40em;
    overflow-y: auto;
    width: 100%;
    background: var(--white);
}

.DM-evaluation-show-more-box {
    background: var(--white);
    height: 4em;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-bottom: solid 5px var(--v-light-gray);
    padding: 0 2em;
}

.show-more-btn {
    color: var(--ubk-blue);
    display: inline-flex;
    /*font-weight: bold;*/
    /*font-size: 18px;*/
    font-size: 16px;

    /*background: var(--v-light-gray);
    display: flex;
    border: solid 2px var(--gray);
    border-radius: 5px;
    align-items: center;
    justify-content: center;
    padding: .3em .5em;
    height: 44%;
    width: 8em;*/
}

.show-more-btn.disabled {
    visibility: hidden;
}

#DM-evaluation-SD-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50%;
}

#DM-evaluation-SD-remove img {
    height: 60%;
    width: 60%;
}

.DM-evaluation-cie10-left-list::-webkit-scrollbar,
.DM-evaluation-cie10-right-list::-webkit-scrollbar,
.DM-diagnostic-table-body-content::-webkit-scrollbar,
.treatments-warning-popup::-webkit-scrollbar {
    width: 10px;
}

.DM-evaluation-cie10-left-list::-webkit-scrollbar-track,
.DM-evaluation-cie10-right-list::-webkit-scrollbar-track,
.DM-diagnostic-table-body-content::-webkit-scrollbar-track,
.treatments-warning-popup::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 2px;
}

.DM-evaluation-cie10-left-list::-webkit-scrollbar-thumb,
.DM-evaluation-cie10-right-list::-webkit-scrollbar-thumb,
.DM-diagnostic-table-body-content::-webkit-scrollbar-thumb,
.treatments-warning-popup::-webkit-scrollbar-thumb {
    background: var(--ubk-blue);
    border-radius: 2px;
}


.DM-add-diagnostic-popup-container {
    margin: 2em 1.5em;
    display: flex;
    flex-direction: column;
    font-size: 16px;
}

.add-diagnostic-labeled-text-container,
.add-diagnostic-labeled-textarea-container {
    display: flex;
    padding: .4em 1.5em .4em 1.5em;
    align-items: center;
    justify-content: center;
    flex-direction: row;
}

.add-diagnostic-labeled-text-container label,
.add-diagnostic-labeled-textarea-container label {
    display: flex;
    flex: 1;
    justify-content: flex-start;
    align-items: center;
}

.add-diagnostic-labeled-text-container input,
.add-diagnostic-labeled-textarea-container textarea {
    display: flex;
    flex: 4;
    justify-content: flex-start;
    align-items: center;
    border: solid 1px var(--light-gray);
    padding: 3px 10px;
    margin-left: 10px;
}

/*.add-diagnostic-labeled-text-container:last-child {
    padding-bottom: 1.2em;
    border-bottom: solid 1px var(--gray);
}*/

.add-diagnostic-age-date-container,
.add-diagnostic-type-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    margin: 1.2em 0;
    padding: 1.5em 0;
    border-top: solid 1px var(--gray);
    border-bottom: solid 1px var(--gray);
}

.add-diagnostic-age-date-container-radiobutton-select,
.add-diagnostic-age-date-container-input,
.add-diagnostic-type-container-radiobutton-select {
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.add-diagnostic-age-date-container-input, .add-diagnostic-type-container-radiobutton-select {flex: 1;}
.add-diagnostic-age-date-container-radiobutton-select {flex: 2;}

.add-diagnostic-age-date-popup {
    display: flex;
    border: solid 1px var(--light-gray);
    padding: 3px 10px;
    width: 125px;
}



#add-diagnostic-container {
    background: var(--v-light-gray);
    width: 100%;
    display: flex;
    flex-direction: column;
    /*height: 46px;
    align-items: center;
    justify-content: center;*/
}

.add-diagnostic-header {
    background: var(--light-gray);
    display: flex;
    height: 50px;
    padding: 0 2em;
    align-items: center;
    justify-content: space-between;
}

.add-diagnostic-header-text {
    display: inline-flex;
    font-weight: bold;
    padding-right: .1em;
    text-transform: uppercase;
}

.add-diagnostic-header-icon {
    display: inline-flex;
    font-size: 32px;
    font-weight: bold;
    padding-left: .1em;
}

.add-diagnostic-textarea-input-location {
    display: flex;
    padding: 0 2em;
    align-items: center;
    justify-content: center;
}

.add-diagnostic-textarea-input {
    display: flex;
    border: solid 1px var(--light-gray);
    padding: 5px 10px;
    margin: 1em 0 .5em 0;
    width: 95%;
    resize: none;
}

.add-diagnostic-type-radiobutton-location {
    display: flex;
    padding: .75em 2em .75em 2em;
    align-items: center;
    /*justify-content: space-around;*/
    justify-content: space-between;
}

.add-diagnostic-type-radiobutton {
    display: inline-flex;
    align-items: center;
    margin: 0 .1em;
    width: 140px;
}

.add-diagnostic-date-cointainer-size {
    padding: 0 5%;
}

.add-diagnostic-type-radiobutton-location:last-child {
    border-top: solid 1px var(--light-gray);
}

.add-diagnostic-age-date-location {
    display: flex;
    padding: .3em 2em .3em 2em;
    align-items: center;
    justify-content: center;
}

.add-diagnostic-age-date {
    display: flex;
    border: solid 1px var(--light-gray);
    padding: 5px 10px;
    margin: .5em 0;
    width: 50%;
}

.add-diagnostic-btn-location {
    display: flex;
    padding: 1em 2em 1em 2em;
    align-items: center;
    justify-content: flex-start;
}

.add-diagnostic-btn {
    background: var(--v-light-gray);
    border: solid 1px var(--gray);
    color: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .5em 1em;
    width: auto;
    pointer-events: none;
}

.add-diagnostic-btn.active {
    background: var(--ubk-blue);
    border: solid 1px var(--ubk-blue);
    color: var(--white);
    pointer-events: auto;
}

/*** DM - medical diagnostic ***/

/* Table header */

.DM-diagnostic-table-header {
    display: flex;
    flex: 1;
    min-height: 3em;
    height: auto;
    flex-direction: row;
    align-items: center;
    /*border-bottom: solid 1px var(--gray);*/
    font-size: 18px;
}

.DM-diagnostic-table-header .title1 {
    display: flex;
    flex: 3;
    justify-content: flex-start;
    font-size: larger;
    font-weight: bold;
    padding: .38em;
}

/* Table body */

/*.DM-diagnostic-table {
    display: flex;
    flex-direction: column;
    width: 100%;
}*/

/*.DM-diagnostic-table-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    height: 42px;
}*/

/*.DM-diagnostic-table-header-text {
    font-weight: bold;
    font-size: 18px;
}*/

.DM-diagnostic-table-body {
    /*background: var(--light-gray);*/
    display: flex;
    flex-direction: column;
    width: 100%;
}

.DM-diagnostic-table-body-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 0 10px;
    height: 50px;
    font-weight: bold;
    background: var(--ubk-blue);
    color: var(--white);
    letter-spacing: .1em;
}

.DM-diagnostic-table-body-list:nth-child(odd) {background: var(--v-light-gray);}

.DM-diagnostic-table-body-list .DM-diagnostic-summary-row {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-start;
    min-height: 20px;
    height: auto;
    margin: 0 10px;
    padding: 15px 0;
    font-size: 16px;
}

.DM-diagnostic-table-body-header .code,
.DM-diagnostic-table-body-list .DM-diagnostic-summary-row .code {
    display: inline-flex;
    width: 9%;
}

.DM-diagnostic-table-body-list .DM-diagnostic-summary-row .code img {
    width: .9em;
    height: .9em;
}

.DM-diagnostic-table-body-header .desc,
.DM-diagnostic-table-body-list .DM-diagnostic-summary-row .desc {
    display: inline-flex;
    width: 28%;
}

.DM-diagnostic-table-body-header .annex,
.DM-diagnostic-table-body-list .DM-diagnostic-summary-row .annex {
    display: inline-flex;
    width: 23%;
}

.DM-diagnostic-table-body-header .comment,
.DM-diagnostic-table-body-list .DM-diagnostic-summary-row .comment {
    display: inline-flex;
    width: 23%;
}

.DM-diagnostic-table-body-header .date,
.DM-diagnostic-table-body-list .DM-diagnostic-summary-row .date {
    display: inline-flex;
    width: 13%;
}

.DM-diagnostic-table-body-header .cross,
.DM-diagnostic-table-body-list .DM-diagnostic-summary-row .cross {
    display: inline-flex;
    /*height: 2em;*/
    width: 4%;
}

.DM-diagnostic-table-body-list .DM-diagnostic-summary-row .cross img {
    width: .9em;
    height: .9em;
    padding-left: 1.5em;
}

.DM-diagnostic-table-body-content {
    display: flex;
    flex-direction: column;
    max-height: 500px;
    overflow-y: auto;
}

/*.DM-diagnostic-table-body-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    height: auto;
    min-height: 3em;
    max-height: 6em;
    padding: .1em 0;
}*/

/*.DM-diagnostic-table-body-code {
    display: inline-flex;
    width: 11%;
}

.DM-diagnostic-table-body-desc {
    display: inline-flex;
    width: 34%;
}

.DM-diagnostic-table-body-anotation {
    display: inline-flex;
    width: 34%;
}

.DM-diagnostic-table-body-date {
    display: inline-flex;
    width: 14%;
}

.DM-diagnostic-table-body-cross {
    display: inline-flex;
    height: 2em;
    width: 7%;
}*/

.DM-diagnostic-table-body-code-margin {
    margin-left: 2.5em;
}

.DM-diagnostic-table-body-item-margin {
    margin-left: 1.75em;
}

.DM-diagnostic-show-more-box {
    background: var(--white);
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-top: solid 5px var(--v-light-gray);
    padding: 0 2em;
}

.DM-diagnostic-option-arrow {
    display: inline-flex;
    padding: 0 2.5em;
    justify-content: center;
    align-items: center;
}

.DM-diagnostic-option-arrow .icon-size {
    width: .9em;
    height: .9em;
    transform: rotate(0deg);
}

.DM-diagnostic-show-more-box .show-more-btn {
    color: var(--ubk-blue);
    display: inline-flex;
    font-size: 16px;
}

/*** Recommended diagnostics ***/

.DM-RD-left-table {
    width: 50%;
}

.DM-RD-right-table {
    width: 50%;
}

.RD-cie10-list-size {
    max-height: 40em;
    overflow-y: auto;
}

.RD-recommended-diagnostic-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.RD-recommended-diagnostic-item {
    display: flex;
    padding: .5em 1em;
}

#RD-more-detail {
    --rd-detail-height: 20px;
    height: var(--rd-detail-height);
    margin: 0 1em;
}

#RD-more-detail .btn-container {
    width: 40px;
    height: 100%;
    background: var(--white);
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
     align-items: center;
    -webkit-justify-content: center;
     justify-content: center;
     border-radius: 5px;
}
#RD-more-detail .btn-container .size {
    height: 75%;
}

/*** Selected diagnostics ***/

.DM-SD-left-table {
    width: 50%;
}

.DM-SD-right-table {
    width: 50%;
}

.SD-cie10-list-size {
    max-height: 28em;
    overflow-y: auto;
}

.SD-selected-cie10-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.SD-selected-cie10-item {
    display: flex;
    padding: .5em 1em;
}

#SD-remove {
    --sd-remove-height: 20px;
    height: var(--sd-remove-height);
    margin: 0 1em;
}

#SD-remove .img-container {
    width: var(--sd-remove-height);
    height: 100%;
    background: var(--light-gray);
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
     align-items: center;
    -webkit-justify-content: center;
     justify-content: center;
}
#SD-remove .img-container img {
    height: 75%;
}

/*** Custom search ***/

.DM-CS-table-position {
    width: 100%;
    margin: 0 15%;
}

.DM-CS-container-search-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    background: var(--ubk-blue);
    border-radius: 15px;
    padding: 1em;
}

.DM-CS-search-bar-label {
    margin: 0 1em;
    color: var(--white);
    letter-spacing: 0.1em;
}

#CS-search-bar {
    --bar-height: 30px;
    height: var(--bar-height);
    margin: 0 1em;
}
#CS-search-bar input,
#CS-search-bar .img-container {
    border-radius: 5px;
}
#CS-search-bar input {
    padding: 5px 10px;
    -webkit-box-flex: 1;
     -webkit-flex: 1;
      flex: 1;
    max-width: 400px;
}

#CS-search-bar .img-container {
    margin-left: 20px;
    width: var(--bar-height);
    height: 100%;
    background: var(--light-gray);
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
     align-items: center;
    -webkit-justify-content: center;
     justify-content: center;
}
#CS-search-bar .img-container img {
    height: 75%;
}

.CS-cie10-item-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1em;
}

/*** Search by organs ***/

.DM-SO-left-table {
    width: 30%;
}

.DM-SO-right-table {
    width: 70%;
}

.organ-list-size {
    max-height: 28em;
    overflow-y: auto;
}

.diagnostic-detail-btn {
    background: var(--white);
    color: gray;
    border-radius: 5px;
    display: inline-flex;
    box-sizing: border-box;
    height: 18px;
    line-height: 12px;
    outline: 0;
    margin: 0 .5em 0 .5em;
    padding: 2px .5rem;
    text-transform: uppercase;
    vertical-align: middle;
    -webkit-tap-highlight-color: transparent;
}

.medical-diagnosis-left-table-search {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ubk-blue);
    border-radius: 15px;
    height: 5em;
    padding: 0 15px;
}

.DM-search-search-input {
    background: var(--white);
    width: auto;
    border-radius: 5px;
    padding: 3px 13px;
    display: flex;
    align-items: center;
}

.DM-search-search-input input,
.DM-search-search-input input:active,
.DM-search-search-input input:focus {
    border: none;
    outline: none;
    background: none;
    flex: 1;
}

.medical-diagnosis-right-table-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0 10px;
}

.right-table-header {
    color: var(--white);
    text-align: left;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 1em 3em;
}

.right-table-search {
    display: flex;
    align-items: center;
}

.medical-diagnosis-right-table-body {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
}

.right-table-frequent-disease-item {
    width: 33.33%;
}

.frequent-disease-item {
    padding: .5em 1em;
    border: solid 1px var(--gray);
    background: var(--light-gray);
}

#cie10-search {
    display: flex;
    align-items: center;
    margin: 20px 0 40px 0;
    padding-left: 10px;
}

/* todo para mostar en lista
*/
/*
.cie10-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 40px;
    padding: 1em 3em;
}
*/

/* todo para mostrar en tabla
*/
.cie10-item-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 1em 3em;
    color: var(--white);
}

.cie10-item {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    padding: .5em 1em;
}

.DM-left-footer {
    display: inline-flex;
    width: 66.34%;
}

.DM-right-footer {
    display: inline-flex;
    justify-content: flex-end;
    width: 33.33%;
}

.cie10-n-page {
    display: inline-block;
    flex-direction: row;
    align-items: center;
    padding: .3em;
    margin: .3em 0;
    background-color: var(--white);
    height: 16px;
    width: 16px;
}

.cie10-n-page:first-child {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.cie10-n-page:last-child {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.cie10-n-page:not(:last-child){
    border-right: solid 2px var(--gray);
}


/***** NURSING DIAGNOSIS *****/

/*** DE - nursing evaluation ***/

/* Nursing evaluation hace uso de la mayoría de los elementos de DM - medical evaluation */

.DE-evaluation-right-list-show-more-item {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
}

.DE-evaluation-right-list-save-item {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: flex-end;
}

/*** DE - Nursing diagnosis ***/

.DE-nothing-to-show {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    font-weight: bold;
    height: 3em;
}

.DE-diagnostic-problem-list,
.list .list-element-container-DE-diagnosis-problem .list-nanda-header {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.DE-diagnostic-problem-list.disabled {
    opacity: .2;
    pointer-events: none;
}

.list .list-element-container-DE-diagnosis-problem {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 1em;
    border-bottom: solid 2px var(--gray);
}

.list > .list-element-container-DE-diagnosis-problem:first-child {
    border-top: solid 2px var(--gray);
}

.list .list-element-container-DE-diagnosis-problem .list-problem,
.list .list-element-container-DE-diagnosis-problem .list-nanda-table {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.DE-diagnostic-problem-accordion,
.DE-diagnostic-nanda-accordion {
    padding-right: 1em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
}

.DE-diagnostic-problem-accordion-btn {
    transition: transform 0.5s;
    -webkit-transform: rotate(-90deg);
    -ms-transform: rotate(-90deg);
    transform: rotate(-90deg);
    width: 1em;
}

.DE-diagnostic-problem-accordion-btn.expanded {
    -webkit-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    transform: rotate(90deg);
}

.DE-diagnostic-problem-list-text {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 18px;
    text-transform: uppercase;
}

.DE-diagnostic-nanda-header-container {
    margin: 0 .4em 1.2em .4em;
    border: solid 1px var(--gray);
    font-weight: bold;
}

.DE-diagnostic-nanda-header-name-container {
    display: flex;
    flex-direction: row;
    padding: .75em 1em .4em 1em;
}

.DE-diagnostic-nanda-accordion-btn {
    transition: transform 0.5s;
    width: 1em;
}

.DE-diagnostic-nanda-accordion-btn.expanded {
    -webkit-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    transform: rotate(180deg);
}

.DE-diagnostic-nanda-header-name-text {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 18px;
    flex: 1;
}

.DE-diagnostic-remove-nanda {
    padding-left: 1em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
}

.DE-diagnostic-remove-nanda-btn {
    width: 1em;
}

.DE-diagnostic-nanda-header-desc-text {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-left: 2em;
    padding: .4em 1em .75em 1em;
}

.DE-diagnostic-nanda-table-column {
    display: inline-flex;
    flex: 1;
    flex-direction: column;
}

.DE-diagnostic-nanda-table-header {
    background: var(--light-gray);
    display: inline-flex;
    flex: 1;
    border: solid 1px var(--gray);
    border-top: solid 2px var(--gray);
    padding: /*.75em*/ 1em;
}

.DE-diagnostic-nanda-table-body-header {
    background: var(--light-gray);
    display: inline-flex;
    /*flex: 1;*/
    border-top: solid 2px var(--gray);
    border-bottom: solid 2px var(--gray);
    padding: /*.75em*/ 1em;
}

.DE-diagnostic-nanda-table-header-text {
    font-weight: bold;
    display: inline-flex;
    flex: 9;
    align-items: center;
}

.DE-diagnostic-nanda-table-edit {
    padding-left: 1em;
    cursor: pointer;
    display: inline-flex;
    flex: 1;
    justify-content: center;
}

.DE-diagnostic-nanda-table-edit-btn {
    width: 1em;
}

.DE-diagnostic-nanda-table-body {
    font-weight: normal;
    display: inline-flex;
    flex: 1;
    flex-direction: column;
    border: solid 1px var(--gray);
    /*padding: .75em 1em;*/
}

.DE-diagnostic-nanda-table-cdefinitoria-container,
.DE-diagnostic-nanda-table-crelacionada-container,
.DE-diagnostic-nanda-table-criesgo-container {
    height: 12em;
    overflow-y: auto;
}

.list .list-element-container-DE-diagnosis-table-body {
    display: flex;
    min-height: 2em;
    height: auto;
}

.DE-diagnosis-table-body-text {
    display: flex;
    align-items: center;
    padding: .3em 1em;
}

.add-DE-nanda-characteristics-popup {
    text-align: left;
    background: var(--white);
    position: absolute;
    left: 15%;
    right: 15%;
    top: 50%;
    transform: translateY(-50%);
    max-height: 90vh;
    border-radius: 10px;
    overflow: hidden;
    padding: 20px;
    overflow-x: auto;
    overflow-y: auto;
}

.DE-nanda-charact-popup-header-container {
    margin: 0 2em;
    padding: .5em 0;
    border-bottom: solid 1px var(--gray);
}

.DE-nanda-charact-popup-body-container {
    margin: 0 2em;
    padding: .5em 0;
}

.DE-nanda-charact-popup-footer-container {
    margin: 0 2em;
    padding-top: 1em;
    border-top: solid 1px var(--gray);
    display: flex;
    flex-direction: row;
}

.DE-nanda-charact-title {
    font-size: 18;
    text-transform: uppercase;
}

.DE-nanda-charact-cancel-item {
    display: inline-flex;
    flex: 1;
    align-items: center;
    justify-content: flex-end;
    margin: 0 1em;
}

.DE-nanda-charact-save-item {
    display: inline-flex;
    flex: 1;
    align-items: center;
    justify-content: flex-start;
    margin: 0 1em;
}

.DE-nanda-charact-cancel-btn {
    background: var(--v-light-gray);
    display: flex;
    border: solid 2px var(--gray);
    border-radius: 5px;
    align-items: center;
    justify-content: center;
    padding: .3em .5em;
    height: 44%;
    width: 8em;
}

.DE-nanda-charact-save-btn {
    background: var(--light-gray);
    display: flex;
    border: solid 2px var(--gray);
    border-radius: 5px;
    align-items: center;
    justify-content: center;
    padding: .3em .5em;
    height: 44%;
    width: 8em;
}


.DE-comment-row {
    display: flex;
    flex: 1;
    font-size: 16px;
    white-space: pre-line;
}

.DE-nanda-charact-selection-container /*,
.DE-noc-selection-container,
.DE-nic-selection-container*/ {
    overflow-y: auto;
    max-height:28em;
}

.list .list-element-container-DE-charact {
    /*background: var(--v-light-gray);*/
    margin: 10px 10px;
    border: solid 1px var(--gray);
    border-radius: 5px;
}

.list .list-element-container-DE-charact.proposed {
    background: var(--light-blue);
}

.DE-nic-action-selection-container {
    overflow-y: auto;
    margin: 0 2.5em .5em 5em;
    max-height: 11em;
    border-left: solid 1px var(--gray);
}


/*#nursing-diagnosis-main {
    display: flex;
    flex-direction: column;
    margin: 0;
    height: 100%;
    position: relative;
}

#nursing-diagnosis-container {
    overflow-x: auto;
    overflow-y: auto;
}

.nnn-encapsulation {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.nursing-diagnosis-nnn-position {
    width: 33.33333%;
}

.nursing-diagnosis-box-features {
    background: var(--light-gray);
    border-style: solid;
    border-width: medium;
    border-radius: 5px;
    margin: 1em 1em;
    height: auto;
}

.nursing-diagnosis-nnn-title {
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    padding: 0 1em .5em 1em;
}*/

#nanda-search {
    display: flex;
    align-items: center;
    margin: 10px 0 20px 0;
    padding-left: 2em;
}

.add-searched-nanda-popup {
    background: white;
    position: absolute;
    left: 5%;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    max-height: 90vh;
    border-radius: 10px;
    overflow: hidden;
    padding: 30px;
    overflow-x: auto;
    overflow-y: auto;
}

#nursing-diagnosis-main {
    display: flex;
    flex-direction: row;
    margin: 0;
    position: relative;
    overflow-x: auto;
    overflow-y: auto;
}

/*.nursing-diagnosis-activated-true {
    width: 50%;
    border-right: solid 2px;
}*/

.nursing-diagnosis-table-shape {
    width: 50%;
    background: var(--light-gray);
    border-style: solid;
    border-width: medium;
    border-radius: 5px;
    margin: 1em 1em;
    padding: .3em 1em 2em 2em;
}

/*.nursing-diagnosis-activated-false {
    width: 50%;
    margin-left: 10px;
}*/

.nursing-diagnosis-table-title {
    font-size: x-large;
    letter-spacing: 4px;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    margin: 1em 0 1.5em 0;
}

.single-nanda-container {
    margin: 10px 0;
}

.nanda-header {
    font-size: larger;
    cursor: pointer;
    letter-spacing: 3px;
    font-weight: bold;
    padding: 10px 0;
    text-transform: uppercase;
}

.nanda-checkbox-container {
    padding: 10px 30px;
    height: 18em;
    overflow-y: auto;
    background-color: var(--v-light-gray);
}

.nanda-desc-container {
    margin: 10px 30px;
}

.nanda-desc-container.proposal-characteristic {
    color: var(--dark-red);
}

.nanda-desc {
    font-size: medium;
    font-style: italic;
    text-transform: capitalize;
}

.nursing-diagnosis-nnn-options-box {
    margin: 1em 0 1em 2em;
    height: auto;
}

/*** DE nanda characteristics state types ***/

.recommended {
    color: var(--dark-red);
}

.no-recommended {
    color: var(--dark-gray);
}

/**************************
 ***** INTERVENCIONES *****
 **************************/

#interventionContainer {
    position: relative;
}

.intervention-header {
    display: flex;
    align-items: center;
    flex-direction: row;
    height: 100px;
}

.title-box {
     box-sizing: border-box;
     margin-right: 50px;
     font-weight: bold;
}

.registration-area {
    margin-top: 10px;
    padding-bottom: 10px;
    background: var(--white);
    display: flex;
    flex-direction: column;
}

.intervention-input-data {
    margin-bottom: 10px;
    margin-left: 35px;
    margin-right: 35px;
    display: flex;
    flex-direction: row;
    align-items: center;
}

/*************************
 ***** CONFIGURATION *****
 *************************/

#configuration-main {
    display: flex;
    flex-direction: column;
    margin: 0;
    height: 100%;
    position: relative;
}

#configuration-container {
    flex: 3;
    margin: 30px;
    padding: 30px 10px;
    overflow-x: auto;
    overflow-y: auto;
}

.encapsulated-btns {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.configuration-mode-btn-position {
    width: 20%;
}

.config-btn-features {
    background: var(--light-gray);
    border-style: solid;
    border-width: medium;
    border-radius: 5px;
    margin: 1em 1em;
    padding: 3em 1em;
    cursor: pointer;
}

.config-btn-font {
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
}

/*************************
 ******* INVOICING *******
 *************************/

#invoicing-main {
    display: flex;
    flex-direction: column;
    margin: 0;
    height: 100%;
    position: relative;
}

#invoicing-container {
    flex: 3;
    margin: 30px;
    padding: 30px 10px;
    overflow-x: auto;
    overflow-y: auto;
}

.invoicing-btns {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.invoicing-mode-btn-position {
    width: 20%;
}

.invoicing-btn-features {
    background: var(--light-gray);
    border-style: solid;
    border-width: medium;
    border-radius: 5px;
    margin: 1em 1em;
    padding: 3em 1em;
}

.invoicing-btn-font {
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
}

.invoicing-btn-features.simple-disabled{
    opacity: 0.6;
}

/***** USER MANAGE *****/

.user-select-row {
    display: flex;
    align-items: center;
    flex-direction: row;
    height: 50px;
    margin-left: 30px;
    margin-right: 30px;
}

.user-data-row {
    font-size: 16px;
    margin-top: 35px;
    margin-bottom: 10px;
    margin-left: 50px;
}

.inline-user-data {
    display: inline-block;
    margin-right: 3em;
    margin-bottom: 1em;
}

.blocked-label-data {
    display: block;
    text-align: left;
}

.delete-user-popup {
    text-align: center;
    background: var(--v-light-gray);
    position: absolute;
    left: 30%;
    right: 30%;
    top: 50%;
    transform: translateY(-50%);
    max-height: 90vh;
    border-radius: 10px;
    overflow: hidden;
    padding: 20px;
}

.add-new-user-popup {
    text-align: center;
    background: var(--v-light-gray);
    position: absolute;
    left: 15%;
    right: 15%;
    top: 50%;
    transform: translateY(-50%);
    max-height: 90vh;
    border-radius: 10px;
    overflow: hidden;
    padding: 20px;
}

.delete-add-user-popup-btn {
    margin: 2em;
    width: 8em;
}

/**************************
 ***** LIBS OVERRIDES *****
 **************************/

[class *="pure-u"],
.pure-g {
    letter-spacing: inherit;
}
.pure-g.separate-cols {
    margin-left: -0.75em;
    margin-right: -0.75em;
}
.pure-g.separate-cols > [class *="pure-u"] {
    padding-left: 0.75em;
    padding-right: 0.75em;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box:
}
h1 {
    letter-spacing: 0.3em;
}

/**************************
 ***** MEDIA QUERIES *****
 **************************/

@media only screen and (min-width: 900px) {
    .selected-drug .documentation {
        -webkit-box-flex: 1 1 14%;
        -webkit-flex: 1 1 14%;
        flex: 1 1 14%;
        -webkit-flex-direction: row;
         flex-direction: row;
        max-width: 235px;
    }

    .selected-drug .documentation > .btn{
        font-size: 0.7em;
    }

    .selected-drug .documentation > .btn:first-child {
        margin-bottom: 0;
        margin-right: 0.4em;
    }

.standard-form-input--dataset{
    width: 280px;
}
}


/**********************************
 ***** PROFILE EDITION INPUTS *****
 **********************************/

.bold-blue-label {
    display: flex;
    font-weight: bold;
    color: var(--ubk-blue);
    margin-bottom: 1em;
}

.up-incorrect-input-content {
    display: flex;
    color: var(--red);
    font-size: smaller;
    margin: .4em .4em 1em .4em;
}

.bottom-bordered-text-input, .bottom-bordered-number-input {
    display: flex;
    margin: 0em 1.5em 1em 0;
    padding-bottom: .2em;
    border: none;
    border-bottom: solid 2px var(--gray);
    /*width: 100%;*/
}

.bottom-bordered-number-input.less-margin-bottom {margin-bottom: 0px;}

.inline-flex-radio-button-container, .inline-flex-checkbox-container {
    display: flex;
    flex-direction: row;
    margin: 0 2em 1em 0;
}

.inline-flex-radio-button-container input, .inline-flex-checkbox-container input {
    display: inline-flex;
}

.inline-flex-radio-button-container label, .inline-flex-checkbox-container label {
    display: inline-flex;
    margin-left: 10px;
}

.inline-flex-radio-button-container .input-label {
    margin-left: 10px;
    border: none;
    border-bottom: solid 2px var(--gray);
}

.background-gray-date-input {
    display: flex;
    border-radius: 5px;
    padding: 5px 10px;
    margin: 5px 0;
    width: 100px;
    text-align: center;
    background: var(--v-light-gray);
    border: none;
}

.bottom-bordered-text-input:focus, .bottom-bordered-number-input:focus, .inline-flex-radio-button-container .input-label:focus, .background-gray-date-input:focus {
    outline: none;
    border-bottom: solid 2px var(--ubk-blue);
}

.bottom-bordered-text-input::placeholder, .bottom-bordered-number-input::placeholder, .inline-flex-radio-button-container .input-label::placeholder, .background-gray-date-input::placeholder {
    color: var(--gray);
}

.up-width-1 {min-width: 300px;}
.up-width-2 {min-width: 250px;}
.up-width-3 {min-width: 350px;}

.flex-1 {display: flex; flex: 1;}

.up-left-width-1 {
    min-width: 300px;
    margin-right: 10px;
}

.up-right-width-1 {
    min-width: 300px;
    margin-left: 10px;
}

.up-left-width-2 {
    min-width: 250px;
    margin-right: 10px;
}

.up-right-width-2 {
    min-width: 250px;
    margin-left: 10px;
}

/*********************
 ***** VALIDATOR *****
 *********************/

 #validator-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    font-size: 90%;
}

#validator-row #red-cap-ans {
   width: 30%;
   word-wrap: break-word;
}

#validator-row #medications-question,
#validator-row #posology-question,
#validator-row #drug-search,
#validator-row .bacteria-search {
   width: 40%;
}

#validator-row #buttons {
   width: 30%;
   flex-wrap: wrap;
   justify-content: flex-end;
}

#validator-row #missing-data {
    width: 70%;
}

span#selected-drug {
    width: 50%;
    word-wrap: break-word;
}

#validator-row #posology-question input,
#validator-row #posology-question select {
   padding: .35em .7em;
   border: solid 1px var(--blue);
   border-radius: .35em;
}

#validator-row > * .q-desc {
    color: var(--dark-blue);
    font-style: italic;
    margin-block-start: 0em;
    margin-block-end: 0em;
    margin-left: .5em
}

#validator-row > * button {
    max-height: 3em;
}

.validator--dropdown-toggler {
    /*background: var(--ubk-blue);
    color: white;*/
    width: initial;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 1em 2em;
}

.validator--dropdown-toggler img,
img.dropdown-toggle
 {
    height: 1.5em;
    width: 1.5em;
    display: inline-block;
}

.validator--dropdown-toggler .dropdown-toggle.open,
 #red-cap-ans .dropdown-toggle.open {
    transform: rotate(0deg);
}

form {
    display: flex;
    flex-direction: column;
}

form .input___label {
  position: absolute;
  left: 0;
  top: 0;
  padding: calc(.5rem * 0.75) calc(.5rem * .5);
  margin: calc(.5rem * 0.75 + 3px) calc(.5rem * .5);
  background: pink;
  white-space: nowrap;
  transform: translate(0, 0);
  transform-origin: 0 0;
  background: var(--color-background);
  transition: transform 120ms ease-in;
  font-weight: bold;
  line-height: 1.2;
 }


form .input {
    position: relative;
}

form .input-field {
      box-sizing: border-box;
      display: block;
      width: 100%;
      border-top: none;
      border-bottom: 3px solid currentColor;
      border-right: none;
      border-left: none;
      padding: calc(.5rem * 1.5) .5rem;
      color: currentColor;
      background: transparent;
 }

form .input-field.incorrect:not(:focus) {
    border-bottom: 3px solid var(--red);
}

form .input-field:focus + .input___label,
form .input-field:not(:placeholder-shown) + .input___label
 {
    transform: translate(.25rem, -65%) scale(.8);
    color: #fab700;
}

form .input-field:focus {
    outline: none;
}

form .wrapper{
  display: inline-flex;
  background: #fff;
  height: 3em;
  width: 100%;
  align-items: center;
  justify-content: space-evenly;
  max-width: 600px;
 }

form .wrapper .option{
  background: #fff;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  margin: 0 10px;
  border-radius: 5px;
  cursor: pointer;
  padding: 0 10px;
  border: 2px solid lightgrey;
  transition: all 0.3s ease;
}

form .wrapper .option .dot{
  height: 20px;
  width: 20px;
  background: #d9d9d9;
  border-radius: 50%;
  position: relative;
  margin-right: .5em;
}

form .wrapper .option .dot::before{
  position: absolute;
  content: "";
  top: 4px;
  left: 4px;
  width: 12px;
  height: 12px;
  background: var(--ubk-blue);
  border-radius: 50%;
  opacity: 0;
  transform: scale(1.5);
  transition: all 0.3s ease;
}

form input[type="radio"]{
  display: none;
}

form #option-1:checked:checked ~ .option-1,
form #option-2:checked:checked ~ .option-2,
form #option-3:checked:checked ~ .option-3
{
  border-color: var(--ubk-blue);
  background: var(--ubk-blue);
}

form #option-1:checked:checked ~ .option-1 .dot,
form #option-2:checked:checked ~ .option-2 .dot,
form #option-3:checked:checked ~ .option-3 .dot
{
  background: #fff;
}

form #option-1:checked:checked ~ .option-1 .dot::before,
form #option-2:checked:checked ~ .option-2 .dot::before,
form #option-3:checked:checked ~ .option-3 .dot::before
{
  opacity: 1;
  transform: scale(1);
}

form .wrapper .option span{
  font-size: 20px;
  color: #808080;
}

form #option-1:checked:checked ~ .option-1 span,
form #option-2:checked:checked ~ .option-2 span,
form #option-3:checked:checked ~ .option-3 span
{
  color: #fff;
}

#add-question-group,
 #delete-question-group {
    cursor: pointer;
    display: flex;
    width: 3em;
    height: 3em;
    box-shadow: 0 5px 10px 0 var(--gray);
    z-index: 2;
    border-radius: 50%;
    margin: 2em 1em 0em 0em;
}

input[type=date]::-webkit-calendar-picker-indicator {
    padding-left: -2em;
}

input[type=date]::-webkit-datetime-edit {
    margin-right: -2em;
}


.spinner__svg {
    display: block;
    color: var(--ubk-blue);
}

.spinner__circle {
    animation: spinner-dash 1.5s ease-in-out infinite;
}

/* Spinner sizes */
.spinner--sm {
    width: 1rem;
    height: 1rem;
}

.spinner--md {
    width: 1.5rem;
    height: 1.5rem;
}

.spinner--lg {
    width: 2rem;
    height: 2rem;
}

.spinner--xl {
    width: 3rem;
    height: 3rem;
}
/* Animations */
@keyframes spinner-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes spinner-dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* Color variants */
.spinner--white .spinner__svg {
    color: var(--white);
}

.spinner--gray .spinner__svg {
    color: var(--gray);
}

.spinner--red .spinner__svg {
    color: var(--red);
}

.loading-spinner__text {
    color: var(--dark-gray);
    font-size: 0.875rem;
    font-weight: 500;
}


.spinner--gray .spinner__svg {
    color: var(--gray);
}

.spinner--red .spinner__svg {
    color: var(--red);
}

.loading-spinner__text {
    color: var(--dark-gray);
    font-size: 0.875rem;
    font-weight: 500;
}

input[type=date]::-webkit-datetime-edit {
    margin-right: -2em;
}

.access-icon.wrapper {
    padding: 0.5rem;
    border-radius: 50%;
    border: solid 2px var(--dark-gray);
}

.access-icon img {
    height: 1.25rem; width: 1.25rem;
}

#subject-id-exists-popup {
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding: 2em;
    white-space: pre-line;
}

.selected-status {
    color: var(--green) !important;
    pointer-events: none;
}

#patient-data-quality {
    padding: 3em;
    display: flex;
    flex-direction: column;
    height: 100%
}

#patient-missings > label,
 #patient-outliers > label {
    display: flex;
    justify-content: center;
    color: var(--ubk-blue);
    font-weight: bold;
    font-size: 2.5em;
}

#patient-outliers > label {
    margin-top: 1em;
}

.ubk-icon-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px;
    border-radius: 100%;
    cursor: pointer;
}

.ubk-icon-btn:hover {
    background-color: rgba(255, 59, 48, 0.1);
}

.create-patient-spinner-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--s2);
}