﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    z-index: 1;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #c4c4c4;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a6a6a6;
}

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
    color: #0366d6;
    text-decoration: none;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    position: relative;
    min-height: 100%;
}

body {
    /* Margin bottom by footer height */
    margin-bottom: 60px;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px; /* Vertically center the text there */
}

#wrapper {
    overflow-x: hidden;
    height: calc(100vh - 60px);
}

#sidebar-wrapper {
    min-height: calc(100vh - 60px);
    margin-left: -15rem;
    -webkit-transition: margin .25s ease-out;
    -moz-transition: margin .25s ease-out;
    -o-transition: margin .25s ease-out;
    transition: margin .25s ease-out;
    overflow-x: hidden;
    overflow-y: hidden;
}

    #sidebar-wrapper .sidebar-heading {
        padding: 0.875rem 1.25rem;
        font-size: 1.2rem;
    }

    #sidebar-wrapper .list-group {
        width: 15rem;
    }

#page-content-wrapper {
    min-width: 100vw;
}

#wrapper.toggled #sidebar-wrapper {
    margin-left: 0;
}

@media (min-width: 768px) {
    #sidebar-wrapper {
        margin-left: 0;
        overflow-y: auto;
    }

    #page-content-wrapper {
        min-width: 0;
        width: 100%;
    }

    #wrapper.toggled #sidebar-wrapper {
        margin-left: -15rem;
        overflow-y: hidden;
    }
}

body {
    margin-bottom: 0;
}

.bg-ima {
    background: #25476c;
}

.navbar-toggler {
    border: none !important;
    outline: none !important;
    margin: 0;
    padding: 2px;
}

.navbar-toggler:hover {
    color: black;
    border: 2px solid #ffffff1c !important;
    padding: 0;
}

.w-31px {
    width: 31px;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    overflow: visible;
}

