body{
    margin: 0px;
    font-family: Roboto, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

h1{
    text-align: center;
    color: black;
    box-shadow: 0px 3px 5px 0px #adffad;
    border-bottom: 1px solid green;
    margin-bottom: 0px;
}

.tiles{
    margin:auto;
    text-align: center;
}

.tile{
    display: inline-block;
    width: 200px;
    height: 200px;
    margin: 10px;
    padding: 10px;
    text-align: center;
    border-radius: 10px;
    border: 1px solid black;
    vertical-align: middle;
    cursor: pointer;
    background-color: #57f43680;
    box-shadow: 3px 3px 5px 0px #02441bcc;
    overflow: hidden;
}

.tile:hover{
    background-color: #851a13;
    position: relative;
    overflow: visible;
}

.tile-icon{
    width:64px;
    height: 64px;
    margin: auto;
}

.tile-title{
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
}

.tile-description{
    text-align: left;
}

.tile:hover .tile-title, .tile:hover .tile-description {
    color: white;
}

.tile:hover .tile-description {
    background-color: #851a13;
    margin-left: -10px;
    margin-right: -10px;
    padding: 0px 10px 10px 10px;
    border-radius: 0px 0px 10px 10px;
}


h3 {
    padding: 10px;
    background: #04841b;
    color: #fff;
    box-shadow: -1px 3px 3px 0px rgb(5, 105, 5);
}

a:link{
    text-decoration: none;
}

.centered, .message{
    margin: auto;
    text-align: center;
}

.message {
    padding: 10px;
    font-style: italic;
    font-weight: bold;
}

table {
    margin: 20px auto;
    text-align: center;
    border-spacing: 2px;
}

table td, table th{
    padding: 10px;
}

div.row{
    width: fit-content;
    margin-top: 10px;
    font-size: 1.25em;
    text-align: left;
}

div.row span {
    display: inline-block;
    width: 150px;
    text-align: left;
}

div.row i.material-icons{
    color: rgb(0, 150, 200);
}

div.row input {
    font-size: 1em;
    padding: 5px;
}

div.row label{
    display: inline-block;
    margin: 5px 20px;
    cursor: pointer;
}

button.red, input.red, button.blue, input.blue, button.orange, input.orange, button.green, input.green{
    min-width: 200px;
    font-size: 1em;
    padding: 10px;
    color: #fff;
    border: none;
    cursor: pointer;
}

button.red, input.red {
    background-color: #a00;
    box-shadow: 3px 3px 6px 0px rgb(100, 1, 1);
}

button.red:hover, input.red:hover {
    box-shadow: 3px 3px 6px 3px rgb(100, 1, 1);
}


button.blue, input.blue {
    background-color: rgb(50, 10, 170);
    box-shadow: 3px 3px 6px 0px rgb(30, 6, 100);
}

button.blue:hover, input.blue:hover {
    box-shadow: 3px 3px 6px 3px rgb(30, 6, 100);
}

button.orange, input.orange {
    background-color: rgb(200, 80, 0);
    box-shadow: 3px 3px 6px 0px #5c2501;
}

button.orange:hover, input.orange:hover {
    box-shadow: 3px 3px 6px 3px #5c2501;
}

button.green, input.green {
    background-color: rgb(0, 150, 0);
    box-shadow: 3px 3px 6px 0px rgb(0, 80, 0);
}

button.green:hover, input.green:hover {
    box-shadow: 3px 3px 6px 3px rgb(0, 80, 0);
}

div.header{
    position: relative;
    font-size: 1.25em;
    font-weight: bold;
    padding: 10px;
    background: #04841b;
    color: #fff;
    box-shadow: -1px 3px 3px 0px rgb(5, 105, 5);
}

div.header div.logout{
    position: absolute;
    top: 10px;
    right: 0px;
}

div.logout a{
    color: #fff;
    padding: 10px;
    margin: 0px 10px;
    cursor: pointer;
}

div.logout a:hover{
    background: #04bd26;
}

div.table, form.table {
    display: table;
    margin: auto;
    border-spacing: 2px;
}

div.thead {
    display: table-header-group;
}

div.tr, form.tr {
    display: table-row;
}

table tr:nth-of-type(2n + 1), div.tr:nth-of-type(2n + 1), form.tr:nth-of-type(2n + 1){
    background: #eee;
}

table > thead > tr{
    background: transparent;
}

.thead div.tr{
    background: transparent;
}

div.td, form.td {
    display: table-cell;
    padding: 10px;
    text-align: center;
}

#basic .td{
    text-align:left;
}

