.gpscom-button {
  font-family: secondary-font, sans-serif;
  font-size: 1em;
  display: inline-flex;
  border: none;
  border-radius: 6px;
  padding: 6px 16px;
  overflow: hidden;
  cursor: pointer;
  color: #fff;
  background-color: var(--accent-background);
  text-decoration: none;
  line-height: 1;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}
.gpscom-button:hover {
  background-color: #a03;
  color: #fff;
}
.gpscom-button:disabled {
  background-color: #ccc !important;
}
.gpscom-button img {
  height: 1em;
}

.gpscom-button-like {
  display: inline-flex;
  padding: 6px 0;
}

.gpscom-input-like {
  display: block;
  border-radius: 6px;
  border: 1px solid #ccc;
  background-color: #fff;
  position: relative;
  margin-bottom: 12px;
  padding: 20px 5px 5px 5px;
}
.gpscom-input-like::before {
  content: attr(displayed-label);
  position: absolute;
  font-size: 0.7em;
  left: 5px;
  top: 3px;
  color: #777;
  pointer-events: none;
}
.gpscom-input-like.gpscom-limited {
  max-height: 200px;
  overflow-y: auto;
}
.gpscom-input-like > * {
  font-size: 0.9em;
}
.gpscom-input {
  display: block;
  border-radius: 6px;
  border: 1px solid #ccc;
  background-color: #fff;
  position: relative;
  margin-bottom: 12px;
}
.gpscom-input::before {
  content: attr(displayed-label);
  position: absolute;
  font-size: 0.7em;
  left: 5px;
  top: 3px;
  color: #777;
  pointer-events: none;
}
.gpscom-input input,
.gpscom-input select,
.gpscom-input textarea {
  width: 100%;
  padding: 20px 5px 5px 5px;
  border: none;
  outline: none;
  background: none;
  resize: vertical;
  box-sizing: border-box;
  font-family: inherit;
}
.gpscom-input option {
  padding: 0; /*fix for firefox*/
}
.gpscom-input-appendix {
  max-height: 300px;
  overflow-y: auto;
}
.gpscom-input-appendix > div > div {
  margin: 2px;
}
.gpscom-input > .gpscom-input-optionarea {
  position: absolute;
  right: 5px;
  top: 13px;
}
.gpscom-input:focus-within {
  border-color: var(--accent-background);
}

.gpscom-input-combo {
  display: inline-flex;
  vertical-align: bottom;
  border-radius: 6px;
  background-color: #ddd;
  position: relative;
}
.gpscom-input-combo::before {
  content: attr(displayed-label);
  position: absolute;
  font-size: 0.7em;
  left: 3px;
  top: -1px;
  color: #777;
  pointer-events: none;
}
.gpscom-input-combo[displayed-label] > :first-child {
  padding: 8px 5px 2px 5px;
}
.gpscom-input-combo > :first-child {
  background: none;
  border: none;
  padding: 5px 5px 5px 5px;
  border-radius: 6px 0 0 6px !important;
  border: 1px solid #ccc;
  border-right: none;
  background-color: white;
}
.gpscom-input-combo > :last-child {
  border-radius: 0 6px 6px 0 !important;
}
.gpscom-input-combo > select {
  appearance: none;
}

.gpscom-card {
  border-radius: 12px;
  box-shadow: 0px 1px 4px 3px rgba(0, 0, 0, 0.2);
  background-color: #fff;
}

.gpscom-container {
  padding: 12px;
}

.gpscom-topbar {
  padding: 0 12px;
  overflow: visible;
}
.gpscom-topbar > h3 {
  margin: 0;
  padding: 1em 0;
}

.gpscom-canvas {
  padding: 10px;
  display: grid;
  grid-template-columns: auto auto auto;
  grid-gap: 10px;
}

.gpscom-content-centered {
  text-align: center;
}
.gpscom-content-right {
  text-align: right;
}

