/* Layout and Sizing */

html {
        overflow-x              : hidden;
}

html, body, .container {
        max-height              : 95%;
}

body {
        width                   : 100%;
}

.container {
        margin                  : 0 auto;
        max-width               : 800px;
        margin-top              : 35.2px;
}

#myTopnav {
        margin                  : 0 auto;
        max-width               : 800px;
}

#myBtmbar {
        margin                  : 0 auto;
        max-width               : 800px;
} 

.inner{
        overflow-y              : auto;
}

div.col2, div.col4, div.colD, div.colE, .headCol {
        display                 : inline-block;
}

.col2, .head2 {
        width                   : 100px;
}

.col4, .head4 {
        width                   : calc(100% - 345px);
}

.colD, .headD {
        width                   : 195px;
}

.colE, .headE {
        width                   : 15px;
}

.colE, .headCol, .center {
        text-align              : center;
}

.colP {
        float                   : left;
        width                   : calc(50% - 10px);
}

.headRow {
        background-color        : purple;
        color                   : white;
        font-weight             : bold;
        overflow                : hidden;
}

.colB1, .colBE {
        float                   : left;
        overflow                : auto;
}

.colB1 {
        width                   : 200px;
}

.colB2 {
        width                   : 100px;
}

.colBE {
        width                   : calc(100% - 200px);
}

@media screen and (max-width: 600px) {
    
    .col2, .col4, .head2, .head4, .colB1, .colBE {
        width                   : 100%;
    }
    
    .innerTable {
        width                   : calc(100% - 40px);
    }
    
}

.rowData {
        border-bottom           : 1px solid #214700;
        padding                 : 0px 7px;
}

.addedRowData {
        background-color        : #98fb98;   
        border-bottom           : 1px solid #214700;
}

//.rowData:nth-child(even) {
//        background-color        : #98fb98;   
//}

.headButtons {
        float                   : right;
        width                   : 20px;
}

/* Display */

.block {
        display                 : block;
}

.hidden {
        display                 : none;
}

.middle {
        margin                  : auto;
}

.midHorizontal {
        margin-top              : auto;
        margin-bottom           : auto;
}

/* GUI */

.hover {
        cursor                  : grab;
}

/* Images */

.logo {
        border                  : 0px;
        width                   : 160px;
}


/* Font */

body, input, select {
        font-family             : "Raleway", sans-serif;
}

h1 {
        margin-bottom           : 0;
        font-family             : "Merriweather", serif;
        font-style              : italic;
}

.bold {
        font-weight             : bold;
}

.ital {
        font-family             : "Merriweather", serif;
        font-style              : italic;
}

.plain {
        font-weight             : normal !important;
}

.smalltext {
        font-size               : 0.8em;
}

.swal2-title {
        color                   : #214700;
        font-size               : 1.2em;
}

.login, .profile {
        margin                  : auto;
        text-align              : center;
}

.buttonRow {
        padding-bottom          : 5px;
}

/* Background colours */

.bgGreen {
        background-color        : #22c900;
}

.bgDarkGreen {
        background-color        : #214700;
}

.bgGrey, input[type=file]::file-selector-button{
        background              : #696969;
}

.bgRed {
        background-color        : red;
}

.bgPink {
        background-color        : #FF00FF;
}

.bgBlue {
        background-color        : #6a5acd;
}

.bgOrange {
        background-color        : #F28C28;
}

.bgBlack {
        background-color       : black;
}

/* Foreground colours */

.white {
        color                   : #FFFFFF;
}

.silver {
        color                   : #C0C0C0;
}

.ltGrey {
        color                   : #D3D3D3 !important;
}

.red, .journalpat-f {
        color                   : red;
}

.journalpat-s {
        color                   : #22c900;
}

.orange, .journalpat-n {
        color                   : #F28C28;
}

.journalquery {
        color                   : #6a5acd;
}

.journalremk {
        color                   : black;
}

/* Link styling */

a.carets:link, a.carets:visited, a.carets:active, a.carets:hover, a.whiteLink:link, a.whiteLink:visited, a.whiteLink:active, a.whiteLink:hover {
        color                   : white;
        cursor                  : pointer;
        text-decoration         : none;
}

/* Table styling */

table {
        border-collapse         : collapse;
}

.innerTable {
        background-color        : #ECFFDC;
        border                  : 2px;
        border-style            : solid;
        border-color            : #214700;
        margin                  : 10px;
        overflow                : hidden;
        font-size               : 1em;
        width                   : calc(100% - 20px);
}

