@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500&display=swap');

#main_menu li,
#main_menu h3 {
  font-weight: 500;
}

#main_menu a {
  white-space: normal !important;
}

#main_menu a,
#main_menu .acd_toggler {
  font-size: 12px !important;
}

#branches .name {
  padding-top: 3px;
  font-weight: 500;
}

#branches .middle {
  font-weight: 500;
}

#branches li img {
  margin: 7px 10px 0 -10px;
}

#branches li .description {
  white-space: nowrap;
}

input.datepicker2_hidden {
  visibility: hidden;
}

.related,
.block .related {
  font-weight: 500;
  line-height: 24px;
  width: 100% !important;
  white-space: nowrap;
  overflow-x: auto;
}

.related li {
  display: inline-block;
  margin: 3px;
}

.related li a {
  white-space: nowrap;
  display: inline-block;
  padding: 3px 14px;
  padding-left: 32px !important;
  background-position: 10px 50% !important;
  background-color: #eee;
}

.block {
  border-top: 1px solid #eee;
  padding-top: 15px;
}

.block>h1 {
  font-weight: 500;
}

.scroll::-webkit-scrollbar {
  width: 5px;
  height: 5px;
  background-color: transparent;
}

.scroll::-webkit-scrollbar-track {
  border-radius: 10px;
  background-color: transparent;
}

.scroll::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background-color: #CED9E1;
}



/* interface\xhtml\widget\document\document.htm */
div#dv {
  display: none;
}

/* Reset fieldset legend styles */
/*
fieldset legend {
  position: relative !important;
  margin: 0 !important;
  padding: 0 !important;
  top: 28px;
  font-size: 10pt;
  font-weight: 500;
}
*/

/* Tabla de datos de person/details_responsive.htm */

#tab_personal {
  clear: both;
  margin-top: 12px;
}

.person-picture {
  float: left;

  border: 4px solid #fff;
  border-radius: 5px;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
  margin: 0 20px 20px 0;
}

.person-entity {
  padding-top: 18px;
}

.person-entity h2 {
    margin: 0;
}

.person-picture img {
  border-radius: 5px;
  width: 95px;
  display: block;
  /* Fixes blank space after picture */
}

#tab_personal .entity {
  display: flex !important;
  flex-direction: column !important;
  margin-left: 0;
  margin-right: 0;
}

#tab_personal .entity .field {
  border-bottom: 1px solid #e0e0e0;
  margin: 0;
  padding: 4px 0;
}

#tab_personal details summary {
  padding: 6px 0;
  font-weight: 500;
  cursor: pointer;
  color: var(--ui-color-z4);
}

#tab_personal details summary:hover {
  background-color: #eee;
}



/* person/relation */
tr.phidias_person td:first-child img {
  border: 3px solid #fff;
  border-radius: 4px;
  box-shadow: rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
  margin: 0 8px;
}

tr.phidias_person small:first-child {
  display: block;
  font-weight: 500;
  margin-bottom: -4px;
}

.table_responsive thead td,
.table_responsive_2 thead td {
  background: #CED9E1;
  padding: 10px;
  font-weight: 500;
  font-size: 13px;
}

.table_responsive tbody td {
  padding: 10px;
}

.table_responsive tfoot td {
  padding: 10px;
}

.table_responsive .option_left {
  margin-right: 20px;
}

.button-group-web {
  display: block;
}

.button-group-mobile {
  display: none !important;
}

.content-exception {
  display: flex;
}

.content-exception>* {
  order: 0;
}

.content-exception_1 {
  width: 40%;
  text-align: center;
}

.content-exception_2 {
  width: 60%;
  order: 1;
}

.option-secondary {
  display: flex;
}

.post-reply-options {
  border-top: none !important;
}

.post-reply-options>* {
  background: #F0F0F0;
  margin-right: 10px;
  margin-bottom: 10px;
  border-radius: 10px;
}

.flex-separator {
  background: white;
}

.fc-week {
  height: 90px !important;
}

.fc-center {
  margin-top: 10px;
}

.external_panel_normal {
  height: 200px;
}

#search_results div {
  height: auto !important;
}

.phi-event-editor .date-range {
  position: relative !important;
}

.phi-event-editor .date-repeat {
  position: relative !important;
}

iframe#launcher {
  width: 133px !important;
}

