 body {
  width: 100%;
  margin: 0;
  padding: 0;
  height: auto;
  font-size: 17px;
  color: #212121;
  background: white;
  overflow-x: hidden;
  font-family: 'Roboto', sans-serif;
  float: left;
}

#mainview {
  width: 100%;
  float: left;
}

/*
#mainview {
  width: calc(100% - 222px);
  margin-left: 222px;
  float: left;
}

@media only screen and (max-width: 1060px) {

  #mainview {
    width: calc(100% - 182px);
    margin-left: 182px;

  }
}

@media only screen and (max-width: 987px) {

  #mainview {
    width: 100%;
    margin-left: 0;
  }
}
*/
a {
  text-decoration: none;
  color: white;
  margin: 0;
  padding: 0;
}

a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
}

#search_form {
  margin: 30px 0 100px 0;
}

#search_box {
  margin: 0;
  width: 210px;
  height: 30px;
  text-align: center;
  float: right;
  box-shadow: 0 0 0 rgba(0,0,0,0.12), 0 0 0 rgba(0,0,0,0.24);
}

#search_box:focus {
  box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
}

.search_btn {
  float: right;
  margin: 0 5% 0 0;
  height: 36px;
}

textarea {
  font-family: inherit;
  color: grey;
  border-style: none;
  background-color: white;
  box-shadow: 0 0 0 rgba(0,0,0,0.12), 0 0 0 rgba(0,0,0,0.24);
  transition: all 0.3s cubic-bezier(.25,.8,.25,1);
  width: 100%;
  height: 70px;
}

textarea:focus {
  box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
}

.add_shadow {
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
}

.add_shadow:focus {
  box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
}

#add_submit {
  float: right;
  margin: 30px 10% 50px 0;
}

#delete_btn {
  background-color: #B71C1C;
  margin: 20px 0 40px 0;
}

.delete_transaction_btn {
  background-color: #B71C1C;
  float: right;
  margin: 5px 5% 10px 0;
}

#red {
  background-color: #B71C1C;
}


input[type="text"], textarea, input[type="number"], input[type="date"], {
  padding: 5px;
  border-width: 0;
}

input[type="text"],input[type="number"], input[type="date"], input[type="option"], input[type="password"] {
  text-align: center;
}

input[type="button"], input[type="submit"] {
  border-style: none;
  text-align: center;
  background-color: #142f54;
  color: white;
  padding: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  transition: all 0.3s cubic-bezier(.25,.8,.25,1);
  cursor: pointer;
}

input[type="button"], input[type="submit"]:hover {
  box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
}

#question_mark {
  padding: 30px 0px 0px 30px;
  font-weight: bold;
  font-size: 1.5em;
}

.success_bar {
  width: 100%;
  text-align: center;
  color: white;
  float: left;
  font-weight: bold;
  padding: 7px 0 0 0;
}

#success {
  background-color: #66BB6A;
}

#fail {
  background-color: #DD2C00;
}

#navbar {
  width: 100%;
  height: 1px;
  position: relative;
  background-color: #142f54;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  z-index: 100;
}


#intro_section {
  width: 100%;
  float: left;
  background-color: #01579b;
  color: white;
}

#intro_text {
  width: 90%;
  max-width: 900px;
  margin: 60px auto 50px auto;
  font-size: 2em;
}

.list {
  margin: 0 0 0 25px;
  padding: 0;
  color: white;
  position: relative;
}

.overlay {
  background: rgba(0,0,0,.75);
  width: 100%;
  position: fixed;
  top: 0px;
  left: 0px;
  right: 0px;
  z-index: 100000;
  display: none;
  overflow: hidden;
}

.overlay_content {
  position: absolute;
}

.current_select {
  color: white;
  font-size: 2em;
}

.list_line {
  margin: 20px 0 0 4px;
  float: left;
  background-image: url('http://www.whitetablegallery.org/src/share/default.jpg');
  background-position: left;
  background-repeat: no-repeat;
  background-size: 5px 100%;
}

.dropdown {
  cursor: pointer;
}

.dropdown_li {
  color: white;
  text-decoration: none;
  line-height: 2em;
}

.dropdown_li:hover {
  color: #01579b;
}

.dropdown_li:nth-last-of-type {
  line-height: 2em;
}

#add2_ul_section {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 0 auto;
  float: left;
}

#add2_ul {
  width: 100%;
  list-style: none;
  float: left;
  font-size: 1em;
  padding: 0;
}

