/* Shared tables components extracted from legacy global.scss. */

table{
  position: relative;
  border-collapse: collapse;

  th{
    /* white-space: break-spaces; */
    white-space: nowrap;

    &[data-ftype="persons_class"]{
      text-align: center;
    }

    &[data-ftype="actions"]{
      text-align: right;
    }
  }

  tr{
    border: 1px solid #e9e9e9;
    transition: 0.2s transform ease;
    transform: scale(1);

    td{
      border-right: 1px solid #f1f1f1;

      &:last-child{
        /* border-right: 1px solid #333; */
      }

      p{
        margin: 0;
      }

    }

    &.loading_indicator{
      td{
        text-align: center;
        img{
          position: relative;
          display: inline-block;
        }
      }
    }

    /*&:hover {
      background-color: #f2f2f2 !important;
      transition: background-color 0.1s ease;
    }*/

  }

}

.sage_table{
  font-size: 14px;
  line-height: 20px;
}

.block__dynamic_table_list_selector_container{
  position: fixed;
  z-index: 401;
  bottom: 30px;
  right: 0;
  max-width: 0;
  height: calc( 100vh - 115px);
  width: calc( 100vw - 260px );
  background-color: transparent;
  transition: 0.5s background-color ease;

  .block__dynamic_table_list_selector{
    position: absolute;
    z-index: 402;
    right: -300px;
    bottom: 0;
    height: calc( 100vh - 115px);
    width: 300px;
    background-color: white;
    box-sizing: border-box;
    border: 1px solid lightgrey;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 5px;
    box-shadow: 2px 2px 3px 0 rgba(0,0,0,0.75);
    transition: 0.5s all ease;

    .button__close{
      position: relative;
      display: block;
      width: 40px;
      margin: 0 15px 0 auto;
      font-size: 14px;
      line-height: 16px;
      cursor: pointer;
      background-color: var(--balter-primary-color);
      color: white;
      text-align: center;
      border-radius: 3px;
      opacity: 0.6;
      transition: 0.2s opacity ease;

      &:hover{
        opacity: 1;
      }
    }

    .list_element{
      position: relative;
      box-sizing: border-box;
      margin: 5px 0;
      background-color: #f5f5f5;
      cursor: pointer;
      padding: 3px 5px;

      .text{
        font-size: 14px;
        line-height: 20px;
      }

      .description{
        font-size: 10px;
        line-height: 12px;
      }

      &[data-active="yes"]{
        background-color: lightseagreen;
        color: white;
      }

      &[data-active="no"]{

      }
    }

  }

  &.active{
    display: block;
    max-width: calc( 100vw - 260px );
    right: 0;
    background-color: rgba(0, 0, 0, 0.4);

    .block__dynamic_table_list_selector{
      right: 0;
    }
  }

}

.block__dynamic_table_list{
  cursor: pointer;
  position: relative;
  background-color: transparent;
  min-height: 28px;
  box-sizing: border-box;
  line-height: 0;
  font-size: 0;
  padding-right: 30px;

  .indicator__open{
    position: absolute;
    display: block;
    right: 5px;
    top: 5px;
    width: 20px;
    opacity: 0.2;
    transition: 0.3s opacity ease;
  }

  .list_entity{
    position: relative;
    display: inline-block;
    font-size: 0;
    line-height: 0;
    /* background-color: white; */
    /* border-radius: 4px; */
    overflow: hidden;
    padding: 0 5px;
    margin: 2px;
    white-space: nowrap;
    color: var(--balter-primary-color);

    .text{
      position: relative;
      display: block;
      font-size: 14px;
      line-height: 26px;
      height: 26px;
      text-align: center;

    }
  }

  &:hover{
    /* background-color: rgba(0, 0, 0, 0.2); */

    .indicator__open{
      opacity: 0.4;
    }

  }

}

.table_actions_th{
  padding: 0 !important;
  text-align: right !important;
}

