body,
input {
  font-family: 'Roboto', sans-serif;
}

body {
  margin: 0px;
}

body:has(#hiddenLinks[data-show="active"]) {
  overflow: hidden;
}

input,
select {
  padding: 1em;
  border-radius: 4px;
  border: 1px solid #ccc;
  background: white;
}

select {
  -o-appearance: none;
  -ms-appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: transparent;
}

#response {
  padding: 0.25em;
  max-width: 500px;
}

.inside #response {
  margin-left: auto;
  margin-right: auto;
}

.bottom_toolbar {
  max-width: 500px;
}

.bottom_toolbar_padded {
  min-height: 8em;
}

.bottom_toolbar_padded.buttons_4 {
  min-height: 24em;
}

a,
a:hover,
a:active,
a:link,
a:visited {
  text-decoration: none;
}


input,
a.button,
select {
  width: 90%;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
  display: block;
  margin-bottom: 0.5em;
}

input[type="button"],
input[type="submit"],
a.button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: 1px solid;
  padding: 1em;
  font-weight: bold;
  border-radius: 4px;
  box-shadow: 0px 0px 0.1em #000;
  font-size: 0.8rem;
  text-transform: uppercase;
}

input[type="button"]:hover,
input[type="submit"]:hover,
a.button {
  cursor: pointer;
}

a.button {
  text-align: center;
}

#loading {
  display: none;
  position: absolute;
  top: 0;
  text-align: center;
  left: 0;
  width: 100%;
  height: 100%;
  vertical-align: middle;
  line-height: 100vh;
}

#loading_message {
  position: relative;
  vertical-align: middle;
}


.completed_action {
  width: 100%;
}

.completed_action .big-icon {
  height: 20vh;
  width: 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  margin-bottom: 1.5em;
}



.completed_action .title {
  text-align: center;
  font-size: 3vh;
  text-transform: uppercase;
  font-weight: bold;
}

.completed_action .message {
  margin-top: 0.75em;
  text-align: center;
  margin-bottom: 1em;
}

.delay1ms {
  animation-delay: 0.1s;
}

.delay2ms {
  animation-delay: 0.2s;
}

.delay3ms {
  animation-delay: 0.3s;
}

.delay4ms {
  animation-delay: 0.4s;
}

.delay5ms {
  animation-delay: 0.5s;
}

.delay6ms {
  animation-delay: 0.6s;
}

.delay7ms {
  animation-delay: 0.7s;
}

.delay8ms {
  animation-delay: 0.8s;
}

.delay9ms {
  animation-delay: 0.9s;
}

.delay10ms {
  animation-delay: 1s;
}

.delay11ms {
  animation-delay: 1.1s;
}

.delay12ms {
  animation-delay: 1.2s;
}

.delay13ms {
  animation-delay: 1.3s;
}

.delay14ms {
  animation-delay: 1.4s;
}

.delay15ms {
  animation-delay: 1.5s;
}

.delay16ms {
  animation-delay: 1.6s;
}

.delay17ms {
  animation-delay: 1.7s;
}

.delay18ms {
  animation-delay: 1.8s;
}

.delay19ms {
  animation-delay: 1.9s;
}

.delay20ms {
  animation-delay: 2s;
}



h1,
h2,
h3 {
  margin-top: 0em;
  margin-bottom: 0.5em;
  text-align: center;
}

label {
  margin-bottom: 1em;
  display: block;
  font-size: 0.75em;
}

input {
  margin-top: 0.25em;
}


.bottom_toolbar {

  animation-duration: 1s;
  animation-fill-mode: both;
  animation-name: slideInUp;
  animation-delay: 0.25s;
  background: white;
  border-top: 1px solid #ccc;
  position: fixed;
  bottom: 0;
  padding-top: 1em;
  padding-bottom: 1em;
  z-index: 10;
  width: 98%;

}

.bottom_toolbar_padder {
  width: 100%;
  height: 5em;
}

.message {
  text-align: center;
  padding-top: 2em;
}

.message .far {
  font-size: 6em;
  color: #CCC;
  display: block;
  margin-bottom: 0.25em;
}

ul.element-list {
  padding: 0.5em;
  margin: 0em;
  list-style-type: none;
}

ul.element-list li {
  border-bottom: 1px solid #eee;
  padding-top: 1em;
  padding-bottom: 1em;
}

ul.element-list li:last-child {
  border-bottom: none;
}

span.mini-label {
  border: 1px solid;
  border-radius: 4px;
  font-size: 0.7em;
  padding: 0.25em;
}

