@charset "utf-8";
* {
  box-sizing: border-box;
}
/*
class selector: '.'
id selector: '#'
*/
body {
  margin: 0;
  font-family: Verdana, Arial, Helvetica, sans-serif;
}
button {
  cursor: pointer;
}

/* Container for flexboxes */
.row {
  display: -webkit-flex;
  display: flex;
}

/* Create three unequal columns that sits next to each other */
.column {
  padding: 10px;
  width: 100%;
}

/* Left and right column */
.column.side {
   -webkit-flex: 1;
   -ms-flex: 1;
   flex: 1;
}
.column.desktop {
  background-color: skyblue;
}

/* Middle column */
.column.main {
  -webkit-flex: 4;
  -ms-flex: 4;
  flex: 4;
  min-width: 800px;
}

.center {
  text-align: center;
}

a {
  text-decoration: none;
}

table {
  border-collapse: collapse;
}

summary {
  list-style-type: none;
  cursor: pointer;
  background-color: #ddd;
  padding: 1em 0;
}

/*
html {
  background-color: skyblue;
}
*/

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

ul {
  list-style-type: none;
}

.desktop {
  display: inherit;
}
.mobile {
  display: none;
}

button.link {
  font: inherit;
  background: none;
  border: none;
  padding: 0;
  color: #069;
  text-decoration: underline;
  cursor: pointer;
}

.notes {
  white-space: pre-line;
  text-align: left;
}

.heading_login {
  padding-top: 4em;
}

.heading_logout {
  padding-top: 4em;
}

#background {
  background-color: white;
  max-width: 1080px;
  margin: auto;
  min-height: 100vh;
  padding-bottom: 2em;
}


/* General navigation setup for header at top */
#home_link {
  background-color: #003368;
  color: white !important;
}
#home_link img {
  height: 30px;
}

#navtop {
  overflow: hidden;
  background-color: #333;
  display: flex;
}
#navtop a {
  float: left;
  font-size: 16px;
  color: white;
  text-align: center;
  padding: 0.5em 1.5em;
  text-decoration: none;
  align-content: center;
  height: 100%;
}
#navtop .dropdown {
  float: left;
  overflow: hidden;
}
#navtop .dropdown .dropbtn {
  font-size: 16px;
  border: none;
  outline: none;
  color: white;
  background-color: inherit;
  font-family: inherit;
  margin: 0;
  padding: 0;
  height: 100%;
}
#navtop a:hover, #navtop .dropdown:hover .dropbtn {
  background-color: red;
}
#navtop .dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}
#navtop .dropdown-content a {
  float: none;
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}
#navtop .dropdown-content a:hover {
  background-color: #ddd;
}
#navtop .dropdown:hover .dropdown-content {
  display: block;
}
#navtop input {
  padding: 6px;
  margin: 8px;
  font-size: 20px;
  border: none;
  width:150px;
}
#cs_search {
  color: white;
  margin: auto;
  align-items: center;
}
#cs_search input {
  width: 80px;
}
#cs_search button {
  margin: 0;
  padding: 0.3em;
  background: transparent;
  border: none;
}
#login_container {
  color: white;
  margin-left: auto;
  display: flex;
}
#login_container div {
  margin: auto 1em;
}
#login_container form {
  height: 100%;
  display: flex;
}
#login_container form label {
  align-content: center;
  margin-right: 0.5em;
  font-size: 1.1em;
}
#login_container button {
  float: right;
  padding: 6px 20px;
  background-color: #555;
  color: white;
  font-size: 1em;
  border: none;
  cursor: pointer;
}
#login_container button:hover {
  background-color: green;
}
/* END of General navigation setup for header at top */

/* GO TO THE TOP BUTTON */
#btn2top {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 30px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: #003368;
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: 4px;
}
#btn2top:hover {
  background-color: #555;
}

button.addBtn {
  height: 36px;
  width: 36px;
  background-color: #4caf50;
  border-radius: 0.5em;
  border: none;
  margin: 0.2em;
}
button.addBtn img {
  width: 25px;
  display: flex;
  justify-self: end;
}
button.addBtn:hover {
  background-color: #3b9e3f;
}
button.downloadBtn {
  height: 36px;
  width: 36px;
  background-color: #ccc;
  border-radius: 0.5em;
  border: none;
  margin: 0.2em;
}
button.downloadBtn img {
  width: 25px;
  display: flex;
  justify-self: end;
}
button.downloadBtn:hover {
  background-color: #bbb;
}
button.editBtn {
  height: 36px;
  width: 36px;
  background-color: #6699ce;
  border-radius: 0.5em;
  border: none;
  margin: 0.2em;
}
button.editBtn img {
  width: 25px;
}
button.editBtn:hover {
  background-color: #5588bd;
}
button.deleteBtn {
  height: 36px;
  width: 36px;
  background-color: #ff4d4d;
  border-radius: 0.5em;
  border: none;
  margin: 0.2em;
}
button.deleteBtn img {
  height: 25px;
}
button.deleteBtn:hover {
  background-color: #ee3c3c;
}

