:root {
  --font-family: Inter,Helvetica,Arial,sans-serif;
  --font-family--header: Inter,Helvetica,Arial,sans-serif;
  --card-background: #f7f7f8;
  --navbar-background: #f3f4f6;
  --pankow-text-color: black;
}

@media (prefers-color-scheme: dark) {
  :root {
    --card-background: #15181f;
    --navbar-background: #11161f;
    --pankow-dialog-background-color: var(--navbar-background);
    --pankow-color-background: var(--navbar-background);
    --pankow-text-color: white;
  }
}

html, body {
  font-size: 14px; /* this also defines the overall widget size as all sizes are in rem */
  font-family: var(--pankow-font-family);
  font-weight: var(--pankow-font-weight-normal);
  height: 100%;
  width: 100%;
  padding: 0;
  margin: 0;
  color: var(--pankow-text-color);
  background-color: white;
  background-position: center;
  background-size: cover;
}

@media (prefers-color-scheme: dark) {
  body {
    background-color: black;
  }
}

.shadow {
  box-shadow: 0 2px 5px rgba(0,0,0,.1);
}

#app {
  height: 100%;
}

strong {
  font-weight: var(--pankow-font-weight-bold);
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-family--header);
  font-weight: var(--pankow-font-weight-bold);
}

h1 {
  margin-top: 18px;
  margin-bottom: 18px;
}

h2 {
  font-size: 24px;
  margin-top: 18px;
  margin-bottom: 18px;
}

a {
  text-decoration: none;
  color: var(--pankow-color-primary);
}

fieldset {
  border: none;
  margin: 0;
  padding: 0;
}

hr {
  border: 0;
  border-top: 1px solid #d8dee4;
}

@media (prefers-color-scheme: dark) {
  hr {
    border-top-color: #495057;
  }
}

.content {
  max-width: 900px;
  width: 100%;
  position: absolute;
}

.content-large {
  max-width: 1280px;
  width: 100%;
  position: absolute;
}

.header {
  margin-top: 50px;
  padding-left: 15px;
  padding-right: 15px;
}

.header-with-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slide-left-enter-active,
.slide-left-leave-active {
  transition: all 0.25s ease-out;
}

.slide-left-enter-from {
  opacity: 0;
  transform: translateY(30px);
}

.slide-left-leave-to {
  opacity: 0;
}

a.pankow-breadcrumb-item {
  color: var(--pankow-text-color);
  text-decoration: none;
}

/* those two are to align with the header bars */
.pankow-sidebar-close-action {
  top: 15px;
}

.pankow-sidebar-open-action {
  top: 18px;
}

.pankow-checkbox {
  margin: 8px 0;
}

form .pankow-checkbox {
  margin: 20px 0 8px 0;
}

.pankow-form-group > .pankow-checkbox {
  margin: 8px 0;
}

.pankow-table-header-column {
  border-bottom-color: transparent;
}

.pankow-dialog {
  width: min(600px, 95%);
}

/* status classes for circle indicators */
.status-active {
  color: #27CE65;
}

.status-inactive {
  color: #7c7c7c;
}

.status-starting {
  color: #f0ad4e;
}

.status-error {
  color: #ec534f;
}

/* generic text modifiers */
.text-success {
  color: #5CB85C;
}

/* use this to get the color. to show a warning below input elements use .warning-label instead */
.text-warning {
  color: #8a6d3b;
}

.text-danger {
  color: var(--pankow-color-danger);
}

.text-bold {
  font-weight: 500;
}

.text-small {
  font-size: 12px;
}

.text-muted {
  opacity: 0.5;
}

/* use this to show warnings below input elments. for just the color, use .text-warning instead */
.warning-label {
  margin-top: 6px;
  color: #8a6d3b;
  font-weight: var(--pankow-font-weight-bold);
  font-size: 12px;
}

.error-label {
  margin-top: 6px;
  color: var(--pankow-color-danger);
  font-weight: var(--pankow-font-weight-bold);
  font-size: 12px;
}

.view-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  margin-right: 10px;
  margin-left: 10px;
  margin-bottom: 10px;
  gap: 5px;
}

.view-header > div {
  display: flex;
  gap: 6px;
}

.button-bar {
  display: flex;
  gap: 6px;
/*  flex-direction: row-reverse;*/
  margin-top: 6px;
}

.table-actions {
  display: flex;
  gap: 5px;
  justify-content: end;
}

.pankow-table-row .pankow-table-cell .table-actions .pankow-button {
  visibility: hidden;
}

.pankow-table-row .pankow-table-cell .table-actions .pankow-button:last-of-type,
.pankow-table-row:hover  .pankow-table-cell .table-actions .pankow-button {
  visibility: visible;
}

/* info table label:value in Sections */
.info-row {
  display: flex;
  gap: 15px;
  margin-bottom: 10px;
  justify-content: space-between;
}

.info-label {
  font-weight: var(--pankow-font-weight-bold);
  text-wrap: nowrap;
}

.info-value {
  text-overflow: ellipsis;
  overflow: hidden;
  text-wrap: nowrap;
}

.actionable {
  cursor: pointer;
  color: var(--pankow-color-primary);
}

.actionable:hover {
  color: var(--pankow-color-primary-hover);
}

.collapse {
  transition: transform 200ms linear;
}

.collapse.expanded {
  transform: rotate(90deg);
}

/* Animations */
.slide-fade-enter-active {
  transition: all 0.2s ease-out;
}

.slide-fade-leave-active {
  transition: all 0.2s cubic-bezier(1, 0.5, 0.8, 1);
}

.slide-fade-enter-from,
.slide-fade-leave-to {
  transform: translateX(20px);
  opacity: 0;
}

.slide-up-enter-active,
.slide-up-leave-active {
  transition: all 0.15s ease-in-out;
}
.slide-up-enter-from {
  opacity: 0;
  transform: translateY(30px);
}
.slide-up-leave-to {
  opacity: 0;
  transform: translateY(-30px);
}

.fade-scale-enter-active {
  transition: all 0.2s ease-out;
}

.fade-scale-leave-active {
  transition: all 0.2s cubic-bezier(1, 0.5, 0.8, 1);
}

.fade-scale-enter-from,
.fade-scale-leave-to {
  transform: scale(0.95);
  opacity: 0;
}

.helper-text {
  font-size: 0.9em;
  color: #2d2323;
  margin-top: 0.25em;
}

@media (prefers-color-scheme: dark) {
  .helper-text {
    color: #927f7f;
  }
}

.input-group-label {
  display: flex;
  padding: 5px;
  border-top: solid 1px var(--pankow-input-border-color);
  border-bottom: solid 1px var(--pankow-input-border-color);
}
