:root {
    --z-index-default: 10;
    --z-index-over: 100;
    --z-index-under: 5;
}

body {
    margin: 0;
}

#container {
    height: 100vh;
    display: grid;
    grid-template-rows: 45px 45px 1fr 45px;
}

#header {
    grid-row: 1/2;
    grid-column: 1/3;
    z-index: var(--z-index-over);
    background: #009933;
    color: white;
    font-family: sans-serif;
    display: grid;
    align-items: center;
    padding: 5px;
    a {
	padding: 5px;
    }
}

#indexbutton {
    grid-row: 2/4;
    grid-column: 1/3;
    display: grid;
    margin: 10%;
    gap: 30px;
}

#control1 {
    grid-row: 2/3;
    grid-column: 1/3;
    z-index: var(--z-index-default);
    display: flex;
    justify-content: flex-start;
    padding: 0 3px 0 3px;
}

#control2 {
    grid-row: 3/4;
    z-index: var(--z-index-default);
    display: flex;
    justify-contents: flex-start;
    padding: 0px 3px 3px 5px;
}
 
#menu {
    grid-row: 1/2;
    grid-column: 2/3;
    background: transparent;
    color: white;
    font-family: sans-serif;
}

#pbutton1 {
    grid-row: 2/3;
    z-index: var(--z-index-default);
    background: white;
    text-align: center;
}

#pbutton2 {
    grid-row: 2/3;
    z-index: var(--z-index-default);
    background: white;
    text-align: center;
}

#map {
    grid-row: 3/4;
    grid-column: 1/3;
    z-index: var(--z-index-default);
    margin-top: 3px;
}

#graph {
    grid-row: 3/4;
    grid-column: 1/3;
    z-index: var(--z-index-default);
}

#vtable {
    grid-row: 3/4;
    grid-column: 1/3;
    z-index: var(--z-index-under);
    overflow-x: scroll;
}

#scpoint {
    width: 70%;
    margin: 5px;
    z-index: var(--z-index-default);
}

#scdepth {
    width: 40%;
    margin: 5px;
    z-index: var(--z-index-default);
    font-family: sans-serif;
}

#scdepth_index {
    width: 35%;
    margin: 5px 5px 5px 10px;
    z-index: var(--z-index-default);
}

#tglswitch {
    grid-row: 2/3;
    margin: 5px;
    z-index: var(--z-index-default);
}

#docmaincontents {
    grid-row: 2/4;
    overflow-y: scroll;
    padding: 1em 1em 0 1em;
}

#footer {
    position: sticky;
    bottom: 0;
    grid-row: 4/5;
    grid-column: 1/3;
    z-index: var(--z-index-default);
    color: #009933;
    backgound-color: white;
    font-family: sans-serif;
    display: grid;
    align-items: center;
    justify-items: center;
    grid-template-columns: 1fr 1fr;
    padding-top: 5px;
}

.fb {
    width: 90%;
    padding: 1px;
    border: 4px outset #009933;
    border-radius: 5px;
    text-decoration: none;
    background-color: white;
    color: #006600;
    font-family: sans-serif;
    font-weight: bold;
    text-align: center;
}

.fb_sel {
    width: 90%;
    padding: 1px;
    border: 4px inset #006600;
    border-radius: 5px;
    text-decoration: none;
    background-color: #006600;
    color: white;
    font-family: sans-serif;
    font-weight: bold;
    text-align: center;
}

.ib {
    width: 95%;
    border: 10px outset #009933;
    border-radius: 5px;
    text-decoration: none;
    background-color: white;
    color: #006600;
    font-family: sans-serif;
    font-weight: bold;
    font-size: 3em;
    text-align: center;
    align-content: center;
}

/* variable selector */
.shortcut {
    font-size: small;
    font-weight: bold;
    text-align: center;
    margin-bottom: 5px;
    width: 20%;
}

#dps {
    margin-left: 1%;
    width: 30%;
}

.scbutton {
    display: inline-block;
    width: 100%;
    margin-top: 5px;
    padding: 3px 0;
    text-decoration: none;
    background: white;
    color: #006600;
    font-family: sans-serif;
    border: 1.5px solid #006600;
    box-shadow: 0 2px #006600;
}

.displayswc {
    display: inline-block;
    width: 90%;
    margin-top: 5px;
    padding: 5px 0;
    text-decoration: none;
    background: white;
    color: black;
    font-family: sans-serif;
    border: 1.5px solid black;
    box-shadow: 0 2px black;
}

.scb-hidden {
    display: none;
}