/* estilos para ipads en forma vertical para el selector de audiencia */
@media all and (max-width: 900px) and (min-width: 600px) and (orientation:portrait) {
  .filter_responsive {
    left: 0px !important;
    width: calc(100vh - 60vh) !important;
  }

  .contact_groups {
    width: calc(100vh - 60vh) !important;
  }
}

@supports (-webkit-touch-callout: none) {

  /* CSS specific to iOS devices */
  .MediaImage__img {
    width: 100% !important;
  }
}

@media screen and (max-width: 1135px) {

  /* ------ Table responsive --- */
  /* Force table to not be like tables anymore */
  .table_responsive,
  .table_responsive thead,
  .table_responsive tbody,
  .table_responsive tfoot,
  .table_responsive th,
  .table_responsive td,
  .table_responsive tr,
  .table_responsive_2,
  .table_responsive_2 thead,
  .table_responsive_2 tbody,
  .table_responsive_2 tfoot,
  .table_responsive_2 th,
  .table_responsive_2 td,
  .table_responsive_2 tr {
    display: block;
  }

  /* Hide table headers (but not display: none;, for accessibility) */
  .table_responsive thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  .table_responsive tbody tr,
  .table_responsive tfoot tr {
    margin-top: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
  }


  .table_responsive tbody td:nth-of-type(odd),
  .table_responsive tfoot td:nth-of-type(odd),
  .table_responsive_2 tbody td:nth-of-type(odd),
  .table_responsive_2 tfoot td:nth-of-type(odd) {
    background: #FAFAFA;
  }

  .table_responsive tbody td:first-child,
  .table_responsive tfoot td:first-child {
    background: #CED9E1;
    padding-left: 20px !important;
  }

  .table_responsive tbody td:first-child,
  .table_responsive tfoot td:first-child,
  .table_responsive tbody td:first-child a,
  .table_responsive tfoot td:first-child a,
  .table_responsive tbody td:first-child>span,
  .table_responsive tfoot td:first-child>span {
    color: #3C3C3C !important;
  }

  .table_responsive tbody td:first-child a,
  .table_responsive tfoot td:first-child a {
    text-decoration: underline;
  }

  .table_responsive tbody td:before,
  .table_responsive tfoot td:before {
    /* Now like a table header */
    position: absolute;
    /* Top/left values mimic padding */
    top: 10px;
    left: 20px;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
    /* Label the data */
    content: attr(data-column);
    overflow: hidden;
    text-overflow: ellipsis;

    color: #000;
    font-weight: 500;
  }

  .table_responsive tfoot .delete_td {
    display: none !important;
  }

  .table_responsive tbody .delete_td {
    display: none !important;
  }

  /* ------ Table responsive 2 --- */
  /* Force table to not be like tables anymore */

  .table_responsive_2 thead td {
    display: none;
  }

  .table_responsive_2 thead td:nth-of-type(1) {
    display: block;
    background: #CED9E1;
  }

  .table_responsive_2 {
    border: 1px solid #ccc;
    border-radius: 5px;
  }

  .table_responsive_2 tbody td {
    height: 20px;
    padding-top: 5px;
  }

  .table_responsive_2 tbody td:first-child,
  .table_responsive_2 tfoot td:first-child,
  .table_responsive_2 tbody td:first-child a,
  .table_responsive_2 tfoot td:first-child a,
  .table_responsive_2 tbody td:first-child>span,
  .table_responsive_2 tfoot td:first-child>span {
    color: #3C3C3C !important;
    font-weight: 500;
  }

  .table_responsive_2 tbody td:first-child a,
  .table_responsive_2 tfoot td:first-child a {
    text-decoration: underline;
  }

  .table_responsive_2 tbody td:before,
  .table_responsive_2 tfoot td:before {
    position: absolute;
    left: 60px;
    padding-right: 10px;
    white-space: nowrap;
    content: attr(data-column);
    overflow: hidden;
    text-overflow: ellipsis;

    color: #000;
    font-weight: 500;
  }

  .theadmovil {
    display: block;
  }

  /* .table_responsive_2 tfoot .delete_td {
    display: none !important;
  } */
}

