@import url('util.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);

    &::-webkit-scrollbar {
      width: 12px;
    }

    &::-webkit-scrollbar-track {
      background-color: var(--scrollbar-track-color);
      border-radius: 6px;
    }

    &::-webkit-scrollbar-thumb {
      background-color: var(--scrollbar-thumb-color);
      border-radius: 6px;
      border: 3px solid var(--scrollbar-track-color);
    }

    &::-webkit-scrollbar-thumb:hover {
      background-color: var(--scrollbar-thumb-hover-color);
    }
}

html {
	width: 100%;
	height: 100%;
	padding: 10px;
	scroll-behavior: smooth;
	background-color: var(--background-S360);
  transition: background-color var(---animation-delay);
}

body {
	overflow: hidden;
	height: 100%;
  width: 100%;

  #root{
    height: 100%;
    width: 100%;

    .container--view {
      height: 100%;
      width: 100%;
      display: flex;
      flex-direction: column;
      gap: 5px;

      .graphics--container{
        height: calc(100% - 30px);
        width: 100%;

        .grouped-graphics-container {
          height: 100%;
          width: 100%;
          position: relative;
        }
      }
    }
  }
}

.swalOPC{
  .swalOPC-body{

    #container_dropdowns{
      display: grid;
      gap: 4px;
      grid-template-columns: 80px 1fr;
      grid-template-rows: 1fr 1fr;
    }

    span {
      color: var(--color-primary-filters);
    }
  }
}

@media (min-width: 650px) and (max-width: 1270px) {

  .graphics--container{
    height: calc(100% - 86px);
    .graph-group {
      &.split-5-6 {
        overflow-y: scroll;
        overflow-x: hidden;
        scroll-behavior: smooth;
        grid-template-columns: repeat(2, calc(100% / 2)) !important;
        grid-template-rows: repeat(3, 50%) !important;


        &::-webkit-scrollbar {
          width: 12px;
        }

        &::-webkit-scrollbar-track {
          background-color: var(--scrollbar-track-color);
          border-radius: 6px;
        }

        &::-webkit-scrollbar-thumb {
          background-color: var(--scrollbar-thumb-color);
          border-radius: 6px;
          border: 3px solid var(--scrollbar-track-color);
        }

        &::-webkit-scrollbar-thumb:hover {
          background-color: var(--scrollbar-thumb-hover-color);
        }
      }
    }
  }
}

@media (min-width: 500px) and (max-width: 649px){
  .header--container {
    align-items: center;
    gap: 4px;

    .filters--container{
      display: grid;
      grid-template-columns: 1fr 1fr;
      grid-template-rows: 1fr 1fr 1fr;
    }

    .buttons--container{
      height: 30px;
    }
  }

  .graph-group {
    &.split-5-6 {
      overflow-y: scroll;
      overflow-x: hidden;
      scroll-behavior: smooth;
      grid-template-columns: 1fr;
      grid-template-rows: repeat(6, 1fr);

      &::-webkit-scrollbar {
        width: 12px;
      }

      &::-webkit-scrollbar-track {
        background-color: #524e4e;
        border-radius: 6px;
      }

      &::-webkit-scrollbar-thumb {
        background-color: #888;
        border-radius: 6px;
        border: 3px solid #524e4e;
      }

      &::-webkit-scrollbar-thumb:hover {
        background-color: #555;
      }
    }
  }
}


/*** General View Styles That aren't in the CDN ***/
:root {
  /*** Fonts ***/
  --font-family-1: 'Inter', 'Arial', sans-serif;
	--font-family-2: 'Libre Franklin', 'Arial', sans-serif;
  --suite-padding: 4px;
  --suite-margin: 4px;
/*** Element Colors ***/
  --color-text-contrast-S360: #FFFFFF;
  --bg-tooltip:#1f1f1fe6;
  --color-disabled-value: #D9D9D9;

/*** Predefined Settings ***/

/*** General View Variables ***/

}

:root[data-theme="light"] {
  --color-text-contrast-S360: #FFFFFF;
}

:root[data-theme="dark"] {
  --color-text-contrast-S360:#2E2E2E;
  --color-disabled-value: #2d2d2d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family-2);
}

