/* layout */
div.main {
    min-height: calc(100vh - 200px);
}

.cursor-pointer {
    cursor: pointer;
}


/* menu */
.dropdown-menu li {
    position: relative;
}

.dropdown-menu .dropdown-submenu {
    display: none;
    position: absolute;
    left: 100%;
    top: -7px;
}

.dropdown-menu .dropdown-submenu-left {
    right: 100%;
    left: auto;
}

.dropdown-menu > li:hover > .dropdown-submenu {
    display: block;
}

.dropdown-button-bar {
    display: inline-block;
}

    .dropdown-button-bar button {
        margin-top: 3px;
        display: block;
        width: 100%;
    }

    .dropdown-button-bar .dropdown-menu {
        width: max-content;
        box-shadow: none;
        background: none;
    }

@media (min-width: 992px) {
    .development-scroll {
        overflow: scroll hidden;
    }
}

@media (max-width: 991px) {
    .usermenu .dropdown-menu[data-mdb-popper] {
        top: auto;
        bottom: 100%;
        margin-top: 0;
        margin-bottom: 0.125rem;
    }
}

.usermenu {
    margin: 7px;
}

/* forms */
/*.form-label.required:after {
    content: " * " !important;
    color: red;
}*/
/**  :after se hada s nejakym mdb stylem, tak to zkousim dat :befor  **/
.form-floating label.required::before {
    content: "* ";
    color: red;
}

.form-label {
    white-space: nowrap;
}

.form-control {
    overflow: hidden;
    white-space: nowrap;
}

    .form-control .select2-selection {
        width: 100%;
        display: inline-block;
        min-height: 20px;
        white-space: nowrap;
    }

        .form-control .select2-selection.select2-selection--multiple {
            border: none;
            background: none;
            margin-top: -0.3em;
        }

    .form-floating {
        overflow: hidden;
    }

    .form-floating > textarea.form-control {
        overflow: auto;
        line-height: 1em;
        white-space: pre-wrap;
        height: auto;
    }

.validation-summary-errors {
    color: #dc3545;
}

    .validation-summary-errors .validation-warning {
        color: orange;
    }


.field-validation-error {
    color: #dc3545;
}

.input-validation-error {
    border-color: red;
}

.input-validation-error {
    background-color: #fae3e5 !important;
    border: 1px solid #dc3545;
}

    .input-validation-error:focus {
        box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.35);
    }

.validation-warning .input-validation-error {
    border: 1px solid orange;
    background-color: lightyellow !important;
}

.validation-warning .field-validation-error {
    color: orange;
}


.formular-ciselnik:has(.input-validation-error) span.select2-container {
    background-color: #fae3e5 !important;
    border: 1px solid #dc3545;
}

input[value=""][readonly] {
    color: transparent;
    pointer-events: none;
}

input[readonly] {
    -moz-appearance: textfield;
}

.select2-container--disabled {
    background-color: #eeeeee;
}

.select2-container .select2-dropdown {
    z-index: 2000;
}

span.select2-container--default .select2-results > .select2-results__options {
    max-height: 370px;
}

@media (min-height: 1000px) {
    span.select2-container--default .select2-results > .select2-results__options {
        max-height: 570px;
    }
}
@media (max-width: 991px) {
    span.select2-container--default .select2-results > .select2-results__options {
        max-height: 200px;
    }
}

.select2-container span.select2-selection__arrow {
    height: 26px;
    position: absolute;
    top: 18px;
    right: 1px;
    width: 20px;
}

.select2-container span.select2-selection__arrow > b {
    border-color: #888 transparent transparent transparent;
    border-style: solid;
    border-width: 5px 4px 0 4px;
    height: 0;
    left: 50%;
    margin-left: -4px;
    margin-top: -2px;
    position: absolute;
    top: 50%;
    width: 0;
}

div.form-control[readonly] {
    background-color: #eeeeee;
}

div.form-control[disabled] {
    background-color: #eeeeee;
}

div.form-floating[readonly] span.select2 {
    background-color: #eeeeee;
}

/* grid */
.grid-actions {
    white-space: nowrap;
}

/* subjekty */
.ref-selector[readonly] .ref-selector-clear, .ref-selector[disabled] .ref-selector-clear {
    display: none;
}

.ref-selector[readonly] .ref-selector-selector, .ref-selector[disabled] .ref-selector-selector {
    pointer-events: none;
    color: #4f4f4f;
}

/* zalozky */
.nav-tabs .nav-link {
    border-color: #f2f6f0;
}

.alert ul {
    margin-bottom: 0;
}

/*text-area s minimalni vyskou*/
.form-textarea-high {
    min-height: 100px !important;
}

/*textarea - zobrazeni poznamky*/
.textarea-poznamka {
    min-height: 100px !important;
    white-space: pre-wrap;
    overflow-y: scroll;
}

/* simulace textarea readonly, aby byl videt cely text podle delky */
.textarea-readonly {
    white-space: normal;
    height: auto !important;
    background-color: #eeeeee;
    line-height: normal !important;
    min-height: calc(3rem + 2px);
    white-space: pre-wrap;
}

.pre-wrap {
    white-space: pre-wrap !important;
}

td.td-pre-wrap {
    white-space: pre-wrap !important;
}

.aktualni-obdobi {
    border: 2px solid green !important;
}

.useky-vyber .select2-container {
    height:100px;
    overflow:auto;
}