/*ul li span.mini-label {
  position: absolute;
  right: 0.5em;
}*/

span.mini-label.default {
  white-space: nowrap;
  border-color: #AAA;
  background: #EEE;
  color: #AAA;

}


.fullscreen_message {
  text-align: center;
  margin-top: 4em;
}

.fullscreen_message div.icon {
  border-radius: 50%;
  width: 8em;
  height: 8em;
  margin-left: auto;
  margin-right: auto;
}

.fullscreen_message div.icon i.fa {
  font-size: 4em;
  line-height: 2em;
}


.popup_frame {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  z-index: 100;
  animation: fadeIn;
  animation-duration: 0.5s;
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: center;
  align-items: center;
  overflow-y: scroll;
}

.popup_frame.fadeOut {
  animation: fadeOut;
  animation-duration: 0.5s;
}

.popup_frame .popup_container {
  position: relative;
  background: #fff;
  width: auto;
  vertical-align: middle;
  max-height: 98vh;
  min-height: 20vh;
  max-width: 500px;
  min-width: 400px;

  box-sizing: border-box;
  border-radius: 4px;
  margin: 1em;
  animation: fadeInDown;
  animation-duration: 0.5s;
  padding: 1em;
  color: black;

  overflow-y: auto;
}

#lynx_overlay_wrapper {
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.8);
  height: 100%;
  width: 100%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lynx_overlay {
  max-height: 62vh;
  background: white;
  /*min-height:30vh;*/
  width: 94%;
  animation: bounceInDown;
  animation-duration: 0.75s;
  text-align: center;
  padding: 1em;
  box-sizing: border-box;
  border-radius: 4px;
}

.huge {
  font-size: 1.5em;
}

.button.dashed {
  border-style: dashed !important;
  border-width: 2px !important;
  box-shadow: none !important;
}

a.button {
  position: relative;
}

a.button .fa.left {
  position: absolute;
  left: 1em;
}

a.button .fa.right {
  position: absolute;
  right: 1em;
}

#qr_token {
  margin-bottom: 2.5em;
  margin-top: 2em;
  min-height: 220px;
}

#qr_token img {
  animation-delay: 1.5s;
  min-height: 190px;
}

/** Carrousel container **/
#response.bgcarrousel #content_wrapper {
  z-index: 2;
}

#response.bgcarrousel {
  position: relative;
}

#response.bgcarrousel .background-carrousel {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  display: none;
}


#response.bgcarrousel .background-carrousel.active {
  display: block;
}

.nodisplay {
  display: none;
}

body.home .seleccion .fecha {
  display: none;
}

body.home .request .resumen {
  display: none;
}

.card-list {
  list-style-type: none;
  margin: 0.5em;
  padding: 0;
  margin-top: 1em;
  margin-bottom: 1em;
}

.card-list li {
  margin-bottom: 1em;
  padding: 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  box-shadow: 0px 0px 2px #0006;
}

.card-list li span.field {
  display: block;
  margin-bottom: 0.5em;
}

.fa-icon::before {
  font-family: 'Font Awesome 5 Free';
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 0.5em;
}

.fa-icon::after {
  font-family: 'Font Awesome 5 Free';
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-left: 0.5em;
}

.popup_frame .popup_container.center {
  align-items: center;
}

.popup_frame .popup_container.confirm,
.popup_frame .popup_container.message {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.popup_frame .popup_container.to_top {
  justify-content: flex-start;
}

.popup_frame .popup_container.error.message {
  border-top: 1em solid var(--theme-wrong);
}

.popup_frame .popup_container.error.message h1 {
  color: var(--theme-wrong);
}

.popup_frame .popup_container.error.message .toolbar button.ok {
  background: var(--theme-wrong);
}

.popup_frame .popup_container.message h1,
.popup_frame .popup_container.message .content {
  text-align: left;
}

.popup_frame .popup_container.confirm .yesno,
.popup_frame .popup_container.message .toolbar {
  display: flex;
  flex-direction: row;
  width: 100%;
  justify-content: space-between;
}

.popup_frame .popup_container.confirm .yesno button {
  width: calc(50% - 0.5em);
  height: 3em;
  border-radius: 4px;
  border: 0px;
  margin-top: 2em;
  cursor: pointer;
}

.popup_frame .popup_container.message .toolbar button {
  width: calc(100%);
  height: 3em;
  border-radius: 4px;
  border: 0px;
  margin-top: 2em;
  cursor: pointer;
}

.popup_frame .popup_container.confirm .yesno button.yes,
.popup_frame .popup_container.message .toolbar button.ok {
  background: var(--theme-success);
  color: white;
  font-size: 1em;
}

.popup_frame .popup_container.message .toolbar button.cancel,
.popup_frame .popup_container.confirm .yesno button.no {
  background: var(--theme-wrong);
  color: white;
  font-size: 1em;
}

.popup_frame .popup_container.confirm .yesno button.yes i {
  margin-right: 1em;
  display: inline-block;
}

.popup_frame .popup_container.confirm .yesno button.no i {
  margin-right: 1em;
  display: inline-block;
}

.popup_container.message .item_options {
  max-height: 100%;
  overflow-y: scroll;
}

.popup_container.easy_close {
  padding-top: 2em;
}

.popup_container .popup_close {
  position: absolute;
  right: 0em;
  top: 0;
  font-size: 2em;
  z-index: 10;
  padding: 0.25em;
  /*padding-right: 0.5em;*/
  color: #888;
  background: white;
  border-bottom-left-radius: 50%;

}


#toolbar a {
  cursor: pointer;
}