.table_actions_panel{
  position: relative;
  display: inline-block;
  vertical-align: top;
  white-space: nowrap;

  .button_container{

    .button{
      img{
        width: 24px;
      }
      .text{
        display: none;
      }
    }

  }

}

.pagination{
  position: relative;
  display: inline-block;
  font-size: 0;
  line-height: 0;
  background-color: rgba(199, 199, 199, 0.5);

  .pag_container{
    position: relative;
    display: inline-block;
    min-width: 288px;
  }

  .pag_button,
  .pag_dots,
  .pag_prev,
  .pag_next{
    position: relative;
    display: inline-block;
    font-size: 16px;
    line-height: 30px;
    width: 30px;
    height: 30px;
    margin-right: 2px;
    text-align: center;
    cursor: pointer;
    user-select: none;
    background-color: rgba(165, 33, 51, 0.2);

    &:last-child{
      margin-right: 0;
    }

    &.current{
      background-color: var(--balter-primary-color);
      color: white;
      cursor: default;
    }
  }

  .pag_dots{
    cursor: default;
    background-color: transparent;
  }

}

/* tables fixed */
.table_fixed_container{
  position: relative;
  height: auto;
  max-height: calc( 100vh - 370px );
  overflow: auto;
  margin: 0;

  table{
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
    margin: 0;

    thead{
      th{
        position: sticky;
        top: -4px;
      }
    }

    tfoot{
      th{
        position: sticky;
        bottom: -4px;
      }
    }
  }

}

.dataTable_dynamic_container,
.table_fixed_container_2{
  position: relative;
  height: calc( 100vh - 202px ); /* necesario para la carga dinámica. Hay que ajustar altura para cada tabla de forma manual */
  overflow: auto;
  margin: 0;

  &.height_24{ height: calc( 100vh - 243px ); }

  &.height_25{ height: calc( 100vh - 253px ); }

  table{
    height: auto;
    overflow-x: auto;
    overflow-y: auto;
    margin: 0;
    border: 8px solid #fdfdfd;
    box-shadow: 1px 1px 6px -2px rgb(0 0 0 / 30%);

    thead{
      th{
        position: sticky;
        top: -4px;
      }
    }

    tbody{

      tr {
        transition: background-color 0.2s ease-in-out;

        &:hover {
          background-color: #f9f2f2;

          td {
            border-bottom: 1px solid rgba(161, 77, 77, 0.1);
          }
        }
      }

    }

    tfoot{
      th{
        position: sticky;
        bottom: -4px;
      }
    }
  }

  &.noheight{
    height: auto;
  }

}

/* tables with tabs */
.table_fixed_container_tabs{
  position: relative;
  height: calc( 100vh - 310px );
  overflow: auto;
  margin: 0;

  table{
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
    margin: 0;

    thead{
      th{
        position: sticky;
        top: 0;
      }
    }

    tfoot{
      th{
        position: sticky;
        bottom: 0;
      }
    }
  }

}

/* tables with tabs and table title */
.table_fixed_container_tabs_2{
  position: relative;
  height: calc( 100vh - 360px );
  overflow: auto;
  margin: 0;

  .table_title{
    background-color: var(--balter-color-secondary-2-2);
    color: white;
    margin: 0 2px 0 2px;
    padding: 5px 15px;
    font-size: 18px;
    line-height: 20px;
    background-image: url('/library/images/textures/bright-squares.png');
    background-position: center;
    background-size: 200px;
    background-repeat: repeat;
    border-bottom: 2px solid white;
  }

  table{
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
    margin: 0;

    thead{
      th{
        position: sticky;
        top: 0;
      }
    }

    tfoot{
      th{
        position: sticky;
        bottom: 0;
      }
    }
  }

}

.table_fixed_container_v2{
  position: relative;
  height: auto;
  max-height: calc( 100vh - 253px );
  overflow: auto;
  margin: 0;

  table{
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
    margin: 0;

    thead{
      th{
        position: sticky;
        top: -4px;
      }
    }

    tfoot{
      th{
        position: sticky;
        bottom: -4px;
      }
    }
  }

}