html {
  margin: 0;
  padding: 0;
	width: 100%;
	height: 100%;
	/* padding: var(--suite-padding); */
	scroll-behavior: smooth;
	background-color: var(--background-S360);
}

body {
	overflow: hidden;
	height: 100%;
}

/*** General Styles of this Menu ***/

/***? Container styles ***/
.mainContainer{
  display: grid;
  grid-template-columns: 100%;
  grid-template-rows: auto minmax( 200px , 1fr);
  gap: 33px;
  grid-template-areas:
  "header"
  "body"
  ".";
  height: 100vh;
  padding: 7px 15px;

  & .header-container{
    grid-area: header;
  }

  & .user-container{
    grid-area: body;
    overflow: hidden;
    border: 1px solid var(--color-border-S360);
    border-radius: 4px;
  }
}

iframe {
  width: 100%;
  height: 100%;
  border-width: inherit;
}



.container-tracking {
  height: 100vh;
}


/***? Global Components Style ***/

.fade-out{
  opacity: 0 !important;
}

.fade-in{
  opacity: 1 !important;
}

.lock-disabled{
  pointer-events: none;
  background-color: var(--color-disabled-value) !important;
  border: unset !important;
}

.d-hide-select{
  display: none !important;
}

/** Spinner V1 **/
.spinner-box{
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  background-color: var(--background-disabled-S360);
  height: 100%;
  width: 100%;
  & .loading-spinner{
    border: 4px solid var(--color-border-S360);
    border-left-color: var(--color-dark-S360);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
  }
}

/** Spinner V2 **/
.graphCenter{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 1;
  transition: opacity 0.2s ease-in-out;

  & .loader {
    width: 8px;
    height: 40px;
    border-radius: 4px;
    display: block;
    margin: 20px auto;
    position: relative;
    background: currentColor;
    color: var(--suite-primary-S360);
    box-sizing: border-box;
    animation: animloader 0.3s 0.3s linear infinite alternate;
  }

  & .loader::after, .loader::before {
    content: '';
    width: 8px;
    height: 40px;
    border-radius: 4px;
    background: currentColor;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 20px;
    box-sizing: border-box;
    animation: animloader 0.3s  0.45s  linear infinite alternate;
  }
  & .loader::before {
    left: -20px;
    animation-delay: 0s;
  }

}

/*** MODAL COnfirm ***/
.component-modal-alert{
  height: 100%;
  width: 100%;
  display: grid;
  grid-template-rows: 105px 50px 1.5fr 1fr;

  & .component-modal-info-icon{
    font-size: 100px;
    justify-self: center;
    align-self: center;
    margin-top: -25px;

    &.success{
      color: #28a745;
    }
    &.warning{
      color: #FFC000;
    }
    &.error{
      color: #dc3545;
    }
    &.info{
      color: #3fc3ee;
    }
  }

  & .component-modal-title-text{
    justify-self: center;
    width: 370px;
    height: 30px;
    text-align: center;
    font-weight: bolder;
    font-size: x-large;
    color:  var(--color-text-S360);
  }

  & .component-modal-content-text{
    justify-self: center;
    text-align: center;
    color:  var(--color-text-S360);
    font-size: var(--font-size-large-S360);
    word-wrap: break-word;
    max-width: 370px;
  }
}

.dataTable {
  border-radius: 0 !important;
  border: 0 !important;
}

th.check-row-level-0 {
  background-color: var(--header-cell) !important;
}


.table_limits{
  & table{
    & tbody{
      & tr{
        & td{
          height: 22px;
          font-size: var(--font-size-small-S360);
          & .select-menu{
            & .options{
              & .container-options{
                & .option-text{
                  font-size: var(--font-size-small-S360);
                }
              }
            }
          }
        }
      }
    }
  }
}


.selectorTable {
  height: 18px !important;
  & .select-btn {
    .sBtn-text {
      top: 1px;
      font-size: var(--font-size-small-S360) !important;
    }
  }
}

