/* Colors */
:root {
  --color-primary: #419468;
  --color-primary-hover: #59bc87;
  --color-secondary: #78faae;
  --color-secondary-hover: #a8ffcc;
  --color-tertiary: #0e3a2f;
  --color-quarternary: #e8fff1;

  --color-white: #ffffff;
  --color-black: #161718;
  --color-yellow: #e99f00;

  --color-disabled-text: #9e9fa0;
  --color-disabled-background: #d8d8d8;

  --color-surface: #f1f1f1;

  --color-text: #161718;

  --color-alert: #e82b37;
  --color-alert-light: #ea8188;
  --color-warning: #ec6513;
  --color-warning-light: #ec9560;
  --color-positive: #37d002;
  --color-info: #2d71d7;

  --color-onsurface-100: #d8d8d8;
  --color-onsurface-200: #c4c6c7;
  --color-onsurface-300: #9e9fa0;
  --color-onsurface-500: #7c7d7e;
  --color-onsurface-600: #5a5b5c;
  --color-onsurface-700: #464748;
  --color-onsurface-800: #303132;
  --color-onsurface-900: #161718;

  --color-background-primary: #ffffff;
  --color-background-secondary: #f1f1f1;
  --color-background-tertiary: #e4e4e4;
  --color-background: #f2f3f5;
}

/* Helpers */
.visibility:not(.visible),
.visibility.nav-item:not(.visible) {
  display: none !important;
}

.environment:not(.environment-visible),
.environment-hidden.hidden {
  display: none !important;
}

.idp:not(.idp-visible) {
  display: none !important;
}

.color-black {
  color: var(--color-black);
}

.max-size-without-menu {
  height: calc(100vh - 70px);
  max-height: calc(100vh - 70px);
}

.h-33 {
  height: 33.33% !important;
}

.w-33 {
  width: 33.33% !important;
}

.h-95 {
  height: 95% !important;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.placeholder {
  color: var(--color-disabled-text);
}

.default-line-height {
  line-height: 1;
}

.bold {
  font-weight: bold;
}

.background-white {
  background-color: white;
}

.hidden {
  display: none;
}

.cursor-pointer {
  cursor: pointer;
}

.minh-100 {
  min-height: 100%;
}

.w-15 {
  width: 15% !important;
}

.font-large {
  font-size: 120%;
}

.fill-parent {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}

label.required:after,
label[required]:after {
  color: #e32;
  content: " *";
  display: inline;
}

/* Global */
html * {
  font-family: "Skoda Next", verdana, arial, helvetica, sans-serif;
}

.ui-widget input,
.ui-widget select,
.ui-widget textarea,
.ui-widget button {
  font-family: "Skoda Next", verdana, arial, helvetica, sans-serif;
}

html {
  font-size: 14px;
  line-height: 1;
}

@media (min-width: 576px) {
  html {
    line-height: 1.5;
  }
}

.container {
  max-width: 100%;
}

.page-title {
  font-size: 200%;
  font-weight: bold;
}

textarea,
select,
input,
button {
  outline: none;
}

button:focus {
  outline: none !important;
}

a,
a:link,
a:hover,
a:link:hover,
a:visited {
  color: var(--color-primary);
}

label {
  color: var(--color-black);
}

label.error {
  width: 100%;
  color: var(--color-alert);
}

select:focus::-ms-value {
  background: transparent;
  color: var(--color-black);
}

/* Navigation menu */
nav.navbar {
  background: white;
  padding: 5px;
  padding-left: 10px;
  padding-right: 10px;
  z-index: 1000;
  box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.2);
}

@media (min-width: 1200px) {
  nav.navbar {
    padding: 0;
    padding-left: 25px;
    padding-right: 25px;
    height: 70px;
  }
}

.collapse.navbar-collapse,
.navbar-nav {
  background: white;
  height: 100%;
}

div.navbar-brand {
  padding-top: 0;
  padding-bottom: 0;
}

.nav-item {
  margin-left: 10px;
  margin-right: 2px;
  display: flex;
  flex-flow: column;
  justify-content: center;
  border-bottom: 3px solid transparent;
}

