body {
  --border-color: #e3e3e3;
}

div .sv-container {
  background: white;

  margin-bottom: 2rem;
  font-size: 0.8rem;
  border: solid 1.5px var(--border-color) !important;
}

.sv-search input {
  background: white !important;
}

@media (max-width: 44em) {
  div .sv-container {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
  }

  div .sv-container > div {
    padding-left: 2.2rem;
  }
}

.sv-gap-2 {
  column-gap: 0.4rem;
}

.sv-search {
  margin-bottom: 0.2rem !important;
}

.sv-container h3 {
  display: inline-block;
  color: #007060 !important;
}

.sv-container p {
  margin: 0;
}

.sv-container > div {
  padding: 0.8rem;
}

.sv-container > div:nth-child(1) {
  padding-bottom: 0.2rem;
}
.sv-container > div:nth-child(2) {
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
}
.sv-container > div:nth-child(3) {
  padding-top: 0.2rem;
}

.sv-container .span2 {
  grid-column: span 2;
}

.sv-container .border {
  border-top: solid var(--border-color) 1.5px;
}

.sv-container .border + .border {
  border-left: solid var(--border-color) 1.5px;
}

@media (min-width: 44em) {
  div .sv-container {
    display: grid;
    grid-template-columns: 3.5fr 3.5fr 1fr 3fr;
    grid-template-rows: min-content min-content;
  }

  .sv-container > div:nth-child(1),
  .sv-container > div:nth-child(2),
  .sv-container > div:nth-child(3) {
    padding: 0.8rem;
  }
}

/* search bar */

.sv-search-simple {
  display: flex;
  flex-flow: row wrap;
  align-items: flex-end;
  row-gap: 1rem;
  /* gap: 1rem; */
}

#sv-search-simple-button {
  margin-right: 0.4rem;
}

.sv-search-simple > div {
  margin-right: 1rem;
}

.sv-line {
  width: 25ch;
  border-color: #007060;
}

.sv-line-mobile {
  margin-bottom: 3rem;
  margin-top: 30px;
}

#top #sv-sendungsnummer,
#top #sv-status {
  border: 1.5px solid var(--border-color);
  border-color: var(--border-color);
  background-color: white;
  color: black;

  margin: 0 !important;
}

#sv-sendungsnummer {
  width: 20ch;
}

#sv-status {
  width: 30ch;
}

.sv-dates {
  display: grid;
  grid-template: min-content 1fr / min-content auto 1fr;
  align-items: center;
}

.sv-dates:required {
  color: transparent;
}

.sv-dates input + label {
  margin: 0 0.4rem;
}

.sv-date {
  font-size: 1em;
  width: min-content;
  border: 1.5px solid var(--border-color);
  border-color: var(--border-color);
  padding: 7px 6px;
  padding-top: 6px;
  background-color: white;
  color: black;

  border-radius: 0;
}

.sv-label-title {
  grid-column: span 3;
}

.sv-page-input {
  display: none !important;
}

/* radio */

.sv-limit {
  display: none;
  font-size: 0.8rem;
  width: 100%;
  /* margin: 0.2em 0;
  margin-top: 1.4rem; */
}

@media (min-width: 44em) {
  .sv-line-mobile {
    display: none;
  }

  .sv-limit {
    display: flex;
    flex-flow: row nowrap;
  }
}

.sv-limit input {
  display: none;
}

.sv-limit label {
  margin-inline: 0.4em;
  vertical-align: bottom;
  font-size: inherit;
  cursor: pointer;
  font-weight: normal !important;
}

.sv-limit input:checked + label {
  font-weight: bolder !important;
}

/* .sv-search input[type="submit"] {
  height: initial;
  padding: 0 1rem;
  background: #ff7300 !important;
  height: 25px;
  margin-bottom: 9px;
} */