.thead .td{
    font-weight: bold;
    vertical-align: middle;
}

input, textarea, select, .multiselect{
    vertical-align: middle;
    font-size: 1em;
}

input[type="number"]{
    width: 32px;
    font-size: 16px;
    font-weight: bold;
}

input[type="submit"], input[type="button"]{
    margin: 5px;
    padding: 5px;
}

.options input[type="button"]{
    margin: 2px 2px 2px 8px;
    padding: 0px 5px;
    border: none;
    font-size: 16px;
    font-weight: bold;
    background: transparent;
}

input[type="checkbox"]{
    transform: scale(1.5);
}

.buttons input[type="button"]{
    margin:10px 20px;
    padding: 10px;
    font-size: 1.5em;
    font-weight: bold;
}

/* context menu style */

div.menu {
    position: absolute;
    background: #222;
    border: 1px solid #aaa;
    z-index: 100;
}

div.menu-item {
    color: #fff;
    padding: 10px;
    cursor: pointer;
    white-space: nowrap;
}

div.menu-item:hover {
    background: #444;
}


#dialog , .popup{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: not-allowed;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#dialog .dialogBox, .popup-box{
    min-width: 240px;
    min-height: 180px;
    width: fit-content;
    margin: auto;
    background: #fff;
    color: #000;
    border: 2px solid #aaa;
    border-radius: 10px;
    padding: 5px;
    cursor: auto;
}

.dialogBox .titleBar, .popup-title-bar{
    position: relative;
    border-bottom: 1px solid black;
}

#dialogClose, .popup-close{
    position: absolute;
    right: 0;
    top: 0;
    font-weight: bold;
    font-size: 2em;
    border: none;
    background: transparent;
    line-height: 16px;
    padding: 10px;
    cursor: pointer;
}

#dialogClose:hover, .popup-close:hover{
    background: #eee;
    transform: scale(1.2);
}

#dialogTitle, .popup-title{
    padding: 10px;
    font-weight: bold;
}

#dialogMessage, .popup-body{
    padding: 10px;
    min-height: 120px;
    vertical-align: middle;
    text-align: center;
    overflow-y: auto;
    overflow-wrap: break-word;
}

#dialogMessage .option-contents{
    max-height: 500px;
    overflow-y: auto;
    text-align: left;
}

.option-contents label{
    display: block;
    padding: 5px 10px;
    font-size: 1.25em;
    cursor: pointer;
}

.option-contents label > input {
    margin-right: 10px;
    vertical-align: baseline;
}

.option-box button{
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    font-size: 1.25em;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
}

.progressBar{
    width: 105px;
    height: 105px;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center
}

.progressBar svg{
    display: block;
    width: 100px;
    height: 100px;
    margin: 0px;
    text-align: center;
    transform-origin: 50% 50%;
    animation: rotate360 2s linear 0s infinite;
}

.progressBar svg > circle {
    animation: 1.4s ease-in-out infinite both progress-animation;
    display: block;
    fill: transparent;
    stroke: green;
    stroke-dasharray: 252;
    stroke-dashoffset: 251;
    stroke-width: 10px;
    transform-origin: 50% 50%;
}