/* GENERIC MAIN CONTENT WRAPPER */
#container {
  position: relative;
  width: 100%;
  display: flex;
  min-height: 100vh;
}

#home_start_form {
  width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
}

#main_selectsite {
  width: 100%;
  padding: 1em;
  border: none;
  border-radius: 0.3em;
  font: inherit;
  background-color: #ccc;
}

button#add_site {
  background-color: #4CAF50;
  border-radius: 0.5em;
  margin-left: 0.5em;
  padding: 0;
}
button#add_site:hover {
  background-color: green;
}
#add_site img {
  width: 20px;
  margin: 1em;
  display: flex;
}
.home_button {
  margin: auto;
  width: 100%;
}

/* Styling for index.html's Search items */
.search {
  background-color: #f2f2f2;
  margin: 2em 1em;
  border: 2px solid #ccc;
  border-radius: 1em;
}
.search form {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0.3em 1em;
}
.search form label {
  margin-bottom: 0.5em;
}
.search form input[type="text"] {
  margin-bottom: 1em;
  padding: 0.5em;
}

.oneline {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.oneline input {
  width: 50%;
}
/* END of Styling for index.html's Search items */

#heading_site_city, #heading_site_callsign {
  display: block;
  font-size: 2em;
  margin-top: 0.67em;
  margin-bottom: 0.67em;
  margin-left: 0;
  margin-right: 0;
  font-weight: bold;
}

#ip_info {
  margin-top: 1em;
}

/******* Start of COLLAPSIBLE styling *******/
/* Removes the indented padding that is
   automatically added on the left of lists */
#menutree, #asset_history, #asset_repairs {
  padding: 0 0.5em;
}

#menutree label, #asset_history label, #asset_repairs label {
  display: none;
  width: 100%;
  cursor: pointer;
  border: 1px solid black;
  border-radius: 1em;
  padding: 0.2em;
  margin: 0.3em auto;
  font-size: 1.5em;
}

  #menutree .collapse.side_by_side {
    display: inline-block;
    width: 48%;
    vertical-align: top;
  }

#menutree input[type=checkbox], #asset_history input[type=checkbox], #asset_repairs input[type=checkbox] {
  display: none; /* Hide ugly checkbox */
}

/* Hide and collapse by default */
#menutree li.collapse ul, #asset_history li.collapse ul, #asset_repairs li.collapse ul {
  visibility: inherit;
  opacity: 1;
  max-height: none;
  transition: inherit;
}
#menutree label::after {
  position: absolute;
  top: 0;
  transition: all 0.2s;
}

#asset_history label::after {
  position: absolute;
  top: 0;
  transition: all 0.2s;
}
#asset_repairs label::after {
  position: absolute;
  top: 0;
  transition: all 0.2s;
}

/* Show when checked */
#menutree li.collapse input:checked ~ ul {
  visibility: visible;
  opacity: 1;
  max-height: 100%; /* Just give a big enough height for animation */
}

/* Show when checked */
#asset_history li.collapse input:checked ~ ul {
  visibility: visible;
  opacity: 1;
  max-height: 100%; /* Just give a big enough height for animation */
}

/* Show when checked */
#asset_repairs li.collapse input:checked ~ ul {
  visibility: visible;
  opacity: 1;
  max-height: 100%; /* Just give a big enough height for animation */
}

li.collapse input[type="checkbox"]:empty ~ label {
  background-color: powderblue;
}

li.collapse input[type="checkbox"]:checked ~ label {
  background-color: white;
}

li.collapse li h1, li.collapse li h2 {
  margin: auto;
}
/******** END of COLLAPSIBLE styling ********/

ul.onecontact li:last-child {
  padding-bottom: 1em;
  border-bottom: 2px solid #ccc;
}

li.contact_name {
  display: flex;
  justify-content: center;
  padding-top: 1.5em;
}
li.contact_name h1 {
  flex-grow: 1;
}

#contact_add_view {
  display: flex;
  justify-content: space-evenly;
}

