:root {
  --green-light: #f7f9de;
  --green: #b7d332;
  --yellow: #ffcc00;
  --yellow-light: #fffae5;
  --red: #ff6961;
  --red-light: #ffe1e1;
  --blue: #1e90ff;
  --blue-light: #e8f0fe;
  --blue-ubd: #00a0de;
  --blue-ubd-dark: #008ec5;
  --bs-warning-rgb: 255,204,0;
  --bs-danger-rgb: 255,105,97;
  --bs-info-rgb: 0,160,222;
  --bs-success-rgb: 183,211,50;
}

body {
  background-color: #f1f4f9;
  font-family: nunito;
}

a {
    color: var(--blue-ubd);
    text-decoration: none;
    cursor: pointer;
}

.bg-default {
  background-color: #f1f4f9e6;
}

.bg-primary {
    background-color: var(--blue-ubd) !important;
}

.bg-danger {
    background-color: var(--red) !important;
}

.bg-info {
    background-color: var(--blue) !important;
}

.navbar-toggler {
    font-size: inherit;
}

#navbarMenu {
    min-height: 38px;
    min-width: 250px;
}
  
#navbarMenu a:not(.btn-group>.btn) {
    margin: 0.2rem;
}

.user-menu a {
    margin: 0.1rem;
}

.navbar-collapse.collapse.show {
  background: #f1f4f9e6;
  position: absolute;
  top: 55px;
  width: 100%;
  display: flex;
}

#webComponents {
    margin-bottom: 150px;
}

.w-50p { width: 50px; }
.w-85p { width: 85px; }
.w-130p { width: 130px; }
.w-150p { width: 150px; }
.w-250p { width: 250px; }
.w-500p { width: 500px; }

.h-50p { height: 50px; }
.h-85p { height: 85px; }
.h-400p { height: 400px; }

.mw-250p { max-width: 250px; }
.mw-500p { max-width: 500px; }
.mw-1000p { max-width: 1000px; }

.mh-300p { max-height: 300px; }
.mh-400p { max-height: 400px; }

.nh-300p { min-height: 300px; }

.fs-7 {
  font-size: 0.8rem;
}