.nav-item .nav-link {
  border-left-style: none;
  border-right-style: none;
  position: relative;
  display: block;
  overflow: hidden;
}

.nav-item .nav-link:not(.dropdown-toggle) {
  font-size: 150%;
  padding-bottom: 0px;
}

.navbar .navbar-nav .nav-item .nav-link {
  color: var(--color-black);
}

.navbar .navbar-nav .nav-item .nav-link svg {
  fill: var(--color-black);
}

.nav-item.active,
.nav-item:not(.dropdown):not(.no-print):hover {
  color: var(--color-primary-hover);
  border-bottom: 3px solid var(--color-primary-hover);
}

.navbar .navbar-nav .nav-item .nav-link:hover {
  color: var(--color-primary-hover);
}

.navbar .navbar-nav .nav-item .nav-link svg:hover {
  fill: var(--color-primary-hover);
}

.dropdown-item,
.nav-item > a:not([disabled]) {
  cursor: pointer;
}

.dropdown-item:hover {
  background-color: var(--color-surface);
}

a.dropdown-toggle,
.nav-item.no-print {
  text-align: end;
}

a.dropdown-toggle::after {
  display: none;
}

a.dropdown-item {
  color: var(--color-black);
}

@media (max-width: 768px) {
  .border-nav-left {
    border-left: none;
    padding-left: 0px;
  }
}

button:focus,
textarea:focus,
input:focus {
  outline: 0;
}

/* Notifications */
.notification-icon:not(.level) {
  display: none;
}

.notification-icon.level {
  position: absolute;
  right: 15px;
  min-height: 15px;
  max-height: 15px;
  min-width: 15px;
  max-width: 15px;
  border-radius: 50%;
}

div.notifications {
  padding: 10px;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: auto;
  flex-direction: column;
  align-items: center;
  min-width: 30vw;
}

div.notifications.show {
  display: flex !important;
}

div.notifications .notification {
  min-width: 30vw;
  padding: 5px;
  border: 1px var(--color-onsurface-200) solid;
  border-radius: 5px;
  margin: 5px;
  display: flex;
  flex-direction: column;
  box-shadow: 0px 0px 4px 2px var(--color-onsurface-200);
}

div.notifications .notification.read {
  opacity: 0.5;
}

div.notifications .notification .clickable {
  cursor: pointer;
}

div.notifications .notification .title {
  display: flex;
  align-items: center;
  font-weight: bold;
}

div.notifications .notification .title .type-icon {
  min-height: 15px;
  max-height: 15px;
  min-width: 15px;
  max-width: 15px;
  border-radius: 50%;
  margin-right: 5px;
}

div.notifications .notification.INFO .title .type-icon,
.notification-icon.level.INFO {
  background-color: var(--color-positive);
}

div.notifications .notification.WARN .title .type-icon,
.notification-icon.level.WARN {
  background-color: var(--color-warning);
}

div.notifications .notification.ERROR .title .type-icon,
.notification-icon.level.ERROR {
  background-color: var(--color-alert);
}

div.notifications .notification .title .icon svg {
  width: 32px;
  height: 32px;
}

div.notifications .notification .title .icon:hover svg {
  stroke: var(--color-primary-hover);
}

div.notifications .notification .time {
  font-size: 75%;
  font-weight: 100;
}

div.notifications .notification .message,
div.notifications .notification .time {
  padding-left: 20px;
}

div.notifications .buttons {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  width: 100%;
}

div.notifications button {
  max-width: 150px;
  min-height: 40px;
}

/* Buttons */
button.button-main {
  min-width: 200px;
  height: 40px;
  padding-left: 20px;
  padding-right: 20px;
  background-color: var(--color-secondary);
  color: var(--color-text);
  border: none;
  border-radius: 20px;
  -webkit-transition-duration: 0.1s;
  transition-duration: 0.1s;
  font-weight: 600;
}

button.button-main:disabled {
  background-color: var(--color-disabled-background);
  color: var(--color-disabled-text);
}