.scb-hidden:checked~label span {
    background: #009933;
    color: white;
    top: 2px;
    box-shadow: inset 0 1px black;
}

#scb1 {
    border-radius: 10px 0 0 10px;
}

#scb4 {
    border-radius: 0 10px 10px 0;
}

#dpsb {
    border-radius: 10px;
    background: #FFCCCC;
    color: black;
}


/* hamburger menu */
.drawer {
    height: 45px;
}

.drawer-hidden {
    display: none;
}

.drawer-open {
    display: flex;
    width: 25%;
    height: 100%;
    margin-left: 70%;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 100;
    cursor: pointer;
}

.drawer-open span {
    content: '';
    display: block;
    height: 5px;
    width: 5px;
    border-radius: 10rem;
    background: white;
    box-shadow: -10px 0 0 0 white, 10px 0 0 0 white;
    position: absolute;
}

.drawer-open span:before,
.drawer-open span:after {
    content: '';
    display: none;
    height: 100%;
    width: 25px;
    border-radius: 10rem;
    background: white;
    position: absolute;
    left: -10px;
}

#drawer-check:checked~.drawer-open span {
    box-shadow: 0 0 0 0 white, 0 0 0 0 white;
}

#drawer-check:checked~.drawer-open span::before {
    display: block;
    bottom: 0;
    transform: rotate(45deg);
}

#drawer-check:checked~.drawer-open span::after {
    display: block;
    top: 0;
    transform: rotate(-45deg);
}

.drawer-content {
    width: 100%;
    background: #006600;
    border-radius: 0.3em;
    visibility: hidden;
    position: relative;
    z-index: var(--z-index-under);
}

.drawer-content ul {
    padding: 0%;
}

.drawer-content ul li {
    border-bottom: solid 1px white;
    list-style: none;
    font-size: small;
    color: #006600;
}

.drawer-content ul li:last-child {
    border-bottom: none;
}

.drawer-content ul li a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    font-size: small;
    line-height: 2.5em;
    text-align: center;
    vertical-align: middle;
    text-decoration: none;
    color: white;
    position: relative;
}

#drawer-check:checked~.drawer-content {
    visibility: visible;
    z-index: var(--z-index-over);
}

/* For time series graphs */
div.tooltip {
    position: absolute;
    width: 70px;
    height: 50px;
    padding: 2px 15px;
    font-size: small;
    border-radius: 5px;
    visibility: hidden;
}

/* Data table */
/*.colsel-hidden{display:none;float:left;}
.sellabel{display:block;float:left;width:12%;text-align:center;border-radius:10%;text-decoration:none;background:black;color:white;font-family:sans-serif;border:1px solid gray;margin-right:0px;}*/

.colsel-hidden {
    display: none;
}

.sellabelon {
    position: relative;
    width: 70%;
    height: 1.5rem;
    margin: auto;
    font-size: 1rem;
    color: #0033CC;
    border: 2px solid #0033CC;
    border-radius: 3rem;
    box-shadow: inset 0px 1px #0033CC;
    background-color: #B0C4DE;
    text-align: center;
    display: inline-block;
    line-height: 1.7rem;
}

.sellabelon:before {
    content: "";
    position: absolute;
    border-color: #0033CC;
    border-style: solid;
    border-width: 0 0.3rem 0.25rem 0;
    height: 1rem;
    top: 0;
    left: 1rem;
    transform: rotate(45deg);
    width: 0.5rem;
}

.sellabeloff { 
    width: 70%;
    height: 1.5rem;
    margin: auto;
    color: #777777;
    border: 2px solid #999999;
    border-radius: 3em;
    box-shadow:  0px 2px #999999;
    text-align: center;
    display: inline-block;
    line-height: 1.6rem;
}

.datatable {
    clear: none;
    border-collapse: separate;
    border-spacing: 3px;
}

table {
    width: 100%;
}

td {
    vertical-align: middle;
    padding: 0 2px;
    width: 50px;
    font-family: monospace;
}

th {
    vertical-align: middle;
    padding: 0 2px;
    width: 45px;
    font-size: x-small;
    font-family: sans-serif;
}


#Col10m:checked~.datatable tr:nth-child(4),
#Col10m:checked~.datatable tr:nth-child(4) {
    display: none;
}

#Col50m:checked~.datatable tr:nth-child(5),
#Col50m:checked~.datatable tr:nth-child(5) {
    display: none;
}

#Col100m:checked~.datatable tr:nth-child(6),
#Col100m:checked~.datatable tr:nth-child(6) {
    display: none;
}