.sv-search .sv-primary-button {
  padding: 8px 1rem;

  /* font-weight: bold; */
  font-size: 1em !important;

  border: none;

  cursor: pointer;
  color: white !important;
  background: #f07d04;
  border-radius: 3px;
  font-family: "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

/* .sv-primary-button + .sv-primary-button {
  margin-left: 0.4rem;
} */

.sv-search .sv-primary-button:hover {
  color: white;
  opacity: 0.8;
}

/* Headlines etc */

.sv-container h3,
.sv-container p {
  font-size: 0.8rem;
}

.sv-container p {
  display: flex;
  flex-flow: column nowrap;
  line-height: 1.2em;
}

.sv-container div p b {
  color: black;
  margin-bottom: 0.1em;
}

/* pagination */

.sv-pagination,
.sv-pagination-list {
  white-space: nowrap;
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
}

.sv-pagination {
  justify-content: space-between;
  margin-bottom: 1rem;
  max-width: 1000px;
}

#top .sv-pagination .is-active {
  background: rgb(223, 223, 223);
}

.sv-counter {
  display: none;
}

@media (min-width: 44em) {
  #top .sv-counter {
    display: initial;
  }
}

.sv-pagination-row {
  white-space: nowrap;
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
}

.sv-last-page {
  display: none;
}

#top .sv-page-button {
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  border: none;
  background: transparent;
  color: rgb(105, 105, 105);

  cursor: pointer;

  padding: 0;
  /* display: flex;
  flex-flow: row nowrap;
  justify-content: center;
  align-items: center; */
}

#top .sv-page-button:hover {
  background: #dcdfdf;
  color: #626464;
}

#top .sv-page-button:disabled {
  color: #b8baba;
  cursor: initial;
}

#top .sv-page-button:disabled:hover {
  background: transparent;
}

.sv-table {
  overflow-x: auto;
  border-collapse: collapse;

  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 0 1rem;
}

.sv-table table {
  margin: auto;
  max-width: 2000px;
}

.sv-table th,
.sv-table td {
  border: solid 1px rgb(220, 220, 220) !important;
  background: white;
  color: black;
  font-weight: normal;
  text-transform: none;
  padding: 0.6rem 0.4rem;
  font-size: 10pt;
  font-family: "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

.sv-table th {
  font-size: 10pt;

  background: #f9f9f9;
  /* font-weight: bold; */
}

.sv-search-hidden {
  display: none;
}

.sv-link {
  /* display: block; */
  margin-top: 0.5rem;
  text-align: right;
  color: rgb(55, 147, 201) !important;
}

/* #sv-search-extended {
  margin-top: 2rem;
} */

#sv-search-extended h1 {
  text-align: center;
  margin-top: 2rem;
  font-size: 1.1rem;
}

#sv-search-extended h2 {
  text-align: center;
  /* margin-top: 2rem; */
  font-size: 1rem;
}

.sv-mb-15 {
  margin-bottom: 1.5rem;
}

.sv-search-extender {
  margin-right: 0.4rem;
}

.sv-flex {
  display: flex;
}

.sv-gap {
  gap: 1rem;
}

.sv-wrap {
  flex-wrap: wrap;
}

.sv-justify-stretch {
  justify-content: stretch;
}

.sv-justify-end {
  justify-content: flex-end;
}

.sv-items-center {
  align-items: center;
}

.sv-justify-between {
  justify-content: space-between;
}

.sv-grow1 {
  flex-grow: 1;
}

.sv-mt {
  margin-top: 2rem;
}

.sv-mb {
  margin-bottom: 2rem;
}

.sv-w-full {
  width: 100%;
}

.sv-hidden {
  display: none !important;
}

.sv-search a:hover {
  /* color: #007060 !important; */
  text-decoration: none;
}