.component-modal-alert-no-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 100%;
  width: 100%;
  grid-template-rows: 110px 30px;

  .swal2-success {
    position: relative;
    width: 120px;
    height: 120px;

    .swal2-success-circular {
      position: absolute;
      width: 100%;
      height: 100%;
      animation: fadeIn 0.5s ease-in-out;

      .swal2-success-ring circle {
        stroke-dasharray: 315;
        stroke-dashoffset: 314;
        animation: draw-circle 0.8s ease-out forwards;
      }
    }

    .swal2-success-line-tip {
      position: absolute;
      stroke-dasharray: 50;
      stroke-dashoffset: 50;
      animation: draw-check-in 0.1s ease-out 0.6s forwards;
    }

    .swal2-success-line-long {
      position: absolute;
      stroke-dasharray: 50;
      stroke-dashoffset: 50;
      animation: draw-check-fn 0.2s ease-out 0.7s forwards;
    }
  }

  .component-modal-title-text{
    justify-self: center;
    text-align: center;
    color:  var(--color-text-S360);
    font-size: 18px;
  }
}

.row_Notificaciones, .row_Estado, .row_Rol, .row_Perfil {
 cursor: pointer;
}


@keyframes draw-circle {
  0% {
    stroke-dashoffset: 314;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes draw-check-in {
  0% {
    stroke-dashoffset: 50;
  }
  100% {
    stroke-dashoffset: 16;
  }
}

@keyframes draw-check-fn {
  0% {
    stroke-dashoffset: 50;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.offHead{
  & .swalOPC-header {
      border-bottom: none !important;
      height: 0px !important;
  }
  & .swalOPC-body {
      padding-top: 0px;
  }
}

.component-modal-btn-group{
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: space-evenly;
  gap: 10px;
}

.component-modal-btn{
  height: 35px;
  width: fit-content;
  min-width: 100px;
  max-width: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  color: white;
  text-align: center;
  line-height: 1.5;
  border: 1px solid transparent;
  border-radius: var(--border-radius-S360);
  user-select: none;
  cursor: pointer;
  transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out, opacity .15s ease-in-out;
  overflow: hidden;

  &.success {
      background-color: var(--color-success-S360);
      &:hover {
          background-color: var(--color-success-hover-S360);
      }
      &:active {
          background-color: var(--color-success-active-S360);
      }
  }

  &.warning {
      background-color: var(--color-warning-S360);
      &:hover {
          background-color: var(--color-warning-hover-S360);
      }
      &:active {
          background-color: var(--color-warning-active-S360);
      }
  }

  &.error{
      background-color: var(--color-danger-S360);
      &:hover {
          background-color: var(--color-danger-hover-S360);
      }
      &:active {
          background-color: var(--color-danger-active-S360);
      }
  }
}

/***? Tooltip Styles ***/
.lock-popover{
  left: 0 !important;
  background-color: var(--bg-tooltip);
  border-radius: 1px solid var(--color-border-S360);
  overflow: hidden;
  color: white;
  padding: 4px;
  border-radius: 8px;
  transition: opacity 0.2s ease-in-out;
  opacity: 0;
  z-index: 99;

  &.show{
    opacity: 1;
  }

}

/***? Global KeyFrames ***/

@keyframes animloader {
0%   { height: 48px}
100% { height: 4px}
}

@keyframes spin {
  0% {transform: rotate(0deg);}
  100% {transform: rotate(360deg);}
}

.historic-container {
  height: 96vh !important;
  width: 99.95vw !important;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  .historic-table-section {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
    .tab-table-scroll {
      flex: 1;
      overflow: auto;
      min-height: 0;
      max-height: 100%;
      width: 100%;
      height: 100%;
      .ToolbarActive .custom-scrollbar {
        overflow-y: auto;
        overflow-x: auto;
        max-height: 100%;
        height: 100%;
        border-bottom: 1px solid var(--border-table-color);
        border-bottom-right-radius: var(--border-radius-S360);
        .table_limits {
          width: 100%;
          min-width: 700px; /* Asegura que la tabla no se colapse */
        }
      }
    }
  }
}

.head_section_container {
  .head_section {
    border-top-right-radius: var(--border-radius-S360);
    border-top-left-radius: var(--border-radius-S360);
  }
}

.row_Notificaciones {
  text-align: center !important;
}

.Container{
  padding: 4px;
}