button.button-main:not([disabled]):hover {
  background-color: var(--color-secondary-hover);
}

button.button-main.small {
  min-width: 100px;
  height: 30px;
  padding-left: 5px;
  padding-right: 5px;
  border-radius: 15px;
}

button.button-main.circle {
  min-width: 0;
  width: 150px;
  height: 150px;
  background-color: var(--color-secondary);
  color: var(--color-text);
  border: 0;
  border-radius: 50%;
  -webkit-transition-duration: 0.1s;
  transition-duration: 0.1s;
  font-weight: 600;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
}

button.button-main.circle:disabled {
  background-color: var(--color-disabled-background);
  color: var(--color-disabled-text);
}

button.button-main.circle:not([disabled]):hover {
  background-color: var(--color-secondary-hover);
}

/* Secondary button */
button.button-secondary {
  min-width: 200px;
  height: 40px;
  padding-left: 20px;
  padding-right: 20px;
  background-color: var(--color-onsurface-900);
  color: white;
  border: 0;
  border-radius: 20px;
  -webkit-transition-duration: 0.1s;
  transition-duration: 0.1s;
  font-weight: 600;
}

button.button-secondary.narrow {
  min-width: 100px;
}

button.button-secondary:disabled {
  background-color: var(--color-disabled-background);
  color: var(--color-disabled-text);
}

button.button-secondary:not([disabled]):hover {
  background-color: var(--color-onsurface-800);
}

button.button-secondary.outlined {
  background-color: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-text);
}

button.button-secondary.outlined:not([disabled]):hover {
  background-color: rgba(0, 0, 0, 0.1);
}

button.button-secondary.outlined.reversed {
  color: white;
  border: 2px solid rgb(216, 216, 216);
}

button.button-secondary.outlined.reversed:not([disabled]):hover {
  background-color: rgba(1, 1, 1, 0.25);
  border: 2px solid white;
}

/* Button with icon */
button.sa-button {
  display: flex;
  align-items: center;
  justify-content: center;
}

button.sa-button svg {
  width: 24px;
  height: 24px;
  margin-right: 5px;
}

button.sa-button svg.green {
  fill: var(--color-primary);
}

button.sa-button svg.white {
  fill: white;
}

button.sa-button svg.red {
  fill: #e62336;
}

/* Underline inputs */
input.underline:not([type="checkbox"]),
select.underline {
  background: transparent;
  border: none;
  border-bottom: 1px solid #d5d5d5;
  min-height: 40px;
}

@-moz-document url-prefix() {
  input.underline:not([type="checkbox"]),
  select.underline {
    padding-top: 10px;
  }
}

input.underline:not([type="checkbox"]):disabled,
select.underline:disabled {
  background: #f8f8f8;
}

select.underline {
  -webkit-appearance: none;
  -moz-appearance: none;
  -o-appearance: none;
  appearance: none;
  padding-left: 5px;
}

select.underline::-ms-expand {
  display: none;
}

select.black_caret {
  -webkit-appearance: none;
  -moz-appearance: none;
  -o-appearance: none;
  appearance: none;
  background-image: url("dropdown_caret.png");
  background-position: 98% center;
  background-repeat: no-repeat;
  outline: none;
}

select.black_caret::-ms-expand {
  display: none;
}

select.green_caret {
  -webkit-appearance: none;
  -moz-appearance: none;
  -o-appearance: none;
  appearance: none;
  background-image: url("dropdown_caret_green.png");
  background-position: 98% center;
  background-repeat: no-repeat;
  outline: none;
}

select.green_caret::-ms-expand {
  display: none;
}

/* Inputs with green border */
input.green_border:not([type="checkbox"]),
select.green_border {
  background: transparent;
  border: 1px solid var(--color-primary);
  min-height: 40px;
  border-radius: 5px;
  padding-left: 5px;
}

input.green_border:not([type="checkbox"])::placeholder,
input.green_border:not([type="checkbox"])::-webkit-input-placeholder,
input.green_border:not([type="checkbox"])::-ms-input-placeholder {
  color: #c6c6c6;
}

