@font-face { font-family: Calibri; src: url('../assets/Calibri Light.ttf'); font-display: fallback; }

:root {
  --theme-transition-time: .5s ease-in-out;
  --border-radius: 8px;

  --primary: #00829d;
  --primary: #58738a;
  --primary-border: rgb(69, 105, 129);
  --primary-variant: #6a94af;
  --on-primary: rgb(232, 233, 235);

  --secondary: #707070;

  --secondary: rgb(244, 244, 244);

  --secondary-variant: darkgreen;
  --on-secondary: black;

  --success: #59a661;
  --on-success: rgb(232, 233, 235);
  --pending: #f7b53b;
  --pending-border: #e3a83b;
  --pending-border: #a17c38;
  --pending-text-border: #e3a83b;

//  --pending-text-border: rgba(0,0,0,0.3);

  --on-pending: rgb(255, 255, 255);
  --on-pending-text-border: -1px 0 var(--pending-text-border), 0 1px var(--pending-text-border), 1px 0 var(--pending-text-border), 0 -1px var(--pending-text-border);


  --error: #e24b1d;
  --error-border: #e0b1a4;
  --on-error: rgb(232, 233, 235);

  --border-1: rgb(202, 202, 202);

  --background: #f7f7f7;
  --on-background: rgb(15, 10, 10);

  --surface: #FFFFFF;
  --on-surface: rgb(15, 10, 10);

  --page-width: 1200px;

  --lexware: #bd040b;
  --teamviewer: #036fce;
  --on-lexware: var(--on-primary);

  --font-color-secondary: rgb(150,150,150);


  //Alternative theme


}


@keyframes fadeIn {
  from {opacity: 0}
  to {opacity: 1}
}

* {
  box-sizing: border-box;
}

html {
  font-family: calibri;
  width: 100%;
  height: 100%;
  margin: 0px;
}

body {
//  background-color: var(--background);
  width: 100%;
  height: 100%;
  margin: 0px;
  display: flex;
  flex-direction: column;
//  background-color: var(--primary);
  min-width: 1000px;
}

label {
  margin-bottom: 5px;
}

form {
  transition: background-color .5s ease-in-out;
}

div, main {
  box-sizing: border-box;
}

main {
  padding: 20px;
  transition: opacity .3s ease-in-out;
  max-width: 100%;
  align-self: center;
  display: grid;
  justify-content: center;
}

#background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: .12;
  background: url("../assets/background.png");
  background-size: cover;
}

input:not([type="file"]):not([type="checkbox"]):not([type="radio"]):not([type="button"]), select {
  border-radius: var(--border-radius);
  box-sizing: border-box;
  padding: 10px;
  border: 1px solid var(--border-1);
  outline: 1px solid transparent;
  transition: outline .2s ease-in-out, background-color .5s ease-in-out;
  background-color: var(--surface);
}

input::placeholder {
  color: rgb(15, 10, 10);
  opacity: 0.54;
}

textarea {
  transition: outline .05s ease-in-out;
  border: 1px solid var(--border-1);
  border-radius: var(--border-radius);
  overflow: hidden;
  padding: 10px;
  resize: vertical;
  display: block;
}

textarea:focus {
  outline: 2px solid var(--primary);
}

select {
  background-color: transparent;
  -webkit-appearance: none;
}

input:not([type="file"]):not([type="checkbox"]):not([type="radio"]):not([type="button"]):focus {
  outline: 1px solid var(--primary);
  border: 1px solid var(--primary);
}

dropdown-menu {
  max-height: 210px;
}

