/* content.css */
/* General Styling */

.content {
    /*
  max-width: 960px;
        */
    font-size: 1.5rem;
    margin: 1rem auto;
    padding: 0 1rem;
    line-height: 1.0rem;
}
.page-content {
  display: none;

}

.content table {
  width: 100%;
  margin: 1rem auto;
}
.content > table:not(:last-of-type) {
  margin-bottom: 0.0rem;
}
.content table tr th,
.content table tr td {
    padding: 5px 0 5px 0;
    text-align: center;
}
.content table tr th {
  border-collapse: collapse;
  font-size: 14px;
}
.content table td button,
.content table td a {
  width: 100%;
}
.content table tfoot tr td {
  padding: 0.75rem 1rem;
}

.content input,
.content textarea,
.content select,
.content a.pure-button {
  width: 100%;
}


/* Index */
.tblStatusCodes tr td {
    padding: 5px 0 5px 0;
}
.tblHeaterControls tbody tr td {
    padding: 0.75rem 1rem;
    border: none;
}
.tblHeaterControls tbody tr:first-of-type:not(:last-of-type) td {
  padding-bottom: 0.25rem;
}
.tblHeaterControls tbody td a {
  -webkit-touch-callout: none !important;
}

.tblHeaterControls tfoot th {
    display: flex;
    justify-content: center;
    align-items: center;
}
.tblHeaterControls tfoot a {
    padding: 0.25rem 1.5rem;
    font-size: 1.25rem;
}
.tblHeaterControls tfoot a:first-of-type {
    padding-left: 1rem;
}
.tblHeaterControls tfoot a:last-of-type {
    padding-right: 1rem;
}
.tblHeaterControls tfoot sup {
    font-size: 9px;
}