/* Mobile styles */
@media screen and (max-width: 599px) {

  .warning,
  .sophia_notice {
    width: 80% !important;
  }

  fieldset .field label {
    width: auto;
    float: none;
  }

  #menu_arrow,
  #menu_shadow,
  #header,
  #actions,
  #search,
  #context,
  #footer,
  #clipboard {
    display: none;
  }

  /* #context {
    position: static;
    height: auto;
    min-width: 0;
    overflow-x: scroll;
  } */

  #frame {
    margin: 0 8px;
  }

  #content {
    margin: 0;
    padding: 0;
  }

  #output {
    margin: 0;
    padding: 0;
  }

  .entity {
    display: flex;
    flex-direction: column;
  }

  .entity .field {
    margin-bottom: 12px;
  }

  .entity .related {
    order: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }

  .entity .label {
    float: none;
    width: auto;
    font-weight: 500 !important;
  }

  .related,
  .block .related {
    float: none;
    margin: 8px 0;
    clear: both;
  }

  .person-entity {
    padding-top: 0;
  }




  /* Sidebar menu */
  #sidebar {
    position: fixed;
    top: 46px;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: auto;

    background: #fff;
    /* z-index: 1; */
    z-index: 999999;
    /* se necesita para aparecer encima del widget de soporte */

    /* pointer-events: none; */
    transition: all 0.15s;
    transform: translateX(100%);

    overflow-y: auto;
    padding-bottom: 100px;
  }

  #search_bar,
  .special_tab,
  #sidebar_search {
    display: none;
  }

  #sidebar table {
    width: 100% !important;
  }

  #main_menu {
    box-sizing: border-box;
    width: auto !important;
    padding: 8px !important;
    padding-right: 0 !important;

    position: relative;
    left: 8px;
  }

  #main_menu a {
    font-size: 13px !important;
    padding: 10px 16px !important;
  }

  #main_menu .acd_toggler {
    font-size: 13px;
    padding: 10px 16px !important;
  }

  #sidebar.visible {
    /* pointer-events: initial; */
    transform: translateX(0);
  }


  /* Form elements */
  fieldset {
    padding: 50px 8px 8px 8px;
  }

  input[type=text],
  input[type=password],
  textarea {
    /* select { */
    box-sizing: border-box;
    padding: 10px;
    width: 100%;
  }


  /* Common class for divs */
  .block {
    /* cambio display de flex a block  */
    display: block !important;
    flex-direction: column;
  }

  .block>.related {
    order: 1;
  }

  .button-group-web {
    display: none !important;
  }

  .button-group-mobile {
    display: block !important;
  }

  .phi-state-feed .controls {
    position: sticky;
    top: 0px;
    left: 0;
    right: 0;
    border-bottom: 1px solid #eee;
    background-color: #fff;
    z-index: 999999;
    margin-bottom: 50px;
  }

  .phi-post-item .post-item-stacker .post-item-actions {
    float: right !important;
  }

  /* .expander {
    min-width: 250px;
  } */

  .expander h1 {
    font-size: 18px;
  }

  .post-reply-options {
    flex-wrap: wrap !important;
  }

  .flex-separator {
    display: none !important;
  }

  .phi-post-info {
    margin-top: 50px !important;
  }
}


@media screen and (max-width: 1135px) and (min-width: 600px) {

  .table_responsive tbody td,
  .table_responsive tfoot td {
    /* Behave  like a "row" */
    border: none;
    border-bottom: 1px solid #eee;
    position: relative !important;
    text-align: left !important;
    padding: 10px 20px;
    padding-bottom: 10px;
    padding-left: 50%;
  }

  .table_responsive tbody td:has(div) {
    padding-top: 30px;
  }

  .table_responsive td.fixedrow {
    max-width: 500px !important;
  }
}

/* Banner */
.interface_banner {
  width: 100%;
  box-sizing: border-box;
  border-radius: 8px;
  margin: 10px 0 20px 0;
  padding: 18px;
  background: #fff;
  position: relative;
  box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.25);
  background: url('../interface/banner/img/tour_background.png') center center / cover;
}

.interface_banner h1,
.interface_banner p {
  margin: 0;
}

.interface_banner h1 strong {
  color: var(--ui-color-primary);
}

.interface_banner>div {
  margin-top: 18px;
}

.interface_banner_close {
  top: 15px;
  right: 15px;
  font-size: 19px;
  cursor: pointer;
  position: absolute;
}

.interface_banner_contents {
  max-width: 70%;
  position: relative;
  display: inline-block;
  padding: 8px;
  padding-top: 0;
  border-radius: 10px;
  backdrop-filter: blur(2px);
}

.interface_banner_actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 12px;
  margin-top: 16px;
}

