html {
  box-sizing: border-box;
}
*,
*:before,
*:after {
  box-sizing: inherit;
}
[onClick] {
  cursor: pointer;
}
[onclick] {
  cursor: pointer;
}
label {
  user-select: none;
}
#content {
  font-family: 'nexa-bold';
}
@keyframes pulsating {
  to {
    background-color: #7d1c1c;
  }
  from {
    background-color: #c92d2d;
  }
}
#background {
  position: fixed;
  z-index: -100;
  left: 0px;
  top: 0px;
  right: 0px;
  bottom: 0px;
  background: #515151;
}
#background.pulsating {
  animation-name: pulsating;
  animation-duration: 350ms;
  animation-direction: alternate;
  animation-iteration-count: infinite;
}
#app-timers {
  padding: 32px;
}
#refresh,
#new-timer,
#new-timer-from-ticket,
#help {
  background: #fff;
  color: #000;
  padding: 16px 32px;
  border-radius: 8px;
  margin-bottom: 16px;
}
#error-container {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0px;
  bottom: 0px;
  left: 0px;
  right: 0px;
  background: rgba(0, 0, 0, 0.75);
}
#error-container.show {
  display: grid;
}
#error-container #error {
  width: 300px;
  background: #d00;
  color: #fff;
  padding: 32px;
}
#actions-settings {
  display: grid;
  justify-items: center;
  color: #fff;
  white-space: nowrap;
  margin-bottom: 32px;
  cursor: pointer;
  user-select: none;
}
#actions-settings .actions {
  display: grid;
  grid-template-columns: repeat(4, min-content);
  grid-gap: 0px 12px;
  align-items: center;
}
#actions-settings .settings {
  display: grid;
  grid-template-columns: repeat(6, min-content);
  grid-gap: 0px 12px;
  align-items: center;
}
#help-timers {
  outline: none;
}
#help-timers::backdrop {
  background-color: rgba(0, 0, 0, 0.65);
}
#help-timers div,
#help-timers td,
#help-timers li {
  font-weight: normal;
  font-family: sans-serif;
}
#help-timers td b {
  font-family: monospace;
}
#help-timers table {
  margin: 16px 0px;
}
#help-timers table td:first-child {
  padding-right: 8px;
}
#help-timers button {
  padding: 8px 16px;
}
#customers {
  display: grid;
  grid-template-columns: repeat(auto-fill, 400px);
  grid-gap: 32px;
}
#customers.individual-height .customer {
  height: min-content;
}
.customer {
  font-size: 20px;
  font-weight: bold;
  padding: 16px 24px 16px 24px;
  box-shadow: 4px 4px 24px 0px rgba(0, 0, 0, 0.75);
  background: #fff;
  border-radius: 16px;
}
.customer.collapsed .timer {
  display: none;
}
.customer.unacknowledged .name {
  background: #b22;
  color: #fff;
}
.customer.unacknowledged .name .star {
  filter: brightness(1000%);
}
.customer .name {
  display: grid;
  grid-template-columns: 1fr min-content min-content;
  background: #ffe200;
  color: #515151;
  padding: 12px 8px 8px 12px;
  border-radius: 8px;
  margin: 0px -8px 0 -8px;
  word-break: break-word;
  user-select: none;
  cursor: pointer;
  align-items: center;
}
.customer .name .num-items {
  font-size: 0.7em;
  margin-left: auto;
  margin-right: 4px;
  white-space: nowrap;
}
.customer .name .star img {
  height: 14px;
  margin-left: 4px;
}
.customer .timer {
  margin-top: 24px;
  font-size: 20px;
  color: #aaa;
  padding-bottom: 20px;
  border-bottom: 1px solid #aaa;
}
.customer .timer:last-child {
  padding-bottom: 0px;
  border-bottom: none;
}
.customer .timer .description {
  display: grid;
  grid-template-columns: 1fr min-content;
  align-items: center;
  margin-bottom: 8px;
  color: #222;
  word-break: break-word;
  user-select: none;
  cursor: pointer;
}
.customer .timer.unacknowledged .description {
  color: #fff;
  background: #b22;
  border-radius: 4px;
  padding: 8px;
  font-size: 0.85em;
}
.customer .timer .ticket-link {
  margin-top: 10px;
  margin-bottom: 20px;
  font-size: 0.85em;
}
.customer .timer .ticket-link.show {
  display: block;
}
.customer .timer .ticket-link.hide {
  display: none;
}
.customer .timer .ticket-link a {
  text-decoration: none;
  color: #fff;
  background-color: #92a059;
  padding: 6px 8px 3px 8px;
  border-radius: 4px;
}
.customer .timer .duration {
  display: grid;
  grid-template-columns: min-content 1fr min-content;
  align-items: center;
  font-size: 32px;
  user-select: none;
  position: relative;
}
.customer .timer .duration.active {
  color: #fff543;
}
.customer .timer .duration.active img.deactivated {
  display: none;
}
.customer .timer .duration.active img.active {
  display: block;
}
.customer .timer .duration.active .time {
  background: #515151;
}
.customer .timer .duration.focused:before {
  content: "";
  position: absolute;
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 8px;
  background: #ccc;
  left: -14px;
  top: 25px;
  font-size: 16px;
}
.customer .timer .duration .request-sent {
  color: #ddd;
}
.customer .timer .duration .time {
  margin-left: 8px;
  width: min-content;
  margin-top: 4px;
  margin-right: 4px;
  padding: 8px 8px 2px 8px;
  border-radius: 8px;
}
.customer .timer .duration img {
  display: none;
  height: 50px;
}
.customer .timer .duration img.deactivated {
  display: block;
}
.customer .timer .duration img.intervals {
  display: block;
  height: 20px;
  padding-top: 6px;
  cursor: pointer;
}
.customer .timer .duration img.intervals[x-intervals="0"] {
  display: none;
}
.customer .timer .intervals {
  display: none;
  align-items: center;
  grid-template-columns: min-content min-content min-content 1fr min-content;
  grid-gap: 12px 8px;
  margin-top: 8px;
  margin-bottom: 8px;
  color: #333;
  user-select: none;
  font-family: monospace;
  font-size: 0.9em;
}
.customer .timer .intervals .date {
  grid-column: 1 / -1;
  display: inline-block;
  padding: 6px;
  margin-top: 12px;
  border-radius: 4px;
  font-size: 0.8em;
  background: #555;
  color: #fff;
}
.customer .timer .intervals .time {
  display: grid;
  grid-template-columns: repeat(3, min-content);
  align-items: center;
  cursor: pointer;
}
.customer .timer .intervals .time .overlap-day {
  white-space: nowrap;
  padding: 4px;
  border-radius: 4px;
  background: #a00;
  color: #fff;
  font-size: 12px;
  margin-left: 8px;
}
.customer .timer .intervals .separator {
  grid-column: 1 / -1;
  border-bottom: 1px dotted #aaa;
}
.customer .timer .intervals .date + .separator {
  display: none;
}
.customer .timer .intervals .delete {
  cursor: pointer;
  padding-top: 4px;
  padding-bottom: 4px;
  height: 24px;
}
.customer .timer .intervals .comments {
  display: block;
  padding-top: 1px;
  margin-left: 8px;
  height: 16px;
}
.customer .timer.show-intervals .intervals {
  display: grid;
}
#timer-editor {
  display: grid;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0px;
  bottom: 0px;
  left: 0px;
  right: 0px;
  background: rgba(0, 0, 0, 0.5);
}
#timer-editor .dialog {
  display: grid;
  grid-template-columns: min-content 1fr;
  grid-gap: 8px 16px;
  box-shadow: 4px 4px 24px 0px rgba(0, 0, 0, 0.75);
  width: 400px;
  align-items: center;
  background: #fff;
  padding: 16px;
  border-radius: 8px;
  font-size: 16px;
}
#timer-editor .dialog input[type="text"],
#timer-editor .dialog select {
  width: 100%;
  box-sizing: border-box;
  font-size: 16px;
  padding: 6px;
}
#timer-editor .dialog .wide {
  grid-column: 1 / -1;
}
#timer-editor .dialog .wide .header {
  margin-top: 16px;
}
#timer-editor .dialog .wide .center {
  display: grid;
  justify-items: center;
}
#timer-editor .dialog textarea {
  width: 100%;
}
#timer-editor .dialog button {
  padding: 4px 16px;
  margin-top: 8px;
  font-size: 16px;
}
#timer-from-ticket-editor {
  display: grid;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0px;
  bottom: 0px;
  left: 0px;
  right: 0px;
  background: rgba(0, 0, 0, 0.5);
}
#timer-from-ticket-editor .dialog {
  display: grid;
  grid-template-columns: min-content 1fr;
  grid-gap: 8px 16px;
  box-shadow: 4px 4px 24px 0px rgba(0, 0, 0, 0.75);
  width: 400px;
  align-items: center;
  background: #fff;
  padding: 16px;
  border-radius: 8px;
  font-size: 16px;
  white-space: nowrap;
}
#timer-from-ticket-editor .dialog input[type="text"],
#timer-from-ticket-editor .dialog select {
  width: 100%;
  box-sizing: border-box;
  font-size: 16px;
  padding: 6px;
}
#timer-from-ticket-editor .dialog button {
  padding: 4px 16px;
  margin-top: 8px;
  font-size: 16px;
}
#interval-editor {
  display: grid;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0px;
  bottom: 0px;
  left: 0px;
  right: 0px;
  background: rgba(0, 0, 0, 0.5);
}
#interval-editor .dialog {
  display: grid;
  grid-template-columns: min-content 1fr;
  grid-gap: 4px 16px;
  box-shadow: 4px 4px 24px 0px rgba(0, 0, 0, 0.75);
  width: 500px;
  background: #fff;
  padding: 16px;
  border-radius: 8px;
  font-size: 16px;
}
#interval-editor .dialog input[type="datetime-local"] {
  min-width: 100px;
  font-size: 16px;
  padding: 6px;
}
#interval-editor .dialog input[type="datetime-local"]:invalid {
  background: #ffd5d5;
}
#interval-editor .dialog .center {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
}
#interval-editor .dialog textarea {
  width: 100%;
  box-sizing: border-box;
}
#interval-editor .dialog button {
  padding: 4px 16px;
  margin-top: 8px;
  font-size: 16px;
}
#menu-finish-timer .menu {
  display: grid;
  margin-bottom: 16px;
  border: 1px solid #ccc;
  background: #fff;
  font-size: 16px;
  color: #333;
}
#menu-finish-timer .menu div {
  padding: 16px;
  user-select: none;
  border-bottom: 1px solid #ccc;
}
#menu-finish-timer .menu div:last-child {
  border-bottom: none;
}
#menu-finish-timer .menu div:hover {
  background: #eee;
}
@media only screen and (max-width: 600px) {
  #timer-editor {
    grid-template-columns: 1fr;
  }
  #timer-editor .dialog {
    margin: 32px;
    width: inherit;
  }
  #interval-editor {
    grid-template-columns: 1fr;
  }
  #interval-editor .dialog {
    margin: 32px;
    width: inherit;
  }
}
@media only screen and (max-width: 450px) {
  #customers {
    grid-template-columns: inherit;
  }
}