.gpscom-header {
  background-color: #fff;
  /* border-top: 4px solid #ddd; */
  grid-area: gHeader;
  display: flex;
}
.gpscom-header > :first-child {
  flex-grow: 1;
}

.gpscom-right {
  float: right;
  margin-left: 4px;
}

.gpscom-menu {
  display: inline-flex;
  z-index: 100;
}
.gpscom-menu.gpscom-right .gpscom-submenu-content {
  right: 0;
}
.gpscom-menu a {
  text-decoration: none;
  font-size: 0.8em;
  text-transform: uppercase;
  background-color: #fff;
  color: #111;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  transition: background-color 0.2s ease-in-out;
}
.gpscom-menu a:hover {
  background-color: var(--accent-background);
  color: var(--accent-color);
}
.gpscom-menu > img {
  height: 31px;
  margin: 0 10px;
}
.gpscom-menu span {
  display: inline-flex;
  align-items: center;
}

.gpscom-submenu {
  position: relative;
  display: inline-flex;
  z-index: 1000;
}
.gpscom-submenu:hover .gpscom-submenu-content {
  display: block;
}
a.gpscom-submenu-face {
  display: flex;
  align-items: center;
}
.gpscom-submenu-face::after {
  content: url(/img/ico/triangle-down.svg);
  height: 1em;
  width: 1em;
  background-color: var(--accent-background);
  display: inline-block;
  border-radius: 2px;
  margin-left: 3px;
  vertical-align: bottom;
}
.gpscom-submenu-content {
  display: none;
  position: absolute;
  top: 100%;
  box-shadow: 2px 2px 4px #888;
  background-color: #fff;
}
.gpscom-submenu-content a {
  display: block;
}

.gpscom-leftmenu {
  max-height: 50%;
  overflow-y: auto;
  grid-area: gMenu;
}
@media only screen and (min-width: 450px) {
  .gpscom-leftmenu {
    max-height: 100%;
  }
}

.gpscom-layout-narrow {
  display: block;
  padding: 10px;
  margin: 0;
}
@media only screen and (min-width: 450px) {
  .gpscom-layout-narrow {
    margin: auto;
    max-width: 450px;
  }
  .gpscom-layout-2 {
    display: grid;
    grid-template-columns: 250px auto;
    grid-template-rows: max-content auto;
    grid-template-areas:
      "gHeader gHeader"
      "gMenu gContent";
    height: 100%;
  }
}
.gpscom-layout-3 {
  display: grid;
  grid-template-columns: auto;
  grid-template-rows: max-content max-content auto;
  grid-template-areas: "gHeader";
  height: 100%;
}

.gpscom-inline {
  display: inline-flex;
}

.gpscom-red {
  background-color: #cc0000;
  border: 1px solid #cc0000;
  color: #ddd;
}
.gpscom-amber {
  background-color: #ff9900;
  border: 1px solid #ff9900;
  color: #222;
}
.gpscom-blue {
  background-color: #003399;
  border: 1px solid #003399;
  color: #ddd;
}
.gpscom-green {
  background-color: #006622;
  border: 1px solid #006622;
  color: #ddd;
}
.gpscom-white {
  background-color: #ffffff;
  border: 1px solid var(--accent-background);
  color: #222;
}
.gpscom-white-noborder {
  background-color: #ffffff;
  border: 1px solid transparent;
  color: #222;
}
.gpscom-grey {
  background-color: #eee;
  border: 1px solid #eee;
  color: #222;
}
.gpscom-dark {
  background-color: #555;
  border: 1px solid #555;
  color: #eee;
}

.gpscom-text-accent {
  color: var(--accent-background);
}
.gpscom-text-white {
  color: #fff;
}

.gpscom-tag {
  font-size: 0.75em;
  line-height: 1.5em;
  margin: 0 3px;
  padding: 0 3px;
  border-radius: 6px;
  box-sizing: border-box;
  display: inline-flex;
}

