body {
    margin: 0;
    padding: 0;
    color: #333;
    background: #F38129;
    font: 1em/1.2 "Helvetica Neue", Helvetica, Arial, Geneva, sans-serif;
    height: 100%;
    width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 .5em;
    font-weight: 500;
    line-height: 1.0;
}

h1 {
    font-size: 2.25em;
}/* 36px */
h2 {
    font-size: 1.75em;
}/* 28px */
h3 {
    font-size: 1.375em;
}/* 22px */
h4 {
    font-size: 1.125em;
}/* 18px */
h5 {
    font-size: 1em;
}/* 16px */
h6 {
    font-size: .875em;
}/* 14px */

p {
    margin: 0 0 1.5em;
    line-height: 1.5;
}

blockquote {
    padding: 1em 2em;
    margin: 0 0 2em;
    border-left: 5px solid #eee;
}

hr {
    height: 0;
    margin-top: 1em;
    margin-bottom: 2em;
    border: 0;
    border-top: 1px solid #ddd;
}

table {
    background-color: transparent;
    border-spacing: 0;
    border-collapse: collapse;
    border-top: 1px solid #ddd;
}

th, td {
    padding: .2em 0.5em;
    vertical-align: top;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

a:link {
    color: royalblue;
}
a:visited {
    color: purple;
}
a:focus {
    color: black;
}
a:hover {
    color: green;
}
a:active {
    color: red;
}

/* -----------------------
Layout styles
------------------------*/

.container {
    height: 100%;
    padding: 0;
    margin: 0 auto;
    position: relative;
}

.container nav {
    float: left;
}

.header {
    position: relative;
    color: #F38129;
    background: #F38129;
    padding: 0.5em;
    max-height: 40px;
    display: inline;
}

.header li{
    display: inline-block;	
}

.header-heading {
    display: flex;
    align-items: center;
    position: relative;
    margin: 0;
    min-height: 100%;
}

.nav-bar {
    background: #005596;
    padding: 0;
    margin: 0;
    max-height: 35px;
}

.content {
    overflow: hidden;
    padding: 1em 1.25em;
    background-color: #fff;
    min-height: 70%;
}

.main, .aside {
    margin-bottom: 1em;
}

.footer {
    background-color: #005596;
    color: #fff;
    background: #000;
    padding: 0.5em 1.25em;
    max-height: 35px;
}

.footerOnIndex {
    background-color: #005596;
    color: #fff;
    background: #000;
    padding: 0.5em 1.25em;
    max-height: 35px;
}

.vertical-line {
    border-left: thin solid #005596;
}

textarea{
    width: 19em;
    height: 3em;
}

.wideText{
    width: 450px;
}

/* -----------------------
Nav
------------------------*/

.nav {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav li {
    display: inline;
    margin: 0;
    position: relative;
    -moz-border-radius-topright: 5px;
    -moz-border-radius-bottomright: 5px;                
    -moz-border-radius-topleft: 5px;
    -moz-border-radius-bottomleft: 5px; 
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px; 
}

.nav a {
    display: block;
    padding: 5px 6px 6px 6px;
    color: #F38129;
    text-decoration: none;

    -moz-border-radius-topright: 5px;
    -moz-border-radius-bottomright: 5px;                
    -moz-border-radius-topleft: 5px;
    -moz-border-radius-bottomleft: 5px; 
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px; 
}

.nav>li>a:link {
    color: white;
}
.nav>li>a:visited {
    color: white;
}

input:invalid{
    border: 5px solid red;
}

/*.nav>li>a:focus {
    color: black;
    background-color: #f1f1f1;
}*/

.nav>li>a:hover {
    color: black;
    background-color: #f1f1f1;
}

c.nav>li>a:active {
    color: white;
    background-color: #F38129;
}

.dropbtn {
    background-color: #005596;
    color: white;
    padding: 7px 0px 6px 0px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 10;
    -moz-border-radius-topright: 5px;
    -moz-border-radius-bottomright: 5px;                
    -moz-border-radius-topleft: 5px;
    -moz-border-radius-bottomleft: 5px; 
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px; 
}


/* The container needed to position the dropdown content */ 
.dropdown { position: relative; display: inline-block; } 

/* Dropdown Content (Hidden by Default) */ 
.dropdown-content { display: none; 
                    position: absolute;
                    background-color: #f9f9f9;
                    min-width: 180px;
                    color: black;
                    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
                    z-index: 10;
}

/* Links inside the dropdown */
.dropdown-content a { color: black;
                      padding: 12px 16px;
                      text-decoration: none;
                      display: block;
                      min-width: 180px;
}


/* Change color of dropdown links on hover */
.dropdown-content a:hover { background-color: #f1f1f1 }


/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content { display: block; }

/* Change the background color of the dropdown button when the dropdown content is shown */
.dropdown:hover .dropbtn { color: black; background-color: #f1f1f1; }

/* Change the background color of the dropdown button when the dropdown content is shown */
.dropdown-right:hover .dropbtn { background-color: #f1f1f1; }

.dropside-dropbtn {
    background-color: #f9f9f9;
    color: black;
    padding: 15px 16px;
    border: none;
    cursor: pointer;
    display: block;
    text-decoration: none;
    z-index: 10;
}

.active {
    background-color: #F38129;
    color: white;
}

/* Show the dropdown menu on hover */
.dropside:hover .dropside-content { display: block; }

/* Change color of dropside links on hover */
.dropside-dropbtn:hover { background-color: #f1f1f1 }

/* Change the background color of the dropdown button when the dropdown content is shown */
.dropside:hover .dropside-dropbtn { background-color: #f1f1f1; }

/* The container needed to position the dropside content */ 
.dropside {
    position: relative;
    display: inline-block;
}

/* Dropdown Content (Hidden by Default) */ 
.dropside-content {        top:0;
                           left:100%;
                           display: none; 
                           position: absolute;
                           background-color: #f9f9f9;
                           min-width: 385px;
                           box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
                           z-index: 1;
}


.aside { float: left;
         margin-bottom: 1em;
         padding: 20px;
}

.onIndexAside { float: left;
                margin-bottom: 1em;
                padding: 20px;
}

.navAside { float: left;
            margin-bottom: 0em;
            max-width: 3%;
            height: 83vh;
            position: relative;
}

.navAside a { display: flex;
              align-items: center;
              position: relative; 
              min-height: 100%;
              opacity: 0.5;
}

/* -----------}------------ Single styles ------------------------*/
.img-responsive { max-width: 100%; }

.btn {color: #fff !important;
      background-color: royalblue;
      border-color: #222;
      display: inline-block;
      padding: .5em 1em;
      margin-bottom: 0;
      font-weight: 400;
      line-height: 1.2;
      text-align: center;
      white-space: nowrap;
      vertical-align: middle;
      cursor: pointer; 
      border: 1px solid transparent; 
      border-radius: .2em; 
      text-decoration: none; 
} 

.btn:hover {
    color: #fff !important; 
    background-color: green; 
} 

.btn:focus { color: #fff !important; 
             background-color: black; 
} 

.btn:active { color: #fff !important; 
              background-color: red; 
} 

.table { width: 100%; 
         max-width: 100%; 
         margin-bottom: 20px; 
} 

.list-unstyled { padding-left: 0;
                 list-style: none; 
} 

.list-inline { padding: 0; 
               margin-left: -5px;
               list-style: none; 
} 

.list-inline > li { display: inline-block; 
                    padding: 0; 
} 

.rotate90 { display: none; 
            -webkit-transform: rotate(90deg);
            -moz-transform: rotate(90deg); 
            -o-transform: rotate(90deg);
            -ms-transform: rotate(90deg); 
            transform: rotate(90deg); 
} 

.rotate270 {
    display: none; 
    -webkit-transform: rotate(270deg); 
    -moz-transform: rotate(270deg); 
    -o-transform: rotate(270deg); 
    -ms-transform: rotate(270deg); 
    transform: rotate(270deg); 
} 

.onindex{ padding: 0; 
          float: left; 
} 

.image { position: relative; 
         width: 100%; 
}

.select-editable {
    position:relative;
    background-color:white;
    border:solid grey 1px;
    width:120px;
    height:18px;
}
.select-editable select {
    position:absolute;
    top:0px;
    left:0px;
    font-size:14px;
    border:none;
    width:120px;
    margin:0;
}
.select-editable input {
    position:absolute;
    top:0px;
    left:0px;
    width:100px;
    padding:1px;
    font-size:12px;
    border:none;
}
.select-editable select:focus, .select-editable input:focus {
    outline:none;
}

.tableWithoutBorders {
    border: none;
    border-collapse:collapse;
}

.tableWithoutBorders td{
    border: none;
    outline: none;
    padding: 0;
}

.tableWithoutBorders p{
    height: 10px;
    max-height: 10px;
    min-height: 10px;
}

.substanceTable {
    display: block;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
}

.substanceTable tr:nth-child(even) {
    background-color: #eee;
}
.substanceTable tr:nth-child(odd) {
    background-color: #fff;
}

.substanceTable th {
    padding: .2em 0.5em;
    vertical-align: top;
    text-align: left;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    min-width: 80px;
    width: 80px;
    max-width: 80px;
}

.substanceTable td {
    padding: .2em 0.5em;
    vertical-align: top;
    text-align: left;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    min-width: 80px;
    width: 80px;
    max-width: 80px;
    overflow: hidden;
    white-space: nowrap;
}

.substanceTable td:hover{
    text-overflow: clip;
    white-space: normal;
    word-break: break-all;
}

.largemain {
    position:relative;
    overflow:auto;
    margin-bottom: 1em;
}

.wrapper {
    overflow: auto;
    position: relative;
}

.small-wrapper {
    overflow: auto;
    position: relative;
    width: 69%;
    float: left
}

.hazardousSubstancesProperties{
    width: 100px;
    max-width: 100px;
    min-width: 100px;
}

.new-section-border-bottom{
    border-bottom: 3px solid;
}

.new-section-border-top{
    border-top: 3px solid;
}


.pop-outer {
    background-color: rgba(0, 0, 0, 0, 0.5);
    position: fixed;
    top: 100;
    left: -1;
    width: 100;
    height: 100%;

}

.pop-inner {
    background-color: #fff;
    width: 600px;
    height: 300px;
    padding: 25px;
    margin: 15% auto;
    border: 2px solid #000;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}

.styled-select {
    height: 29px;
    max-width: 240px;
    overflow: hidden;
    background: transparent;
}

.styled-select select {
    background: transparent;
    border: none;
    font-size: 14px;
    height: 29px;
    padding: 5px; /* If you add too much padding here, the options won't show in IE */
    max-width: 268px;
}

.semi-square {
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}

.unit-select{
    max-width: 42px;
}

.styled-text{
    height: 23px;
    max-width: 200px;
    background: transparent;
}

.largeTextarea { width: 500px; height: 200px; min-width: 500px; min-height: 200px; max-width: 500px; max-height: 200px;box-sizing: border-box; overflow: auto}

/* Wide styles ------------------------*/ 

@media (min-width: 860px) 
{
    .header { padding: 0; } 
    .nav-bar { padding: 0em 0em; } 
    .content { padding: 0em 0em; } 
    .main { padding: 1em 0em 0em 0em; 
            float: left; 
            width: 69%;
            margin-bottom: 0em; 
    }

    .largemain{
        padding: 1em 0em 0em 0em; 
        float: left; 
        width: 100%;
        margin-bottom: 0em;
    }

    .onIndexMain{ padding: 0em 7em 0em 0em;
                  float: left; 
                  width: 40%;
                  height: 80vh;
                  margin-bottom: 0em; 
    } 

    .aside{ padding: 20px 0px 0px 20px; 
            float: left; 
            width: 23.5%;
            margin-bottom: 0em; 
    } 

    .onIndexAside{ padding: 20px 0px 0px 20px; 
                   float: left;
                   width: 45%; 
                   margin-bottom: 0em; 
    } 

    .onindex main { padding: 2em 1em 1em 1em;
                    float: left; 
                    width: 50%; 
                    margin-bottom: 0em; 
    } 

    .navAside {width: 3%; 
               min-height: 120%; 
    }

    #leftAside:hover{ background: #bcdbcb;
                      /* For browsers that do not support gradients */ 
                      background: -webkit-linear-gradient(left, #bcdbcb , white); 
                      /* For Safari 5.1 to 6.0 */ 
                      background: -o-linear-gradient(right, #bcdbcb, white); 
                      /* For Opera 11.1 to 12.0 */ 
                      background: -moz-linear-gradient(right, #bcdbcb, white); 
                      /* For Firefox 3.6 to 15 */ 
                      background: linear-gradient(to right, #bcdbcb , white);
                      /* Standard syntax */ 
    } 

    #rightAside:hover{
        background: #bcdbcb; 
        /* For browsers that do not support gradients */
        background: -webkit-linear-gradient(right, #bcdbcb , white);
        /* For Safari 5.1 to 6.0 */ 
        background: -o-linear-gradient(left, #bcdbcb, white);
        /* For Opera 11.1 to 12.0 */
        background: -moz-linear-gradient(left, #bcdbcb, white);
        /* For Firefox 3.6 to 15 */
        background: linear-gradient(to left, #bcdbcb , white);
        /* Standard syntax */ 
    }

    .navAside img{ display: block; }

    .footer { max-height:30px;
              background-color: #005596;
              padding: 0.5em 1em; 
    }

    .footerOnIndex { max-height:30px;
                     background-color: #005596;
                     padding: 0.5em 1em; 
    }

    .nav>li { display: inline; 
              margin: 0 0 0 0; 
    }

    .nav>li>a { display: inline;
                border-bottom: 0; 
    }

} 

@media (min-width: 540px) and (max-width: 860px) { 
    .header { 
        padding: 1em 1em; 
    } 

    .nav-bar { 
        padding: 0em 0em; 
    }

    .content { padding: 3em 3em; } 
    .main { float: left; 
            width: 69%; 
            margin-right: 0%; 
            margin-bottom: 1em;
    }

    .largemain{
        float: left; 
        width: 100%; 
        margin-right: 0%; 
        margin-bottom: 1em; 
    }

    .aside { width: 25%; }
    .navAside { width: 3%; }
    .footer { padding: 1em 1em; max-height: 30px}
    .nav { padding: 0px 0px 4px 0px; }
    .nav>li { display: inline; 
              margin: 0 0 0 0; 
              z-index: 0; 
    }

    .nav>li>a { margin: 5px; 
                display: inline; 
                padding: 6px; 
                border-bottom: 0;
    }
}