form.site_report_listing {
  display: flex;
  justify-content: center;
  margin: 0.5em auto;
}
form.site_report_listing button:first-of-type {
  color: white;
  background-color: #003368;
  border: none;
  border-radius: 0.4em;
  display: inline-flex;
  padding: 0 1em;
  height: 36px;
}
form.site_report_listing button:first-of-type div {
  margin: auto;
}
form.site_report_listing button:first-of-type img {
  width: 20px;
  height: 20px;
  margin: auto auto auto 1em;
}
form.site_report_listing button:nth-of-type(2) {
  margin: 0 0 0 1em;
}

.upload_photo {
  display: flex;
  flex-direction: column;
  max-width: 300px;
  margin: 2em auto auto;
}

.upload_photo textarea {
  max-height: 100px;
}

.photo_gallery, .data_files {
  border: 1px solid #ccc;
  background-color: #f2f2f2;
  border-radius: 1em;
  margin-top: 2em;
  padding: 2em;
}
.photo_desktop {
  display: inline-flex;
  flex-wrap: wrap;
}
.photo_desktop li.desktop {
  display: block;
  width: 100%;
}

.photo {
  margin: 1.5em auto;
}

form.photoForm {
  display: flex;
  justify-content: space-evenly;
}

#site_form, #contact_form {
  width: 380px;
  margin: auto;
  display: flex;
  flex-direction: column;
  text-align: left;
  padding-bottom: 2em;
  margin-bottom: 2em;
}

.desktop_half {
  width: 48%;
  margin: auto;
  display: inline-block;
  flex-direction: column;
  text-align: left;
  padding-bottom: 2em;
  vertical-align: top;
}
.desktop_half input[type="checkbox"] {
  width: 10%;
  height: 25px;
}
.desktop_half label, .desktop_half input, .desktop_half select, .desktop_half textarea {
  font: inherit;
  padding: 0.5em;
  display: block;
  width: 80%;
  margin: auto;
}

.sta_alert {
  background-color: #f0f0f0;
  border-radius: 0.5em;
  margin-bottom: 1em;
  border: 1px solid #aaa;
}

.sta_alert form {
  text-align: left;
  padding-left: 1em;
}

.sta_alert form label {
  display: inline-block;
  width: 80%;
}

.sta_alert p {
  text-align: left;
  margin: 0 auto 1em 1em;
}

.sta_alert h2 {
  margin: auto;
}

/* START OF BASIC_FORM STUFF */
form.basic_form {
  width: 380px;
  margin: auto;
  display: flex;
  flex-direction: column;
  text-align: left;
  padding-bottom: 2em;
  margin-bottom: 2em;
}

form.basic_form label {
  margin-top: 1em;
  margin-bottom: 0.3em;
}

form.basic_form input, form.basic_form select {
  font: inherit;
  padding: 0.5em;
}

/* END OF BASIC_FORM */


#contact_form {
  border-bottom: 2px solid black;
}

#ip_info_full {
  display: flex;
  flex-direction: row;
}
#ip_info_form {
  width: 100%;
  flex-direction: column;
  display: flex;

  & input, & select {
    font: inherit;
    padding: 0.5em;
  }
  & .ip_info_half {
    flex-direction: column;
    display: flex;
    text-align: left;
    width: 50%;
    padding: 1em 2em;
  }
}

#site_form label, #contact_form label, #ip_info_form label, .desktop_half label {
  margin-top: 1em;
  margin-bottom: 0.3em;
}

.desktop_half input, .desktop_half select,
#site_form input, #site_form select,
#contact_form input, #contact_form select {
  font: inherit;
  padding: 0.5em;
}

#site_form_submit {
  margin: 1em auto;
}

#city_state {
  display: flex;
  flex-direction: column;
}

.coords_container, #erp {
  border: 1px solid #ccc;
  border-radius: 0.5em;
  margin: 1em 0em;
  padding: 0em 1em 1em;
}

.coords_container p, #erp p {
  text-align: center;
}

.coords_container div, #erp div {
  flex-direction: row;
  display: flex;
  justify-content: space-between;
  padding-bottom: 0.5em;
}

.coords_container input, .coords_container select, #erp input {
  width: 50%;
}

#erp label {
  flex-grow: 1;
  text-align: center;
  margin: auto;
}

.disconnect_site {
  display: flex;
  flex-direction: row;
  border: 1px solid grey;
  border-radius: 1em;
  background-color: #f2f2f2;
  margin: 1em;
  padding: 0.5em;
  justify-content: space-evenly;
}
.disconnect_site label {
  margin: auto 0em;
}