input[type="button"], button {
  border-radius: var(--border-radius);
  box-sizing: border-box;
  padding-top: 9px;
  padding-bottom: 9px;
  padding-left: 15px;
  padding-right: 15px;
  background-color: var(--primary);
  color: var(--on-primary);
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

input[type="button"]:focus, button:focus {
  outline: none;
}

input[type="button"].outlined, button.outlined {
  background-color: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

input[type="button"].outlined.selected, button.outlined.selected {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}

input[type="button"]:hover, button:hover {
  filter: brightness(.93);
}

input[type="button"]:active, button:active {
  filter: brightness(.86);
}

input:not([type="file"]):not([type="checkbox"]):not([type="radio"]):not([type="button"]).is-invalid {
  outline: 1px solid var(--error);
  border: 1px solid var(--error);
}

input:not([type="file"]):not([type="checkbox"]):not([type="radio"]):not([type="button"]).is-valid {
  outline: 1px solid var(--success);
  border: 1px solid var(--success);
}

select[multiple]:focus option:checked {
  background-color: var(--primary);
}

option {
-webkit-appearance: none;
}

option[selected] {
  background: transparent;
}

.button-group {
  display: flex;
}

.button-group button, .button-group input[type="button"] {
  border-radius: 0px;
  border-right: 0px;
  background-color: var(--surface);
}

.button-group button:first-of-type, .button-group input[type="button"]:first-of-type {
  border-top-left-radius: var(--border-radius);
  border-bottom-left-radius: var(--border-radius);
  margin-right: 0px;
}

.button-group button:last-of-type, .button-group input[type="button"]:last-of-type {
  border-top-right-radius: var(--border-radius);
  border-bottom-right-radius: var(--border-radius);
  border-right: 1px solid var(--primary);
  margin-left: 0px;
}

select, input, .enhanced-input-wrapper {
  background-color: var(--surface);
}

.action-bar {
  width: 100%;
  padding: 10px;
//  height: 50px;
  background-color: var(--surface);
  display: flex;
  grid-gap: 20px;
  justify-content: center;
  align-items: center;
  z-index: 5;
  position: sticky;
  top: 0;
  flex-wrap: wrap;
}

.action-bar button, .action-bar input[type="button"], .action-bar select {
  padding-bottom: 0px;
  padding-top: 0px;
  height: 32px;
}

.grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  display: grid;
}

.card {
  padding: 25px;
  background-color: var(--surface);
  border-radius: var(--border-radius);
}

.enhanced-select-dropdown {
  max-height: 318px !important;
}

table {
  margin-top: 0px;
  margin-bottom: 0px;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  box-sizing: border-box;
  border: 1px solid var(--border-1);
  border-radius: var(--border-radius);
}


table td, table th {
  padding: 0.4em 0.67em;
  vertical-align: top;
}

table td:not(:last-child), table thead th:not(:last-child) {
  border-right: 1px solid var(--border-1);
}

table tr:not(:last-child) td {
  border-bottom: 1px solid var(--border-1);
}

thead {
  position: sticky;
  top: 0;
  z-index: 2;
}

tfoot tr td {
  border-top: 1px solid var(--border-1);
}

@-moz-document url-prefix() {
  table {
    overflow: hidden;
  }
}

thead th {
  text-align: left;
  line-height: 19px;
  padding-top: 12px;
  padding-bottom: 12px;
  hyphens: auto;
  border-color: rgba(255,255,255, 0.3) !important;
  color: var(--on-primary);
}

thead tr {
  background-color: var(--primary);
}


thead th:first-of-type {
  border-top-left-radius: var(--border-radius);
  overflow: hidden;
}

thead th:last-of-type {
  border-top-right-radius: var(--border-radius);
  overflow: hidden;
}

tbody tr:last-of-type td:first-of-type {
  border-bottom-left-radius: var(--border-radius);
  overflow: hidden;
}

tbody tr:last-of-type td:last-of-type {
  border-bottom-right-radius: var(--border-radius);
  overflow: hidden;
}

h2 {
  border-bottom: 1px solid var(--border-1);
  padding: 10px;
  padding-top: 0px;
  font-size: 20px;
  margin: 0px;
  text-align: center;
}

#loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: grid;
  pointer-events: none;
  place-items: center;
  transition: opacity .6s ease-in-out;
}

#loading img {
  opacity: .8;
  animation: fadeIn 4s forwards;
  width: 220px;
}

.dropdown-button {
  padding: 10px;
  cursor: pointer;
  user-select: none;
}

.dropdown-button:hover {
  background-color: var(--secondary);
  color: var(--on-secondary);
}

.dropdown-button:active {
  background-color: var(--primary);
  color: var(--on-primary);
}

.dropdown-button:not(:last-child) {
  border-bottom: 1px solid var(--border-1);
}

::-moz-selection { /* Code for Firefox */
  color: var(--on-primary);
  background: var(--primary);
}

::selection {
  color: var(--on-primary);
  background: var(--primary);
}

.elevated-1 {
  box-shadow: 0 2px 7px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
}

.elevated-2 {
  box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
}

.elevated-3 {
  box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
}

.elevated-4 {
  box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
}

.elevated-5 {
  box-shadow: 0 19px 38px rgba(0,0,0,0.30), 0 15px 12px rgba(0,0,0,0.22);
}

scroll-up .scroll-button {
  margin: 0px !important;
  margin-top: 20px !important;
  border-radius: var(--border-radius) !important;
  padding: 10px !important;
  padding-top: 7px !important;
  padding-bottom: 7px !important;
  height: 43px !important;
//  width: 100% !important;
//  padding: 7px !important;
//  height: 40px !important;
}

.loading-icon {
  opacity: 0;
  display:flex;
  justify-content: center;
  height: 100px;
  margin-top: 20px;
  animation: fadeIn 6s forwards;
}



a[href], a[href]:visited, a[onclick] {
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  color: var(--primary);
}






.check-container {
  position: relative;
  display: flex;
  align-items: center;
}

.check-container label {
  margin-left: 25px;
  margin-bottom: 0px;
}

/* Hide the browser's default checkbox */
.check-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
  pointer-events: none;
}

/* Create a custom checkbox */
.checkmark {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 8;
  height: 16px;
  width: 16px;
  background-color: var(--secondary);
  border: 1px solid var(--border-1);
  border-radius: 4px;
  pointer-events: none;
}