.table_fixed_container__last{
  position: relative;
  height: auto;
  max-height: calc( 100vh - 295px );
  overflow: auto;
  margin: 0;

  table{
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
    margin: 0;

    thead{
      th{
        position: sticky;
        top: -4px;
      }
    }

    tfoot{
      th{
        position: sticky;
        bottom: -4px;
      }
    }
  }

}

.small_values_table{
  position: relative;
  width: 100%;

  tr{
    border-left: 0;
    border-right: 0;

    th,
    td{
      padding: 3px;
      text-align: left;
      font-size: 14px;
      line-height: 14px;
      border-left: 0;
      border-right: 0;

      &.col_visits_month{
        text-align: center;
      }

      &.col_visits_year{
        text-align: center;
      }

      &.col_visits_average{
        text-align: center;
      }

      &.col_publish_date{
        width: 130px;
      }

      &.align_right{
        text-align: right;
      }

    }

    th{
      font-size: 12px;
    }
  }

}

.big_values_table{
  position: relative;
  width: 100%;

  tr{
    border-left: 0;
    border-right: 0;

    th,
    td{
      padding: 3px;
      text-align: left;
      font-size: 14px;
      line-height: 14px;
      border: 1px solid grey;

      &.col_visits_month{
        text-align: center;
      }

      &.col_visits_year{
        text-align: center;
      }

      &.col_visits_average{
        text-align: center;
      }

      &.col_publish_date{
        width: 130px;
      }

    }

    th{
      font-size: 12px;
    }
  }

}

/* -----END GENERIC------------------------------------------------------------------------------------------------------ */

/* -----DYNAMIC TABLE---------------------------------------------------------------------------------------------------- */

#dynamic_table__container{

  &.style__mini{

    .filters_2{
      padding: 3px 3px 0 3px;
      margin: 0;
      min-height: 17px;
      background-image: none;
      background-color: #f7f7f7;
      border: 0;

      .filter_selector{
        margin: 0 0 1px 5px;
        vertical-align: top;
        opacity: 0.8;

        .filter_title{
          font-size: 12px;
          line-height: 14px;
          height: 14px;
          padding: 0 3px;
          margin: 0;
        }

        .select2{
          font-size: 12px;
          line-height: 16px;

          .select2-selection--single{
            height: 16px !important;

            .select2-selection__rendered{
              font-size: 12px;
              line-height: 16px !important;
            }

            .select2-selection__arrow{
              height: 16px !important;
            }

          }

        }

        select{
          font-size: 12px;
          line-height: 16px;
          height: 16px;
          padding: 0 3px;

          option{
          }

        }

        input{
          font-size: 12px;
          line-height: 16px;
          height: 16px;
          padding: 0 3px;

        }

      }

      .filter_datepicker{
        margin: 0 0 1px 5px;
        vertical-align: top;
        opacity: 0.8;

        .filter_title{
          font-size: 12px;
          line-height: 14px;
          height: 14px;
          padding: 0 3px;
          margin: 0;
        }

        input{
          font-size: 12px;
          line-height: 16px;
          height: 16px;
          padding: 0 3px;

        }

      }

      .search_area{
        margin: 0 0 1px 5px;

        i{
          font-size: 10px;
          width: 10px;
          line-height: 14px;
          height: 14px;
          padding: 0 5px;
        }

        input{
          font-size: 12px;
          line-height: 16px;
          height: 16px;
          outline: 0;

        }

      }

      .dynamic_table_loading_indicator,
      .button__clear_filters{
        margin: 0 0 1px 5px;
        vertical-align: top;
        height: 16px;
        border-radius: 4px;
        text-align: center;

        img{
          line-height: 10px;
          width: 20px;
          height: 20px;
          margin: -7px 0 0 0;
        }

        &.active{
          width: 30px;
        }
      }

      .dynamic_table_loading_indicator{

        img{
          margin: -2px 0 0 0;
        }

      }

    }

    .dataTable_dynamic{
      border-top-width: 3px;

      th{
        padding: 1px;
      }

    }

  }

  .hidden_by_filter{
    display: none;
  }

  .dataTable_dynamic_container{
    opacity: 1;
    transition: 0.3s opacity ease;

  }

  &.loading_data{
    .dataTable_dynamic_container{
      /* opacity: 0.6; */

    }
  }

}

