.SideBar {
  background-color: #303f9f;
  color: white;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-width: 68px;
  user-select: none;
  transition: width 0.3s ease-in-out;

  &.expanded {
    z-index: 4 !important;
    width: 250px;
  }
  &.collapsed {
    z-index: 3 !important;
    width: 68px;
    overflow: hidden;
  }

  &.production {
    background-color: #263238;
  }

  transition: width 0.3s ease-in-out;

  .Sidebar__overflow {
    overflow-x: hidden;
    overflow-y: auto;

    &.collapsed {
      overflow-y: hidden;
    }
  }

  .selectorContainer {
    display: flex;
    flex-direction: row;
    padding: 6px 10px 10px 10px;
    max-height: 50px;
    cursor: pointer;
    .menuButton {
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      margin-right: 10px;

      .hamburguerIcon {
        cursor: pointer;
        border: none;
        background-color: transparent;
        color: white;
        padding: 12px;

        &:hover {
          background-color: rgba(211, 217, 229, 0.25);
          color: white;
          border-radius: 8px;
        }
      }
    }
    .menuApp {
      &.collapsed {
        width: 0px;
        overflow: hidden;
      }

      &.expanded {
        width: 173px;
      }

      display: flex;
      flex-direction: row;
      justify-content: space-between;
      padding: 13px 12px 13px 12px;
      gap: 12px;
      white-space: nowrap;
      transition: width 0.3s ease-in-out;

      .nameApp {
        color: #eeeeee;
        font-size: 16px;
        font-weight: 500;
        align-self: center;
        justify-content: start;
        width: 125px;
        white-space: normal;
        transition: width 0.3s ease-in-out;
        overflow: hidden;
        white-space: nowrap;
      }
      .arrows {
        justify-content: end;
      }
      &:hover {
        background-color: rgba(211, 217, 229, 0.25);
        color: white;
        border-radius: 8px;
      }
    }
  }
}
@media screen and (width: 600px) {
  .collapsed {
    max-height: 64px !important;
  }
}
@media (max-width: 600px) {
  .SideBar {
    &.expanded {
      .selectorContainer {
        padding: 0px 10px !important;
        box-shadow: 0px 1px 0px rgba(151, 159, 171, 0.25);
        max-height: 48px;
      }
    }
    &.collapsed {
      max-width: 52px !important;
      min-width: 52px !important;
      max-height: 56px;
      background-color: #fff;
      box-shadow: 0px 1px 0px #e0e0e0;
      .selectorContainer {
        padding: 4px 0px 0px 6px /* !important */;
      }
    }
    .selectorContainer {
      .menuButton {
        .hamburguerIcon:hover {
          background-color: transparent;
        }
      }
    }
  }

  .menuApp {
    display: flex;
    flex-direction: row;
    width: 75%;
    justify-content: space-between;
    padding: 12px;
    white-space: nowrap;

    &:hover {
      background-color: #fff;
      color: white;
    }
  }
}

@media (min-width: 0px) and (max-width: 600px) and (orientation: landscape) {
  .SideBar {
    &.collapsed {
      max-height: 48px;
      min-height: 48px;
    }
    .selectorContainer {
      .menuButton {
        .hamburguerIcon:hover {
          background-color: transparent;
        }
      }
    }
  }
}

