/* Utilities */

.nowrap {
  white-space: nowrap;
}

/* General Styles */

html {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: #fff;
}

h1 {
  margin: 20px 0;
  text-align: center;
}

button {
  cursor: pointer;
}

.btn-group-xs > .btn,
.btn-xs {
  padding: 0.125rem 0.25rem;
  font-size: 0.8rem;
  line-height: 1.4;
  border-radius: 0.15rem;
}

td .btn-xs {
  margin-top: 3.5px;
}

td .input-group > .input-group-append > .btn {
  margin-top: 0;
}

small,
.small {
  font-size: 0.875rem !important;
}

x-small,
.x-small {
  font-size: 0.8rem !important;
}

xx-small,
.xx-small {
  font-size: 0.6rem !important;
}

th small,
th.small {
  font-weight: bold;
}

.table-xs td,
.table-xs th {
  font-size: 0.8rem;
  padding: 0.3rem;
}

.table-hover tr {
  cursor: pointer;
}

th {
  white-space: nowrap;
}

.list-item-template,
.nested-list-item-template,
.empty-list-item-template,
.nested-empty-list-item-template {
  display: none;
}

#views-html {
  display: none;
}

code,
pre code {
  font-size: 1rem;
  color: #e83e8c;
}

.m-35 {
  margin: 1.25rem !important;
}

.mt-35 {
  margin-top: 1.25rem !important;
}

.mb-35 {
  margin-bottom: 1.25rem !important;
}

.ml-35 {
  margin-left: 1.25rem !important;
}

.mr-35 {
  margin-right: 1.25rem !important;
}

.p-35 {
  padding: 1.25rem !important;
}

.pt-35 {
  padding-top: 1.25rem !important;
}

.pb-35 {
  padding-bottom: 1.25rem !important;
}

.pl-35 {
  padding-left: 1.25rem !important;
}

.pr-35 {
  padding-right: 1.25rem !important;
}

/* iFrame */

body.sm-height > div {
  max-height: 320px !important;
  overflow: hidden;
}

/* Autocomplete */

.autocomplete-suggestions {
  border: 1px solid #999;
  background: #fff;
  overflow: auto;
}

.autocomplete-suggestion {
  padding: 2px 5px;
  white-space: nowrap;
  overflow: hidden;
}

.autocomplete-selected {
  background: #f0f0f0;
}

.autocomplete-suggestions strong {
  font-weight: normal;
  color: #3399ff;
}

.autocomplete-group {
  padding: 2px 5px;
}

.autocomplete-group strong {
  display: block;
  border-bottom: 1px solid #000;
}

/* Draggable */

.draggable-ghost {
  opacity: 0.8;
  background: #c8ebfb;
}

/* Page */

#page {
  min-height: 100%;
  position: relative;
}

/* Places */

#top {
  padding-bottom: 1rem;
}

#content {
  padding-bottom: 135px;
}

/* Links */

.link {
  color: #0056b3;;
  text-decoration: none;
  background-color: transparent;
  -webkit-text-decoration-skip: objects;
  cursor: pointer;
}

.link:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* Modale Dialoge */

.modal-fluid {
  width: 90%;
  max-width: 90%;
}

/* Message Dialog */

#message-dialog .modal-body {
  display: flex;
  align-items: center;
}

#message-dialog .message-dialog-material-icons {
  font-size: 48px;
  margin-right: 15px;
  position: relative;
  top: 3px;
}

#message-dialog .modal-footer button {
  min-width: 100px;
}

/* Search Dialog */

#search-dialog-table {
  max-height: 50vh;
  white-space: nowrap;
}

/* Dropdown */

#dropdown {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1050;
  display: none;
  border: 1px solid #343a40;
}

/* Flash */

.success-flash {
  animation: success-flash-fade-out 0.5s linear;
  -webkit-animation: success-flash-fade-out 0.5s linear;
}

@keyframes success-flash-fade-out {
  0% {
    background-color: #eee;
  }

  5% {
    background-color: #c3e6cb;
  }

  100% {
    background-color: #eee;
  }
}

@-webkit-keyframes success-flash-fade-out {
  0% {
    background-color: #eee;
  }

  5% {
    background-color: #c3e6cb;
  }

  100% {
    background-color: #eee;
  }
}

.error-flash {
  animation: error-flash-fade-out 0.5s linear;
  -webkit-animation: error-flash-fade-out 0.5s linear;
}

