:root {
  --background-color: rgb(26, 26, 26);
  --second-background-color: rgb(182, 182, 182);
  --main-color: white;
  --accent-color: rgb(5, 2, 182);
  --second-accent-color: rgb(124, 171, 207);
  --second-accent-color-half: rgba(124, 171, 207, 0.5);
  --warning-color: red;
  --warning-color-half: rgba(255, 0, 0, 0.5);
  --header-height: 50px;
  --main-font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--background-color);
  color: var(--main-color);
  font-family: var(--main-font);
}

body button,
body input {
  font-family: var(--main-font);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1;
  font-size: 0;
  display: grid;
  grid-auto-flow: column;
  gap: 2px;
  background-color: var(--accent-color);
  overflow-x: auto;
}

.header button {
  padding: 0 20px;
  margin: 0;
  border: none;
  outline: none;
  border-bottom: 2px solid transparent;
  border-top: 4px solid transparent;
  border-radius: 0;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  background-color: var(--second-background-color);
  color: var(--accent-color);
  transition: 50ms linear;
}

.header button:hover,
.header button:focus,
.header button.selected {
  border-bottom-color: var(--accent-color);
  opacity: 0.8;
}

.header button:active {
  border-bottom: 4px solid var(--accent-color);
}

.header button.notification::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--warning-color);
  position: absolute;
  animation: infinite headerButtonNotification 0.8s linear(0 0%, 0 100%);
}

@keyframes headerButtonNotification {
  from {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.content {
  position: fixed;
  left: 0;
  width: 100%;
  height: calc(100% - var(--header-height));
  top: var(--header-height);
}

.content > * {
  width: 100%;
  height: 100%;
}

.mapPage iframe {
  width: 100%;
  height: 100%;
}

.mapPage input {
  position: fixed;
  bottom: 10px;
  left: 10px;
  height: auto;
  width: auto;
  border: none;
  background-color: var(--second-background-color);
  color: var(--accent-color);
  outline: none;
  font-size: 16px;
  font-weight: 700;
  padding: 10px;
}

.searchCarPage .resultContainer,
.searchPedPage .resultContainer {
  width: calc(100% - 60px);
  margin: 30px;
  height: calc(100% - 60px - 42px - 20px);
  overflow-y: auto;
}

.searchCarPage .resultContainer .name,
.searchPedPage .resultContainer .name,
.shiftPage .title {
  width: auto;
  height: auto;
  font-size: 32px;
  font-weight: 800;
}

.searchPedPage .citationArrestContainer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  height: auto;
  margin: 15px;
  margin-top: 50px;
  width: calc(100% - 40px);
}

.searchPedPage .citationArrestContainer .informationLabel {
  width: calc(100% - 10px);
}

.searchPedPage .reportContainer .searchCharge {
  margin: 2px;
  width: calc(100% - 10px - 4px - 4px);
}

.alphabetPage .container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  height: calc(100% - 20px);
  margin: 20px;
  width: calc(100% - 40px);
}

.alphabetPage .container .name {
  font-size: 32px;
  font-weight: 800;
  width: auto;
  height: auto;
}

.alphabetPage .container .label {
  height: auto;
  overflow-y: auto;
  overflow-x: hidden;
}

.alphabetPage .container .list {
  font-family: monospace;
  margin-left: 10px;
  margin-top: 10px;
  margin-bottom: 10px;
  height: auto;
}

.alphabetPage .container .item {
  font-size: 20px;
  font-weight: 600;
  display: flex;
  width: fit-content;
  height: auto;
}

.alphabetPage .container .list .letter {
  color: var(--second-accent-color);
  margin-right: 10px;
}

.searchPedPage .reportContainer .result .btn {
  font-size: 16px;
  font-weight: 400;
  font-family: monospace;
  padding: 5px;
  border: none;
  color: var(--main-color);
  outline: none;
  cursor: pointer;
  transition: 50ms linear;
  background-color: transparent;
  width: calc(100% - 10px);
  margin: 5px;
  text-align: left;
}

.searchPedPage .reportContainer .result .btn:hover,
.searchPedPage .reportContainer .result .btn:focus {
  background-color: var(--warning-color-half);
}

.searchPedPage .reportContainer .result .btn::before {
  content: '• ';
}

.searchPedPage .citationReport .result .charges,
.searchPedPage .arrestReport .result .charges {
  overflow: auto;
  height: 50%;
}

.courtPage .list .title {
  font-size: 32px;
  font-weight: 800;
  margin: 20px;
}

.courtPage .informationLabelContainer:not(:last-child) {
  padding-bottom: 15px;
  border-bottom: 2px solid var(--second-accent-color-half);
}

.courtPage .list {
  height: calc(100% - 82px);
  overflow-y: auto;
}

/* for old court data */
.courtPage summary {
  margin: 0;
  cursor: pointer;
  outline: none;
}
.courtPage summary::marker {
  color: var(--second-accent-color);
}

.courtPage details div {
  margin-left: 21px;
}