#add2_ul > li {
  float: left;
}

.add2_li {
  float: left;
  height: 80px;
  margin-top: 70px;
  cursor: pointer;
  width: 40%;
  text-align: center;
  /*border: solid black;
  border-width: 0 0 0 1px;*/
  margin-left: 0;
}

.add2_li:nth-child(2n+2) {
  margin-left: 10%;
}

.add2_li:nth-child(1) {
  margin-left: 10%;
  width: 80%;
}

.add2_li:nth-last-child(-n+2) {
  margin-left: 10%;
  width: 80%;
}

.add_label {
  margin: 0 0 -10px 0;
}

#buy_link {
  color: black;
  text-decoration: underline;
}

#filter_section {
  width: 100%;
  height: 60px;
  float: right;
  background-color: #01579b;
  color: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  position: relative;
  margin: 0;
  top: 0;
  z-index: 10;
}

#filter_ul_section {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto 0 auto;
}

#filter_ul {
  width: 100%;
  list-style: none;
  float: left;
  font-size: 1em;
  color: white;
  padding: 0;
}

#filter_ul > li {
  float: left;
}

.filter_li {
  line-height: 1.8em;
  width: 26.66%;
  height: 28px;
  border-color: #21212;
  border-style: solid;
  border-width: 0px 1px 0px 0px;
  text-align: center;
}

.filter_li:nth-child(1) {
  width: 10%;
  border-style: none;
}

.filter_li:nth-child(4) {
  border-style: none;
}


#search_display {
  float: right;
}

.selected {
  color: #142f54;
}

#output_section {
  margin: 100px 0 0 0;
  width: 100%;
  min-height: 50vh;
  float: left;
}

.row {
  width: 90%;
  height: auto;
  max-width: 1000px;
  max-height: 65px;
  background-color: white;
  text-align: center;
  margin: 0px auto 0px auto;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  cursor: pointer;
  transition: 0.3s ease-in-out;
  overflow: hidden;
  z-index: 10;
  position: relative;
  line-height: 1.8em;
}


.detail_shadow {
  width: 95%;
  max-width: 1100px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
  margin-top: 15px;
  margin-bottom: 15px;
  z-index: 80

}

.row_ul {
  padding: 0;
}

.row_ul > li {
  float: left;
}

.row_li {
  width: 26.66%;
  height: 28px;
  border-color: #21212;
  border-style: solid;
  border-width: 0px 1px 0px 0px;
}

.row_li:nth-child(1) {
  width: 10%;
  border-style: none;
}

.row_li:nth-child(4) {
  border-style: none;
}

.row_li:nth-child(5) {
  width: 9%;
  border-style: none;
}

.critical {
  color: #B71C1C;
  font-size: 1.5em;
  line-height: 0.8em;
}

.noncritical {
  color: #1B5E20;
  font-size: 1.4em;
  line-height: 0.8em;
}


.detail {
  width: 90%;
  max-width: 900px;
  margin: 100px auto 50px auto;
}

.detail_p {
  margin: 30px 0 0 0;
  float: left;
  width: 100%;
}

.inline {
  display: inline;
}

.item_quantity {
  font-weight: bold;
  font-size: 2em;
  color: #142f54;
}

.item_name {
  font-size: 2em;
}

.item_label {
  font-weight: bold;
  color: #142f54;
}

.detail_fullwidth {
  width: 100%;
  margin: 30px 0 0 0;
  float: left;
}

.inner_detail {
  width: 100%;
  margin: 0;
  float: left;
}

.detail_hl {
  margin: 20px 0 0 0;
}

.detail_left {
  width: 50%;
  float: left;
  margin: 60px 0 20px 0;
}

.detail_right {
  width: 50%;
  float: right;
  margin: 60px 0 20px 0;
}

#transaction_trigger_text {
  margin-top: 50px;
  font-weight: bold;
  color: #142f54;
}

#transaction_trigger_text:hover {
  text-decoration: underline;
}

#transaction_id {
  z-index: 1000;
}

.transaction_row_ul {
  float: left;
  padding: 0;
  width: 100%;
  margin: 30px 0 30px 0;
  display: none;
  font-size: 0.85em;
}

.transaction_row_li {
  margin: 0;
  padding: 10px 0px 0px 0px;
  width: 100%;
  float: left;
  background-color: #f4f4f4;
  height: auto;
  max-height: 30px;
  transition: all 0.3s cubic-bezier(.25,.8,.25,1);
  overflow: hidden;
  position: relative;
}