@keyframes error-flash-fade-out {
  0% {
    background-color: #eee;
  }

  5% {
    background-color: #f5c6cb;
  }

  100% {
    background-color: #eee;
  }
}

@-webkit-keyframes error-flash-fade-out {
  0% {
    background-color: #eee;
  }

  5% {
    background-color: #f5c6cb;
  }

  100% {
    background-color: #eee;
  }
}

/* Global Alerts */

#global-alerts {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 1040;
  width: 100%;
}

#global-alerts .alert {
  display: none;
  margin-bottom: 0;
  border-radius: 0;
  border-width: 1px 0 0 0;
}

/* Alerts */

#alerts .alert {
  display: none;
}

/* Busy-Indicator */

#busy-indicator {
  display: none;
  width: 10px;
  height: 1px;
  background-color: red;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1045;
  animation: busy-move 5s infinite;
  -webkit-animation: busy-move 5s infinite;
  animation-timing-function: linear;
  -webkit-animation-timing-function: linear;
}

@keyframes busy-move {
  from {
    left: 0px;
  }

  to {
    left: 100%;
  }
}

@-webkit-keyframes busy-move {
  from {
    left: 0px;
  }

  to {
    left: 100%;
  }
}

/* Busy-Overlay */

#busy-overlay {
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.25);
  z-index: 1045;
}

.busy-progress {
  width: 20px;
  height: 8px;
  background-color: red;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1045;
  animation: busy-move 5s infinite;
  -webkit-animation: busy-move 5s infinite;
  animation-timing-function: linear;
  -webkit-animation-timing-function: linear;
}

.busy-spinner {
  border: 10px solid #f3f3f3;
  border-radius: 50%;
  border-top: 10px solid #868e96;
  width: 80px;
  height: 80px;
  -webkit-animation: spin 2s linear infinite;
  /* Safari */
  animation: spin 2s linear infinite;
}

/* Busy-Spinner (small) */

.busy-spinner-small {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 100%;
  height: 25px;
}

.busy-spinner-small-inner {
  border: 3px solid #f3f3f3;
  border-radius: 50%;
  border-top: 3px solid #868e96;
  width: 25px;
  height: 25px;
  -webkit-animation: spin 2s linear infinite;
  /* Safari */
  animation: spin 2s linear infinite;
}

/* Safari */
@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.busy-message {
  display: none;
  margin-top: 15px;
  text-align: center;
  background-color: white;
  border-radius: 5px;
  border: 1px solid #343a40;
  padding: 1px 3px;
}

.dead-spinner {
  margin-left: 10px;
  margin-right: 10px;
  background-color: #FFF;
  padding: 1rem;
  border-radius: 0.15rem;
  color: #343a40;
  text-align: center;
}

.dead-spinner .material-icons {
  font-size: 8rem;
}

.busy-pulse {
  animation: pulse 2s linear infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.5;
  }
}

/* Page-Cover */

#page-cover {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 1044;
}

#page-cover-child {
  width: 100%;
  height: 100%;
  background-color: white;
}

/* Übersetzungshilfe */

.uebersetzungshilfe {
  border: 1px solid red;
  border-radius: 3px;
  background-color: rgba(255, 255, 0, 0.2);
}

.uebersetzungshilfe:hover {
  cursor: pointer;
}

/* Color-Indicator */

.color-indicator {
  display: inline-block;
  border: 0.35rem solid red;
  border-radius: 50%;
  width: 1px;
  height: 1px;
}

/* Back-To-Top-Button */

#back-to-top {
  cursor: pointer;
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  z-index: 1040;
}

/* Bootstrap-Bugfixes */

/*
.card>.list-group:last-child .list-group-item:last-child {
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}
*/

.navbar {
  padding: 0.5rem 1rem;
}

div.is-invalid > .invalid-feedback {
  display: block;
}

.input-group.is-invalid ~ .invalid-feedback {
  display: block;
}

.input-group.is-invalid > .input-group-addon {
  border-color: #dc3545;
}

.input-group > .input-group-append:not(:last-child) > .btn-xs:last-child {
  border-top-right-radius: 0.15rem;
  border-bottom-right-radius: 0.15rem;
}

.accordion .card:last-of-type {
  border-bottom: 1px solid rgba(0, 0, 0, 0.125);
  border-bottom-right-radius: 0.25rem;
  border-bottom-left-radius: 0.25rem;
}