.text-truncate-2-lines {
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cursor-pointer {
  cursor: pointer;
}

.collapsing {
  -webkit-transition: none;
  transition: none;
}

#mapTabPanes .tab-pane {
  width: 320px;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar>div {
  width: 250px;
  overflow-y: auto;
  overflow-x: hidden;
}

.btn {
  border-radius: 0.5rem;
  border: 1px solid var(--bs-border-color-translucent);
}

.btn:hover, .btn:focus, .btn:active, .btn.active:not(.close), .btn.active.close:hover, .btn[aria-expanded="true"], .btn.close[aria-expanded="true"]:hover {
  border-color: var(--blue-ubd);
}

.btn.active:not(.close):not(.transparent), .btn-group>.btn.active, .btn-primary {
  color: white;
  background-color: var(--blue-ubd);
}

.btn-check:focus+.btn-primary, .btn-primary:focus, .btn-primary:hover {
  color: white;
  background-color: var(--blue-ubd-dark);
  border-color: var(--blue-ubd);
}

.btn-check:checked+.btn, .btn.active:not(.close), .btn.show, .btn:first-child:active, :not(.btn-check)+.btn:active {
    color: white;
    background-color: var(--blue-ubd-dark);
    border-color: var(--blue-ubd);
}

.btn-check:active+.btn-primary, .btn-check:checked+.btn-primary, .btn-primary.active, .btn-primary:active, .show>.btn-primary.dropdown-toggle {
  color: white;
  background-color: var(--blue-ubd-dark);
  border-color: var(--blue-ubd);
}

.btn-check:focus+.btn-outline-primary, .btn-outline-primary:focus, .btn-check:focus+.btn, .btn:focus, .form-control:focus, .form-select:focus {
  box-shadow: 0 0 0 0.25rem rgba(0, 160, 222, .1);
}

.btn.border-0 {
  border: 1px solid transparent !important;
}

.btn.border-0:hover {
  border-color: var(--blue-ubd) !important;
}

.btn-outline {
  outline-style: solid;
  outline-width: 15px;
}

.btn-outline.bg-danger {
  outline-color: rgba(255,105,97,0.4);
}

.btn-outline.bg-warning {
  outline-color: rgba(255,204,0,0.4);
}

.btn-info,
.others {
  color: inherit;
  background-color: var(--blue-light);
  border-color: var(--blue);
}

.btn-danger,
.maintenance {
  color: inherit;
  background-color: var(--red-light);
  border-color: var(--red);
}

.btn-warning {
  background-color: var(--yellow-light);
  border-color: var(--yellow);
}

.btn-danger:focus, .btn-danger:hover, .btn-danger.active {
  color: white!important;
  background-color: var(--red)!important;
  border-color: var(--red)!important;
}

.btn-warning:focus, .btn-warning:hover, .btn-warning.active {
  color: inherit!important;
  background-color: var(--yellow)!important;
  border-color: var(--yellow)!important;
}

.btn-info:focus, .btn-info:hover, .btn-info.active {
  color: white!important;
  background-color: var(--blue)!important;
  border-color: var(--blue)!important;
}

.btn-info:hover i,
.btn-info:hover .h6 {
  color: white!important;
}

.btn, .btn:disabled, .btn.close.active {
    border-radius: 0.5rem;
    border: 1px solid var(--bs-border-color-translucent);
}

.nav-pills .btn {
  margin: 0 4px;
  border: 2px solid #dee2e6;
}

.nav-pills .btn.btn-sm {
    margin: 0 2px;
    border-width: 2px;
}

.nav-pills .btn:hover,
.nav-pills .btn:focus,
.nav-pills .btn.active {
  border-color: var(--blue-ubd);
}

.accordion-button:not(.collapsed),
.accordion-button {
  background-color: transparent;
  box-shadow: none;
}

.hidden {
  display: none;
}

.form-floating .select2-container .select2-selection--single, thead .select2-container .select2-selection--single {
  height: inherit;
  width: 100%;
  min-height: 23px;
}

.form-control:disabled, .container .select2-container--default.select2-container--disabled, .container .select2-container--default.select2-container--disabled .select2-selection--single, .form-floating .select2-container--default .select2-selection--multiple, .table-select .select2-container--default .select2-selection--multiple, .form-floating .select2-container--default.select2-container--focus .select2-selection--multiple, .table-select .select2-container--default.select2-container--focus .select2-selection--multiple, .form-floating .select2-container--default .select2-selection--single, .form-floating .select2-container--default.select2-container--disabled .select2-selection--multiple {
  background-color: transparent;
  border: none;
}

.form-floating>textarea.form-control[disabled] {
    height: 250px!important;
}

textarea:not([disabled]):not(.min-height-0):not(.select2-search__field) {
    min-height: 120px!important;
}

.form-floating .select2-container--default .select2-selection--single .select2-selection__rendered {
  padding: 0;
  line-height: inherit;
}

.form-floating .select2-container .select2-selection--single, thead .select2-container .select2-selection--single {
  height: inherit;
  width: 100%;
  min-height: 23px;
}

.form-floating>.select2-container {
  border: var(--bs-border-width) solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  width: 100% !important;
  padding: 1rem 0.75rem;
  padding-top: 1.625rem;
  padding-bottom: 0.625rem;
  height: inherit;
  min-height: calc(3.5rem + calc(var(--bs-border-width)* 2));
  line-height: 1.25;
}

.form-floating .select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 5px;
  right: 5px;
}

thead .select2-container {
  display: block;
}

.col-status .selectpicker[multiple]+.select2-container {
    width: 200px!important;
    overflow: auto;
    max-height: 62px;
}

.datagrid .row-grid-bottom {
  background-color: transparent !important;
  border: none !important;
  padding: 0 !important;
}

.datagrid-foot td {
  border-bottom-width: 0;
  padding: 0.5rem 0 0;
}

.datagrid-col-filter-date-range .input-group-append {
    display: none;
}

.datagrid-col-filter-date-range > .input-group {
    width: 0px !important;
}

.select2-container--open {
    min-width: 200px;
}

.select2-container--disabled .select2-selection__arrow {
    display: none;
  }

.select2-container--default .select2-selection--single {
  border-color: var(--bs-border-color)!important;
}

.select2-dropdown, .select2-container--default .select2-search--dropdown .select2-search__field, thead .select2-container--default .select2-selection--multiple {
    border-color: var(--bs-border-color) !important;
    border-radius: var(--bs-border-radius);
    outline: none;
}

.select2-container--default .select2-results__option.select2-results__option--selectable.select2-results__option--highlighted, .form-floating>.select2-container--default .select2-selection--multiple .select2-selection__choice, .form-floating>.select2-container--default .select2-selection--multiple .select2-selection__choice__remove, .table-select .select2-container--default .select2-selection--multiple .select2-selection__choice, .table-select .select2-container--default .select2-selection--multiple .select2-selection__choice__remove, thead .select2-container--default .select2-selection--multiple .select2-selection__choice, thead .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    background-color: var(--blue-ubd);
    border-color: var(--blue-ubd);
}

