﻿/* PRESENCE BAR */
.presence-li:hover .secondary-presence, .presence-li:hover .secondary-presence-big {
    margin-top: 0.25rem;
    opacity: 1;
}

.presence-li .secondary-presence {
    position: relative;
    margin-top: -1.5rem;
    opacity: 0.8;
    transition: margin 750ms, opacity 750ms;
}

.presence-li .secondary-presence-big {
    margin-top: -2.5rem;
    opacity: 0.8;
    transition: margin 750ms, opacity 750ms;
}

.btn-tool-primary,
.btn-tool-primary-light {
    font-size: .875rem;
    margin: -.75rem 0;
    padding: .25rem .5rem;
}

    .btn-tool-primary:hover,
    .btn-tool-primary-light:hover {
        font-size: .875rem;
        margin: -.75rem 0;
        padding: .25rem .5rem;
    }

/* ANIMATION */

.anim-flashing {
    border: none;
    animation: blink 2s ease-in infinite;
}

@keyframes blink {
    from, to {
        opacity: 1
    }

    50% {
        opacity: 0
    }
}

.anim-pulse {
    border: none;
    animation: pulse 2s ease-in infinite;
}

@keyframes pulse {
    from, to {
        opacity: 1
    }

    50% {
        opacity: 0.2
    }
}

.pointer {
    cursor: pointer;
}

.ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

label:not(.form-check-label):not(.custom-file-label) {
    font-weight:normal;
}

.table-sticky {
    border: 0;
}

.table-sticky th:first-child,
.table-sticky td:first-child {
    border-left: 0;
    position: sticky;
    background-color: white;
    left: 0;
    z-index: 1;
}

.table-sticky thead th:first-child {
    border-top: 0;
}

.table-sticky thead tr:first-child {
    position: sticky;
    background-color: white;
    top: 0;
    z-index: 2;
}

.table-empty {
    text-align: center;
    color: #6c757d;
}

.table-empty:hover {
    background-color:transparent !important;
}

.bg-white-blur {
    background-color: #ffffffCC;
    backdrop-filter: blur(5px);
}


/* POPOVER MENU - zatím nepoužité */
.list-group-pop {
    margin: 0rem -0.75rem;
}

    .list-group-pop > .list-group-item {
        padding: 0.5rem 1.25rem;
        cursor:pointer;
    }

/* Má stejné vlastnosti jako Bootstrap 5 invalid-feedback, akorát chybí display: none; */
.field-validation-error {
    width: 100%;
    margin-top: .25rem;
    font-size: 80%;
    color: #dc3545;
}
 /* Bootstrap 5: .form-control.is-invalid, .was-validated .form-control:invalid */
.input-validation-error {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.inline-100 {
    display: inline-block;
    width: 100px;
    margin: -.75rem 0;
}

.input-table-sm {
    padding: 0!important;
}

    .input-table-sm input {
        width: 100%;
        height: 34px;
        border: 0;
        padding: .3rem;
    }