.list-group-item.disabled,
.list-group-item:disabled {
  cursor: default;
}

.table-dark > th {
  color: #212529;
}

.custom-control-label-sm {
  font-size: 0.875rem;
  line-height: 1.7;
}

/* Additional Colors */

.bg-danger-light {
  background-color: #d8adb1 !important;
}

.table-striped tbody tr.bg-danger-light:nth-of-type(odd) {
  background-color: rgba(216, 173, 177, 0.75) !important;
}

.table-hover tbody tr.bg-danger-light:hover {
  background-color: rgba(216, 173, 177, 0.5) !important;
}

.bg-warning-light {
  background-color: #f9e6ac !important;
}

.table-striped tbody tr.bg-warning-light:nth-of-type(odd) {
  background-color: rgba(249, 230, 172, 0.75) !important;
}

.table-hover tbody tr.bg-warning-light:hover {
  background-color: rgba(249, 230, 172, 0.5) !important;
}

.bg-success-light {
  background-color: #b8d8bf !important;
}

.table-striped tbody tr.bg-success-light:nth-of-type(odd) {
  background-color: rgba(184, 216, 191, 0.75) !important;
}

.table-hover tbody tr.bg-success-light:hover {
  background-color: rgba(184, 216, 191, 0.5) !important;
}

/* Additional Form Size */

.col-form-label-xs {
  padding-top: calc(0.325rem + 1px);
  padding-bottom: calc(0.25rem + 1px);
  font-size: 0.8rem;
  line-height: 1;
}

.form-check-label-xs {
  font-size: 0.8rem;
  line-height: 1;
  position: relative;
  bottom: 0.125rem;
}

.form-control-xs,
.input-group-xs > .form-control,
.input-group-xs > .input-group-append > .btn,
.input-group-xs > .input-group-append > .input-group-text,
.input-group-xs > .input-group-prepend > .btn,
.input-group-xs > .input-group-prepend > .input-group-text {
  padding: 0.125rem 0.25rem;
  font-size: 0.8rem;
  line-height: 1;
  border-radius: 0.2rem;
  height: auto;
}

.input-group-xs > .input-group-append > select.btn:not([size]):not([multiple]),
.input-group-xs > .input-group-append > select.input-group-text:not([size]):not([multiple]),
.input-group-xs > .input-group-prepend > select.btn:not([size]):not([multiple]),
.input-group-xs > .input-group-prepend > select.input-group-text:not([size]):not([multiple]),
.input-group-xs > select.form-control:not([size]):not([multiple]),
select.form-control-xs:not([size]):not([multiple]) {
  height: calc(1.3125rem + 2px);
  padding: 0.0625rem 0.0625rem;
}

/* Navbar-Tab */

.navbar-tab {
  color: #343a40;
  cursor: pointer;
  border: 1px solid #96a7b7;
  border-bottom-width: 0;
  display: inline-block;
  line-height: 1.6;
  padding: 0 0.4rem;
  margin-right: 1rem;
  min-width: 56px;
  text-align: center;
  background-color: #f8f9fa;
}

.navbar-tab:hover {
  border-color: #343a40;
  background-color: #f8f9fa;
  color: #343a40;
}

.navbar-tab.active {
  border-color: #343a40;
  background-color: #f8f9fa;
  color: #343a40;
}

/* Navbar-Link */

.navbar-link {
  color: white;
  cursor: pointer;
}

.navbar-link:hover {
  text-decoration: underline;
}

/* Navbar-Action-Link */

.navbar-action-link,
.navbar-action-link-append {
  color: #343a40;
  cursor: pointer;
  padding: 4px;
  min-width: 90px;
  border: 1px solid rgba(0, 0, 0, 0);
  text-align: center;
}

.navbar-action-link-append {
  min-width: 25px;
  max-width: 25px;
  padding: 0;
  height: 66px;
}

#werkzeugleiste .navbar-action-link-append .material-icons {
  font-size: 24px;
  display: block;
  width: 24px;
  line-height: 66px;
  margin: 0 auto;
}

.navbar-action-link img,
.navbar-action-link-append img {
  display: block;
  width: 32px;
  height: 32px;
  margin: 0 auto;
}

.navbar-action-link:hover,
.navbar-action-link-append:hover {
  border: 1px solid #343a40;
}

