/* layout */
div.main {
    min-height: calc(100vh - 280px);
}

.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;
}

/* forms */
.form-label.required:after {
    content: " *";
    color: red;
}

.form-control .select2-selection {
    width: 100%;
    display: inline-block;
    min-height: 20px;
    white-space: nowrap;
}

.validation-summary-errors {
    color: #dc3545;
}

.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);
        border: 1px solid #dc3545;
    }

input[value=""][readonly] {
    color: transparent;
    pointer-events: none;
}

input[readonly] {
    -moz-appearance: textfield;
}

/* grid */
.grid-actions {
    white-space: nowrap;
}

.select2-container--open {
    z-index: 9999999;
}

.select2-container--disabled {
    background-color: #eeeeee;
}

div.disabled {
    background-color: #eeeeee;
}

.counter {
    position: relative;
    left: auto;
    z-index: 2;
    padding: 1px 7px;
    margin-left: -30px;
    font-size: 11px;
    color: white;
    background-color: #fe1212;
    border-radius: 10em;
}

    .counter.counter-lg {
        top: -25px !important;
        margin-right: 5px;
    }

.width100 {
    width: 100px;
}

.mr {
    margin-right: 5px;
}

.color-green {
    color: green;
}

.color-red {
    color: red;
}

.color-brown {
    color: brown;
}

.color-orange {
    color: orange;
}

.gridRowClick:hover {
    cursor: pointer;
    border: 2px solid gray;
}

.gridRowPointer:hover {
    border: 2px solid gray;
}

/*Stepper*/
.horizontal-timeline .items {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.horizontal-timeline .items-list {
    display: flex;
}

.horizontal-timeline .event-date {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    height: 48px;
    padding: 0 20px;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
}

@media (max-width: 992px) {
    .horizontal-timeline .items {
        flex-wrap: wrap;
        justify-content: center;
    }

    .horizontal-timeline .event-date {
        min-width: 160px;
        height: 44px;
        font-size: 0.9rem;
    }
}

.stepper-cursor-none {
    cursor: not-allowed;
}

/*Stepper*/



.form-floating > .form-control[readonly] {
    background-color: var(--mdb-secondary-bg);
    opacity: 1;
}

.form-floating > .form-control[readonly] ~ label::after {
    background-color: var(--mdb-secondary-bg);
}

/*aby se textarea rovnou roztáhla na více řádků*/
.form-floating > textarea.form-control {
    height: auto;
}

.button-group-flex {
    display: inline-flex;
}