.transaction_row_li:nth-child(1) {
  z-index: 10000001;
  font-weight: bold;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
}

.transaction_row_li:nth-child(2n+1) {
  background-color: white;
}

.transaction_row_li:hover {
  z-index: 10000000;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
}

.transaction_ul {
  margin: 0;
  padding: 0;
  width: 100%;
  float: left;
}

.transaction_li {
  margin: 0;
  padding: 0 0 20px 0;
  width: 33.33%;
  float: left;
}

.transaction_li:nth-child(4) {
  width: 90%;
  margin: 0 0 0 5%;
}

.transaction_li:nth-child(5) {
  width: 90%;
  margin: 0 0 0 5%;
}

#transaction_submit {
  float: right;
}

.more {
  margin: 80px auto 0px auto;
  width: 80px;
  height: 80px;
  background-color: #142f54;
  color: white;
  text-align: center;
  font-size: 0.8em;
  font-weight: bold;
  cursor: pointer;
  border-radius: 100%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  transition: all 0.3s cubic-bezier(.25,.8,.25,1);
  vertical-align: middle;
  line-height: 80px;
}

.more:hover {
  box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
}


.window {
  width: 900px;
  max-height: 90%;
  overflow-y: scroll;
  background: white;
  text-align: center;
  margin: 5% 0 0 -450px;
  left: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  display: none;
  position: fixed;
  z-index: 10000000;
  float: left;
}

.window::-webkit-scrollbar {
    display: none;
}

.window_header {
  width: 100%;
  padding-bottom: 30px;
  background-color: #01579b;
  color: white;
  float: left;
}

#float_button {
  background-color: #142f54;
  background-image: url('../icon/plus.png');
  background-position: center;
  background-size: 30% 30%;
  background-repeat: no-repeat;
  cursor: pointer;
  width: 65px;
  height: 65px;
  position: fixed;
  border-radius: 100%;
  margin-top: calc(96vh - 140px);
  margin-left: calc(95vw - 90px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  transition: all 0.3s cubic-bezier(.25,.8,.25,1);
  z-index: 10000;
}

#float_button:hover {
  box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
}

.window_hl {
  text-align: left;
  padding: 5% 0 0 10%;
}

.close_window {
  width: 50px;
  height: 50px;
  float: right;
  background-color: #B71C1C;
  background-image: url('../icon/close.png');
  background-size: 40% 40%;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  transition: all 0.3s cubic-bezier(.25,.8,.25,1);
  cursor: pointer;
}

.close_window:hover {
  box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
}

.window_submit {
  margin: 30px 5% 30px 0;
}

.edit_btn {
  float: left;
  width: 65px;
  height: 65px;
  margin: 65px;
  background-image: url('../icon/edit.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: 50% 50%;
  background-color: #142f54;
  cursor: pointer;
  border-radius: 100%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  transition: all 0.3s cubic-bezier(.25,.8,.25,1);

}

.edit_btn:hover {
  box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
}

#mail_btn {
  background-image: url('../icon/mail.png');
  float: right;
}

#mail_text {
  width: 90%;
  height: auto;
  min-height: 120px;
  float: left;
  margin: 30px 0 15px 5%;
}

#footer_section {
  width: 100%;
  float: left;
  margin: 200px 0 0 0;
  color: white;
  text-align: center;
  background-color: #142f54;
}

#login_section {
  width: 80%;
  margin: 30px 0 30px 10%;
}

#login_btn {
  margin: 20px 0 0 0;
}

@media only screen and (max-width: 900px) {


    #add_window {
      width: 90%;
      margin: 5% 0 0 5%;
      left: 0;
    }

    .filter_li {
      width: 40%;
    }

    .filter_li:nth-child(4) {
      display: none;
    }

    .filter_li:nth-child(3) {
      border-style: none;
    }

    .row_li {
      width: 40%;
    }

    .row_li:nth-child(1) {
      width: 10%;
    }

    .row_li:nth-child(5) {
      width: 9%;
    }

    .row_li:nth-child(4) {
      display: none;
    }

    .row_li:nth-child(3) {
      border-style: none;
    }



}

@media only screen and (max-width: 600px) {

    .add2_li {
      width: 80%;
      margin-left: 10%;
      border-width: 0;
    }

    .add2_li:nth-child(n+1) {
      border-width: 0;
      margin-left: 10%;
    }

}