.SideBarItem {
  display: flex;
  padding: 2px 9px 2px 9px;
  cursor: pointer;
  user-select: none;

  .SideBarContent {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .clicked {
    background-color: rgba(211, 217, 229, 0.25);
  }

  .label {
    background-color: transparent;
    border: none;
  }

  .subItemContainer {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-left: 20px;
    border-left: 2px solid white;
  }

  .main {
    width: 100%;
    color: white;
    text-decoration: none;
    display: inline-flex;
    border-radius: 8px;
    font-weight: 400;

    .ancor {
      color: white;
      text-decoration: none;
      font-weight: 400;
    }

    &.main-subMenu:first-child {
      margin-top: 2px;
    }

    .collapsed {
      justify-content: center;
      width: 38px;
      padding: 6px;
    }
    .expanded {
      justify-content: left;
      width: 235px;
      padding: 6px;
      justify-content: space-between;
    }

    .ItemContent {
      display: inline-flex;
      flex-direction: row;
      overflow: hidden;
      white-space: nowrap;
      margin-left: -0.3px;

      .contentStart {
        display: flex;
        gap: 6px;

        .icon {
          padding: 6px;
          opacity: 1;
          width: 24px;
          height: 24px;
          text-align: center;
          margin-left: 0.5px;

          img {
            left: 22px;
            width: 24px;
            height: 24px;
          }
        }

        .label {
          justify-content: start;
          align-self: center;
          overflow: hidden;
          white-space: normal;
        }
      }

      .iconDropdown {
        align-self: center;

        &.reversed {
          transition: 0.3s ease-in;
          transform-style: preserve-3d;
          transform: scaleY(-1);
        }

        &.forward {
          transition: 0.3s ease-in;
          transform-style: preserve-3d;
          transform: scaleY(1);
        }
      }

      &:hover {
        background-color: rgba(211, 217, 229, 0.25);
        border-radius: 8px;
        margin-left: -0.3px;

        & + .tooltip {
          align-self: center;
          display: inline-block;
          animation-duration: 0.4s;
          animation-name: tooltip;
        }
      }
    }

    .subItem {
      display: flex;
      flex-direction: row;
      align-items: center;
      overflow: hidden;
      white-space: nowrap;
      padding-left: 8px;

      &.clicked {
        background-color: rgba(211, 217, 229, 0.25);
        border-radius: 0 8px 8px 0;
      }

      .icon {
        display: none;
        flex-direction: row-reverse;
        width: 16%;
        height: 100%;

        &.showIcon {
          display: block;
          height: inherit;
          padding-left: 10px;
        }
      }

      .label {
        padding: 10px;
        width: 218px;
        font-weight: 400;
        font-size: 15px;
        justify-content: left;
        text-wrap: wrap;
        white-space: normal;
      }

      &:hover {
        background-color: rgba(211, 217, 229, 0.25);
        border-radius: 0 8px 8px 0;
      }
    }
  }

  .tooltip {
    position: fixed;
    display: none;
    background-color: black;
    font-size: 13px;
    font-weight: 300;
    left: 64px;
    margin: -38px 0px -38px 0px;
    padding: 3px 8px;
    border-radius: 8px;
    white-space: nowrap;
  }

  @keyframes tooltip {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
}

@media (max-width: 600px) {
  .SideBarItem {
    .ItemContent {
      &.collapsed {
        display: none;
      }
    }
  }
}

.filter-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 24px 0px;

  .filter-events {
    gap: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 400px));
    padding: 0 12px;
  }

  .filter-content {
    gap: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 400px));
    align-items: end;
    max-height: 400px;
    overflow-y: auto;
    padding: 0 12px;
  }
}
.singleColumn {
  grid-column: span 1 / span 1 !important;
}
.dobleColumn {
  grid-column: span 2 / span 2 !important;
}

@media screen and (max-width: 768px) {
  .filter-container {
    padding-left: 12px;
    padding-right: 12px;
    .filter-content {
      grid-template-columns: 1fr;
    }
    .filter-events {
      grid-template-columns: 1fr;
    }
  }
  .dobleColumn {
    grid-column: span 1 / span 1 !important;
  }
}

.whiteSvg {
  svg {
    path {
      fill: white;
    }
  }
  &.disabled {
    svg {
      path {
        fill: rgba(0, 0, 0, 0.26);
      }
    }
  }
}

.contentTable {
  border-radius: 8px;
  border-style: solid;
  border-color: rgba(151, 159, 171, 0.25);
  border-width: 1px;
  padding: 12px;
  background-color: white;
  display: flex;
  flex-direction: column;
  margin: 12px 0px 24px 0px;
}