#delete_contact {
  margin: 0em 1em 1em;
}

.phone {
  display: flex;
  flex-direction: column;
}

/********** BUTTON MODIFICATIONS ************/
.basic_button {
  font: inherit;
  padding: 0.5em 1em;
  border-radius: 0.5em;
}

.grey_button {
  background-color: #B3B3B3;
}

.green_button {
  background-color: #4CAF50;
  color: white;
}

.red_button {
  background-color: #FF4D4D;
  color: white;
}

.grey_button:hover {
  background-color: #8c8c8c;
}

.green_button:hover {
  background-color: #367C39;
}

.red_button:hover {
  background-color: #F00;
}

.half_button {
  display: flex;
  border-radius: 0.5em;
  padding: 0.5em;
  font: inherit;
  width: 50%;
  margin: auto;
}

.full_button {
  display: flex;
  border-radius: 0.5em;
  padding: 0.5em;
  font: inherit;
  width: 100%;
  margin: auto;
  justify-content: center;
}

.two_buttons {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.two_buttons input, .two_buttons button {
  width: 50%;
  margin: 0 0.5em;
  border-radius: 0.5em;
  padding: 0.5em;
  font: inherit;
}

/****** INFO_LIST boxed items with darker heading ********/
ul.info_list {
  list-style-type: none;
  padding: 0em;
  margin-top: 0em;
}
ul.info_list li.box {
  display: block;
  padding: 0.1em 0em;
  margin-bottom: 1em;
  border: 2px solid black;
}
ul.info_list .info_field {
  background-color: lightgrey;
}
ul.info_list li.box div {
  padding: 0.3em 0em;
}
ul.info_list .info_notes {
  text-align: left;
  padding: 0.3em;
}
ul.info_list li small {
  margin: auto;
}

#menutree ul.info_list2 {
  list-style-type: none;
  padding: 0.3em;
  margin-top: 0em;
}
#menutree ul.info_list2 li {
  display: block;
  padding: 0.3em 0em;
}
#menutree ul.info_list2 li.box {
  display: block;
  padding: 0.1em 0em;
  margin-bottom: 1em;
  border: none;
}
#menutree ul.info_list2 .info_field {
  background-color: white;
}
#menutree ul.info_list2 .info_notes {
  text-align: left;
  padding: 0.3em;
}
#menutree ul.info_list2 li small {
  margin: auto;
}

#menutree ul.info_list2 li div.info_field {
  float: left;
  padding-right: 0.5em;
  text-align: right;
  width: 50%;
}
#menutree ul.info_list2 li div.info_value {
  text-align: left;
  display: inline-block;
  width: 50%;
}

#contact_add_site { 
  max-width: 512px;
  margin: auto;
  display: inline-flex;
}
#delete_contact, .contacts_site_list, .contactpart {
  max-width: 512px;
  margin: auto;
}

.search_result {
  display: block;
  border: none;
  margin: 0em;
  padding: 0em;
}
.search_result input, .search_result button {
  width: auto;
  font: inherit;
  padding: 0.4em 0.7em;
  border-radius: 0.3em;
  background-color: #ccc;
  margin-top: 1em;
}

.reading {
  width: 80%;
  margin: 1em auto;
}
.reading input {
  display: inline-block;
  width: 50%;
}

.tpo_half {
  width: 48%;
  margin: auto;
  display: inline-block;
  flex-direction: column;
  text-align: left;
  vertical-align: top;
}
.tpo_half label {
  font: inherit;
  padding: 0.5em;
  display: block;
  width: 80%;
  margin: 1em auto auto;
  text-align: left;
}
.tpo_half p, .tpo_half input, .tpo_half select, .tpo_half textarea {
  font: inherit;
  padding: 0.5em;
  display: block;
  width: 80%;
  margin: auto;
  text-align: left;
}
.tpo_half p, .tpo_group p {
  font-style: italic;
}

.tpo_group {
  border: 1px solid black;
  border-radius: 1em;
  padding: 0.5em 0em 1.5em;
  margin: 1em auto;
}
.tpo_group p {
  padding-left: 1.5em;
}
.tpo_group input, .tpo_group label, .tpo_group select {
  display: block;
  width: 80%;
  margin: 0.5em auto;
}

form.asset_search {
  display: flex;
  align-items: center;
  justify-content: center;
}
form.asset_search div {
  margin: 0 0.5em;
}