@keyframes rotate360 {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes progress-animation {
    0%,
    20% {
        stroke-dashoffset: 251;
        transform: rotate(0);
    }
    
    50%,
    70% {
        stroke-dashoffset: 64;
        transform: rotate(60deg);
    }
    
    100% {
        stroke-dashoffset: 251;
        transform: rotate(360deg);
    }
}

@keyframes open {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes close {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(0);
    }
}

#snackbar {
    visibility: hidden; /* Hidden by default. Visible on click */
    min-width: 250px; /* Set a default minimum width */
    margin-left: -125px; /* Divide value of min-width by 2 */
    background-color: #333; /* Black background color */
    color: #fff; /* White text color */
    text-align: center; /* Centered text */
    border-radius: 2px; /* Rounded borders */
    padding: 16px; /* Padding */
    position: fixed; /* Sit on top of the screen */
    z-index: 1; /* Add a z-index if needed */
    left: 50%; /* Center the snackbar */
    bottom: 30px; /* 30px from the bottom */
  }
  
  /* Show the snackbar when clicking on a button (class added with JavaScript) */
  #snackbar.show {
    visibility: visible; /* Show the snackbar */
    /* Add animation: Take 0.5 seconds to fade in and out the snackbar. 
    However, delay the fade out process for 2.5 seconds */
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
  }
  
  /* Animations to fade the snackbar in and out */
  @-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;}
  }


  .switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    vertical-align: 6px;
  }
  
  /* Hide default HTML checkbox */
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  /* The slider */
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  input:checked + .slider {
    background-color: #2196F3;
  }
  
  input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
  }
  
  input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
  }
  
  /* Rounded sliders */
  .slider.round {
    border-radius: 34px;
  }
  
  .slider.round:before {
    border-radius: 50%;
  }

  .search-control{
      margin-top: 5px;
  }

 .search-control > div{
      display: inline-block;
      position: relative;
      z-index: 10;
      vertical-align: middle;
  }

  .search-box {
    padding: 0px;
    border: 2px solid black;
    vertical-align: middle;
    border-radius: 30px;
    height: 51px;
    background: #fff;
  }

  .search-input-box{
    display: inline-block;
    position: relative;
    padding: 0px;
    margin: 0px;
    top: -10px;
  }

  .search-input-box input{
      display: block;
      width: 20vw;
      padding: 5px;
      margin-left: 20px;
        font-size: 1.25em;
        border: none;
        height: 48px;
  }

  .search-input-hint{
    position: absolute;
    left: 20px;
    display: none;
    z-index: 10;
    text-align: left;
    background: #fff;
    border: 1px solid black;
  }

  .search-input-hint p{
      padding: 5px;
      margin:0px 0px 5px 0px;
      font-size: 1.25em;
      font-weight: bold;
      cursor: pointer;
      background: #eee;
  }

.search-control > div > button{
    padding: 5px;
    background: #fff;
    border-radius: 50%;
    border: 1px solid #ddd;
    cursor: pointer;
}

.search-control > div > button i{
    font-size: 48px;
}

  #search-button {
    height: 51px;
    margin: auto;
    padding: 0px 5px;
    z-index: 100;
    outline: none;
    border: none;
    border-left: 1px solid black;
    border-radius: 0px 30px 30px 0px;
    cursor: pointer;
    background: #fff;
  }

  .material-icons{
      vertical-align: -15%;
  }

  .search-control button:hover{
      border: 1px solid black;
  }

  .tooltip-box{
      position: absolute;
      top: 80px;
      left: 50%;
      width: max-content;
      min-width: 305px;
      max-width: 420px;
      padding: 5px;
      border: 1px solid black;
      border-radius: 10px;
      transition: height 0.5s, opacity 0.5s;
      background: #fff;
      z-index: 10;
      vertical-align: middle;
      transform: translateX(-50%);
  }

  .tooltip-box::before{
        content:'';
        display:block;
        width:0;
        height:0;
        position:absolute;

        border-left: 16px solid transparent;
        border-right: 16px solid transparent;
        border-bottom: 16px solid #aaa;
        left: 45%;
        top: -16px;
  }

  .tooltip-box.close{
      display: none;
      opacity: 0;
      height: 0px;
  }

  .tooltip-box.open{
    display: block;
    opacity: 1;
    height: fit-content;
  }

  .tooltip-head{
      text-align: left;
      padding: 10px;
      font-size: 1.25em;
      font-weight: bold;
  }