.shiftPage .btnContainer button:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

.shiftPage .currentShift {
  display: flex;
  flex-wrap: wrap;
  margin: 15px;
  width: auto;
  height: auto;
  gap: 20px 50px;
}

.shiftPage .currentShiftNotes {
  background-color: transparent;
  color: var(--main-color);
  border: var(--second-accent-color) 2px solid;
  outline: none;
  font-size: 20px;
  font-weight: 400;
  resize: none;
  height: 250px;
  width: 250px;
  padding: 10px;
}

.shiftPage .shiftNotes,
.courtPage .description {
  font-family: monospace;
  background-color: transparent;
  color: var(--main-color);
  border: var(--second-accent-color) 2px solid;
  outline: none;
  font-size: 20px;
  font-weight: 400;
  resize: none;
  height: fit-content;
  width: fit-content;
  padding: 10px;
}

.shiftPage .courtCaseValue {
  cursor: pointer;
}

.shiftPage .courtCaseValue::before {
  content: '• ';
  transition: 50ms linear;
}

.shiftPage .courtCaseValue:hover::before {
  color: var(--second-accent-color);
}

.shiftPage .list .informationLabelContainer:not(:first-child) {
  border-top: 2px solid var(--second-accent-color-half);
  padding-top: 15px;
}

.shiftPage .title {
  margin-left: 15px;
}

.shiftPage {
  overflow-y: auto;
}

.shiftPage .incidentReport {
  margin: 0;
  padding: 20px;
}

.shiftPage .incidentReport .headerButtonContainer {
  margin-bottom: 10px;
}

.shiftPage .incidentReport .options .line {
  margin: 10px 2px;
  width: calc(100% - 4px);
  height: 2px;
  background-color: var(--second-accent-color-half);
}

.shiftPage .incidentReport .result #incidentNumber {
  font-family: monospace;
  height: auto;
  width: calc(100% - 10px - 4px - 10px);
  font-size: 20px;
  font-weight: 600;
  padding: 5px;
  margin: 5px;
  border: 2px solid var(--second-accent-color);
  background-color: var(--background-color);
  color: var(--main-color);
  outline: none;
  transition: 50ms linear;
}

.shiftPage .incidentReport .result #incidentDescription {
  position: relative;
  font-family: monospace;
  height: calc(100% - 172px);
  min-height: 250px;
  width: calc(100% - 10px - 4px - 10px);
  font-size: 16px;
  font-weight: 400;
  padding: 5px;
  margin: 5px 5px 0 5px;
  border: 2px solid var(--second-accent-color);
  background-color: var(--background-color);
  color: var(--main-color);
  outline: none;
  transition: 50ms linear;
  white-space: pre-wrap;
}

.shiftPage .incidentReport .result .incidentDescriptionPlaceholder {
  font-family: monospace;
  font-size: 16px;
  font-weight: 400;
  opacity: 0.5;
  margin: 0 12px;
  position: absolute;
  z-index: 2;
  transform: translateY(10px);
  pointer-events: none;
}

.shiftPage .incidentReport .result #incidentDescription span.link {
  border-bottom: 1px solid var(--second-accent-color-half);
  color: var(--second-accent-color);
  cursor: pointer;
  transition: 50ms linear;
}

.shiftPage .incidentReport .result #incidentDescription span.link:hover {
  border-color: var(--second-accent-color);
}

.shiftPage
  .incidentReport
  .result.disabled
  > :not(.headerButtonContainer):not(.incidentDescriptionPlaceholder) {
  opacity: 0.5;
  cursor: not-allowed;
}

.shiftPage .incidentReport .result.disabled {
  cursor: not-allowed;
}

.overlay .incidentReportLinkSuggestions {
  position: absolute;
  background-color: var(--background-color);
  border: 2px solid var(--second-accent-color);
  padding: 5px;
  max-height: 200px;
  overflow: auto;
}

.overlay .incidentReportLinkSuggestions > div {
  pointer-events: all;
  cursor: pointer;
  transition: 50ms linear;
}

.overlay .incidentReportLinkSuggestions > div.focused {
  color: var(--second-accent-color);
}

.overlay .incidentReportLinkSuggestions > div:hover {
  color: var(--second-accent-color);
}

/* remove border radius on iOS */
input {
  border-radius: 0;
}

.overlay {
  position: fixed;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 3;
}

.currentID {
  pointer-events: all;
  position: fixed;
  right: 20px;
  bottom: 20px;
  height: 200px;
  width: 350px;
  background-color: var(--second-background-color);
  padding: 5px 15px 15px 15px;
  border-radius: 10px;
  transform-style: preserve-3d;
}

.currentID .title {
  display: grid;
  grid-auto-flow: column;
  border-bottom: 2px solid var(--accent-color);
}

.currentID .title .sa {
  color: var(--accent-color);
  font-size: 26px;
  font-weight: 700;
}