.divTable {
  width: 100%;
  margin: 0 0 24px 0;
  overflow: auto;
  height: calc(100% - 115px);
}

table {
  border: none;
  border-collapse: collapse;
  user-select: none;
  overflow: auto;
  width: 100%;
}

.MuiLinearProgressContainer {
  height: 0px;
}

td,
th,
tr {
  padding: 15px 10px 15px 0px;
  font-size: 1rem;
  text-align: left;
  font-weight: 400;
}

td:last-child {
  padding-right: 12px;
}

tr {
  border-bottom: 0.5px solid rgba(151, 159, 171, 0.2);
  td:first-child {
    padding-left: 10px;
  }
}

tr td:nth-last-child(2) {
  display: none;
}

.trTotalFixed,
.theadFixed {
  position: sticky;
}

.theadFixed {
  top: -1px;
  background-color: #f9f9f9;
}

.trSelected {
  background-color: #eeeeee;
  &:hover {
    background-color: #e0e0e0;
  }
}

.trTotalFixed {
  bottom: -1px;
  background-color: #ffffff;
}

.trFixed,
.thFixed {
  position: sticky;
  left: 0px;
  z-index: 3;
}

.trFixed {
  background-color: #ffffff;
}

.thFixed {
  background-color: #f5f5f5;
}

.trTotal td:nth-last-child(2) {
  display: revert !important;
}

tbody {
  tr:last-child {
    border-bottom: 0.5px solid rgba(151, 159, 161, 0.2);
    margin-bottom: 0px;
  }
}

tr:hover {
  background-color: #f5f5f5;
}

.thGroup {
  text-align-last: center;
  border-left: 0.5px solid rgba(151, 159, 161, 0.2);
  border-right: 0.5px solid rgba(151, 159, 161, 0.2);
  border-top: 0.5px solid rgba(151, 159, 161, 0.2);
  &:nth-last-child(2) {
    border-left: 0px;
    border-right: 0px;
  }
}
.thGroup:last-child {
  border-left: 0px solid rgba(151, 159, 161, 0.2);
}
.thDepthLeft {
  border-left: 0.5px solid rgba(151, 159, 161, 0.2);
}
.thDepthRight {
  border-right: 0.5px solid rgba(151, 159, 161, 0.2);
  &:nth-last-child(2) {
    border-right: 0px;
  }
}

tbody {
  color: #1a237e;
}

.thead_class {
  white-space: nowrap;
  font-size: 1rem;
  background-color: #f5f5f5;
  td,
  th {
    padding: 10px 10px 10px 0px;
    text-align: left;
    font-weight: 500;
    cursor: pointer;
  }

  .thead_class_row {
    height: 44px;
    padding: 0;
    color: var(--blue-grey-900);

    .thead_class_row_cell {
      padding: 0 5px;

      .thead_class_row_cell_container {
        display: flex;
        align-items: center;
        padding: 10px 0px 10px 0px;

        .thead_class_wrapper {
          display: flex;
          flex-direction: row;
          gap: 7px;
          align-items: center;
        }

        .thead_class_tooltip {
          width: 16px;
          height: 16px;
        }

        .thead_class_icon {
          cursor: pointer;
          width: 16px;
          height: 16px;
          display: flex;
          flex-direction: column;
          padding-left: 7px;

          .thead_class_icon-arrows {
            cursor: pointer;
            width: 16px;
            height: 16px;
          }
        }
      }
    }

    th:last-child {
      padding-right: 16px;
    }

    th:first-child {
      padding-left: 10px;
    }
  }
}

.numberAlign {
  padding-right: 24px;
  text-align: right;
}

.cellHover:hover {
  background-color: #cecece;
}

.dateAlign {
  text-align: center;
}

.align-left {
  text-align: left;
}
.align-right {
  text-align: right;
}
.align-center {
  text-align: center;
}

.table-bar {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  overflow: auto;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 12px;

  .table-textfield-container {
    width: 55%;
  }

  .tablemenu-container {
    display: flex;
    gap: 12px;

    .table-button-container {
      display: flex;
      flex-direction: row;
      overflow: visible;
      justify-content: space-between;
      gap: 12px;
    }
  }
}