.sim-row {
  display: flex;
  justify-content: space-around;
}
.sim-row div {
  margin: auto;
}
.sim-row:nth-child(odd) {
  background-color: #eee;
}
.sim-ip {
  width: 15%;
}
.sim-iccid {
  width: 30%;
}
.sim-phone {
  width: 15%;
}
.sim-assigned {
  width: 20%;
}
.sim-modify {
  width: 15%;
}

#both_searches {
  display: inline-flex;
}
#both_searches .search, .search h2 {
  margin: 1em;
}

/************* START OF MOBILE VIEWPORT *************/
@media only screen and (max-width: 800px) {
  .desktop {
    display: none;
  }
  .mobile {
    display: inherit;
  }

/* TOP NAVIGATION */
  #navtop {
    flex-direction: column;
  }
  #navtop .dropdown .dropbtn {
    width: 100%;
  }
  #navtop a, #navtop input, #login_container button {
    float: none;
    text-align: left;
    display: block;
    width: 100%;
    margin: 0;
    padding: 14px;
  }
  #navtop .dropdown {
    width: 100%;
  }
  #navtop input[type=text] {
    border: 1px solid #ccc;
  }

/* LOGIN PROMPT IN TOP NAVIGATION */
  #login_container {
    margin: 0;
  }
  #login_container form {
    width: 100%;
    flex-direction: column;
  }
  #login_container form div {
    width: 50%;
    text-align: right;
  }
  #login_container form button {
    width: 50%;
  }

  .column.main {
    min-width: auto;
  }

  .row {
    -webkit-flex-direction: column;
    flex-direction: column;
  }

  #home_start_form {
    max-width: 90%;
  }

  .home_button {
    width: auto;
  }

  .search {
    margin: 1em auto;
  }

/* START OF COLLAPSIBLE MENUS - MOBILE */
  #menutree label {
    display: flex;
    justify-content: space-around;
  }
  #menutree li.collapse ul {
    visibility: hidden;
    opacity: 0;
    max-height: 0; /* CSS bug. Cannot animate height... */
    transition: all 0.2s;
  }
  #menutree .collapse.side_by_side {
    display: inherit;
    width: 100%;
  }
  #menutree ul.info_list2 {
    padding: 0em;
  }
  #menutree ul.info_list2 li {
    display: inherit;
    padding: 0em 0.3em;
  }
  #menutree ul.info_list2 li.box {
    border: 2px solid black;
  }
  #menutree ul.info_list2 li.box div {
    padding: 0.3em 0em;
  }
  #menutree ul.info_list2 li div.info_field {
    float: inherit;
    text-align: center;
    width: 100%;
  }
  #menutree ul.info_list2 li div.info_value {
    text-align: center;
    display: inherit;
    width: 100%;
  }
  #menutree ul.info_list2 .info_field {
    background-color: lightgrey;
  }
/* END OF COLLAPSIBLE MENUS FOR MOBILE */

  .photo_gallery {
    padding: 0;
    margin-top: 0;
  }
  .photo_gallery textarea {
    height: 15vw;
  }
  .photo_desktop {
    display: inherit;
  }
  .photo_desktop li.desktop {
    display: none;
  }

  #site_form, #contact_form {
    max-width: 90%;
  }

  form.basic_form {
    max-width: 90%;
  }

  #ip_info_form {
    width: 90%;
    margin: auto;
  }
  #ip_info_full {
    display: inherit;
    flex-direction: column;
  }
  #ip_info_form .ip_info_half {
    width: 100%;
    padding: inherit;
  }

  #contact_add_view button.addBtn {
    margin-bottom: 3em;
  }

  .two_buttons {
    flex-direction: column;
  }
  .two_buttons input, .two_buttons button {
    width: 80%;
    margin: 0.3em auto;
  }

  .search_result {
    display: flex;
    flex-direction: column;
    border: 2px solid #ccc;
    margin: 1em;
    padding: 1em 0em;
  }
  .search_result input, .search_result button {
    width: 220px;
    margin: auto;
    padding: 0.5em;
    font: inherit;
    border-radius: 0.3em;
    background-color: #ccc;
    margin-top: 0.5em;
  }

  .desktop_half {
    display: flex;
    min-width: 380px;
  }
  .desktop_half label, .desktop_half input, .desktop_half select, .desktop_half textarea {
    width: 100%;
  }

  .reading {
    width: 100%;
  }

  .tpo_half, .tpo_half label, .tpo_half p, .tpo_half input, .tpo_half select, .tpo_half textarea {
    width: 90%;
    display: flex;
  }

  form.asset_search div {
    margin-bottom: 1em;
  }
  form.asset_search {
    display: inherit;
  }
}