/* -----END GLOBAL WIDGET------------------------------------------------------------------------------------------------ */
/* -----END CONTENT------------------------------------------------------------------------------------------------------ */
/* -----INTERFACE CONTENT------------------------------------------------------------------------------------------------ */

.dataTable_genericStyle,
.dataTable_dynamic{
  position: relative;
  box-sizing: border-box;
  /* border-collapse: collapse; */
  /* margin: 0 -10px 0 -10px; */
  /* width: calc(100% + 20px); */
  margin: 0 -10px 0 0;
  width: 100%;
  overflow: hidden;
  /* height: calc( 100vh - 200px ); */
  /* border-collapse: separate; */
  /* border-spacing: 3px; */
  /* border: 1px solid lightgrey; */
  /* border: 8px solid #f7f7f7; */
  border: 8px solid white;
  box-shadow: 1px 1px 6px -2px rgb(0 0 0 / 30%);

  thead{
    position: relative;
    z-index: 10;

    th{
      /* background-color: #A52133; */
      background-color: white;
      /* background-image: url('/library/images/textures/bright-squares.png'); */
      color: black;
      background-position: center;
      background-size: 200px;
      background-repeat: repeat;
      font-size: 14px;
      line-height: 18px;
      padding: 10px 5px 10px 5px;
      top: -4px

      /* &:first-child{ */
      /* padding-left: 20px; */
      /* } */
    }
  }

  th{
    text-align: left;
    /* background-color: #E4E4F3; */
    /* color: #565656; */
    color: #333;
    font-weight: 600;

    &.tb_order_button,
    &.button__table_reorder{
      cursor: pointer;
      user-select: none;

      .fa-angle-down{
        display: inline-block;
        color: rgba(0, 0, 0, 0.1);
        font-size: 16px;
      }

      &.order_desc{
        /* background: linear-gradient(0deg, #b7b7b7 0%, rgb(227, 227, 227) 40%, rgb(227, 227, 227) 100%); */

        .fa-angle-down{
          display: inline-block;
          /* color: orange; */
          color: #E36B7C;
          text-shadow: 0px 1px 0px #000;
        }
      }

      &.order_asc{
        /* background: linear-gradient(0deg, rgb(227, 227, 227) 0%, rgb(227, 227, 227) 60%, #b7b7b7 100%); */

        .fa-angle-down{
          display: inline-block;
          transform: rotate(180deg);
          color: orange;
          text-shadow: 0px 1px 0px #000;
        }
      }

      &[data-ftype="alerts"]{
        text-align: center;
      }

      &[data-ftype="expire_date"]{
        white-space: nowrap;
      }

      &:hover{
        color: black;
      }
    }

    &.total_positive{
      /* background-color: var(--balter-green-light); */
      text-shadow: 0 0 0 #21CE31;
      color: rgba(51, 51, 51, 0.6);
      background-color: white !important;
      background-image: none;
      border-top: 2px solid var(--balter-color-complement-3);
      border-bottom: 1px solid #777;
      font-size: 15px;
    }

    &.total_negative{
      /* background-color: var(--balter-red-light); */
      text-shadow: 0 0 0 #CE1611;
      color: rgba(51, 51, 51, 0.6);
      background-color: white !important;
      background-image: none;
      border-top: 2px solid var(--balter-color-primary-3);
      border-bottom: 1px solid #777;
      font-size: 15px;
    }

    &.total_adversative{
      /* background-color: var(--balter-red-light); */
      text-shadow: 0 0 0 #ce7c11;
      color: rgba(51, 51, 51, 0.6);
      background-color: white !important;
      background-image: none;
      border-top: 2px solid #ce7c11;
      border-bottom: 1px solid #777;
      font-size: 15px;
    }

    &.total_neutral{
      /* background-color: var(--balter-red-light); */
      text-shadow: 0 0 0 #777;
      color: rgba(51, 51, 51, 0.6);
      background-color: white !important;
      background-image: none;
      border-top: 2px solid #777;
      border-bottom: 1px solid #777;
      font-size: 15px;
    }

    /*&:first-child{
      padding-left: 20px;
    }

    &:last-child{
      padding-right: 20px;
    }*/

  }

  tr{
    background-color: white;
    /* transition: 0.3s all ease; */

    &.hidden,
    &.hidded_by_state,
    &.hidded_by_responsible_member,
    &.hidded_by_person_type,
    &.hidded_by_departament{
      display: none;
    }

    &.row_opacited{
      opacity: 0.7;
    }

    &.row_greentone{
      background-color: #fbfffb !important;
    }

    &.row_redtone{
      background-color: #fffbfb !important;
    }

    &.row_white{
      background-color: #fff !important;
    }

    td{
      font-size: 14px;
      line-height: 16px;
      padding: 2px 5px 2px 5px;
      /* border-bottom: 1px solid white; */
      /* border-top: 1px solid transparent; */
      /* border-bottom: 1px solid transparent; */
      /* transition: 0.3s all ease; */

      &.found{
        background-color: rgba(255, 255, 0, 0.2);
      }

      /*&:first-child{
        padding-left: 20px;
      }

      &:last-child{
        padding-right: 20px;
      }*/

      &.col_id{
        width: 60px;
      }


      &.col_nif{
        white-space: nowrap;

        &.duplicated{
          background-color: #ffdadf;
        }

        .type_dni{
          color: var(--balter-color-complement-2);
        }

        .type_nie{
          color: var(--balter-color-secondary-2-1);
        }

        .type_cif{
          color: var(--balter-blue-1);
        }

        .not_valid_advice{
          color: var(--balter-color-primary-1);
          font-size: 12px;
          line-height: 14px;
        }

        .not_valid_or_foreign_advice{
          font-size: 12px;
          line-height: 14px;
        }

        .duplicated_advice{
          font-size: 12px;
          line-height: 14px;
        }

        .empty_advice{
          color: var(--balter-color-primary-1);
        }
      }

      &.col_contact{

        .emails_list_complex,
        .phones_list_complex{
          display: inline-block;
        }

        .phone_area{
          .phonetext{
            padding-right: 10px;
          }
        }

        .email_area{
          .emailtext{
            padding-right: 10px;
          }
        }

      }

      &.col_note{
        font-weight: 400 !important;
        font-size: 13px !important;
        line-height: 15px !important;
        font-style: normal !important;

        .text_content,
        .text_content strong{
          font-weight: 400 !important;
          font-size: 13px !important;
          line-height: 15px !important;
          font-style: normal !important;
        }

      }

      &.col_rich_details{
        vertical-align: top;

        .rich_details_st_elem{
          position: relative;
          display: inline-block;
          border: 1px solid #e7e7e7;
          border-radius: 3px;
          padding: 1px 3px;
          margin: 1px;
          vertical-align: top;
        }

        .text_content,
        .text_content strong{
          font-weight: 400 !important;
          font-size: 13px !important;
          line-height: 15px !important;
          font-style: normal !important;
        }

      }

      &.col_actions{
        text-align: right;
      }

      &.col_campaign_type{
        white-space: nowrap;
      }

      &.col_client_and_dossier{
        white-space: nowrap;
        text-align: left;
      }

      &.col_content{
        img{
          max-width: 100%;
        }
      }

      &.column_id{
        width: 40px;
      }

      &.sage_id{
        width: 60px;
      }

      &.class_id{
        width: 140px;
      }

      &.family_name{
        width: 120px;
      }

      &.button_open_popup{

        &:hover{
          background-color: var(--balter-color-secondary-2-1-touch);
        }

      }

      .action_buttons{
        text-align: right;
        margin: -4px;

        .button_container{
          margin: 1px;
        }

      }


      &.col_persons_class{
        width: 12px;
        padding: 0;

        .class_icon{
          position: relative;
          display: block;
          width: 40px;
          height: 40px;
          line-height: 40px;
          text-align: center;
          font-size: 16px;
          color: var(--balter-color-primary-4);

        }

        /* &[data-fval="300"]{ */
        /* color: #E36B7C; */

        /* } */
        /* &[data-fval="500"]{ */
        /* color: var(--balter-color-primary-3); */
        /* } */
        /* &[data-fval="600"]{ */
        /* color: var(--balter-color-primary-4); */
        /* } */
      }


      &.col_order,
      &.col_rows{
        width: 50px;
      }


      &.col_avatar{
        width: 40px;
        padding: 0;

        img{
          position: relative;
          display: block;
          max-width: 100%;
        }
      }

      &.col_name,
      &.col_representation{

        .button_container{
          display: inline-block;
          color: var(--balter-color-primary-4);
          cursor: pointer;
          transition: 0.2s all ease;

          .button{
            .text{
            }
          }

          &:hover{
            color: var(--balter-primary-color);
          }

        }

      }

      &.col_duration{
        .work_duration{
          border-left: 5px solid black;
          padding-left: 3px;
        }
      }

      &.col_doc_number{
        white-space: nowrap;
        a{
          white-space: nowrap;
        }
      }

      &.col_ename,
      &.col_chance{
        position: relative;

        .button_container{

          .button{
            border-color: var(--balter-background-1);

            img{
              background-color: transparent;
              padding: 2px 0 2px 2px;
            }

          }
        }

      }

      &.col_ename{
        padding: 0;
      }

      &.col_alerts{
        font-size: 0;
        width: 15px;
        vertical-align: middle;

        &.alert{
          font-size: 16px;
          font-weight: 500;
          color: white;
          background-color: grey;
        }
      }

      &.col_assigned,
      &.col_overseers{
        position: relative;
        padding: 0;
        vertical-align: top;

        .element{
          &.entry_way{
            font-weight: 700;
            opacity: 0.8;
          }
          &.title{
            font-weight: 700;
            opacity: 0.8;
          }
        }

        .elements_selector_container{
          position: relative;

          .elements_selector_content{
            position: relative;
            display: grid;
            grid-gap: 2px;
            grid-template-columns: repeat(3, 1fr);


            .element{
              position: relative;

              &.person{
                position: relative;
                display: inline-block;
                font-size: 0;
                line-height: 0;
                background-color: lightgrey;
                border-radius: 4px;
                overflow: hidden;
                padding: 2px;

                .avatar{
                  position: relative;
                  display: block;
                  height: 40px;
                  width: 100%;
                  /* min-width: 60px; */
                  margin: 0 auto;

                  background-position: center;
                  background-size: cover;
                  background-repeat: no-repeat;

                }

                .alias{
                  position: relative;
                  display: block;
                  height: 14px;
                  font-size: 12px;
                  line-height: 14px;
                  margin: -14px auto 0 auto;
                  background: linear-gradient(0deg, #D3D3D3FF 0%, #D3D3D3FF 50%, rgba(211, 211, 211, 0) 100%);
                  text-align: center;
                  text-shadow: 0px -1px 0px #FFF;
                  color: var(--balter-primary-color);

                }
              }

              &.be_person{
                position: relative;
                display: inline-block;
                box-sizing: border-box;
                font-size: 0;
                line-height: 0;
                background-color: lightgrey;
                border-radius: 4px;
                overflow: hidden;

                button{
                  position: relative;
                  display: block;
                  box-sizing: border-box;
                  border-radius: 4px;
                  width: 100%;
                  height: 44px;
                  border: 0;
                  background-color: #efefef;
                  padding: 2px;

                  span{
                    position: relative;
                    display: block;
                    box-sizing: border-box;
                    font-size: 12px;
                    width: auto;
                    min-width: auto;
                    height: 40px;
                    line-height: 40px;
                    margin: 0;

                    i{
                      border: 0;
                      border-radius: 4px;
                      vertical-align: middle;
                      color: var(--balter-primary-color);
                      font-size: 10px;
                    }
                  }
                }

              }

            }

          }

        }

        .fast_change_area_container{
          position: relative;
          padding: 5px 24px 5px 5px;
          min-width: 150px;

          .button_container{
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;

          }

          .button_interface,
          .button__fast_change_area{
            position: absolute;
            z-index: 3;
            min-height: 40px;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            /* position: absolute; */
            /* z-index: 2; */
            /* top: 2px; */
            /* right: 2px; */
            /* height: 19px; */
            /* width: 19px; */
            /* background-color: white; */
            /* border-radius: 50%; */
            border-radius: 0;
            cursor: pointer;
            opacity: 0.2;
            transition: 0.2s all ease;
            /* border: 1px solid black; */

            img{
              position: absolute;
              top: 0;
              right: 0;
              display: block;
              width: 20px;
              margin: 2px;
            }

            &:hover{
              opacity: 1;
              background-color: rgba(0, 0, 0, 0.1);
            }

          }

          .fast_change_area_content{
            position: fixed;
            display: none;
            z-index: 100;
            background-color: white;
            box-sizing: border-box;
            border: 1px solid lightgrey;
            left: 0;
            top: 0;
            width: 300px;
            max-height: 600px;
            overflow-x: hidden;
            overflow-y: auto;
            padding: 5px;
            box-shadow: 2px 2px 3px 0 rgba(0,0,0,0.75);

            .button__close{
              position: relative;
              display: block;
              width: 40px;
              margin: 0 0 0 auto;
              font-size: 14px;
              line-height: 16px;
              cursor: pointer;
              background-color: var(--balter-primary-color);
              color: white;
              text-align: center;
              border-radius: 3px;
              opacity: 0.6;
              transition: 0.2s opacity ease;

              &:hover{
                opacity: 1;
              }
            }

            .row_simple{
              position: relative;
              box-sizing: border-box;
              margin: 5px 0;
              background-color: #f5f5f5;
              cursor: pointer;
              padding: 3px 5px;

              &.member{
                padding: 0;

                .left{
                  position: relative;
                  box-sizing: border-box;
                  float: left;
                  width: 40px;

                  img{
                    position: relative;
                    width: 100%;
                    display: block;
                  }
                }

                .right{
                  position: relative;
                  box-sizing: border-box;
                  float: left;
                  width: calc( 100% - 40px );
                  padding: 5px;
                  font-size: 14px;
                  line-height: 15px;
                }

                &[data-active="yes"]{
                  background-color: lightseagreen;
                  color: white;
                }

                &[data-active="no"]{

                }
              }

            }

            &.active{
              display: block;
            }

          }

          .fast_change_area_result{
            position: relative;
            display: block;
            opacity: 0.4;

            &.active{
              opacity: 1;
            }

            .element{

              &.chance{

                .button__finish_chance{
                  position: absolute;
                  right: 0;
                  top: 0;
                  display: inline-block;
                  padding: 3px 10px;
                  background-color: white;
                  color: var(--balter-primary-color);
                  border: 1px solid lightgrey;
                  cursor: pointer;

                  img{
                    position: relative;
                    width: 30px;
                  }
                }

              }

            }

          }

        }

        .elements_selector_container{
          .elements_selector_content{
            grid-template-columns: repeat(2, 1fr);
            width: 100px;
          }
        }

      }

      &.col_start_relation_day,
      &.col_stop_relation_day,
      &.col_registered_at{
        white-space: nowrap;
      }

      &.col_entry_way,
      &.col_executors,
      &.col_overseers{
        padding: 0;
        vertical-align: middle;
      }

      &.col_assigned{
        position: relative;

        /* "yo me encargo" button - old? */
        form{
          button{
            background-color: var(--balter-primary-color);
            color: white;

            span{
              font-size: 12px;
              line-height: 12px;
            }
          }
        }

      }

      &.col_state{
        position: relative;
        padding: 0;

        .col_state_container{
          position: relative;
          display: block;
          min-height: 30px;

          .button_container{
            position: absolute;
            z-index: 5;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            margin: 0;
            border: 0;
            background-color: transparent;
            opacity: 0.2;
            transition: 0.3s opacity ease;

            .button__ajax_popup{
              position: absolute;
              z-index: 5;
              left: 0;
              top: 0;
              width: 100%;
              height: 100%;
              margin: 0;
              border: 0;
              background-color: transparent;


              img{
                width: 20px;
                display: block;
                margin: 0 0 0 auto;
                background-color: transparent;
                padding: 5px;
              }

            }

            &:hover{
              opacity: 0.4;
              /* background-color: rgba(0, 0, 0, 0.1); */
            }

          }

          .state_of_chance,
          .state_of_estimate,
          .state_of_dossier{
            position: relative;
            z-index: 4;
            padding: 1px 30px 1px 5px;

            .title{
              font-size: 14px;
              line-height: 14px;
              font-weight: 600;
            }

            .date{
              font-size: 14px;
              line-height: 14px;
            }

            /*&.op_gajete_style{

              &[data-state="contact"]{
                background-color: #00ffff;
              }

              &[data-state="meeting"]{
                background-color: #ffff00;
              }

              &[data-state="converted"]{
                background-color: #A52133;
                color: white;
              }

              &[data-state="lost"]{
                background-color: #676767;
                color: white;
              }

            }*/

          }

        }

      }

      .button_open_popup{
        color: var(--balter-primary-color);
        cursor: pointer;
        transition: 0.2s color ease;
        font-weight: 600;

        &:hover{
          color: var(--balter-color-primary-4);
        }
      }

      /*.balance_positive{

        color: var(--balter-color-complement-3);
        font-size: 15px;
      }

      .balance_negative{

        color: var(--balter-color-primary-2);
        font-size: 15px;
      }

      .balance_adversative{

        color: var(--balter-color-secondary-1-3);
        font-size: 15px;
      } */

      .accumulated_up{
        &:before{
          position: relative;
          font-family: "Font Awesome 5 Free";
          font-weight: 900;
          content: '\f062';
          font-size: 10px;
          line-height: 16px;
          vertical-align: top;
          padding-right: 5px;
          color: var(--balter-color-complement-1);
          opacity: 0.8;
        }

      }

      .accumulated_down{
        &:before{
          position: relative;
          font-family: "Font Awesome 5 Free";
          font-weight: 900;
          content: '\f063';
          font-size: 10px;
          line-height: 16px;
          vertical-align: top;
          padding-right: 5px;
          color: var(--balter-color-primary-1);
          opacity: 0.8;
        }

      }


    }

    &:nth-child(even){
      background-color: #fbfbfb;
    }

    &.hidded{
      display: none;
    }

    &.hidded_by_pagination{
      display: none;
    }

    /*&:hover{

      background-color: rgba(20, 82, 0, 0.01) !important;

      td{


      }
    }*/

    &.last_table_row{
      /* background-color: #333 !important; */
      background-color: #e8e8e8;
      border-top: 1px solid lightgrey;
      color: #333;
    }

    &.last_clicked{
      background-color: rgba(20, 82, 0, 0.04) !important;
    }

  }

  tfoot{
    position: relative;
    z-index: 10;

    th{
      background-color: white;
      background-image: url('/library/images/textures/bright-squares.png');
      background-position: center;
      background-size: 200px;
      background-repeat: repeat;
      font-size: 14px;
      line-height: 18px;
      padding: 5px 5px 5px 5px;
      color: #333;
    }
  }
}
