/* Imports required to make everything work */
@import '/admin/library/styles/base-min.css';
@import '/admin/library/styles/boilerplate-min.css';
@import '/admin/library/fonts/font-awesome/font.css';
@import '/admin/library/fonts/open-sans/font.css';

body {
  font: normal normal 16px/1em "Open Sans", Helvetica,Arial,sans-serif;
  color: #000000;
  background: #FFFFFF;
}

/****************************************
* Typography
****************************************/

h3 {
  font-size: 25px;
  font-weight: 600;
}

h4 {
  font-size: 28px;
}

strong {
  font-weight: 600;
}

a {
  color: #bd1c0c;
  white-space: nowrap;
}

a:hover {
  color: #000000;
}

/****************************************
* Header
****************************************/

.header {
  height: 170px;
}

.header .right {
  float: right;
}

#logo img {
  margin-bottom: 0;
}

/****************************************
* Navigation
****************************************/

.navigation span {
  color: #000;
}

.navigation input {
  margin: 0;
  width: 180px;
  background: #FFFFFF;
  border-top-right-radius: 2px;
  border-bottom-right-radius: 2px;
  padding: 0.75rem 0.5rem 0.5rem 0.5rem;
  margin-left: -5px;
  border-left: 1px solid #CCC;
  line-height: 23px;
}

.navigation select {
  margin: 0;
  width: 180px;
  background: #FFFFFF;
  border-top-left-radius: 2px;
  border-bottom-left-radius: 2px;
  padding: 0.7rem 0.5rem 0.5rem 0.5rem;
}

.navigation select option {
  color: #000;
}

.navigation td {
  vertical-align: middle;
}

.navigation .search-icon {
  font-size: 20px;
  color: #CCC;
  margin-left: -30px;
}

.navigation-buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.navigation-buttons .button.small {
  width: auto;
  height: auto;
}

/****************************************
* Callout
****************************************/

.callout {
  background-color: #FFFFFF;;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

.callout .header {
  background-color: #6EB1B7;
  width: 100%;
  padding-left: 1rem;
  vertical-align: middle;
  height: 64px;
}

.callout .header p,
.callout .header h3 {
  color: #FFFFFF;
  margin: 0;
  display: inline-block;
}

.callout .header h3 {
  line-height: 64px;
}

.callout .content {
  padding: 1rem 1.5rem;
}

.callout iframe {
  margin: 0rem -1.5rem -1.2rem -1.5rem;
  width: calc(100% + 3rem);
}



/****************************************
* Action Bar
****************************************/

.action-bar {
  background: #6EB1B7;
  padding: 0.5rem 0;
  text-align: center;
}

.action-bar p {
  color: #FFFFFF;
  margin: 0;
}

/****************************************
* Message
****************************************/

#message {
  text-align: center;
  color: #FFF;
  font-weight: bold;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0.8;
  display: none;
}

#message.on {
  display: block;
  animation: fadeOut 0.5s ease-in 5s forwards;
  animation-fill-mode: forwards;
}

#message.success {
  background: green;
}

#message.error {
  background: red;
}

#message p {
  padding: 10px 0px;
  margin: 0;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    display: none;
  }
}

/****************************************
* Data
****************************************/

.data {
  border-collapse: collapse;
  width: 100%;
}

.data td,
.data th {
  border-bottom: 1px solid #ddd;
  padding: 8px;
  background-color: #FFFFFF;
}

.data tr:hover {
  background-color: #ddd;
}

.data th {
  border-bottom: 1px solid #ddd;
  text-align: left;
  font-weight: bold;
  color: #FFFFFF;
  background: #6EB1B7;
}

.data th:first-of-type {
  border-top-left-radius: 2px;
}

.data th:last-of-type {
  border-top-right-radius: 2px;
}

.data.list td,
.data.list th {
  border: none;
  padding: 0;
  background-color: #FFFFFF;
}

.data.list td {
  vertical-align: middle;
}

.data td.name {
  max-width: 325px;
}

.data td.phone {
  max-width: 130px;
}

/****************************************
* Inputs/Forms
****************************************/

input,
input:focus,
select,
select:focus {
  border: none;
  border-bottom: 1px solid #AAA;
  border-radius: 0;
}

select {
  background: #FFFFFF;
}

input:not(:disabled) {
  transition: 0.5s border-bottom-color;
}

input:focus {
  border-bottom-color: #03A9F4;
}

form:not(.editable) * {
  /*
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  */
}

select:disabled::-ms-expand {
  display: none;
}

.editable .hide-editable {
  display: none;
}

form:not(.editable) .show-editable,
.item-container.edit:not(.editable) .show-editable{
  display: none;
}

/* Placeholder */

.placeholder {
  position: relative;
  margin: 0;
  display: inline-block;
  width: 32%;
  vertical-align: top;
}

.placeholder.half {
  width: 49%;
}

.placeholder.full {
  width: 100%;
}

.placeholder + .placeholder {
  margin-left: 5px;
}

form > .placeholder:first-child {
  margin-top: 1rem;
}