.horizontal_toolbar {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: center;
  align-items: stretch;
  justify-content: space-between;
  width: 100%;
}

.horizontal_toolbar a {
  margin-right: 1em;
  width: 100%;
}

.horizontal_toolbar a:first-child {
  margin-left: 0em;
}

.horizontal_toolbar a:last-child {
  margin-right: 0em;
}

.full_message {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  background-color: var(--fullmessage-background);
  color: var(--fullmessage-color);
  z-index: 1000;
  animation: fadeInDown;
  animation-duration: 300ms;
  animation-fill-mode: backwards;
  flex-direction: column;
  align-content: center;
  justify-content: center;
  align-items: center;
}

.full_message .fa {
  font-size: 20vmin;
}

.full_message .full_message_data {
  margin-top: 2em;
  font-size: 2em;
  text-align: center;
}

div.master {
  display: none;
}

ul.card-list[data-count="0"]::after {
  content: "(No se encontraron resultados)";
  display: block;
  text-align: center;
  margin-top: 1em;
  font-size: 1.25em;
  color: #ccc;
}


/** Checkboxlist **/
.checkbox_list_toolbar {
  display: none;
}

div.checkbox_list label {
  font-size: 0.85rem;
}

div.checkbox_list {
  width: 100%;
  border: 1px solid #ccc;
  margin-bottom: 1em;
  margin-right: 1em;
  display: inline-block;
}

div.checkbox_list div.options_container {
  margin: 0px;
  max-width: 100vw;
  min-width: 20vw;
  max-height: 25vh;
  overflow: none;
  overflow-y: scroll;
  display: block;
  width: auto;
}

ul.checkbox_list {
  list-style-type: none;
  margin: 0px;
  padding: 1em;
}

ul.checkbox_list.cols2 {
  list-style-type: none;
  margin: 0px;
  padding: 0px;
}

ul.checkbox_list.cols1 {
  list-style-type: none;
  margin: 0px;
  padding: 0px;
}

ul.checkbox_list.cols4 {
  list-style-type: none;
  margin: 0px;
  padding: 0px;
}


ul.checkbox_list li {
  padding-bottom: 0;
}

.checkbox_list input {
  display: none;
  vertical-align: middle;
}

.checkbox_list span.value {
  display: inline-block;
  max-width: 80%;
  vertical-align: middle;
  font-family: Arial;
}

ul.checkbox_list li input:disabled+span {
  color: #ccc;
}

ul.checkbox_list li input+span.value {
  display: flex;
  align-items: center;
}

ul.checkbox_list li input+span.value::before {
  font-family: 'Font Awesome 5 Free';
  content: '\f0c8';
  margin-right: 0.5em;
  font-size: 1.5em;
  color: var(--gris-oscuro);
}

ul.checkbox_list li input:checked+span.value::before {
  content: '\f14a';
  font-weight: bold;
  color: var(--primary);
}

ul.checkbox_list li input:checked+span.value {
  color: black;
  font-weight: bold;
}

.toolbar {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  margin-bottom: 1em;
  gap: 1em;
  max-width: 800px;
}

.toolbar a {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 0.5em;
  border-radius: 4px;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.85em;
  cursor: pointer;
  max-width: 350px;
  min-width: 40%;
  box-shadow: 0px 0px 2px #444;
  padding: 1em;
  font-weight: normal;
  box-sizing: border-box;
}

