.front-end-edit ul {
    padding: 0 !important;
}
.front-end-edit li {
    list-style: none;
    margin-bottom: 6px !important;
}
.front-end-edit #vyber-sluzby label {
    margin-right: 10px;
}
.front-end-edit .radio label {
    float: none;
}
.front-end-edit .readonly {
    border: none !important;
    color: #666;
}
.front-end-edit #editor-xtd-buttons {
    height: 50px;
    width: 600px;
    float: left;
}
.front-end-edit .toggle-editor {
    height: 50px;
    width: 120px;
    float: right;
}

#access-rules a:hover{
    background:#f5f5f5 url('../images/slider_minus.png') right  top no-repeat;
    color: #444;
}

fieldset.radio label{
    width: 50px !important;
}

form div.button-div{
    margin-left: 110px;
}

/* Autocomplete dropdown */
.autocomplete-dropdown {
    position: absolute;
    z-index: 1050;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.autocomplete-item {
    padding: 6px 12px;
    cursor: pointer;
    font-size: 0.9em;
}

.autocomplete-item:hover,
.autocomplete-item.active {
    background-color: #0d6efd;
    color: #fff;
}

/* Service list custom styles */
.price {
    font-weight: bold;
    display: inline-block;
    margin-left: 10px;
}

.odsad {
    font-weight: bold;
}

.selected {
    background-color: #e8f4fd;
    border-radius: 4px;
}

.fcheck {
    padding-top: 4px;
}

.fcheck input[type="radio"] {
    width: 18px;
    height: 18px;
}

/* Floating labels - match Bootstrap 5.3 spec */
#udaje .form-floating {
    position: relative;
    overflow: visible;
}

#udaje .form-floating > .form-control {
    height: calc(3.5rem + 2px);
    min-height: calc(3.5rem + 2px);
    line-height: 1.25;
    padding: 1.625rem 0.75rem 0.625rem;
}

#udaje .form-floating > .form-control::placeholder {
    color: transparent;
}

#udaje .form-floating > label {
    float: none !important;
    display: block !important;
    width: auto !important;
    text-align: left !important;
    margin: 0 !important;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    height: auto;
    padding: 1rem 0.75rem;
    overflow: visible;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
    border: 1px solid transparent;
    transform-origin: 0 0;
    transition: opacity .1s ease-in-out, transform .1s ease-in-out;
    color: rgba(var(--bs-body-color-rgb, 33, 37, 41), .65);
}

/* Joomla formvalidator error span inside label */
#udaje .form-floating > label > .form-control-feedback {
    display: block;
    position: absolute;
    top: calc(3.5rem + 2px);
    left: 0;
    white-space: normal;
    font-size: 0.85em;
    color: #dc3545;
    padding: 0.25rem 0.75rem 0;
    pointer-events: none;
}

#udaje .form-floating > .form-control:focus ~ label,
#udaje .form-floating > .form-control:not(:placeholder-shown) ~ label,
#udaje .form-floating > .form-control.invalid ~ label,
#udaje .form-floating > .form-control.form-control-danger ~ label,
#udaje .form-floating > .form-control[aria-invalid="true"] ~ label {
    color: rgba(var(--bs-body-color-rgb, 33, 37, 41), .65);
    transform: scale(.85) translateY(-0.5rem) translateX(0.15rem);
}

/* Invalid field - red border */
#udaje .form-floating > .form-control.invalid,
#udaje .form-floating > .form-control[aria-invalid="true"] {
    border-color: #dc3545;
}

/* Label turns red on invalid */
#udaje .form-floating > .form-control.invalid ~ label,
#udaje .form-floating > .form-control[aria-invalid="true"] ~ label {
    color: #dc3545;
}

/* Validation error message below field - no overlap */
#udaje .col-md-6 > .form-floating {
    margin-bottom: 0;
}

#udaje .col-md-6 .alert-error,
#udaje .col-md-6 .invalid-feedback,
#udaje .col-md-6 .help-block {
    font-size: 0.85em;
    color: #dc3545;
    margin-top: 0.25rem;
    display: block;
}

/* Tab wizard - visited tabs are clickable */
#postup li.tabs:not(.disabled) a {
    cursor: pointer;
}

#postup li.tabs.disabled a {
    cursor: not-allowed;
    opacity: 0.5;
}

#postup li.tabs.open a {
    opacity: 1;
}