.placeholder input,
.placeholder select,
.placeholder textarea {
  padding: 0;
  margin: 0.5rem 0;
  text-align: left;
  background: #FFFFFF;
  padding-left: 5px;
  border: none;
  border-bottom: 1px solid #000;
  height: 39px;
  line-height: 1.2em;
  padding: 0.5rem;
  border-radius: 0;
  vertical-align: top;
  transition: all 0.3s;
}

.placeholder > a {
  display: inline-block;
  height: 39px;
}

.placeholder select {
  padding: 5.5px 0.5rem;
  cursor: pointer;
}

.placeholder input:focus,
.placeholder select:focus,
.placeholder textarea:focus {
  border-color: #3CF;
}

.placeholder input:disabled,
.placeholder select:disabled,
.placeholder textarea:disabled {
  border-color: #dddddd;
  cursor: not-allowed;
  -webkit-appearance: none;
    -moz-appearance: none;
}

.placeholder span {
  position: absolute;
  top: 4px;
  left: 5px;
  font-size: 10px;
  background: #FFF;
  line-height: 1em;
  padding: 0 2px;
  pointer-events: none;
}

.placeholder .js-tel-link[data-telephone-number] input:disabled {
  color: #bd1c0c;
  text-decoration: underline;
  cursor: pointer;
}

/****************************************
* Buttons
****************************************/

.button {
  background: #BD1B0C;
  color: #FFFFFF;
  display:block;
}

.button[href=""] {
  display: none;
}

.button:hover {
  background: #103174;
  color: #FFFFFF;
}

.button.small {
  padding: 0.5rem;
  font-size: 45px;
  background: none;
  position: relative;
  border-radius: 0;
  transition: 0.3s color, background 0.3s;
  margin: 0;
  background: #BD1B0C;
  color: #FFFFFF;
  height: 64px;
  width: 64px;
  vertical-align: middle;
  display: inline-block;
}

.button.small span {
  font-size: 36px;
  color: #FFF;
  width: auto;
  height: auto;
  line-height: 50px;
  display: block;
}

.button.small + .button.small {
  margin-left: 0.5rem;
}

.button.small:hover {
  background: #103174;
}

.button.small.alt {
  background: #103174;
}

.button.small.alt:hover {
  background: #BD1B0C;
}

.button.tiny {
  margin: 0;
  font-size: 26px;
  line-height: 23px;
  height: 30px;
  width: 30px;
  color: #FFF;
  border-radius: 2px;
  display: inline-block;
  padding: 0;
  background: #BD1B0C;
  vertical-align: middle;
  margin-top: 8px;
  display: inline-block;
}

.button.tiny i {
  vertical-align: middle;
}

.button.tiny:hover {
  background: #103174;
}

/****************************************
* Item Container
****************************************/

.item-container {
  max-height: 1000px;
  height: 100%;
  overflow: hidden;
  transition: all 0.5s;
  position: relative;
  border-top: 1px dashed #000000;
  padding-top: 0.75rem;
}

.item-container.off,
.item-container + .item-container.off {
  max-height: 0;
  padding: 0;
}

.item-container .actions {
  position: absolute;
  right: 0;
  top: 5px;
}

.item-container .button.tiny {
  margin-top: 0;
}

/****************************************
* Lightbox
****************************************/

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  z-index: 100;
}

.lightbox.on {
  display: block;
  background: rgba(0,0,0,0.5);
}

.lightbox img {
  max-height: 80vh;
  max-width: 80vw;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.lightbox a {
  color: #FFFFFF;
  font-size: 45px;
  float: right;
  margin: 1rem 1rem 0 0;
  transition: color 0.3s;
}

.lightbox a:hover {
  color: #CCC;
}

.lightbox a.delete {
  color: #BD1B0C;
}

.lightbox a.delete:hover {
  color: #721006;
}

/****************************************
* Photo Container
****************************************/

.photo-container {
  text-align: center;
  margin-bottom: 1rem;
}

.photo-container:empty {
  display: none;
}

.photo-container .container {
  width: 30%;
  margin: 1%;
  display: inline-block;
  border: 1px solid #AAA;
  background-size: cover;
  background-position: center;
  height: 150px;
  vertical-align: top;
  cursor: pointer;
}

/****************************************
* Data Service
****************************************/

#data-service td {
  white-space: nowrap;
}

#data-service td.description,
#data-service td[data-field="description"] {
  white-space: normal;
}

/****************************************
* Footer
****************************************/

.footer,
.attribution {
  background: #F2F2F2;
  height: 34px;
  padding: .5rem;
}

.attribution p {
  margin: 0;
  text-align: center;
  font-size: 12px;
}

/****************************************
* Misc.
****************************************/

.interior,
.exterior,
.interior .primary,
.exterior .primary {
  background: #FBFAF6;
}

#main-content {
  height: 100%;
}

.primary {
  padding-bottom: 1.5rem;
}

.hide-results {
  display: none;
}

#iframe-container iframe[src] {
  height: 30vh;
  width: 30vw;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#error-message:empty {
  display: none;
}

.no-padding {
  padding: 0 !important;
}

.hidden {
  display: none !important;
}

.column:empty {
  display: none;
}

.center {
  vertical-align: middle;
}