* {
  box-sizing: border-box;
}

body {
  background-color: #FFFFFF;
}

.container {
}

.overlay {
  visibility: hidden;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 10;
  background-color: rgba(0,0,0,0.5);
}

.modal {
  position: fixed;
  width: 90%;
  left: 5%;
  top: 10px;
  margin: auto;
  padding: 10px;
  background-color: #FFFFFF;

  border-radius: 10px;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
}

.fab_div {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  cursor: pointer;
}

.fab_div > img {
  width: 50px;
}

/* header */
.header {
  width: 100%;
  position: fixed;
  top: 0;
  border-bottom: 1px solid black;
  background-color: #FFF;
}

.header_wrapper {
  position: relative;
}

.main_title {
  margin: auto;
  font-size: 1.1em;
  width: 10em;
  text-align: center;
}

.total {
  font-size: 1.7em;
  width: 10em;
  text-align: center;
  margin: auto;
}

#current_amount {
  padding-top: 10px;
  border: 1px solid #F2F2F2;
  width: 5em;
  align: left;
  font-size: .9em;
}

.totalOutstanding_div {
  padding-top: 20px;
}

.amex {
  font-size: .8em;
  padding-top: 3px;
}

.amex_label {
  float: left;
  width: 115px;
}

.amex_label a {
  color: #000;
}

.amex_input {
  border: 1px solid #F2F2F2;
  width: 5em;
  align: left;
  font-size: .9em;;
}

#dialog {
  font-size: .8em;
}

.ui-dialog .ui-dialog-titlebar, .ui-dialog .ui-dialog-buttonpane {
  font-size: 0.6em;
}

/* index */
.push {
  margin-bottom: 110px;
}

.bills_table {
  width: 100%;
}

.period_head {
    padding: 20px 0 10px 0;
    border-bottom: 1px solid black;
}

.period_head:not(:first-child) {
    padding-top: 50px;
}

.single_bill {
  padding: .8em 0 .2em 0;
  border-bottom: 1px solid black;
}

.single_bill:nth-child(even) {
  background-color: #F2F2F2;
}

.paid_bill {
  color: #6b6b47;
}

.paid_bill > .bill_name, .paid_bill > .amount, .paid_bill > .due_date {
  text-decoration: line-through;
}

.top_tier_bill {
  background-color: #BDFFAF !important;
}

.top_tier_bill:nth-child(even) {
  background-color: #D6FCCF !important;
}

.one_time_bill {
  background-color: #FFC984;
}

.one_time_bill:nth-child(even) {
  background-color: #FFE5C4 !important;
}

.total_cell {
  padding-top: .8em;
}

.bills_click {
  padding-top: 2em;
  font-size: .7em;
  font-style: italic;
}

#output_p {
  cursor: pointer;
  padding-top: 1em;
  color: blue;
  font-size: 1.2em;
}


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

.bill_name, .amount, .due_date, .pay_id, .notes, .edit {
  font-size: .8em;
  text-align: left;
  display: inline-block;
}

.bill_name {
  width: 40%;
  font-size: 1em;
}

.amount, .due_date {
  font-size: 1em;
  width: 24%;
}

.edit {
  width: 8%;
  float: right;
}

.edit > img {
  width: 15px;
}

.bill_bottom {
  clear: both;
}

.pay_id {
  clear: both;
  width: 40%;
}

.notes {
  width: 49%;
}

.notes_input, .notes_input_even {
  margin-bottom: 2px;
}

.notes_input {
  border: 1px solid #F2F2F2;
}

.notes_input_even {
  background-color: #F2F2F2;
  border: 1px solid #FFFFFF;
}



/*  Single Row  */
.single_popup {
  position: relative;
}

.close_popup {
  position: absolute;
  top: 0;
  right: 0;
}

.single_bill_name, .single_amount, .single_due_date, .single_pay_id, .single_notes {
  padding-top: 5px;
  padding-right: 10px;
  display: inline-block;
  clear: none;
}

.single_amount, .single_pay_id {
}

.single_notes {
  width: 100%;
}

#input_bill_name {
  width: 12em;
}

#input_amount {
  width: 8em;
}

#input_due_date {
  width: 7em;
}

#input_pay_id {
  width: 10em;
}

#input_notes {
  width: 18em;
}

.single_check_labels {
  width: 100%;
}

.label_top_tier, .label_one_time {
  font-size: .8em;
  display: inline-block;
    padding: 5px 12px;
}


.styled_check {
  display: inline-block;
  background-color: #F4F7F6;
  width: 70px;
  height: 20px;
  border-radius: 10px;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;

  position: relative;
}

.styled_check:before {
  content: "YES";
  position: absolute;
  top: 4px;
  left: 12px;
  font-size: .6em;
  color: #000000;
  font-weight: bold;
}

.styled_check:after {
  content: "NO";
  position: absolute;
  top: 4px;
  right: 10px;
  font-size: .6em;
  color: #000000;
  font-weight: bold;
}

.styled_check label {
  z-index: 1;
  position: absolute;
  left: 10px;
  top: 4px;
  background-color: #C0C0C0;
  width: 25px;
  height: 12px;

  transition: all .2s ease;
	cursor: pointer;

  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
}

.styled_check input[type=checkbox]:checked + label {
  left: 35px;
}

.single_checkboxes input[type=checkbox] {
  visibility: hidden;
}

.single_save {
  clear: both;
}

.single_save, .single_delete, .single_save_add {
  padding-top: 15px;
  display: inline-block;
}

.single_save_add {
  padding-left: 15px;
}

.single_delete {
  padding-left: 35px;
}

.single_save > img, .single_delete > img, .single_save_add > img {
  width: 25px;
  cursor: pointer;
}

.close_popup > img {
  width: 12px;
  cursor: pointer;
}


/* view */
.range_select {
  padding-top: 30px;
}

.range_select ul {
  margin: 0;
  padding: 0;
}

.range_select ul li {
  padding: 5px 0 0 0;
  font-size: .8em;
  list-style: none;
}

.range_select input[type=radio] {
  width: .8em;
}

.range_select input[type=text] {
  width: 5.5em;
  margin: 0 3px;
  font-size: .8em;
}

.range_select label {
  cursor: pointer;
}

.select_col_1 {
  width: 30%;
  display: inline-block;
}

.select_col_2 {
  width: 68%;
  display: inline-block;
}

/* jquery-ui overwrites */
div.ui-datepicker{
 font-size:.8em;
}

.ui-datepicker {
	width: 14em;
}

.ui-datepicker .ui-datepicker-title {
	line-height: 1.7em;
}

.ui-datepicker .ui-datepicker-title select {
	font-size: .8em;
}

.ui-datepicker table {
  font-size: .8em;
}



/************************* Login page **********************/
#login_wrapper {
  margin: 30px;
}

.login_label {
  display: inline-block;
  width: 100px;
}

.login_field {
  width: 300px;
}

#stay_logged {
  margin: 0;
}

.err {
  color: red;
}