.tblHeaterControls tfoot th {
    max-width: 100%;
    padding: 0.5em 1em;
    border-bottom: none;
}
.tblHeaterControls tfoot th.select-mode {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

tfoot th.select-mode form {
    max-width: 45%;
}
tfoot th.select-mode span,
tfoot th.select-mode form,
tfoot th.select-mode select {
    width: 100%;
}


/* Mailbox */

.mailbox-wrapper h1 {
  margin: 0;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  font-weight: 400;
  text-align: center;
}


/* Conversation */

.mailbox-wrapper .add-contacts-link {
  margin: 0 auto;
  text-align: center;
}
.mailbox-wrapper .add-contacts-link a,
.mailbox-wrapper .back-link-container a {
  text-decoration: none;
}
.mailbox-wrapper .add-contacts-link a {
  letter-spacing: 1px;
  word-spacing: 0.125rem;
}
.mailbox-wrapper .back-link-container {
  margin-bottom: 1rem;
}
.quick-send-form fieldset a.pure-button {
  margin-top: 0.5rem;
}


/* Inbox Message (Used by Mailbox and Conversation) */

.inboxMessage {
  width: 100%;
}
.inboxMessage:first-of-type {
  margin-top: 2rem;
}
.inboxMessage:not(:last-of-type) {
  margin-bottom: 1rem;
}
.inboxMessage:last-of-type {
  margin-bottom: 2rem;
}
.inboxMessage tr td {
  padding: 1rem 0;
  border: none;
}
.inboxMessage tr td:first-of-type {
  width: 6rem;
}
.inboxMessage tr td:nth-of-type(2) {
  width: 14rem;
}
.inboxMessage tr td:nth-of-type(3) {
  text-align: left;
}
.inboxMessage tr td:last-of-type {
  width: 4rem;
}


/* Send Email / Send SMS */

.send-form fieldset select,
.send-form fieldset input[type="text"] {
  margin-bottom: 1rem;
}
.send-form fieldset a.pure-button:first-of-type {
  margin-top: 1.5rem;
}
.send-form fieldset a.pure-button:not(:first-of-type) {
  margin-top: 0.5rem;
}


/* Diagnostics */

.tblFaultCodes tbody tr td:last-of-type {
  padding-left: 2rem;
  text-align: left;
}


/* Schedule */

p.disclaimer {
     margin: 0 auto;
     font-style: italic;
     font-size: 0.9rem;
     margin-top: 0.5rem;
}

.tblSchedule {
    table-layout: fixed;
}
.tblSchedule tbody tr td:first-of-type {
  padding-left: 4rem;
  text-align: left;
}
.tblSchedule tbody tr td:last-of-type {
  padding-right: 4rem;
  text-align: right;
}
.tblSchedule tbody tr td:nth-of-type(2) {
    text-align: left !important;
}
.tblSchedule tbody tr td:nth-of-type(3) div {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.tblSchedule td div ul,
.tblSchedule td div ul li {
    width: 100%;
}
.tblSchedule td div ul li {
    text-align: right;
}
.tblSchedule tbody td img.calendar-plus {
  height: 24px;
  width: 24px;
}
.tblSchedule td li,
.tblSchedule td li a {
    vertical-align: baseline;
    padding: 0;
    margin: 0;
}
.tblSchedule td li a {
    margin-left: 0.5rem;
    font-weight: bold;
}
.tblSchedule td li a:hover {
    cursor: pointer;
}

.cbRepeat {
    padding-top: 1rem;
}
.cbRepeat:hover {
    cursor: pointer;
}
.cbRepeat,
.cbRepeat input {
    vertical-align: baseline;
}
.cbRepeat input {
    width: 1rem !important;
    margin-bottom: 0 !important;
}


/* Contacts */

.tblContacts h1 {
  font-size: 1.25rem;
  font-weight: 400;
  text-align: center;
}
.tblContacts h2 {
  font-size: 1rem;
  font-weight: 300;
  text-align: center;
}

.tblContacts thead tr th:first-of-type,
.tblContacts tbody tr td:first-of-type {
    padding-left: 4rem;
    text-align: left;
}
.tblContacts thead tr th:last-of-type,
.tblContacts tbody tr td:last-of-type {
    padding-right: 4rem;
    text-align: right;
}

td.contact-buttons a:first-of-type:not(:last-of-type) {
  margin-right: 1rem;
}


/* Settings */

.tblSettingsSettings tbody tr:last-of-type td {
  padding-bottom: 0.75em;
}
.tblSettingsSettings tbody tr:first-of-type td {
    padding-top: 0.75em;
}


.preferences-wrapper {
    border: none !important;
}

.pure-form label.wifiSecurityMessage {
    margin-top: 0.5rem;
}


/* Media Queries */

@media screen and (max-width: 1076px) {
  .content {
    padding: 0;
  }
  .content p.disclaimer {
      width: 90%;
      margin: inherit auto;
      font-size: 0.9rem;
      line-height: 1.25rem;
  }
  .content table {
    width: 90%;
    margin: 0 auto;
  }
  .back-link-container,
  .quick-send-form,
  .send-form {
    width: 90%;
    margin: auto;
  }
}

@media screen and (max-width: 768px) {
  .content {
    font-size: 1.5rem;
    line-height:1.0rem;
  }
  .remodal {
    width: 95%;
    font-size: 0.9rem;
  }
  .inboxMessage tr td {
    font-size: 0.9rem;
  }
  .inboxMessage tr td:first-of-type {
    width: 5rem;
  }
  .tblFaultCodes thead tr th,
  .tblSchedule thead tr th,
  .tblContacts thead tr th,
  .tblFaultCodes tbody tr td,
  .tblSchedule tbody tr td,
  .tblContacts tbody tr td {
    padding: 0.5rem 0.75rem !important;
  }
  .tblSchedule tbody tr td:first-of-type,
  .tblSchedule tbody tr td:last-of-type,
  .tblContacts tbody tr td:first-of-type,
  .tblContacts tbody tr td:last-of-type,
  .tblContacts thead tr th:first-of-type,
  .tblContacts thead tr th:last-of-type {
    padding: 0.5rem 1rem !important;
  }
  .tblSchedule{
      table-layout: auto;
  }
}

@media screen and (max-width: 414px) {
  .remodal {
    width: 98%;
  }
  .content table {
    width: 95%;
  }
  .content p.disclaimer {
      width: 95%;
      font-size: 0.8rem;
      line-height: 1.25rem;
  }
  .inboxMessage tr {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
  }
  .inboxMessage tr td {
    display: block;
    padding: 0;
  }
  .inboxMessage tr td:last-of-type {
    padding-bottom: 0.5rem;
  }
  .inboxMessage tr td p {
    width: 100%;
    margin: 1rem 0;
    text-align: center;
    word-break: break-word;
  }
  .back-link-container {
    margin-top: 1rem;
    text-align: center;
  }
  .tblContacts tbody tr td:nth-of-type(2) {
    width: 9.5rem;
  }
  .tblFaultCodes tbody td {
      font-size: 1.25rem;
  }
  .tblSchedule tbody td {
      font-size: 0.75rem;
  }
  .tblSchedule tbody td a {
      font-size: 1rem;
      line-height: 0.75rem;
  }
}