.gpscom-table {
  border-collapse: collapse;
  margin: auto;
  line-height: 1.5;
}
.gpscom-table thead th {
  background-color: #555;
  border: 1px solid #555;
  color: #eee;
}
.gpscom-table tbody tr:nth-of-type(2n) {
  background-color: #eee;
}
.gpscom-table td,
.gpscom-table th {
  padding: 2px 8px;
  border: 1px solid #bbb;
}
.gpscom-table tbody tr:hover {
  outline: 1px solid var(--accent-background);
}
.gpscom-table-sticky > th {
  position: sticky;
  top: 0;
}

.gpscom-quickbutton {
  text-decoration: none;
  background-color: var(--accent-background);
  color: #fff !important;
  border-radius: 2px;
  display: inline-flex;
  cursor: pointer;
  min-width: 1em;
  height: 1em;
  padding: 2px;
  vertical-align: bottom;
}
.gpscom-quickbutton img {
  max-height: 1em;
  display: inline-block;
}

.gpscom-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #00000080;
  z-index: 2000;
  display: none;
}
.gpscom-modal > .gpscom-card {
  margin: 4px;
  max-height: 100%;
  overflow-y: auto;
}
@media only screen and (min-width: 450px) {
  .gpscom-modal > .gpscom-card {
    max-width: 400px;
    margin: 50px auto;
  }
  .gpscom-modal.gpscom-wide > .gpscom-card {
    max-width: 850px;
  }

  .gpscom-modal.gpscom-superwide > .gpscom-card {
    max-width: 1200px;
  }
}

.gpscom-toast {
  position: fixed;
  top: -300px;
  left: 0;
  right: 0;
  max-width: 500px;
  margin: auto;
  z-index: 3000;
  transition: top 0.5s ease-in-out;
}

.gpscom-info-card {
  margin-bottom: 8px;
  padding: 4px 0;
  line-height: 1.3em;
}

.gpscom-info-card div:first-child {
  font-weight: bold;
}

.gpscom-circle {
  min-width: 18px;
  height: 18px;
  display: inline-block;
  text-align: center;
  border-radius: 9px;
  box-sizing: border-box;
  font-size: 10px;
  padding: 1px;
}

.gpscom-progress {
  position: relative;
  height: 6px;
  margin: 4px 0;
  border: 1px solid var(--main-bg-color) !important;
  border-radius: 3px;
  background-color: var(--light-object-border);
}
.gpscom-progress div {
  position: absolute;
  box-sizing: border-box;
  border-radius: 3px;
  height: 100%;
  left: 0;
  width: 0;
  border: none !important;
  transition: width 0.2s ease-in-out;
  background-color: var(--object-color);
}

@media only screen and (max-width: 450px) {
  .gpscom-hide-mobile {
    display: none;
  }
}

*[tooltip]:hover {
  position: relative;
  overflow: visible;
}
*[tooltip]:hover::before {
  font-size: 12px;
  line-height: 1.2;
  font-weight: initial;
  content: attr(tooltip);
  background: #222;
  border: 1px solid #555;
  border-radius: 3px;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
  color: #eee;
  padding: 3px 6px;
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translate(-50%);
  z-index: 2500;
  pointer-events: none;
}

.gpscom-badge {
  position: relative;
}
.gpscom-badge::after {
  content: attr(data-badge);
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 0.7em;
  background: green;
  color: white;
  width: 18px;
  height: 18px;
  text-align: center;
  line-height: 18px;
  border-radius: 50%;
}

.gpscom-inline-textbox {
  font-family: inherit;
  border: none;
  border-bottom: 1px solid var(--accent-background);
  border-radius: 3px;
  background: #eee;
  padding: 1px 3px;
  /*width: 50px;*/
}