input.green_border:not([type="checkbox"]):disabled,
select.green_border:disabled {
  background: #f8f8f8;
  border: 1px solid #f8f8f8;
}

select.green_border {
  -webkit-appearance: none;
  -moz-appearance: none;
  -o-appearance: none;
  appearance: none;
}

select.green_border::-ms-expand {
  display: none;
}

input.green_border_focus:not([type="checkbox"]):focus,
select.green_border_focus:focus {
  background: transparent;
  border: 1px solid var(--color-primary);
  height: 40px;
  border-radius: 5px;
  padding-left: 5px;
}

input.green_border_focus:not([type="checkbox"])::placeholder,
input.green_border_focus:not([type="checkbox"])::-webkit-input-placeholder,
input.green_border_focus:not([type="checkbox"])::-ms-input-placeholder {
  color: #c6c6c6;
}

input.green_border_focus:not([type="checkbox"]):disabled,
select.green_border_focus:disabled {
  background: #f8f8f8;
  border: 1px solid #f8f8f8;
}

select.green_border_focus {
  -webkit-appearance: none;
  -moz-appearance: none;
  -o-appearance: none;
  appearance: none;
}

select.green_border_focus::-ms-expand {
  display: none;
}

/* gray input, green border on focus */
input.grey_border_focus_green:not([type="checkbox"]),
select.grey_border_focus_green {
  background: transparent;
  border: 1px solid #cfcfcf;
  min-height: 40px;
  border-radius: 5px;
  padding-left: 5px;
}

input.grey_border_focus_green:not([type="checkbox"]):disabled,
select.grey_border_focus_green:disabled {
  background: #f8f8f8;
  border: 1px solid #f8f8f8;
}

input.grey_border_focus_green:not([type="checkbox"]):focus,
select.grey_border_focus_green:focus {
  border: 1px solid var(--color-primary);
}

/* Inputs with icons */
input.input_with_calendar:enabled:not(.no-icon),
input.underline.input_with_calendar:enabled:not(.no-icon) {
  background-image: url(kalendar.png);
  background-position: right 5px bottom 10px;
  background-repeat: no-repeat;
  cursor: pointer;
  min-width: 220px;
}

input.input_with_pencil:enabled,
input.underline.input_with_pencil:enabled,
select.input_with_pencil:enabled,
select.underline.input_with_pencil:enabled {
  background-image: url(tuzka.png);
  background-position: right 5px bottom 10px;
  background-repeat: no-repeat;
}

@supports not (-moz-orient: horizontal) {
  input[type="number"].input_with_pencil:enabled:focus,
  input[type="number"].input_with_pencil:enabled:hover,
  input[type="number"].underline.input_with_pencil:enabled:focus,
  input[type="number"].underline.input_with_pencil:enabled:hover {
    background-position: right 15px bottom 10px;
  }
}

@supports (-moz-orient: horizontal) {
  input[type="number"].input_with_pencil:enabled,
  input[type="number"].underline.input_with_pencil:enabled {
    background-position: right 20px bottom 10px;
  }
}

select.input_with_pencil:enabled,
select.underline.input_with_pencil:enabled {
  cursor: pointer;
}

input.input_with_glass:enabled,
input.underline.input_with_glass:enabled,
select.input_with_glass:enabled,
select.underline.input_with_glass:enabled {
  padding-left: 5px;
  background-image: url(lupa.png);
  background-position: right 5px bottom 8px;
  background-repeat: no-repeat;
}

select.input_with_glass:enabled,
select.underline.input_with_glass:enabled {
  cursor: pointer;
}

input.input_with_clock:enabled,
input.underline.input_with_clock:enabled {
  background-image: url(hodiny.png);
  background-position: right 5px bottom 10px;
  background-repeat: no-repeat;
  cursor: pointer;
  min-width: 220px;
}

select.select_with_arrow:enabled,
select.underline.select_with_arrow:enabled {
  padding-left: 5px;
  background-image: url(dropdown_caret_green.png);
  background-position: right 5px bottom 15px;
  background-repeat: no-repeat;
  cursor: pointer;
}