/* Diaglo feedback */
.UiDialog--feedback #phidias_tour_feedback {
  padding: 12px;
}

.feedback_confirm {
  display: flex;
  padding: 16px 8px;
  align-items: flex-start;
  gap: 16px;
  border-radius: 8px;
  background: var(--Background-background-secondary, #F3F8FB);
}

.UiDialog--feedback .UiDialog__dialog {
  min-width: 60vw;
}

/* UiInput general */
.UiDialog--feedback .UiInput {
  margin-bottom: 3em;
}

.UiDialog--feedback .UiInput__label {
  font-size: 1em;
  font-weight: 500;
}

.UiDialog--feedback .UiInput--type-textarea {
  margin-bottom: 1em !important;
}

.UiDialog--feedback .UiInput--type-textarea .UiInput__body {
  margin-top: 8px;
}

/* Rating */
.UiDialog--feedback .UiInputRating {
  align-items: center;
  margin-top: 12px;
  display: inline-flex;
  min-width: 350px;
  justify-content: center;
  position: relative;
  gap: 4px;
}

.UiDialog--feedback .UiInputRating__alert--error {
  margin-top: 27px;
}

.UiDialog--feedback .UiInputRating__label {
  cursor: pointer;
  font-weight: normal;
}

.UiDialog--feedback span.UiInputRating__label.UiInputRating__label--min {
  position: absolute;
  top: 100%;
  left: 0;
}

.UiDialog--feedback span.UiInputRating__label.UiInputRating__label--max {
  position: absolute;
  right: 0;
  top: 100%;
}

.UiDialog--feedback .UiInputRating__star {
  font-size: 40px;
}

@media screen and (max-width: 599px) {
  .interface_banner_contents {
    backdrop-filter: unset;
  }

  .interface_banner {
    padding: 9px;
  }

  .UiDialog--feedback #phidias_tour_feedback {
    padding: 2px;
  }

  .UiDialog--feedback .UiInputRating {
    min-width: unset;
    gap: 0;
  }

  .table_responsive tbody td,
  .table_responsive tfoot td {
    /* Behave  like a "row" */
    border: none;
    border-bottom: 1px solid #eee;
    position: relative !important;
    text-align: left !important;
    padding: 30px 20px;
    padding-bottom: 10px;
    /* padding-left: 50%; */
  }

  .table_responsive td.fixedrow {
    max-width: 500px !important;
  }

  .audience_builder_mobile {
    width: 100% !important;
  }

  .adders_mobile {
    width: 100% !important;
  }

  .audience_search_mobile {
    width: 100% !important;
  }

  .audience_results {
    width: 100% !important;
  }

  .margin_bottom {
    margin-bottom: 100px !important;
  }

  #event-calendar {
    display: block !important;
  }

  ul.source-selector-container li:nth-child(1) {
    margin-top: 0px !important;
  }

  .phidias-sources-selector-container {
    width: 100% !important;
    margin-left: 0px !important;
    padding-left: 0px !important;
    margin-top: 10px;
    border-left: 0px !important;
  }

  ul.source-selector-container li {
    margin-right: 10px !important;
    padding: 9px !important;
    border-radius: 5px !important;
  }

  .external_panel_normal {
    width: 40% !important;
  }

  .phi-state-thread .controls {
    justify-content: end;
  }

  .phi-state-thread .controls .actions {
    margin-top: 12px;
  }

  .post-reply-options {
    justify-content: center !important;
  }

  .post-reply-options>* {
    width: 45% !important;
    display: block !important;
    text-align: center !important;
  }

  .option-secondary {
    display: block;
  }

  .flex-separator {
    display: none !important;
  }

  .fc-week {
    height: 70px !important;
  }

  .fc-center {
    margin-top: 10px;
  }

  .end-date .date-picker-popup {
    right: 0 !important;
  }

  .until-date .date-picker-popup {
    right: 0 !important;
  }

  .filter_responsive {
    right: 0px !important;
    left: 80px !important;
    max-width: 300px !important
  }

  .filter_responsive div div {
    max-width: 290px !important;
  }

  .filter_responsive .bubble_body select {
    max-width: 290px !important;
  }

  .phi-post-editor .phi-post-editor-event .editor-wrapper {
    padding: 0px !important;
  }

  .date-picker {
    min-width: auto !important;
  }

  .entity select {
    width: 100%;
  }
}