/* On mouse-over, add a grey background color */
.check-container:hover input ~ .checkmark {
  background-color: rgb(240,240,240);
}

/* When the checkbox is checked, add a blue background */
.check-container input:checked ~ .checkmark {
  background-color: var(--primary);
  border: 1px solid var(--primary);
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  pointer-events: none;
}

/* Show the checkmark when checked */
.check-container input:checked ~ .checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.check-container .checkmark:after {

  pointer-events: none;
  height: 40%;
  width: 20%;
  left: 36%;
  top: 20%;

  height: 54%;
  width: 26%;
  left: 33%;
  top: 8.2%;


  border: solid white;
  border-width: 0 2px 2px 0;
  -webkit-transform: rotate(40deg);
  -ms-transform: rotate(40deg);
  transform: rotate(40deg);
}

dropdown-menu {
//  border: 1px solid var(--border-1);
}

dropdown-menu:not(.unstyled) button, dropdown-menu:not(.unstyled) .enhanced-dropdown-content>div {
  padding: 8px;
  height: 36px;
  background-color: var(--surface);
  border-radius: 0px;
  color: var(--on-surface);
  width: 100%;
}

dropdown-menu:not(.unstyled) .enhanced-dropdown-content>div {
  cursor: default;
}

dropdown-menu:not(.unstyled) button:not(:last-child), dropdown-menu:not(.unstyled) .enhanced-dropdown-content>div:not(:last-child) {
  border-bottom: 1px solid var(--border-1);
}


#image-preview-modal .modal-content {
  margin: 0px !important;
  padding: 0px !important;
  max-height: 100vh;
}

#image-preview-modal .modal {
  width: auto !important;
  max-height: 100vh;
}


#image-preview-modal img {
  max-height: calc(100vh - 100px);
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}

.check-grid {
  border: 1px solid var(--border-1);
  border-radius: var(--border-radius);
  background-color: var(--surface);
  overflow-x: hidden;
  overflow-y: auto;
  display: grid;
//  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-gap: .8px;
}

.check-grid>div {
  padding: 8px;
  cursor: pointer;
  user-select: none;
  outline: 1px solid var(--border-1);

}

.check-grid>div:hover {
  background-color: var(--secondary);
}

.check-grid input, .check-grid label {
  user-select: none;
  pointer-events: none;
}

.lexware-icon {
  border-radius: 4px;
  background-color: var(--lexware);
  font-weight: bold;
  color: white;
  height: 16px;
  width: 16px;
  display: grid;
  place-items: center;
  text-align: center;
  vertical-align: middle;
  font-size: 14px;
  line-height: 13px;
  user-select: none;
  margin-top: 1px;
//  outline: 1px solid rgba(90,90,90,1);
}



  .fc-today-button, .fc-button-group {
    height: 40px;
  }

  .fc-daygrid-event, .fc-list-event {
    cursor: pointer;
  }

  .fc-col-header {
    background-color: var(--primary) !important;
    color: var(--on-primary) !important;
    border-radius: 0px !important;
  }

  .fc-prev-button, .fc-next-button {
    background-color: transparent !important;
    color: var(--primary) !important;
    border-top: none !important;
    border-bottom: none !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    height: auto !important;
  }

  .fc-prev-button>span, .fc-next-button>span {
    transform: scale(.8);
    line-height: 11px !important;
  }

  .fc-prev-button {
    border-right: 2px solid var(--primary);
    border-left: none !important;
  }

  .fc-next-button {
    border-right: none !important;
  }

  .fc-button-group {
    overflow: hidden;
    display: grid;
    place-items: center;
    gap: 12px;
  }

  .fc-button .fc-icon {
    max-height: 14px !important;
    line-height: 14px;
  }

  .fc-button:focus {
    outline: none !important;
    box-shadow: none !important;
  }

  .fc-button:not(.fc-prev-button):not(.fc-next-button):not(.fc-button-active):not(.fc-today-button) {
    border-radius: 8px !important;
    background-color: var(--surface) !important;
    color: var(--primary) !important;
    outline: none;
    border: 2px solid var(--primary) !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    height: auto !important;
  }

  .fc-event-title-container, .fc-event-main-frame .fc-event-time, .fc-event-main {
    background-color: var(--primary) !important;
    color: var(--on-primary) !important;
  }

  .fc-daygrid-event-dot:not([style]), .fc-list-event-dot:not([style]) {
    border-color: var(--primary) !important;
  }

  .fc-button-active, .fc-today-button, .fc-next-button, .fc-prev-button {
    border-radius: 8px !important;
    outline: none;
    border: 2px solid var(--primary) !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    height: auto !important;
    background-color: var(--primary) !important;
    color: var(--on-primary) !important;
  }

  .fc-list-day-cushion, .fc-list-event-dot {
    background-color: var(--primary) !important;
    color: var(--on-primary);
  }
