@import url('vars.css');
@import url('header.css');
@import url('graphics.css');
@import url('../src/Graphics/components/styles/boxGraph.css');
@import url('../src/Graphics/components/styles/alertModal.css');

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

html {
	width: 100%;
	height: 100%;
	padding: var(--padding-view);
  overflow: hidden;
	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 {
      gap: var(--spacing-S360-2);
      display: flex;
      flex-direction: column;
      
      display: grid;
      grid-template-columns: 1fr;
      grid-template-areas:
      "header"
      "graphics";
      grid-template-rows: auto 1fr;
      /* width: 100%;
      height: 100%; */
      width: calc(100vw - 20px);
      height: calc(100vh - 20px);


      .graphics--container{
        width: 100%;
        height: 100%;

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

.swalOPC{
  .swalOPC-body{
    padding: 7px;
    #container_dropdowns{
      display: grid;
      gap: var(--spacing-S360-2);
      grid-template-columns: 80px 1fr;
      grid-template-rows: 1fr 1fr;
    }

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


/* Mobile */
@media (max-width: 480px) {
  body {
    .box--graph{
      min-height: 400px;
    }
  }
}

/* Tablet */
@media (min-width: 480px) and (max-width: 1023px) {
  body {
    .box--graph{
      min-height: 400px;
    }
  }
}

/* Mobile, Tablet */
@media (max-width: 1023px) {
  body {
    overflow: auto;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  body[data-view="desktop"] {
    overflow: hidden;
  }
}