#Col200m:checked~.datatable tr:nth-child(7),
#Col200m:checked~.datatable tr:nth-child(7) {
    display: none;
}

#Col400m:checked~.datatable tr:nth-child(8),
#Col400m:checked~.datatable tr:nth-child(8) {
    display: none;
}

#Col600m:checked~.datatable tr:nth-child(9),
#Col600m:checked~.datatable tr:nth-child(9) {
    display: none;
}

		       
/*#ColWind:checked ~ .datatable tr th:nth-child(3),#ColWind:checked ~ .datatable tr th:nth-child(3){display:none;}
#Col10m:checked ~ .datatable tr th:nth-child(5),#Col10m:checked ~ .datatable tr th:nth-child(5){display:none;}
#Col20m:checked ~ .datatable tr th:nth-child(6),#Col20m:checked ~ .datatable tr th:nth-child(6){display:none;}
#Col50m:checked ~ .datatable tr th:nth-child(7),#Col50m:checked ~ .datatable tr th:nth-child(7){display:none;}
#Col100m:checked ~ .datatable tr th:nth-child(8),#Col100m:checked ~ .datatable tr th:nth-child(8){display:none;}
#Col500m:checked ~ .datatable tr th:nth-child(9),#Col500m:checked ~ .datatable tr th:nth-child(9){display:none;}
#Col900m:checked ~ .datatable tr th:nth-child(10),#Col900m:checked ~ .datatable tr th:nth-child(10){display:none;} *** for vertical table *** */

#rownow {
    background-color: #C2EEFF;
}

.colnow {
    background-color: #C2EEFF;
}

#jumpbutton {
    display: inline-block;
    bottom: 0;
    left: 90%;
    vertical-align: middle;
    height: 35px;
    line-height: 35px;
    width: 35px;
    opacity: 0.9;
    padding: 1px 3px;
}

.jumpicon {
    color: #333333;
    font-size: 30px;
    margin: 2px;
}

/* .FixedTableHeader {
    position:sticky;top:0;color:#fff;background:#333;
    &:before{
	content:"";position:absolute;top:-1px;left:-1px;width:100%;height:100%;border:1px solid #ccc;
    }
} *** for vertical table *** */

.FixedTableHeader {
    position: sticky;
    left: 0;
    color: black;
    background: #b9e5ff;
}

.FixedTableHeader::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    width: 100%;
    height: 100%;
    border: 2px solid white;
}

#RowDate th {
    position: sticky;
    left: 0;
    top: 0;
    z-index: 50;
}

#RowDate td {
    position: sticky;
    left: 0;
    top: 0;
    background-color: #d7eeff;
}

#RowDate td::after {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    width: 100%;
    height: 100%;
    border: 2px solid white;
}

/* .datatable tr:nth-child(4) th,
.datatable tr:nth-child(4) td {
    border-bottom-width: 15px;
    border-bottom-color: #ddd;
} */

.HeaderFixedW0Hrz {
    width: 15px;
}

.HeaderFixedW0 {
    width: 8px;
}

.HeaderFixedW1 {
    width: 15px;
}
 
.valuelist {
    border-collapse: collapse;
}

.valuelist th,td {
    padding: 2px 2px;
    font-size: small;
    white-space: nowrap;
    background-color: #EEEEEE;
}

.valuelist td {
    text-align: right;
}

.valuelist td .cellstring {
    text-align: center;
}

.alert {
    color: red;
}

#HeaderTitle {
    display: inline-block;
    height: 100%;
}

#HeadString {
    font-weight: bold;
    font-size: 18px;
    vertical-align: middle;
}


.CustomControl {
    display: flex;
}

.DateLabel {
    background: white;
    opacity: 0.9;
    text-align: center;
    color: black;
    font-size: 18px;
    font-family: sans-serif;
    border: 1px solid black;
    border-radius: 2px;
    margin: 0px 5px;
    padding: 0px 5px;
}

.BtnShipTrack {
    background: white;
    opacity: 0.8;
    text-align: center;
    color: black;
    font-size: 18px;
    font-family: sans-serif;
    border-style: solid;
    border-color: black;
    border-width: 2px;
    border-radius: 5px;
    margin: 0px 1px;
    padding-right: 4px;
    padding-left: 4px;
}

/* control selector */
.cntlselect {
    overflow: hidden;
    width: 60%;
    height: 26px;
    margin: auto;
    text-align: left;
}

