.Page--embed .Page-content {
  padding: 0.2em;
}

.Page-title {
  margin: .7rem 0;
}

.Container {
  overflow: visible;
}

.Services {
  list-style-type: none;
  padding-left: 0;
  display: grid;
  grid-auto-flow: row;
  grid-gap: 2px;
  border-radius: 1em;
  overflow: hidden;
  background: #c2c2c2;
  border: 1px solid #c2c2c2;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.05);
}

.Service {
  width: 100%;
  grid-template-columns: 1fr 1fr;
  grid-auto-flow: row;
  padding: 0.6em;
  line-height: 1.5em;
  background: #fefefe;
  position: relative;
}

.Service:last-child {
  border-bottom: none;
}

.Service-checks {
  float: right;
  position: absolute;
  right: 0;
  top: 0.5em;
}

.Service-status {
  text-align: right;
  font-weight: 500;
}

.Service-check {
  width: 1.2em;
  background: #e1e4e8;
  height: 1.2em;
  border-radius: 1em;
  margin: 0.1em 1em;
  display: inline-block;
  vertical-align: middle;
}

.Service-check.is-critical {
  background: #ff4444;
}

.Service-check.is-warning {
  background: #ffff00;
}

.Service-check.is-ok {
  background: #44ff44;
}

.Service-check.is-unknown {
  background: #4444ff;
}

.Service.is-critical .Service-status {
  color: #e74c3c;
}

.Service.is-warning .Service-status {
  color: #f1c40f;
}

.Service.is-ok .Service-status {
  color: #28a745;
}

.Service.is-unknown .Service-status {
  color: #1111ee;
}

/* Service ordering (commented first, then order of severity) */
.Service.is-ok {
  order: 4;
}

.Service.is-warning {
  order: 3;
}

.Service.is-unknown {
  order: 2;
}

.Service.is-critical {
  order: 1;
}

.Service.has-comments {
  order: 0;
}

.ServiceGroup-title {
  font-weight: bold;
  font-size: 1.2em;
  margin: 0.5em 0;
}

.Tip-header {
  font-weight: bold;
  border-bottom: 1px solid #fff;
  padding: 0.2em;
}

.Tip-body {
  font-size: 0.9em;
  margin-top: 0.2rem;
}

.Service-data {
  width: 100%;
  text-align: left;
  table-layout:fixed;
  background: #fff;
  border-collapse: collapse;
  margin-top: 0.4em;
  border-radius: 0.3em;
  border-style: hidden;
  box-shadow: 0 0 0 1px #e1e4e8;
  font-size: 0.9em;
}

.Service-data th, .Service-data td {
  border: 1px solid #e1e4e8;
  padding: 0.2em;
}

.Service-data th {
  font-weight: bold;
}

div.google-visualization-tooltip {
  padding: 0.5em;
  font-size: 0.8em;
  max-width: 30em;
}

#timestamp {
  animation: slideInLeft 0.5s linear;
}

@keyframes slideInLeft {
  0% { transform: translateX(-100%) }
  100% { transform: translateX(0) }
}

body.js-hideWorking .Service.is-ok {
  display: none;
}

.ControlButton {
  margin: 0 0.3em;
  font-size: 0.9em;
  text-decoration: none;
  padding: 0.4em;
  color: #012f5f;
  background-color: #fff;
  border: 1px solid #012f5f;
  border-radius: 50%;
  transform: rotate(0.000001deg);
}

.is-hidden {
  display: none !important;
}

.Comments {
  grid-column: auto / span 2;
}


/* dumping area (fix later) */
.Service {
  padding: 0;
}

.Service-name, .Service-status {
  padding: 1em;
}

.Comment, .Ticket {
  padding: 1em;
  border-top: 1px solid #e1e4e8;
}

.Comment-header, .Ticket-header {
  display: flex;
  justify-content: space-between;
}

.Comment-time, .Ticket-time {
  font-weight: bold;
}

.Comment-title, .Ticket-title {
  font-size: 1.1em;
  font-weight: bold;
  line-height: 1.4em;
}

.Comment-body, .Ticket-body {
  padding: 0.2em;
  line-height: 1.3em;
}

.Comment-footer, .Ticket-footer {
  min-height: 1em;
  margin: 0.5em 0;
}

.Comment-ticketRef, .Ticket-ticketRef {
  font-style: italic;
  font-size: 0.9em
}

.Comment-extras a {
    color: #026cda;
    text-decoration: none;
}

.Form--aligned .Form-input {
  display: block;
}

.ql-editor {
  font-size: 1.1em;
}

/* Restore predictable behaviour within comment editor results */
.Comment p, .Ticket p {
  margin: 0.2em 0;
}
.Comment ol, .Comment ul {
  padding-left: 0;
  margin-left: 1.7em;
  text-indent: 0.5em;
  line-height: 1.5em;
}

.Comment ol {
  list-style-type: decimal;
}

em {
  font-style: italic;
}

.Form-input.ql-container {
  margin-top: 0;
}

.Comment-serviceName {
  float: right;
  text-align: right;
  font-weight: bold;
  color: #012f5f;
}

.Page--embed .Page-header {
  display: none;
}

@media(max-width: 692px) {
  .Service {
    margin: 0;
    border: none;
  }
}

.DataTable-row--headingSecondary {
  background: #cecece;
  font-weight: bold;
}

.PublicTickets {
  margin-bottom: 3em;
}


.DetailSet.DetailSet--secondary details {
  box-shadow: none;
  margin: 0;
}


@media screen and (min-width: 680px) {
  .Header-banner {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }
  
  .Header-main {
    width: 100%;
  }
  
  .Header-title {
    transform: translateX(-50%);
  }
  
}