.toolbar a .label i {
  font-size: 4em;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.toolbar a .title {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: center;
  align-items: center;
  gap: 0.5em;
}

.toolbar a .title span:nth-child(1) {
  font-size: 1.5em;
}

.toolbar a .title span:nth-child(2) {
  font-size: 1em;
}

body.home #toolbar a.compact {
  min-height: 0;
}

body.home #toolbar a.compact .label .title {
  min-height: 0;
}

/* on cellphone do a better distribution of the toolbar */
@media (max-width: 600px) {
  .toolbar a {
    width: 40%;
    box-sizing: border-box;
  }
}

.popup_frame .popup_container.message.popup_message {
  min-width: 90vw;
  max-width: 90vw;
  min-height: 80vh;
  max-height: 95vh;
  overflow-y: scroll;

  p {
    display: block;
    overflow: auto;
  }
}

/* prepare for dekstop view */
@media (min-width: 900px) {
  .popup_frame .popup_container.message.popup_message {
    min-width: 500px;
    max-width: 500px;
    min-height: 60vh;
    max-height: 80vh;
  }
}

.popup_frame .popup_container.message.popup_image {
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow-y: hidden;
}




.sidepanel_overlay {
  display: none;
}

.sidepanel_overlay:has(.sidepanel.active) {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  display: block;
  background-color: #00000088;
  z-index: 100;
  animation: fadeInLeft;

  .sidepanel {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 80vw;
    max-width: 80vw;
    background: #f2f2f2;
    box-shadow: 0px 0px 1em #0006;
    z-index: 101;
    display: none;
    overflow-y: auto;
    animation: slideInLeft;
    animation-duration: 0.25s;
  }

  .sidepanel::before {
    content: 'Mensajes';
    font-size: 2em;
    text-align: left;
    font-weight: bold;
    width: 100%;
  }

  .sidepanel_close {
    position: absolute;
    top: 0em;
    right: 0em;
    font-size: 2em;
    z-index: 10;
    padding: 0.25em;
    /*padding-right: 0.5em;*/
    color: #888;
    background: white;
    border-bottom-left-radius: 50%;
    cursor: pointer;
  }

  .sidepanel.active {
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: flex-start;
    align-items: center;

    padding: 1em;
    box-sizing: border-box;
    gap: 1em;

    .sidepanel_data {
      width: 100%;
      display: flex;
      flex-direction: column;
      align-content: center;
      justify-content: flex-start;
      align-items: center;
      gap: 0.5em;


      .message {
        width: 100%;
        padding: 1em;
        padding-right: 4em;
        border: 1px solid #ccc;
        margin: 1em;
        margin-top: 0;
        margin-bottom: 0;
        border-radius: 10px;
        box-sizing: border-box;
        position: relative;
        box-shadow: 0px 0px 2px #0004;
        display: flex;
        text-align: left;

        i.fas {
          font-size: 1.25em;
          position: absolute;
          right: 0;
          width: 3em;
          background: #222;
          height: calc(100%);
          top: 0;
          display: flex;
          align-content: center;
          justify-content: center;
          align-items: center;
          color: white;
          border-top-right-radius: 10px;
          border-bottom-right-radius: 10px;
        }
      }

      .message.urgente {
        border-color: var(--theme-wrong);
        i.fas {
          background: var(--theme-wrong);
        }
      }

      .message.destacado {
        border-color: var(--theme-success); 
        i.fas {
          background: var(--theme-success);
        }
      }
    }
  }
}

#message_counter {
  position: fixed;
  top: 1em;
  right: 0em;
  background: var(--primary);
  color: white;
  width: 2em;
  height: 2em;
  line-height: 2em;
  text-align: center;
  border-radius: 25%;
  font-weight: bold;
  box-shadow: 0px 0px 0.25em #0006;
  font-size: 1.25em;
  z-index: 80;
  display: flex;
  padding: 0.25em;
  padding-left: 1em;
  align-content: center;
  justify-content: center;
  align-items: center;
  gap: 0.25em;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  animation:slideInRight 0.5s 0.5s;
  animation-direction: backwards;
  animation-fill-mode: both;
}

/** add bell icon with animation **/
#message_counter::after {
  font-family: 'Font Awesome 5 Free';
  content: '\f0f3';
  font-weight: bold;
  display: inline-block;
  font-size: 1em;
  line-height: 2em;
  animation: heartBeat 1s infinite;
}

#message_counter[data-count="0"] {
  display: none;
}