.cntlselect select {
    width: 100%;
    cursor: pointer;
    text-overflow: ellipsis;
    border: none;
    outline: none;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
}

.cntlselect.ps {
    position: relative;
    border: 2px solid #006600;
    border-radius: 5em;
    background: #ffffff;
}

.cntlselect.ps::before {
    position: absolute;
    top: 9px;
    right: 10px;
    width: 0;
    height: 0;
    padding: auto;
    content: '';
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid black;
    pointer-events: none;
}

.cntlselect.ps select {
    font-weight: bold;
    font-size: 15px;
    color: black;
    margin: 5px auto 5px 10px;
}

/* condition selector */
.conditionselect {
    position: relative;
    overflow: hidden;
    width: 90%;
    height: 25px;
    margin: auto;
    text-align: center;
}

.conditionselect select {
    width: 100%;
    cursor: pointer;
    text-overflow: ellipsis;
    border: none;
    outline: none;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
}

.conditionselect.cs {
    position: relative;
    border: 1px solid #bbbbbb;
    border-radius: 2px;
    background: #ffffff;
}

.conditionselect.cs::before {
    position: absolute;
    top: 4px;
    right: 10px;
    width: 0;
    height: 0;
    padding: 0;
    content: '';
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #333333;
    pointer-events: none;
}

.conditionselect.cs select {
    font-weight: bold;
    font-size: 15px;
    padding: 1px 10px;
    color: #333333;
}


/* toggle switch */
.toggleswitch {
    position: relative;
    margin: auto;
    width: 95%;
    height: 25px;
}

.toggleswitch input[type="radio"] {
    display: none;
}

.toggleswitch label {
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    line-height: 25px;
    font-family: sans-serif;
    font-size: 15px;
    border: 1px solid #bbbbbb;
    border-radius: 2px;
}

.toggleswitch #tglleft+label {
    right: 50%;
    border-radius: 2px 0 0 2px;
    background: #eee;
    color: #666;
    border-right: none;
}

.toggleswitch #tglleft:checked+label {
    background: #0066CC;
    color: #fff;
}

.toggleswitch #tglright+label {
    left: 50%;
    border-radius: 0 2px 2px 0;
    background: #eee;
    color: #666;
    border-left: none;
}

.toggleswitch #tglright:checked+label {
    background: #0066CC;
    color: #fff;
}

/* style for document page */
.doctitle {
    font-size: xx-large;
    font-weight: bold;
}

h1 {
    font-size: x-large;
    font-weight: bold;
    padding-top: 30px;
}

h2:before {
    content: '\025a0';
    margin-right: 3px;
}

h2 {
    font-size: large;
    font-weight: normal;
    padding-top: 15px;
}

h3 {
    font-weight: bold;
    font-size: 15px;
    padding: 2px 10px;
    margin: auto;
    color: black;
}



/* loading circle */
.loading {
    grid-row: 3/4;
    grid-column: 1/3;
    z-index: 50;
    width: 100%;
    height: 100%;
    margin: auto;
    padding: 0;
    background: #fdfdfd;
}

.loading.hide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 500ms;
}

.loading .circle {
    display: block;
    position: relative;
    top: calc(50% - 20px);
    width: 40px;
    height: 40px;
    margin: auto;
    border: 8px solid #e0e0e0;
    border-top: 7px solid #009933;
    border-radius: 50px;
    animation: loading 700ms linear 0ms infinite normal both;
}

@keyframes loading {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


/* table depth select popup */
.open {
	cursor:pointer;
}
#depthpopup {
	display: none;
}
.overlay {
	display: none;
}
#depthpopup:checked + .overlay {
	display: block;
	position: fixed;
	width: 100%;
	height: 100vh;
	top: 0;
	left: 0;
	z-index: var(--z-index-over);
	background: rgba(0, 0, 0, 0.6);
}
.depthwindow {
	position: fixed;
	top: 35%;
	left: 70%;
	width: 50vw;
	max-width: 300px;
	display: grid;
	padding: 5px 5px 30px 5px;
	height: 20rem;
	background-color: #fff;
	border-radius: 5px;
	align-items: center;
	transform: translate(-50%, -50%);
}
.close {
    position: absolute;
    bottom: 0px;
    width: 100%;
    height: 25px;
    background-color: #CCCCCC;
    border-radius: 0px 0px 5px 5px;
    cursor:pointer;
}

.closeicon {
    width: 0;
    height: 0;
    content: '';
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #333333;
    transform: rotate(180deg);
    margin: 7px auto;
    pointer-events: none;
}