.sysInfo {
        background-color        : #ECFFDC;
        margin                  : 12px;
        overflow                : hidden;
        width                   : calc(100% - 24px);
}

th, .headerRow {
        background-color        : #214700;
        color                   : white;
        font-weight             : bold;
}

.headerRow {
        margin-bottom           : 3px;
        padding                 : 5px;
        text-align              : center;
        width                   : calc(100% - 10px);
}

.topnomargin {
        margin-top              : 0;
}

td, .topalign {
        padding                 : 2px;
        vertical-align          : top;
}

/* Form styling */

.input-container {
        display                 : -ms-flexbox; /* IE10 */
        display                 : flex;
}

.input-center {
        justify-content         : center;
}

.formicon, .buttonicon, .attIcon {
        padding                 : 5px;
}


.buttonWithText, input[type=file]::file-selector-button {
        border-radius           : 5px;
        padding                 : 2px 5px 2px 1px;
        white-space             : nowrap;
}

.formicon, .buttonicon, .attIcon, .buttonWithText, input[type=file]::file-selector-button {
        color                   : white;
        margin-bottom           : 2px;
        margin-top              : 2px;
        text-align              : center;
}

.attIcon {
        border-radius           : 5px 0 0 5px;
}

.formicon {
        background              : #214700;
        border-radius           : 5px 0 0 5px;
        width                   : 20px;
}

.buttonicon {
        /*background              : #214700;*/
        border-radius           : 5px;
}

.input-disablable:disabled, .select-disablable:disabled {
        background              : inherit;
        color                   : #214700;
}

.buttonicon:disabled {
        color                   : gray;
        font-style              : italic;
        font-weight             : normal;
}

.input-disablable:enabled, .select-disablable:enabled, .input-disablable-j:enabled, .input-field, .select-field {
        background              : black;
        color                   : white;
}

.input-disablable, .select-disablable, .input-disablable-j:enabled, .input-field, .select-field {
        border                  : 0;
        border-radius           : 0 5px 5px 0;
        font-weight             : bold;
        margin-bottom           : 2px;
        margin-top              : 2px;
        outline                 : none;
}

.input-100 {
        width                   : 100%;
}

.input-105 {
        width                   : calc(100% + 5px);
}

.input-disablable:focus, .input-field:focus {
        border                  : 2px solid #214700;
}

::placeholder {
        font-style              : italic;
        font-weight             : normal;
        opacity                 : 1; /* Firefox */
}

::-ms-input-placeholder { /* Edge 12 -18 */
        font-style              : italic;
        font-weight             : normal;
}

table td input {
        margin                  : 0px;
        width                   : calc(100% - 12px);
}

/* Tooltip container */
.tooltip {
        position                : relative;
        display                 : inline-block;
}

/* Tooltip Text */
.tooltip .tooltiptext {
        visibility              : hidden;
        width                   : 120px;
        background-color        : black;
        color                   : #fff;
        text-align              : center;
        padding                 : 5px 0;
        border-radius           : 6px;
         
        /* Position the tooltip text - see examples below! */
        position                : absolute;
        z-index                 : 1;
}

/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext {
        visibility              : visible;
}

/* Key Frames */

@-o-keyframes fadeIt {
  
    0% {  
        background-color        : #AD301B; 
    }
  
    100% {  
        background-color        : #ECFFDC; 
    }
  
}

@keyframes fadeIt {
  
    0% {  
        background-color        : #214700; 
        color                   : white;
    }
  
    100% {  
        background-color        : #ECFFDC; 
    }
  
}

.backgroundAnimated{    
        -o-animation            : fadeIt 5s ease-in-out; 
        animation               : fadeIt 5s ease-in-out; 
        animation-iteration-count   
                                : 1;
}

/* NAV BAR */

#topNavWrapper {
        position                : fixed;
        top                     : 0;
        width                   : 100%;
      z-index                   : 1;
}

/* Add a black background color to the top navigation */
.topnav {
        background-color        : #333;
        height                  : 35.2px;
        width                   : calc(100% - 20px);
        max-width               : 800px;
}

/* Style the links inside the navigation bar */
.topnav a {
        color                   : #f2f2f2;
        cursor                  : pointer;
        display                 : block;
        float                   : left;
        font-size               : 0.8em;
        padding                 : 10px 12px;
        text-align              : center;
        text-decoration         : none;
}

/* Add an active class to highlight the current page */
.active {
        background-color        : #04AA6D;
        color                   : white;
}

/* Hide the link that should open and close the topnav on small screens */
.topnav .icon {
        display                 : none;
}