.tooltip-body{
    text-align: left;
    margin-top: 10px;
    padding: 10px;
    font-size: 1em;
    max-height: calc(100vh - 250px);
    overflow: auto;
}

#sort-body div{
    margin-bottom: 10px;
    vertical-align: middle;
    cursor: pointer;
}

.filter-item{
    margin:10px 0px;
}

.filter-item-label{
    font-weight: bold;
    text-align: left;
    margin: 0;
    clear: both;
    overflow: auto;
    vertical-align: middle;
    line-height: 48px;
}

.filter-item-label .left-side{
    float: left;
    width: 55%;
}

.filter-item-label .right-side{
    float: right;
    width: 40%;
}

.chips, .filter-item-input{
    margin: 5px 10px;
}

.filter-item-label .chip, .chip {
    display: inline-block;
    padding: 10px;
    margin: 5px;
    background: #ddd;
    border-radius: 20px;
    border: none;
}

.filter-item-label button.chip i {
    line-height: 12px;
    vertical-align: -56%;
}

.chip .close{
    margin-left: 5px;
}

.chip input{
    opacity: 0;
    width: 0;
    height: 0;
}

.chip input:checked + span::before{
    content: "";
    display: inline-block;
    font-family: "Material Icons";
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    text-transform: none;
    vertical-align: -6px;
    margin: -10px 2px -10px -10px;
}


  #search-results{
      min-height: 50vh;
      max-height: calc(100vh - 150px);
      margin-top: 20px;
      overflow: auto;
      text-align: left;
      background: #fff;
      counter-reset: resultCount;
  }

  #search-results center{
      font-size: 1.5em;
      font-weight: bold;
      padding: 10px;
  }

  .search-results-row{
        display: inline-block;
        margin-left: 10px;
        margin-bottom: 10px;
        min-width: 360px;
        width: calc(50% - 85px);
      padding: 5px 15px 5px 50px;
      text-align:left;
      vertical-align: text-top;
      background: #eee;
      font-size: 1em;
      min-height: 66px;
      cursor: pointer;
      position: relative;
      z-index: 1;
      counter-increment: resultCount;
  }

  .search-results-row::before{
      position: absolute;
      left: 5px;
      top: 36%;
      content: counter(resultCount)".";
  }

  .search-results-row .more{
      position: absolute;
      right: -10px;
    top: 5px;
    font-size: 32px;
    background: transparent;
    color: #2196F3;
    border: none;
  }

  .search-results-row .more i{
      font-size: 32px;
}

  .search-results-row div{
      padding: 2px;
  }

  .search-results-row div:nth-child(1){
      font-weight: bold;
  }



.dashboard {
    padding: 20px;
    margin: auto;
    text-align: center;
    vertical-align: middle;
    background-color: #26c3f9;
}

.dashboard > .form-item{
    display: inline-block;
    width: 320px;
    height: 220px;
    margin: 20px;
    padding: 10px 0px 0px;
    vertical-align: middle;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .25);
    background-color: #83dfff;
}

.form-item:hover{
    box-shadow: 0 10px 20px rgba(0, 0, 0, .25);
}

.form-item > img{
    width: 100px;
    height: 100px;
    border-radius: 50%;
}

.form-item > .form-name{
    height: 56px;
    padding: 10px;
    font-size: 1.5em;
    font-weight: bold;
    color: #2c267a;
}

.form-item > .form-count{
    font-size: 2em;
    font-weight: bold;
    background: #fff;
    border-radius: 0px 0px 10px 10px;
    color: #10821a;
}