.area {
    background: #25476c;
    background: -webkit-linear-gradient(to left, #8f94fb, #496686);
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
}

.circles {
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

    .circles li {
        position: absolute;
        border-radius: 25%;
        display: block;
        list-style: none;
        width: 20px;
        height: 20px;
        background: rgba(255, 255, 255, 0.2);
        animation: animate 25s linear infinite;
        bottom: -150px;
    }

        .circles li:nth-child(1) {
            left: 25%;
            width: 80px;
            height: 80px;
            animation-delay: 0s;
        }


        .circles li:nth-child(2) {
            left: 10%;
            width: 20px;
            height: 20px;
            animation-delay: 2s;
            animation-duration: 12s;
        }

        .circles li:nth-child(3) {
            left: 70%;
            width: 20px;
            height: 20px;
            animation-delay: 4s;
        }

        .circles li:nth-child(4) {
            left: 40%;
            width: 60px;
            height: 60px;
            animation-delay: 0s;
            animation-duration: 18s;
        }

        .circles li:nth-child(5) {
            left: 65%;
            width: 20px;
            height: 20px;
            animation-delay: 0s;
        }

        .circles li:nth-child(6) {
            left: 75%;
            width: 110px;
            height: 110px;
            animation-delay: 3s;
        }

        .circles li:nth-child(7) {
            left: 35%;
            width: 150px;
            height: 150px;
            animation-delay: 7s;
        }

        .circles li:nth-child(8) {
            left: 50%;
            width: 25px;
            height: 25px;
            animation-delay: 15s;
            animation-duration: 45s;
        }

        .circles li:nth-child(9) {
            left: 20%;
            width: 15px;
            height: 15px;
            animation-delay: 2s;
            animation-duration: 35s;
        }

        .circles li:nth-child(10) {
            left: 85%;
            width: 150px;
            height: 150px;
            animation-delay: 0s;
            animation-duration: 11s;
        }



@keyframes animate {

    0% {
        transform: translateY(0) translateZ(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(-1000px) translateZ(0) rotate(720deg);
        opacity: 0;
    }
}

.tree,
.subtree,
.tree-item {
    list-style-type: none;
    padding-top: 0px;
    padding-bottom: 0px;
    padding-top: 5px;
}

.subtree {
    overflow: hidden;
    transition: all 0.2s ease-in-out;
    margin-bottom: 0;
    border-left: 2px dotted black;
    padding-left: 0px;
}

.tree-leading-dots {
    margin-left: 2px;
    margin-right: 5px;
    border-bottom: 2px dotted black;
    width: 20px;
    height: 14px;
}

.tree-item {
    display: flex;
    align-items: start;
}

.td-buttons {
    white-space: nowrap;
    width: 1px !important;
}

td {
    vertical-align: middle !important;
}

.flex-gap-md {
    gap: 0px 15px;
}

#select-group {
    min-width: 200px;
    max-width: 100%;
    width: auto;
    white-space: nowrap;
}

.select2-selection--single{
    min-width: 200px;
}

.select2-selection__rendered {
    min-width: 200px;
}

.select2-container {
    width: auto !important;
}

.table-head-styling {
    padding: 1.5rem;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    background-color: rgba(0, 0, 0, .05);
    border: 1px solid #dee2e6;
}

.tree-head-styling, .tree-filter-panel{
    position: sticky;
    z-index: 100;
}

.tree-head-styling {
    top: 0px;
    background: #F7F5F5;
}

.tree-filter-panel {
    top: 87px;
    border-bottom: 1px solid #dee2e6;
    background: white;
}

.table-custom-styling {
    border: 1px solid #dee2e6;
}

.filter-panel {
    overflow: hidden;
    max-height: 0;
    transition: all ease 0.5s;
    padding: 0 0;
    border-left: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
    padding: 0rem 1.5rem;
}

.filter-panel.show {
    max-height: 200px;
    padding: 0.5rem 1.5rem;
}

/* Potential fix to keep smaller height consistent in small buttons and inputs. */

/*.select2-selection {
    height: 30px !important;
}

.select2-container--bootstrap-5 .select2-selection--single {
    height: calc(2.25rem + 2px);
    line-height: 1;
    padding: .4rem 1.125rem .75rem .375rem;
}
*/

.navbar {
    padding: .5rem 1rem;
}

.nav-link {
    padding: .5rem 1rem;
}

.list-group-item {
    padding: .75rem 1.25rem;
}

.kiosk-group-btn {
    padding: 4px 6px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.kiosk-group-btn:hover {
    background-color: rgba(0, 0, 0, 0.05); /* decentní šedý podklad */
    text-decoration: none;
}

.tree-wrapper {
    overflow-x: auto;
    max-width: 100%;
}
/* JSTree modification */
#kiosk-tree {
    white-space: nowrap;
}

.jstree-proton-large .jstree-node {
    min-height: 40px;
    line-height: 40px;
    margin-left: 40px;
    min-width: 40px;
}

.jstree-proton-large .jstree-anchor {
    line-height: 40px;
    margin: unset;
    height: 40px;
}

.jstree-proton-large .jstree-icon {
    width: 40px;
    height: 40px;
    line-height: 40px;
}

.jstree-proton-large .jstree-icon:empty {
    width: 40px;
    height: 40px;
    line-height: 40px;
}

.jstree-proton-large .jstree-wholerow {
    height: 40px;

    border-bottom: 1px solid lightgrey;
    border-right: 1px solid lightgrey;
    border-left: 1px solid lightgrey;
}

.jstree-proton-large > .jstree-no-dots .jstree-open > .jstree-ocl {
    background-position: -32px 3px !important;
}

.jstree-proton-large > .jstree-no-dots .jstree-closed > .jstree-ocl {
    background-position: 0 3px !important;
}

.jstree-proton-large .jstree-wholerow-hovered {
    background: #F7F5F5;
    border-radius: 3px;
    box-shadow: inset 0 0 1px #F7F5F5;
}

.jstree-proton .jstree-wholerow-clicked {
    background: #F7F5F5;
    background: -moz-linear-gradient(top, #F7F5F5 0%, #F7F5F5 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #F7F5F5), color-stop(100%, #F7F5F5));
    background: -webkit-linear-gradient(top, #F7F5F5 0%, #F7F5F5 100%);
    background: -o-linear-gradient(top, #F7F5F5 0%, #F7F5F5 100%);
    background: -ms-linear-gradient(top, #F7F5F5 0%, #F7F5F5 100%);
    background: linear-gradient(to bottom, #F7F5F5 0%, #F7F5F5 100%);
}