#gridcontainer {
  display: grid;
  gap: 6px 6px;
  height: 100%; 
  overflow: hidden;
}

#gridcontainer header {
	width: 100%;
	height: 3vh;
	line-height: 3.1vh;
	text-align: center;
	vertical-align: top;
	color: white;
	font-weight: bold;
    font-size: 2.4vh;
}

#gridcontainer.nosub {
	grid-template-columns: 1fr;
	grid-template-rows: 1fr;
	grid-template-areas: "main";
}

#gridcontainer.onesub {
	grid-template-columns: 1fr 2fr;
	grid-template-rows: 1fr;
	grid-template-areas: "main first";
}

#gridcontainer.twosub {
	grid-template-columns: 1fr 2fr 2fr;
	grid-template-rows: 1fr;
	grid-template-areas: "main first second";
}

#gridcontainer.threesub,
#gridcontainer.foursub {
	grid-template-columns: 1fr 2fr 2fr;
	grid-template-rows: 1fr 1fr;
	grid-template-areas: "main first third" "main second fourth";
}

#gridcontainer.layout1 {
  grid-template-columns: 15vw 1fr;
  grid-template-rows: 35vh 1fr;
  grid-template-areas: "topleft fullright" "bottomleft fullright";
}

#gridcontainer.layout2 {
  grid-template-columns: 15vw 1fr;
  grid-template-rows: 1fr;
  grid-template-areas: "fullleft fullright";
}

.gridarea {
	display: grid;
	gap: 2px;
	grid-template-columns: 1fr;
	grid-template-rows: 3vh 1fr;
	grid-template-areas: "header" "content";
	overflow: hidden;
  border: 1px solid #ccc;
}

.gridarea.topleft {
	grid-area: topleft;
}

.gridarea.bottomleft {
  grid-area: bottomleft;
}

.gridarea.fullright {
	grid-area: fullright;
}

.gridarea.main {
	grid-area: main;
}

.gridarea.one {
	grid-area: first;
}

.gridarea.two {
	grid-area: second;
}

.gridarea.three {
	grid-area: third;
}

.gridarea.four {
	grid-area: fourth;
}

.gridarea .gridcontent {
    overflow: hidden;
    position: relative;
}

.v-scroller {
    overflow-y: auto !important;
}















/******************************************
** REALTIME GRAPHIC PAGE
*******************************************/








.realtime-gridcontent{
	grid-area: content;
	padding-top: 5px;
	overflow-y: auto; 
}


/******************************************
** HISTORICAL GRAPHIC PAGE
*******************************************/
.historical-gridcontainer{
  padding: 6px;
  display: grid;
  gap: 6px 6px;
  grid-template-columns: 15vw 1fr;
  grid-template-rows: 35vh 1fr;
  grid-template-areas: "configurator graphic" "measurements graphic";
  height: 85vh;
}

.historical-gridcontainer header {
  width: 100%;
  height: 3vh;
  line-height: 3.1vh;
  text-align: center;
  vertical-align: top;
  color: white;
  font-weight: bold;
  font-size: 2.4vh;
}

.historical-gridconfigurator{
  grid-area: configurator;
  display: grid;
  gap: 2px;
  grid-template-columns: 8fr 6fr;
  grid-template-rows: 3vh 2.5fr 2.5fr 4fr;
  grid-template-areas: "header header" "compression differential" "compression button" "period period";
  overflow: hidden;
  border: 1px solid #123456;
    
}

.historical-configurator{
	width: 100%;
	border: 1px solid #ccc;
	text-align: center;
}

.historical-gridheader{
  grid-area: header;
  background-color: #14a007;
  color: white;
}

.historical-gridcompression{
  grid-area: compression;
  padding: 10px;
  overflow: hidden;
}

.historical-compression{
  padding: 5px;
  width: 40%;
  height: auto;
  float: left;
}

.historical-griddifferential{
  grid-area: differential;
  padding: 2px 10px 2px 2px;
  overflow: hidden;
}

.historical-differential{
  padding: 5px;
  width: 40%;
  height: auto;
  float: left;  
}

.historical-gridbutton{
  grid-area: button;
  padding: 2px 10px 2px 2px;
  overflow: hidden;
}

.historical-gridbutton input{
  width: 100%;
  height: 100%;
  outline: none;
  background: #3175bd;
  color: white;
  font-weight: bold;
}

.historical-button{
  margin-top: 0vw;
  width: 90%;
  height: auto;
  border: 0px solid yellow;
  float: right;
  line-height: 1vh;
  text-align: right;
  padding: 10px 10px 10px 0;
}


.historical-button input{
  width: 40%;
  height: 100%;
  outline: none;
  background: #3175bd;
  color: white;
  font-weight: bold;
}

.historical-gridperiod{
  grid-area: period;
  padding: 10px;
  overflow: hidden;
}

.historical-period{
  display: flex!important;
  width: 100%;
  height: auto;
  float: left;
  line-height: 1vh;
}

.historical-period .line{
  width: 50%;
  margin: 5px;
}

.historical-period label{
  display: inline-block;
  text-align: left;
  font-size: 2vh;
  color: #5c5d5e;
  line-height: 1.4vw;
  width: 100%;
}

.historical-period input{
  font-size: 2vh;
  color: #5c5d5e; 
  border: 1px solid #999;
  width: 100%;
}

.historical-configurator hr{
	width: 80%;
 	border-top: 1px solid #ccc;
}

.grid-graphic{
  grid-area: graphic;
  display: grid;
  grid-gap: 2px;
  grid-template-columns: 1fr;
  grid-template-rows: 3vh 1fr;
  grid-template-areas: "header" "graphic_axys";
  overflow: hidden;
  border: 1px solid #ccc;
  position: relative;
}

.grid-graphic_axys{
  grid-area: graphic_axys;
  position: relative;
}

.grid-measurements{
  grid-area: measurements;
  display: grid;
  grid-gap: 2px;
  grid-template-columns: 1fr;
  grid-template-rows: 3vh 1fr;
  grid-template-areas: "header" "measurements_fields";
  border: 1px solid #ccc;
  overflow: hidden;
}

.grid-measurements_fields{
  grid-area: measurements_fields;
  padding: 5px;
  overflow-y: auto;
}



/* TEST */
section.grid-wrapper {
  margin: 1em;
  width: 100%;
}

section.grid-family {
  display: grid;
  width: 100%;
  grid-template-columns: 3em 1fr;
  grid-template-rows: 1fr;
  grid-template-areas: "label gauges"; 
}

section.grid-label {
  grid-area: label;
  width: 100%;
  border: 1px dashed #cacaca;
  margin: 0 0 -1px 1px;
  position: relative;
  font-weight: bold;
}

section.grid-gauges {
  grid-area: gauges;
  display: grid;
  width: 100%;
  margin: 0;
  grid-template-columns: repeat(auto-fill, 200px);
}

/* items */
section.grid-gauges section {
  padding: 5px;
  height: 200px;
  border: 1px dashed #cacaca;
  margin: 0 -1px -1px 0;
}

.rotate {
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%) rotate(-90deg);
}