.sv-compact-switch {
  margin-left: 0.3rem;
  color: white !important;
  text-decoration: none !important;
  padding: 0.3rem 1rem;

  background: #c6c6c6;
  cursor: pointer;
  font-family: "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

.sv-compact-switch-disabled {
  text-decoration: none;
  background: #333333;
  cursor: not-allowed;
}

.sv-ml {
  margin-left: 0.4rem;
}

.sv-receipt {
  display: block;
  margin: auto;

  max-width: 1rem;
  color: #006a5c !important;
}

/* Tooltip container */
.tooltip {
  position: relative;
  display: inline-block;
}

/* Tooltip text */
.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: #555;
  color: #fff !important;
  text-align: center;
  padding: 5px 0;
  border-radius: 6px;

  /* Position the tooltip text */
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -60px;

  /* Fade in tooltip */
  opacity: 0;
  transition: opacity 0.3s;
}

/* Tooltip arrow */
.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

input[type="date"],
focus {
  color: gray !important;
  box-shadow: none;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
}

.sv-reset[type="reset"] {
  background: #333333 !important;
}

/* Status catego filter */

.sv-extra-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0.2em 0;
  margin-top: 1.4rem;
}

#sv-speedtime {
  display: none !important;
}

.sv-completion {
  /* margin-top: 0.5rem; */
  white-space: nowrap;
}

.sv-completion label {
  cursor: pointer;
}

.sv-completion input {
  display: none;
}

.sv-completion input:checked + span {
  font-weight: bolder !important;
}

.sv-list-settings {
  margin-top: 0.5rem;
  margin-bottom: 0.8rem;
}

.sv-list-settings select {
  width: 14rem !important;
  margin: 0 !important;
}

#sv-list-settings-button {
  display: flex;
  height: 36px;
  width: 36px;
  /* max-width: min-content; */
  padding: 0;
  justify-content: center;
  align-items: center;
}

/* modal */

details.sv-modal > summary {
  list-style: none;
  display: flex;
  align-items: center;
  height: 100%;
  cursor: pointer;
  color: rgb(100, 100, 100);
}
details.sv-modal > summary::-webkit-details-marker {
  display: none;
}

details.sv-modal .background {
  z-index: 999999;
  background-color: rgba(0, 0, 0, 0.8);
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;

  display: flex;
  justify-content: center;
  align-items: center;
}

details.sv-modal .card {
  background: white;

  border-radius: 8px;
  padding: 1.5rem 1rem;
  padding-top: 0.5rem;
}

details.sv-modal .card .head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

details.sv-modal .card .head h2 {
  margin: 0 !important;
  font-size: 1.4rem !important;
}

details.sv-modal .card .head button {
  width: 32px;
  height: 32px;
  margin-left: 2.5rem;
  cursor: pointer;

  border: none;
  background: gray;
  border-radius: 8px;
  color: white;
  font-size: 1.2rem;
  font-family: "Courier New", Courier, monospace;
}

details.sv-modal .card .card-content {
  margin-top: 1.5rem;
  display: flex;
  flex-flow: column;
}

details.sv-modal .card .card-content label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

details.sv-modal .sv-list-settings-save {
  margin-top: 1rem;

  padding: 8px 1rem;
  font-weight: bold;
  font-size: 1em !important;
  border: none;
  cursor: pointer;
  color: white !important;
  background: #f07d04;
  border-radius: 3px;
  font-family: "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

.sv-spinner-bg {
  position: fixed;
  z-index: 999999999;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  display: none;
  justify-content: center;
  align-items: center;
}

.sv-spinner-box {
  background: rgba(50, 50, 50, 0.6);
  padding: 2rem;
  border-radius: 6px;
}
.sv-spinner-box h3 {
  text-align: center;
  color: white !important;
  margin-top: 2rem;
}

.sv-spinner {
  width: 200px;
  height: 200px;
  /* background-color: #0cb1c4; */
  animation-name: spin;
  animation-duration: 5000ms;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

.sv-spinner > svg {
  width: 100%;
  height: 100%;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