/* Dropdown container - needed to position the dropdown content */
.dropdown {
        cursor                  : pointer;
        float                   : left;
        overflow                : hidden;
}

/* Style the dropdown button to fit inside the topnav */
.dropdown .dropbtn {
        background-color        : inherit;
        border                  : none;
        color                   : white;
        cursor                  : pointer;
        font-family             : inherit;
        font-size               : 0.8em;
        margin                  : 0;
        outline                 : none;
        padding                 : 10px 12px;
}

/* Style the dropdown content (hidden by default) */
.dropdown-content {
        background-color        : #f9f9f9;
        box-shadow              : 0px 8px 16px 0px rgba(0,0,0,0.2);
        display                 : none;
        min-width               : 160px;
        position                : absolute;
        z-index                 : 1;
}

/* Style the links inside the dropdown */
.dropdown-content a {
        color                   : black;
        display                 : block;
        float                   : none;
        padding                 : 12px 16px;
        text-decoration         : none;
        text-align              : left;
}

/* Add a dark background on topnav links and the dropdown button on hover */
.topnav a:hover, .dropdown:hover .dropbtn {
        background-color        : #555;
        color                   : white;
}

/* Add a grey background to dropdown links on hover */
.dropdown-content a:hover {
  background-color: #ddd;
  color: black;
}

/* Show the dropdown menu when the user moves the mouse over the dropdown button */
.dropdown:hover .dropdown-content {
  display: block;
}

/* When the screen is less than 600 pixels wide, hide all links, except for the first one ("Home"). Show the link that contains should open and close the topnav (.icon) */
@media screen and (max-width: 600px) {
  .topnav a:not(:first-child), .dropdown .dropbtn {
    display: none;
  }
  .topnav a.icon {
    float: right;
    display: block;
  }
}

/* The "responsive" class is added to the topnav with JavaScript when the user clicks on the icon. This class makes the topnav look good on small screens (display the links vertically instead of horizontally) */
@media screen and (max-width: 600px) {
    
  .topnav.responsive {position: absolute;}
  .topnav.responsive a.icon {
    position: absolute;
    right: 0;
    top: 0;
    
  }
  
  .topnav.responsive a {
      
    float: none;
    display: block;
    text-align: left;
    
  }
  
  .topnav.responsive .dropdown {float: none;}
  .topnav.responsive .dropdown-content {position: relative;}
  .topnav.responsive .dropdown .dropbtn {
      
    display: block;
    width: calc(100% - 10px);
    text-align: left;
    
  }
  
}

/* STATUS BAR */

#btmBarWrapper {
        position                : fixed;
        bottom                  : 0;
        width                   : 100%;
        z-index                 : 1;
}

/* Add a black background color to the top navigation */
.btmbar {
        background-color        : #333;
        height                  : 35.2px;
        width                   : calc(100% - 20px);
        max-width               : 800px;
}

.btmbar a {
        color                   : #f2f2f2;
        cursor                  : pointer;
        display                 : block;
        float                   : left;
        font-size               : 0.8em;
        padding                 : 10px 12px;
        text-align              : center;
        text-decoration         : none;
}


/* SNACKBAR */

#snackbar {
  visibility: hidden;
  min-width: 250px;
  margin-left: -125px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 2px;
  padding: 16px;
  position: fixed;
  z-index: 1;
  left : 50%;
  bottom: 30px;
  font-size: 0.8em;
}

#snackbar.show {
  visibility: visible;
  -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@-webkit-keyframes fadein {
  from {bottom: 0; opacity: 0;} 
  to {bottom: 30px; opacity: 1;}
}

@keyframes fadein {
  from {bottom: 0; opacity: 0;}
  to {bottom: 30px; opacity: 1;}
}

@-webkit-keyframes fadeout {
  from {bottom: 30px; opacity: 1;} 
  to {bottom: 0; opacity: 0;}
}

@keyframes fadeout {
  from {bottom: 30px; opacity: 1;}
  to {bottom: 0; opacity: 0;}
}

/* Password Validation */

/* Add a green text color and a checkmark when the requirements are right */
.valid {
        color                   : green;
}

/* Add a red text color and an "x" icon when the requirements are wrong */
.invalid {
        color                   : red;
}

#validationMessage {
    
        background-color        : #DDD;
        padding                 : 20px;
        text-align              : left;
        width                   : 100%;
    
}

/* Exception Box */

.ExcBox {
        border-radius           : 5px;
        color                   : white;
        display                 : inline-block;
        font-size               : 0.7em;
        margin-bottom           : 4px;
        padding                 : 2px 6px;
}