.footer-container {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;

  .table-navigation-container {
    display: flex;
    flex-direction: row;
    color: #616161;
    font-size: 0.813rem;
    white-space: nowrap;
    overflow: auto;
    .table-navigation-container-arrows {
      display: flex;
      flex-direction: row;
      align-items: center;
      margin-right: 20px;
      gap: 12px;
    }

    .table-navigation-container-page {
      display: flex;
      flex-direction: row;
      align-items: center;
      margin-right: 20px;
    }

    .table-navigation-container-elements {
      display: flex;
      flex-direction: row;
      align-items: center;
    }
  }

  .modeMultiselect-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    .modeMultiselect-buttons {
      display: flex;
      gap: 8px;
    }
  }
}

.MuiButton-hovered {
  background-color: rgb(238, 238, 238);
  border: 1.5px solid rgb(92, 107, 192) !important;
}

.select_class {
  border-radius: 4px;
  padding: 4px 2px;
  border-color: #eeeeee;
  border-width: 1px;
}

.inputnumber_class {
  border-radius: 4px;
  padding: 4px 2px;
  border-color: #eeeeee;
  border-width: 1px;
  color: #9e9e9e;
  border-style: solid;
}

.alignBoolean {
  width: 100%;
  text-align: center;
}

.titleDateAlign {
  text-align: center;
}

.disabledTable {
  background-color: #eeeeee !important;
  .contentTableScroll .divTable table {
    color: #616161 !important;
    thead {
      background-color: #bcbcbc !important;
      tr {
        border-bottom: 1px solid #9e9e9e !important;
      }
    }
    tbody {
      color: #616161 !important;
      tr:hover {
        background-color: #eeeeee !important;
      }
      tr:last-child {
        border-bottom: 1px solid #9e9e9e !important;
      }
    }
  }
}

.onlyTable {
  margin: 0px;
  padding: 0px;
  .divTable {
    margin: 0px;
    border-radius: 8px;
    table {
      thead {
        td:hover {
          background-color: none;
        }
      }
      tbody {
        tr {
          td {
            padding: 0px;
          }
          &:hover {
            background-color: transparent;
          }
        }
      }
    }
  }
}