.dropdown-item.active, .dropdown-item:active {
  background-color: var(--blue-ubd);
}

.table-hover>tbody>tr:hover, .table-hover>tbody>tr:hover>* {
  --bs-table-bg-state: #f9f9f9;
}

#topContent {
  height: 70vh;
}

.table .col-action,
#image-preview .fa-trash,
#slideshowWrapper .fa-trash,
#comment .fa-trash {
  opacity: 0.4;
  filter: grayscale();
}

.table>tbody>tr:hover .col-action,
#image-preview>div:hover .fa-trash,
#slideshowWrapper .d-flex:hover .fa-trash,
#comment:hover .fa-trash {
  opacity: 1;
  filter: inherit;
}

.carousel-inner .image-wrapper {
    height: 300px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .carousel-inner img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center center;
  }
  
  .carousel-thumbnails {
    overflow: hidden;
    width: calc(100% - 20px);
    position: absolute;
    bottom: 5px;
    transition: opacity 0.3s;
    opacity: 0;
  }
  
  .carousel-thumbnails .carousel-control-next,
  .carousel-thumbnails .carousel-control-prev {
      width: 5%;
      margin: 10px;
  }
  
  .carousel:hover .carousel-thumbnails {
      opacity: 1;
    }
  
  .carousel-thumbnails-inner {
    display: flex;
    justify-content: center;
    gap: 5px;
    transition: transform 0.3s ease;
  }
  
  .carousel-thumbnails a {
    flex: 0 0 calc(20% - 3px);
    max-height: 64px;
    overflow: hidden;
  }
  
  .carousel-thumbnails img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .note-editor .note-btn-group.open .note-dropdown-menu:not(.note-table) {
      display: flex;
  }
  
  .note-editor .note-toolbar {
      background-color: inherit;
      border-bottom: none;
  }
  
  .note-editor .note-btn-group {
      margin-right: 0;
  }
  
  .note-editor.note-frame {
      border: var(--bs-border-width) solid var(--bs-border-color)!important;
  }
  
  .note-editor.note-frame .note-statusbar {
      background-color: inherit!important;
      border-top: var(--bs-border-width) solid var(--bs-border-color)!important;
  }
  
  .note-editor.note-frame .note-statusbar .note-resizebar {
      height: 20px!important;
      display: flex;
      flex-direction: column;
      justify-content: center;
  }
  
  .note-editor.note-frame .note-editing-area .note-editable[contenteditable=false] {
      background-color: inherit!important;
  }
  
  .form-control:disabled+.note-editor.note-frame {
      border: none!important;
  }

#spinner {
  background: rgba(255,255,255,0.7);
  z-index: 1030;
}

.calendar-tooltip {
    --bs-tooltip-bg: #fff;
    --bs-tooltip-color: #000;
    --bs-tooltip-font-size: 1rem;
}

.calendar-tooltip .tooltip-inner {
    text-align: left;
	max-width: 300px;
    width: 300px;
}

.calendar-tooltip .tooltip-inner .legend {
    font-size: 0.8rem;
}

svg .svg-elem-1 {
  fill: none;
  stroke: #333333;
  stroke-dashoffset: 355.60003662109375px;
  stroke-dasharray: 355.60003662109375px;
}
  
svg .svg-elem-2 {
  fill: none;
  stroke: #00A0DE;
  stroke-dashoffset: 114.60000610351562px;
  stroke-dasharray: 114.60000610351562px;
}

svg .svg-elem-1,
svg .svg-elem-2 {
  animation: dash 3s linear infinite; /* Změňte čas animace (2s) podle potřeby */
}

@keyframes dash {
  to {
    stroke-dashoffset: 0;
  }
}

@media (max-width: 768px) {
  .hidden-sm {
    display: none;
  }

  .navbar .dropdown.main-menu {
    position: inherit;
  }

  .navbar .dropdown-menu {
    width: auto;
  }
}

@media (min-width: 1400px) {
  #map, #bim {
    height: 410px;
  }
}

@media (min-width: 1600px) {
  .container {
    max-width: 1500px;
  }

  #map, #bim {
    height: 500px;
  }
}

@media (min-width: 1800px) {
  .container {
    max-width: 1680px;
  }

  #map, #bim {
    height: 580px;
  }
}

@media (min-width: 2000px) {
  .container {
    max-width: 1860px;
  }
}