/* Navbar-Action-Separator */

.navbar-action-separator {
  display: inline-block;
  border-right: 1px solid #ccc;
  height: 72px;
}

/* Navbar-Icons */

.navbar-brand .material-icons {
  cursor: pointer;
}

/* Material Icons */

@font-face {
  font-family: "Material Icons";
  font-style: normal;
  font-weight: 400;
  src: url(../vendor/material-icons/iconfont/MaterialIcons-Regular.eot);
  /* For IE6-8 */
  src: local("Material Icons"), local("MaterialIcons-Regular"),
    url(../vendor/material-icons/iconfont/MaterialIcons-Regular.woff2) format("woff2"),
    url(../vendor/material-icons/iconfont/MaterialIcons-Regular.woff) format("woff"),
    url(../vendor/material-icons/iconfont/MaterialIcons-Regular.ttf) format("truetype");
}

.material-icons {
  font-family: "Material Icons";
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  /* Preferred icon size */
  display: inline-block;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  cursor: default;

  /* Support for all WebKit browsers. */
  -webkit-font-smoothing: antialiased;
  /* Support for Safari and Chrome. */
  text-rendering: optimizeLegibility;

  /* Support for Firefox. */
  -moz-osx-font-smoothing: grayscale;

  /* Support for IE. */
  font-feature-settings: "liga";
}

.material-icons.text-icon {
  line-height: 1;
  position: relative;
  top: 7px;
}

td .material-icons {
  line-height: 8px;
  position: relative;
  top: 7px;
}

.input-group-prepend .material-icons,
.input-group-append .material-icons {
  line-height: 1;
}

a .material-icons,
button .material-icons {
  position: relative;
  top: 3px;
  line-height: 1.1;
  font-size: 22px;
  cursor: pointer;
}

a.disabled .material-icons,
button:disabled .material-icons {
  cursor: default;
}

.input-group-prepend a .material-icons,
.input-group-prepend button .material-icons .input-group-append a .material-icons,
.input-group-append button .material-icons {
  top: 5px;
  line-height: 0.7;
}

.btn-icon {
  padding: 4px 4px 3px 4px;
}

.btn-icon-sm {
  padding: 0 4px;
}

.btn-icon-xs {
  padding: 0 4px;
  line-height: 1;
  min-height: 20px;
}

.btn-xs .material-icons {
  position: relative;
  top: 1px;
  line-height: 1;
  font-size: 14px;
}

.table-xs .btn-xs {
  font-size: 0.7rem;
  line-height: 1.2;
}

.table-xs .btn-icon-xs {
  position: relative;
  top: 2px;
  border-radius: 0.15rem;
}

.btn-icon-xs .material-icons {
  position: relative;
  top: -1px;
  line-height: 1;
  font-size: 12px;
}

.custom-navbar-toggler-icon {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  vertical-align: middle;
  content: "";
  background: no-repeat center center;
  background-size: 100% 100%;
}

/* Gijgo */

.gj-datepicker .form-control-sm ~ .input-group-append .btn .gj-icon {
  top: 5px;
}

.gj-datepicker .form-control-xs ~ .input-group-append .btn {
  line-height: 1;
  min-height: 21px;
  width: 21px;
  padding: 0;
}

.gj-datepicker .form-control-xs ~ .input-group-append .btn .gj-icon {
  font-size: 13px;
  top: 4px;
  left: 4px;
}

.gj-picker-bootstrap table tr td.disabled div {
  color: rgba(255, 0, 0, 0.5);
}

/* Navigation */

#nav > nav,
#nav-3rd > nav {
  z-index: 1049;
  padding-bottom: 0 !important;
}

#nav h6,
#nav-3rd h6 {
  font-size: 1.2rem;
  margin-left: 10px;
  margin-top: 0.75rem;
  margin-bottom: 0.3rem;
  color: #343a40 !important;
}

#nav hr,
#nav-3rd hr {
  border-color: rgba(0, 0, 0, 0.5);
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

#nav .navbar > span,
#nav-3rd .navbar > span {
  display: inline-block;
  height: calc(40px + 0.5rem);
  line-height: 40px;
}

#nav .navbar-brand,
#nav-3rd .navbar-brand {
  cursor: pointer;
  padding-top: 0;
  padding-bottom: 0;
}

#nav .navbar-brand .material-icons,
#nav-3rd .navbar-brand .material-icons {
  position: relative;
  top: 4px;
  line-height: 1;
}