/* Text area with grey border*/
textarea.gray,
div.gray[contenteditable="true"] {
  border: 1px solid #d5d5d5;
}

/* Input with clickable icon */
.input_with_active_icon {
  display: flex;
}

.input_with_active_icon input {
  padding: 0;
}

.input_with_active_icon button {
  border: none;
  background: none;
}

.input_with_active_icon button.underline {
  border-bottom: 1px solid #d5d5d5;
}

.input_with_active_icon.black button.underline,
.input_with_active_icon.black input.underline {
  border-bottom: 1px solid var(--color-black);
}

.input_with_active_icon button svg {
  width: 24px;
  height: 24px;
}

.input_with_active_icon button svg.green {
  fill: var(--color-primary);
}

/* File input */
.file_input {
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  z-index: -1;
}

.file_input + label {
  padding-top: 9px;
  padding-left: 20px;
  padding-right: 20px;
  min-width: 200px;
  height: 40px;
  background-color: white;
  color: black;
  border: 2px solid #ececec;
  border-radius: 20px;
  -webkit-transition-duration: 0.1s; /* Safari */
  transition-duration: 0.1s;
  font-weight: bold;
  text-align: center;
}

.file_input:focus + label,
.file_input + label:hover {
  border: 2px solid black;
}

.file_input + label {
  cursor: pointer;
}

/* Checkboxes */
input[type="checkbox"] {
  accent-color: var(--color-primary);
}

.sa-checkbox {
  display: block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  min-height: 24px;
}

.sa-checkbox.bold {
  font-weight: bold;
}

.sa-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.sa-checkbox .checkmark {
  position: absolute;
  top: 0;
  left: 0;
  min-height: 24px;
  min-width: 24px;
}

.sa-checkbox .checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.sa-checkbox input:checked ~ .checkmark:after {
  display: block;
}

.sa-checkbox.preset input ~ .checkmark:after {
  display: block;
}