.currentID .title .dl {
  color: var(--accent-color);
  font-size: 20px;
  font-weight: 600;
  align-self: center;
}

.currentID .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 10px;
}

.currentID .container img {
  width: 154px;
  aspect-ratio: 1/ 1;
  align-self: center;
}

.currentID .properties {
  color: var(--background-color);
  align-self: center;
  font-size: 18px;
  font-weight: 600;
}

.currentID .properties * {
  margin-bottom: 5px;
}

.currentID .properties :before {
  content: attr(data-before);
  color: var(--accent-color);
  margin-right: 5px;
}

.currentID .closeCurrentID,
.currentID .nextCurrentID {
  font-size: 16px;
  font-weight: 400;
  font-family: monospace;
  padding: 5px;
  border: 2px solid var(--warning-color);
  border-radius: 0;
  color: var(--main-color);
  outline: none;
  cursor: pointer;
  background-color: transparent;
  text-align: left;
}

.currentID .nextCurrentID {
  border-color: var(--second-accent-color);
}

.currentID .closeCurrentID:hover {
  background-color: var(--warning-color-half);
}

.currentID .nextCurrentID:hover {
  background-color: var(--second-accent-color-half);
}

.currentID .backgroundWrapper {
  position: absolute;
  display: grid;
  grid-template-columns: 1fr max-content max-content;
  gap: 5px;
  top: 0;
  border-radius: 5px 5px 0 0;
  background-color: var(--background-color);
  width: calc(100% - 30px - 10px);
  height: 35px;
  padding: 5px;
  transform: translateZ(-1px);
  transition: 200ms ease-out;
}

.currentID:hover .backgroundWrapper {
  top: -45px;
}

.currentID .currentIDPedType {
  font-family: monospace;
  font-size: 16px;
  font-weight: 400;
  width: fit-content;
  align-self: center;
}

.showCurrentID-container {
  position: fixed;
  background-color: var(--background-color);
  z-index: 2;
  bottom: 10px;
  right: 10px;
}

.showCurrentID {
  pointer-events: all;
  font-size: 16px;
  font-weight: 400;
  font-family: monospace;
  padding: 5px;
  border: 2px solid var(--second-accent-color);
  color: var(--main-color);
  outline: none;
  cursor: pointer;
  transition: 50ms linear;
  background-color: transparent;
  text-align: left;
}

.showCurrentID:hover {
  background-color: var(--second-accent-color-half);
}

.currentID .hideCurrentID {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 16px;
  font-weight: 400;
  font-family: monospace;
  padding: 5px;
  border: 2px solid var(--warning-color);
  color: var(--background-color);
  outline: none;
  cursor: pointer;
  transition: 50ms linear;
  background-color: transparent;
  opacity: 0;
}

.currentID:hover .hideCurrentID {
  opacity: 1;
}

.currentID .hideCurrentID:hover {
  background-color: var(--warning-color-half);
}

.overlay .customizationLink {
  position: absolute;
  bottom: 15px;
  left: 15px;
  color: var(--second-accent-color);
  font-size: 16px;
  font-weight: 400;
  font-family: monospace;
  padding: 2px;
  pointer-events: all;
  background-color: var(--background-color);
}

.calloutPage .informationLabelContainer {
  margin: 20px;
  display: grid;
  grid-auto-flow: column;
}

.calloutPage .calloutDetails {
  background-color: var(--background-color);
  color: var(--main-color);
  border: 2px solid var(--second-accent-color);
  font-family: monospace;
  font-size: 20px;
  padding: 10px;
  font-weight: 400;
  line-height: 1.6;
  margin: 20px;
  margin-top: 5px;
  width: calc(100% - 40px - 20px - 4px);
  height: calc(100% - 25px - 20px - 63px - 40px);
  resize: none;
}

.calloutPage .calloutDetails .systemMessage {
  opacity: 0.5;
}

.calloutPage .title {
  font-size: 32px;
  font-weight: 800;
  margin: 20px;
}

.warnCustomFilesPopUp {
  position: fixed;
  background-color: var(--background-color);
  width: 300px;
  bottom: 10px;
  right: 10px;
  border: 2px solid var(--warning-color-half);
  padding: 5px;
  pointer-events: all;
}

.warnCustomFilesPopUp button {
  display: block;
  font-size: 16px;
  font-weight: 400;
  font-family: monospace;
  padding: 5px;
  border: 2px solid var(--second-accent-color);
  color: var(--main-color);
  outline: none;
  cursor: pointer;
  transition: 50ms linear;
  background-color: transparent;
  width: 100%;
  text-align: left;
  margin-top: 5px;
}

.warnCustomFilesPopUp button:hover {
  background-color: var(--second-accent-color-half);
}

.warnCustomFilesPopUp .text {
  font-size: 16px;
  font-weight: 400;
  text-align: justify;
  margin: 0 2px;
}

.warnCustomFilesPopUp a {
  color: var(--second-accent-color);
}

/* overwrite */
.hidden {
  display: none;
  visibility: hidden;
}