#nav .navbar-nav .nav-link,
#nav-3rd .navbar-nav .nav-link {
  padding-left: 1rem;
  padding-right: 1rem;
  color: rgba(0, 0, 0, 0.75);
  border-width: 0;
  display: block;
  width: 100%;
  text-align: left;
}

#main-nav-toggler {
  position: relative;
  top: -3px;
  margin-right: 0.5rem;
}

#nav div.card,
#nav-3rd div.card {
  min-height: 200px;
  max-height: 70vh;
  overflow-y: scroll;
}

/* Aktionsleiste */

#aktionsleiste > .navbar {
  top: 56px;
  height: 27px;
  justify-content: flex-start;
  align-items: flex-end;
  padding: 0 1rem;
  border-bottom: 1px solid #343a40;
  background: linear-gradient(#b2b2b2, #f8f9fa);
}

#aktionsleiste > .navbar > a,
#aktionsleiste > .navbar > span {
  text-decoration: none;
  position: relative;
  bottom: -1px;
  border-bottom: 1px solid #343a40;
}

#aktionsleiste > .navbar > a.active,
#aktionsleiste > .navbar > span.active {
  border-bottom: 1px solid #f8f9fa;
}

#aktionsleiste .navbar-brand .material-icons {
  position: relative;
  top: 4px;
}

/* Werkzeugleiste */

#werkzeugleiste > nav {
  -webkit-box-shadow: 0px 3px 3px 0px rgba(52, 58, 64, 1);
  -moz-box-shadow: 0px 3px 3px 0px rgba(52, 58, 64, 1);
  box-shadow: 0px 3px 3px 0px rgba(52, 58, 64, 1);

  top: 83px;
  height: 77px;
  justify-content: flex-start;
  flex-wrap: nowrap;
}

#werkzeugleiste > nav > span,
#werkzeugleiste > nav > button,
#werkzeugleiste > nav > a {
  display: inline-block;
  margin-right: 0.25rem;
  white-space: nowrap;
}

#werkzeugleiste .material-icons {
  font-size: 48px;
  display: block;
  width: 48px;
  margin: 0 auto;
}

#werkzeugleiste button,
#werkzeugleiste a {
  text-decoration: none;
  color: #343a40;
  cursor: pointer;
  padding: 4px;
  min-width: 90px;
  border: 1px solid rgba(0, 0, 0, 0);
  text-align: center;
  font-size: 0.8rem;
  background-color: #f8f9fa;
}

#werkzeugleiste button img,
#werkzeugleiste a img {
  display: block;
  width: 32px;
  height: 32px;
  margin: 0 auto;
}

#werkzeugleiste button:hover,
#werkzeugleiste a:hover {
  border: 1px solid #343a40;
}

#werkzeugleiste button:disabled,
#werkzeugleiste a:disabled {
  opacity: 0.5;
  border: 1px solid #f8f9fa;
  cursor: default;
}

/* Split-Bar */

.gutter {
  background-color: #343a40;
  background-repeat: no-repeat;
  background-position: 50%;
}

.gutter.gutter-vertical {
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAFAQMAAABo7865AAAABlBMVEVHcEzMzMzyAv2sAAAAAXRSTlMAQObYZgAAABBJREFUeF5jOAMEEAIEEFwAn3kMwcB6I2AAAAAASUVORK5CYII=");
  cursor: ns-resize;
}

.gutter.gutter-horizontal {
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==");
  cursor: ew-resize;
}

.split {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
}

.split.split-horizontal,
.gutter.gutter-horizontal {
  height: 100%;
  float: left;
}

/* Placeholder */

.placeholder {
  display: inline-block;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25rem;
  color: #ddd;
  background-color: #ddd;
  overflow: hidden;
}

/* Gijgo-Bootstrap-Bugfixes */

.gj-timepicker-bootstrap [role="right-icon"] button {
  width: 38px;
  position: relative;
  border: 1px solid #ced4da;
}

.gj-datepicker-bootstrap [role="right-icon"] button:hover {
  color: white;
  background-color: #6c757d;
}

/* Helpers */

.overflow-scroll {
  overflow: scroll;
}

.overflow-x-scroll {
  overflow-x: scroll;
  white-space: pre;
}

.overflow-y-scroll {
  overflow-y: scroll;
}