.sa-checkbox .checkmark:after {
  left: 8px;
  top: 1px;
  width: 7px;
  height: 18px;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

/* Reversed checkbox */
.sa-checkbox.reversed {
  padding-left: 0px;
  padding-right: 35px;
}

.sa-checkbox.reversed .checkmark {
  left: auto;
  right: 0;
}

/* GreenGray SA checkbox */
.sa-checkbox.green-gray .checkmark {
  background-color: var(--color-background-secondary);
}

.sa-checkbox.green-gray:hover input ~ .checkmark {
  background-color: #ccc;
}

.sa-checkbox.green-gray input:disabled ~ .checkmark {
  background-color: #afafaf;
}

.sa-checkbox.green-gray .checkmark:after {
  border: solid var(--color-primary);
  border-width: 0 3px 3px 0;
}

.sa-checkbox.preset.green-gray .checkmark:after {
  border: solid #6b6b6b;
  border-width: 0 3px 3px 0;
}

/* GreenBlack SA checkbox */
.sa-checkbox.green-black .checkmark {
  background-color: #454545;
}

.sa-checkbox.green-black:hover input ~ .checkmark {
  background-color: #ccc;
}

.sa-checkbox.green-black input:disabled ~ .checkmark {
  background-color: #6b6b6b;
}

.sa-checkbox.green-black input:checked:not(:disabled) ~ .checkmark {
  background-color: var(--color-primary);
}

.sa-checkbox.green-black .checkmark:after {
  border: solid white;
  border-width: 0 3px 3px 0;
}

/* Switches */
.sa-switch {
  margin-top: 10px;
  position: relative;
  min-height: 32px;
  display: flex;
  align-items: flex-start;
}

.sa-switch input[type="checkbox"],
.sa-switch input[type="radio"] {
  opacity: 0;
  width: 0;
  height: 0;
}

.sa-switch .slider {
  cursor: pointer;
  min-width: 50px;
  height: 24px;
  background-color: var(--color-onsurface-500);
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.sa-switch .slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  top: 2px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.sa-switch input ~ .slider:before {
  transform: translateX(4px);
}

.sa-switch input:checked ~ .slider:before {
  transform: translateX(24px);
  background-color: var(--color-primary);
}

.sa-switch input:checked ~ .slider {
  background-color: var(--color-black);
}

.sa-switch.black-background input:checked ~ .slider {
  background-color: white;
}

.sa-switch input:disabled ~ .slider {
  background-color: #b2b2b2;
}

.sa-switch input:disabled ~ label {
  color: #b2b2b2;
}

.sa-switch .slider.round {
  border-radius: 34px;
}

.sa-switch .slider.round:before {
  border-radius: 50%;
}

.sa-switch > label {
  margin-left: 5px;
  margin-top: 1px;
}

.sa-switch > label[for] {
  cursor: pointer;
}

.sa-switch.black-background > label {
  color: #b2b2b2;
}

.sa-switch.black-background input:checked ~ .label {
  color: white;
}

.sa-switch input.normal {
  border: 1px solid #d5d5d5;
  height: 100%;
  padding-left: 5px;
}

.sa-switch input.count {
  border: 1px solid #d5d5d5;
  width: 30px;
  height: 100%;
  text-align: center;
}

.sa-switch input.count.large {
  width: 50px;
}

.sa-switch input[type="number"].count.large {
  width: 60px;
}

.sa-switch select {
  min-width: 200px;
  padding-left: 5px;
}

.sa-switch select:not(.underline) {
  border: 1px solid #d5d5d5;
  min-height: 100%;
}

.sa-switch select.small,
.sa-switch input.small {
  width: 75px;
}

.sa-double-switch {
  position: relative;
  display: inline-block;
}

.sa-double-switch input[type="checkbox"],
.sa-double-switch input[type="radio"] {
  opacity: 0;
  width: 0;
  height: 0;
}

.sa-double-switch .slider {
  position: absolute;
  cursor: pointer;
  width: 50px;
  height: 24px;
  background-color: grey;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.sa-double-switch .slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  bottom: 2px;
  background-color: var(--color-primary);
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.sa-double-switch input ~ .slider:before {
  transform: translateX(4px);
}

.sa-double-switch input:checked ~ .slider:before {
  transform: translateX(24px);
}

.sa-double-switch input:disabled ~ .slider {
  background-color: #b2b2b2;
}

.sa-double-switch input:disabled ~ label {
  color: #b2b2b2;
}

.sa-double-switch .slider.round {
  border-radius: 34px;
}

.sa-double-switch .slider.round:before {
  border-radius: 50%;
}

.sa-double-switch > label {
  font-weight: bold;
  color: grey;
}

.sa-double-switch > label.active {
  color: black;
}

.sa-double-switch > label:first-of-type {
  margin-right: 15px;
}

.sa-double-switch > label:last-of-type {
  margin-left: 65px;
}

.sa-double-switch > label[for] {
  cursor: pointer;
}

.sa-double-switch.black-background > label {
  color: #b2b2b2;
}

.sa-double-switch.black-background > label.active {
  color: white;
}

.sa-double-switch.black-background input:checked ~ .label {
  color: white;
}

.sa-double-switch.black-background .slider {
  background-color: white;
}

/*JQuery confirm buttons*/
.jconfirm.jconfirm-light .jconfirm-box .jconfirm-buttons button.btn {
  min-width: 150px;
  border: none;
  border-radius: 20px;
  padding: 10px;
  padding-left: 20px;
  padding-right: 20px;
}

.jconfirm .jconfirm-box .jconfirm-buttons button.btn.btn-green,
.jconfirm.jconfirm-light
  .jconfirm-box
  .jconfirm-buttons
  button.btn.btn-default {
  color: var(--color-white);
  background-color: var(--color-primary);
}

.jconfirm .jconfirm-box .jconfirm-buttons button.btn.btn-green:hover,
.jconfirm.jconfirm-light
  .jconfirm-box
  .jconfirm-buttons
  button.btn.btn-default:hover {
  background-color: var(--color-primary-hover);
}

.jconfirm .jconfirm-box .jconfirm-buttons button.btn.btn-black {
  color: var(--color-white);
  background-color: var(--color-black);
}

.jconfirm .jconfirm-box .jconfirm-buttons button.btn.btn-black:hover {
  background-color: var(--color-onsurface-600);
}

.jconfirm .jconfirm-box .jconfirm-buttons button.btn.btn-orange {
  color: var(--color-white);
  background-color: var(--color-warning);
}

.jconfirm .jconfirm-box .jconfirm-buttons button.btn.btn-orange:hover {
  background-color: var(--color-warning-light);
}

.jconfirm
  .jconfirm-box-container
  .jconfirm-box.jconfirm-type-orange
  .jconfirm-title-c
  .jconfirm-icon-c {
  color: var(--color-warning) !important;
}

.jconfirm .jconfirm-box-container .jconfirm-box.jconfirm-type-orange {
  border-top: solid 7px var(--color-warning) !important;
}

.jconfirm
  .jconfirm-box.jconfirm-type-red
  .jconfirm-buttons
  button.btn.btn-default {
  color: var(--color-white);
  background-color: var(--color-alert);
}

.jconfirm
  .jconfirm-box.jconfirm-type-red
  .jconfirm-buttons
  button.btn.btn-default:hover {
  background-color: var(--color-alert-light);
}

/* Skoda dialog style */
.jconfirm div.jconfirm-box.jconfirm-type-skoda {
  padding: 20px;
  min-height: 75vh;
}

.jconfirm div.jconfirm-box.jconfirm-type-skoda .jconfirm-content-pane {
  height: 60vh;
}

.jconfirm
  div.jconfirm-box.jconfirm-type-skoda
  .jconfirm-content-pane
  .jconfirm-content,
.jconfirm
  div.jconfirm-box.jconfirm-type-skoda
  .jconfirm-content-pane
  .jconfirm-content
  > div {
  height: 100%;
}

.jconfirm div.jconfirm-box.jconfirm-type-skoda-centered .jconfirm-buttons {
  width: 100%;
  display: flex;
  justify-content: center;
}

.dialog-form {
  height: 95%;
}

/* JQuery Dialogs */
.ui-widget-overlay {
  background-color: black;
  background-image: none;
  opacity: 0.75;
  z-index: 1040;
}

.ui-dialog-titlebar.ui-widget-header {
  border: none;
  background: white;
  height: 100px;
}

.ui-dialog-title {
  height: 100%;
  display: inline-flex;
  align-items: center;
  font-size: 150%;
}

.ui-dialog-titlebar-close {
  border: none;
  background: none;
  top: 50% !important;
  right: 5% !important;
  background-image: url(krizek-black.png) !important;
  background-position: left top !important;
}

.ui-dialog .ui-dialog-content {
  overflow-x: hidden;
}

/* Loader */
.preloader {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 999999999;
  width: 100%;
  height: 100%;
  overflow: visible;
  background: rgba(0.5, 0.5, 0.5, 0.5);
}

.preloader .loader {
  position: absolute;
  left: calc(50% - 30px);
  top: calc(50% - 30px);
  width: 60px;
  height: 60px;
  border: 8px solid var(--color-surface);
  border-top: 8px solid var(--color-primary);
  border-radius: 50%;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Debug symbols - email JSON etc. */
.debug .string {
  color: green;
}

.debug .number {
  color: darkorange;
}

.debug .boolean {
  color: blue;
}

.debug .null {
  color: magenta;
}

.debug .key {
  color: var(--color-alert);
}

/* Daterange picker */
.daterangepicker td.in-range {
  background-color: lightgray;
}

.daterangepicker td.active,
.daterangepicker td.active:hover {
  background-color: black;
  color: white;
}

.drp-selected {
  font-weight: bold;
}

/* Icon colors */
i.fas {
  cursor: pointer;
}

i.white {
  color: white;
}

i.green {
  color: var(--color-primary);
}

i.green-secondary {
  color: var(--color-secondary);
}

i.red {
  color: var(--color-alert);
}

a.button {
  padding-left: 5px;
  cursor: pointer;
}

/* Visibility Utilities */
@media (min-width: 576px) {
  .display-sm-block {
    display: block;
  }
}

/* SVG icons */
svg .fill-none,
.icon.fill-none svg {
  fill: none;
}

svg .fill-green,
.icon.fill-green svg {
  fill: var(--color-primary);
}

svg .fill-white,
.icon.fill-white svg {
  fill: white;
}

svg .fill-none,
.icon.fill-none svg {
  fill: none;
}

svg .fill-red,
.icon.fill-red svg {
  fill: var(--color-alert);
}

svg .fill-black,
.icon.fill-black svg {
  fill: var(--color-black);
}

svg .stroke-10,
.icon.stroke-10 svg {
  stroke-miterlimit: 10;
}

svg .stroke-green,
.icon.stroke-green svg {
  stroke: var(--color-primary);
}

svg .stroke-white,
.icon.stroke-white svg {
  stroke: white;
}

svg .stroke-red,
.icon.stroke-red svg {
  stroke: var(--color-alert);
}

svg .stroke-black,
.icon.stroke-black svg {
  stroke: var(--color-text);
}

span.icon.editability[disabled] {
  display: none !important;
}

/* LDAP search */
.ldap-dialog.ui-dialog-content.ui-widget-content {
  padding: 0;
  padding-bottom: 0.5em;
  background: #f3f3f3;
}

.ldap-dialog .ldap-search {
  background: white;
  height: 600px;
}

.ldap-dialog .ldap-search .column {
  padding: 2em;
  background: var(--color-black);
}

.ldap-dialog label.title {
  margin-top: 1.5rem;
}

.ldap-dialog .ldap-search svg.green {
  fill: var(--color-primary);
}

.ldap-dialog .ldap-search svg:hover {
  cursor: pointer;
}

.ldap-dialog .ldap-search label.title {
  color: #9e9e9e;
}

.ldap-dialog .ldap-search span.title {
  font-weight: bold;
}

.ldap-dialog .ldap-search .dzc span.title {
  color: var(--color-black);
}

.ldap-dialog .ldap-search .search span.title {
  color: white;
}

.ldap-dialog .ldap-search .dzc input.underline {
  border-bottom: 1px solid var(--color-black);
}

.ldap-dialog .ldap-search .search input.underline {
  border-bottom: 1px solid white;
}

.ldap-dialog .ldap-search .dzc .list {
  list-style-type: none;
  padding-left: 0px;
}

.ldap-dialog .ldap-search .dzc .list svg {
  width: 18px;
  height: 18px;
  margin-right: 5px;
}

.ldap-dialog .ldap-search .search input {
  color: white;
}

.ldap-dialog .ldap-search .search .results {
  display: flex;
  flex-direction: column;
  max-height: 100%;
  overflow-y: auto;
}

.ldap-dialog .ldap-search .search .results .user {
  background: white;
  display: flex;
  justify-content: space-between;
  height: 40px;
  margin-bottom: 2px;
  padding-left: 10px;
  align-items: center;
}

.ldap-dialog .ldap-search .search .results .user svg {
  width: 24px;
  height: 24px;
  margin-right: 5px;
}

/* Page title */
.menu-title {
  font-size: 25px;
  color: var(--color-tertiary);
  font-weight: 300;
}

/* PRESS groups */
.press-group {
  display: none;
}

.press-group-show:not(.press-group-visible) {
  display: none !important;
}

/* Signature */
#dialog-edit-person canvas {
  width: 300px;
  height: 150px;
  border: 1px gray dashed;
  opacity: 0.5;
}

#dialog-edit-person canvas:not(.disabled) {
  border: 1px solid black;
  opacity: 1;
}

#dialog-edit-person .icon:hover {
  cursor: pointer;
}

#dialog-edit-person .icon svg {
  width: 24px;
  height: 24px;
}

/* Tooltip close icon wrapper */
.tooltip .tooltip-wrapper-close {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.tooltip .tooltip-wrapper-close button.close {
  font-size: 2rem;
  align-self: end;
}