@media only screen and (max-width: 1023px),
  (min-device-width: 1023px) and (max-device-width: 1280px) {
  /* .modal { */
  table {
    display: flex;
    width: 100%;
    overflow-x: hidden;
    table-layout: fixed;
  }
  table thead {
    display: none;
  }

  .numberAlign {
    padding-right: 0;
    text-align: left;
  }

  table tr {
    display: block;
    border: 1px solid #eeeeee;
    border-radius: 12px;
    border-bottom-width: 0px;
    margin-bottom: 15px;
    padding: 0 0 0 0 !important;
  }
  table td {
    display: flex;
    justify-content: space-between;
    width: calc(100% - 24px) !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    border-top: 1px solid #eeeeee;
    flex-direction: row;
    padding: 4px 12px 4px 12px !important;
  }

  table td::before {
    content: attr(title);
    color: black;
    width: 120px;
    min-width: 120px;
  }
  tr td:first-child {
    border-top: 0px;
  }

  tr td:last-child {
    display: none;
  }

  tr td:nth-last-child(2) {
    display: flex;
    text-decoration: underline;
    color: black;
    align-items: center;
    place-content: end;
    gap: 5px;
    background-color: #f5f5f5;
    cursor: pointer;
    border-bottom-right-radius: 12px;
    border-bottom-left-radius: 12px;
    border-top: 1px solid #eeeeee;
    border-bottom: 1px solid #eeeeee;
  }

  .alignBoolean {
    text-align: right;
  }

  .dateAlign {
    text-align: left;
  }

  .elipse {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  td {
    div {
      padding-right: 0px !important;
    }
  }

  .table-bar {
    flex-direction: row;
    gap: 12px;

    .table-textfield-container {
      width: 100%;
    }
  }

  tbody {
    width: 100%;
    tr {
      border-bottom: none !important;
      box-shadow: none !important;
    }
    tr:last-child {
      margin-bottom: 0px;
    }
  }
  .footer-container {
    justify-content: center;
    /*     .table-navigation-container {
    }

    .modeMultiselect-container {
      .modeMultiselect-buttons {
      }
    } */
  }
  .divTable {
    overflow-x: hidden;
  }
  /* } */
}

@media only screen and (max-width: 767px),
  (min-device-width: 769px) and (max-device-width: 1023px) {
  table {
    display: flex;
    width: 100%;
    overflow-x: hidden;
    table-layout: fixed;
  }
  table thead {
    display: none;
  }

  .numberAlign {
    padding-right: 0;
    text-align: left;
  }

  table tr {
    display: block;
    border: 1px solid #eeeeee;
    border-radius: 12px;
    border-bottom-width: 0px;
    margin-bottom: 15px;
    padding: 0 0 0 0 !important;
  }
  table td {
    display: flex;
    justify-content: space-between;
    width: calc(100% - 24px) !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    border-top: 1px solid #eeeeee;
    flex-direction: row;
    padding: 4px 12px 4px 12px !important;
  }

  table td::before {
    content: attr(title);
    color: black;
    width: 120px;
    min-width: 120px;
  }
  tr td:first-child {
    border-top: 0px;
  }

  tr td:last-child {
    display: none;
  }

  tr td:nth-last-child(2) {
    display: flex;
    text-decoration: underline;
    color: black;
    align-items: center;
    place-content: end;
    gap: 5px;
    background-color: #f5f5f5;
    cursor: pointer;
    border-bottom-right-radius: 12px;
    border-bottom-left-radius: 12px;
    border-top: 1px solid #eeeeee;
    border-bottom: 1px solid #eeeeee;
  }

  .alignBoolean {
    text-align: right;
  }

  .dateAlign {
    text-align: left;
  }

  .elipse {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  td {
    div {
      padding-right: 0px !important;
    }
  }

  .table-bar {
    flex-direction: column;
    gap: 12px;
    .table-textfield-container {
      width: 100%;
    }
    .tablemenu-container {
      width: 100%;
      justify-content: flex-end;
    }
  }

  tbody {
    width: 100%;
    tr {
      border-bottom: none !important;
      box-shadow: none !important;
    }
    tr:last-child {
      margin-bottom: 0px;
    }

    .renderSubComponent {
      display: block !important;
      &.hidden {
        display: none !important;
      }
    }
  }

  .footer-container {
    justify-content: center;
    .table-navigation-container {
      width: 100%;
      flex-direction: column;
      gap: 12px;

      .table-navigation-container-arrows {
        margin: 0;
        width: 100%;
        justify-content: center;
      }

      .table-navigation-container-elements {
        justify-content: center;
        span {
          font-size: 0.813rem;
        }
      }
    }

    .modeMultiselect-container {
      display: flex;
      flex-direction: column;
    }
  }

  .divTable {
    overflow-x: hidden;
  }
  .disabledTable {
    background-color: #eeeeee !important;
    .contentTableScroll .divTable table {
      tbody {
        width: calc(100% - 1px) !important;
        color: #616161 !important;
        tr td:nth-last-child(2) {
          border-top: 1px solid #9e9e9e !important;
          border-bottom: 1px solid #9e9e9e !important;
        }
        tr {
          border-radius: 12px;
          td {
            border-top: 1px solid #9e9e9e;
          }
          td:first-child {
            border-top-left-radius: 12px;
            border-top-right-radius: 12px;
            border-top: 0px;
          }
        }
        td::before {
          color: #616161 !important;
          font-weight: 500 !important;
        }
        tr:last-child {
          border: 0.5px solid #9e9e9e;
          border-bottom: 0px !important;
        }
      }
    }
  }

  .MuiLinearProgressContainer {
    display: none !important;
  }
}