.gpscom-notification-panel {
  position: fixed;
  right: 20px;
  z-index: 3001;
}
.gpscom-notification {
  margin: 0 0 8px auto;
  width: max-content;
}
.gpscom-notification > div {
  max-width: 250px;
  line-height: 1.5;
  padding: 0 6px;
}
.gpscom-notification > div:first-child {
  font-weight: bold;
}
.gpscom-notification > div:last-child {
  background-color: #fff;
  color: #555;
}

.gpscom-fab {
  /*fix text line height*/
  overflow: hidden;
  cursor: pointer;
  color: #fff;
  background: var(--accent-background);
  position: fixed;
  font-size: 32px;
  padding: 8px;
  bottom: 10px;
  left: 50%;
  border-radius: 48px;
  box-shadow: 1px 4px 5px 2px rgba(0, 0, 0, 0.4);
  z-index: 3000;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}
.gpscom-fab:hover {
  background-color: #a03;
  color: #fff;
}
.gpscom-fab img {
  height: 40px;
}

.gpscom-list-item {
  text-decoration: none;
  cursor: pointer;
  display: block;
  margin-bottom: 4px;
  border: 1px solid #ccc;
  line-height: 2.5em;
  border-radius: 6px;
  /* background-color: #fff;  */
  color: #000;
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.gpscom-list-item:hover {
  background-color: #ddd;
  color: #333;
}

.gpscom-list-item input[type="checkbox"],
.gpscom-list-item input[type="radio"] {
  vertical-align: middle;
  width: 1em;
  height: 1em;
  margin: 0 0.25em;
}

hr {
  border: none;
  border-top: 2px solid #bbb;
}
hr:before {
  content: attr(displayed-label);
  font-size: 0.85em;
}

@media only screen and (min-width: 450px) {
  .gpscom-columns-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .gpscom-columns-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
  }
  .gpscom-columns-6 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    gap: 6px;
  }
}

.gpscom-scan {
  cursor: pointer;
  font-size: 12px;
  display: block;
  margin-bottom: 4px;
  border: 1px solid cornflowerblue;
  border-radius: 6px;
  background-color: #fff;
  color: #000;
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}
.gpscom-scan:hover {
  background-color: #ddd;
  color: #333;
}
.gpscom-scan input[type="checkbox"],
.gpscom-scan input[type="checkbox"] input[type="radio"] {
  vertical-align: middle;
  width: 1em;
  height: 1em;
  margin: 0 0.25em;
}
.gpscom-scan > div {
  line-height: 1.5;
  padding: 0 3px;
}
.gpscom-scan > div:first-child {
  background-color: cornflowerblue;
  color: #fff;
}
.gpscom-scan > div:last-child {
  background-color: #eee;
  border-radius: 0 0 3px 3px;
}

.gpscom-clickable {
  cursor: pointer;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}
.gpscom-clickable:hover {
  background-color: var(--accent-background);
  color: #fff;
}

.gpscom-sort-order-img {
  height: 1em;
  display: inline-block;
  vertical-align: middle;
}

.gpscom-tab-strip {
  display: flex;
  font-family: secondary-font;
  font-weight: 600;
}

.gpscom-tab-strip > * {
  display: flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid #ccc;
  background-color: var(--light-object-border);
  border-bottom: none;
  border-right: none;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.gpscom-tab-strip > *:hover {
  background-color: var(--accent-background);
  color: #fff;
}

.gpscom-tab-strip > :first-child {
  border-radius: 6px 0 0 0;
}

.gpscom-tab-strip > :last-child {
  border-right: 1px solid #ccc;
  border-radius: 0 6px 0 0;
}

.gpscom-tab-strip::after {
  content: "";
  flex-grow: 1;
  border-bottom: 1px solid #ccc;
}

.gpscom-tab-content {
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 6px 6px;
}

.gpscom-tab-content > * {
  display: none;
}

.gpscom-tab-content > :first-child {
  display: block;
}

.gpscom-tab-selected {
  background-color: var(--main-bg-color);
}