.juk-container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    min-height: 100vh;
    min-width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.juk-training {
    padding: 20px;
    box-sizing: border-box;
    top: 0;
    z-index: 1;
    overflow-y: auto;
}

.juk-tms-table-badge > img {
    height: 3rem;
    width: 3rem;
    object-fit: contain;
}

@media (min-width: 991px) {
    .juk-training {
        top: 20px;
        position: sticky;
        flex: 0 0 33.3333333333%;
        max-width: 33.3333333333%;
    }
}

@media (max-width: 990px) {
    .juk-training {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.juk-form {
    flex: 1;
    background-color: #ffffff;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

.juk-training-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap-reverse;
    padding-bottom: 1.25rem;
}

.juk-training-date {
    width: fit-content;
    font-size: 1.313em;
    font-weight: 500;
    margin: 0;
}

.juk-card-body {
    background-color: #F6F6F7;
    border: 1px solid #f6f6f7;
    border-radius: 0.25rem;
    word-wrap: break-word;
    padding: 1.25rem;
}

.juk-data-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
}

.juk-label {
    width: 75px;
    margin-right: 1.25rem;
    flex-shrink: 0;
}

.juk-value {
    font-weight: 400;
    flex-grow: 1;
    margin-bottom: 0.5rem;
}

hr {
    margin-top: 1rem;
    margin-bottom: 1rem;
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    width: 100%;
}

.juk-info-btn {
    margin-top: 1rem;
}

.juk-tms-table-status a {
    display: block;
    color: #343a40;
    text-align: center;
    vertical-align: middle;
    background-color: #e9ebec;
    padding: 0.4rem;
    text-decoration: none;
    border: 1px solid #00000000;
    border-radius: 0.25rem;
    transition: background-color 0.3s, color 0.3s;
    cursor: pointer;
/*    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15),0 1px 1px rgba(0, 0, 0, 0.075); */
}


.juk-tms-table-status:hover a {
    background-color: #343a40;
    color: #fff;
}

.juk-tms-table-status:active a {
    background-color: #343a40;
}

.rvc-help {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.rvc-help-text {
    visibility: hidden;
    width: auto;
    min-width: 250px;
    max-width: 350px;
    background-color: #313840;
    color: #fff;
    text-align: center;
    font-size: 14px;
    font-weight: 300;
    padding: 10px;
    border-radius: 6px;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    white-space: normal;
    line-height: 1.4;
    z-index: 9999!important;
}

.rvc-help:hover .rvc-help-text {
    visibility: visible;
    opacity: 1;
}

.rvc-help .help-icon i {
    font-size: 12px;
    font-weight: 400;
    font-style: normal !important;
}

form {
    font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #212529;
    margin: 0 auto;
    max-width: 100%;
}

.juk-tms-trainings-table .dataTables_length label select {
    margin: 0 0.3rem 0 0.3rem;
}

.juk-form input[type="text"], .juk-form input[type="email"], .juk-form select  {
    display: block;
    width: 100%;
    height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.juk-form textarea {
    height: auto !important;
    font-size: 1rem;
    padding: 0.375rem 0.75rem;
    font-weight: 400;
    line-height: 1.5;
}

.juk-tms-trainings-table label {
    display: inline-flex;
    font-size: 1rem;
    font-weight: 400;
    float: left;
    margin: 0.9rem 0 0.3rem 0;
}

button#booking_participant, button#booking_contactperson {
    color: #212529;
    background-color: #F6F6F7;
    padding: 0.375rem 0.75rem;
    width: 100%;
    border: 1px solid #CED4DA;
    border-radius: 0.25rem;
    cursor: pointer;
    white-space: normal;
    transition: background-color 0.3s;
    font-size: 1rem;
    height: calc(1.5em + 0.75rem + 2px);
}

button#booking_save, .juk-filter-reset {
    padding: 6px 10px;
    border: 1px solid;
    border-radius: 0.25rem;
    cursor: pointer;
    white-space: normal;
    transition: background-color 0.3s;
    font-size: 1rem;
    height: calc(1.5em + 0.75rem + 2px);
}

button#booking_participant:hover,
button#booking_contactperson:hover {
    background-color: #F0F0F0;
}

button.participant_remove_item, button.contactperson_remove_item {
    display: inline-block;
    line-height: 1.5rem;
    text-align: center;
    vertical-align: middle;
    padding: 0.375rem 0.75rem!important;
    font-size: 1rem;
    font-weight: 700;
    background-color: #FDE8E4 !important;
    border: 1px solid transparent;
    border-radius: 0.25rem !important;
    color: #F06548 !important;
    float: right;
    transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
    cursor: pointer;
}

.participant_remove_item:hover, .contactperson_remove_item:hover {
    background-color: #FAD7D0;
}

button#booking_save
{
    float: right;
}

fieldset {
    border: none;
    padding: 0;
}

textarea {
    width: 100%;
    padding: 0;
    margin: 0.313rem 0;
    border: 1px solid #CED4DA;
    border-radius: 0.25rem;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    word-wrap: break-word;
    background-color: #fff;
    border: 1px solid rgba(0,0,0,0.125);
    border-radius: 0.25rem;
    transition: box-shadow 0.2s;
}

.card-body {
    flex: 1 1 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.card:focus-within {
    box-shadow: 0 41px 41px rgba(0, 0, 0, 0.0253031), 0 17.1288px 17.1288px rgba(0, 0, 0, 0.0363503), 0 9.15789px 9.15789px rgba(0, 0, 0, 0.045), 0 5.13384px 5.13384px rgba(0, 0, 0, 0.0536497), 0 2.72654px 2.72654px rgba(0, 0, 0, 0.0646969), 0 1.13458px 1.13458px rgba(0, 0, 0, 0.09);
}

.juk-form legend {
    width: auto;
    font-weight: 600;
    font-size: 1.25rem;
    text-align: left;
    border-bottom: none;
    margin-bottom: 1.25rem;
}

@media (max-width: 768px) {

    .form-group {
        flex: 0 0 100%;
    }

    .form-row {
        flex: 0 0 100%;
        box-sizing: border-box;
    }

    .card-body {
        display: inline;
    }
}

@media (min-width: 768px) {

    .form-group {
        flex: 0 0 100%;
    }

    .form-row {
        flex: 0 0 48%;
        box-sizing: border-box;
    }

}

input {
    width: 100%;
    padding: 5px;
    margin-bottom: 10px;
    border: 1px solid #CED4DA !important;
}

.form-check {
    display: inline-flex;
    align-items: flex-start;
    margin: 0.625rem;
}

.form-check-input {
    margin-right: 7px;
}

label.confirmation-text.form-check-label {
    margin: 0 0 0 0.3rem;
}

.form-check input {
    width: auto;
}

.training-card {
    background-color: #f6f6f7;
    border: 1px solid #f6f6f7;
}

.remove-btn {
    text-align: right;
    position: absolute;
    top: 0;
    right: 0;
    padding: 10px;
}

.mb-3 {
    margin-bottom: 1rem;
}

#booking_bookingtype .form-check {
    margin: 0;
    align-items: baseline;
}
#booking_bookingtype {
    display: flex;
    flex-direction: column;
    margin: 0.3rem 0 1.25rem 0;
}

#bookingtype {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    column-gap: 1rem;
}

#booking_bookingtype .form-check {
    margin: 0;
    align-items: baseline;
}

#booking_bookingtype {
    margin-bottom: 1.25rem;
}

.form-check {
    display: flex;
    align-items: baseline;
}

.form-check-input {
    margin-right: 0.3rem;
}

@media (max-width: 768px) {
    .juk-tms-table tr {
        display: block;
        border: 1px solid #ccc;
        border-radius: 5px;
        margin: 15px 10px;
        padding: 20px;
        transition: transform 0.2s, box-shadow 0.2s, border 0.2s;
    }

    .juk-tms-table td {
        display: block;
    }

    .juk-tms-table-date::before {
        content: url('data:image/svg+xml;utf8,<svg class="icon" width="18" height="22" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><g class="oi-calendar"><path class="oi-vector" d="M4 6C4 5.44772 4.44772 5 5 5H19C19.5523 5 20 5.44772 20 6V19C20 19.5523 19.5523 20 19 20H5C4.44772 20 4 19.5523 4 19V6Z" stroke="%23808080" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/><path class="oi-line" d="M9 7L9 3" stroke="%23808080" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path class="oi-line" d="M4 10L20 10" stroke="%23808080" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path class="oi-line" d="M15 7L15 3" stroke="%23808080" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></g></svg>');
        margin-right: 0.25rem !important;
    }

    .juk-tms-table-time::before {
        content: url('data:image/svg+xml;utf8,<svg class="icon" width="18" height="22" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><g class="oi-clock"><path class="oi-vector" d="M12 7.19995L12 12.0999C12 12.3761 12.2238 12.5999 12.5 12.5999L16.8 12.5999" stroke="%23808080" stroke-width="2" stroke-linecap="round"/><circle class="oi-ellipse" cx="12" cy="12" r="9" stroke="%23808080" stroke-width="2" fill="none"/></g></svg>');
        margin-right: 0.25rem !important;
    }

    .juk-tms-table-location::before {
        content: url('data:image/svg+xml;utf8,<svg class="icon" width="18" height="22" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><g class="oi-location-marker"><path class="oi-vector" d="M12 3C8.13401 3 5 6.13401 5 10C5 15 12 21 12 21C12 21 19 15 19 10C19 6.13401 15.866 3 12 3Z" stroke="%23808080" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/><circle class="oi-ellipse" cx="12" cy="10" r="3" stroke="%23808080" stroke-width="2" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/></g></svg>');
        margin-right: 0.25rem !important;
    }

    .juk-tms-table .btn-booking {
        display: block;
        width: 100%;
        background-color: #007bff;
        color: #fff;
        border: none;
        border-radius: 5px;
        padding: 10px;
        margin-top: 15px;
        cursor: pointer;
    }

    .juk-tms-table .btn-booking:hover {
        background-color: #0056b3;
    }

    .juk-tms-table-badge {
        display: none;
    }

    .juk-tms-table tr:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.075);
        transition: box-shadow 0.2s, border-color 0.2s;
    }

    .juk-tms-table table tbody>tr:nth-child(odd)>td, table tbody>tr:nth-child(odd)>th {
        background-color: #fff!important;
    }

    .juk-tms-table-price {
        font-weight: bold;
    }

    .juk-tms-table-date,
    .juk-tms-table-time,
    .juk-tms-table-location {
        display: flex!important;
        align-content: center;
        align-items: flex-start;
    }

    .juk-tms-table-time {
        margin-bottom: -18px;
    }

    .juk-tms-table thead {
        display: none;
    }

    div#datagrid_filter {
        margin: 15px 10px;
    }

    div#datagrid_filter label {
        text-align: left;
        line-height: 1.7;
    }

    div#datagrid_length {
        display: none;
    }
}

@media only screen and (max-width: 768px) {
    .juk-tms-table-base-price:after {
        content: '*';
        vertical-align: super;
    }
}

.valid-feedback {
    color: #28a745;
}

.invalid-feedback {
    color: #dc3545;
}

#bookingtype .form-group {
    flex: 1;
}

#booking_discount_code {
    width: 100%;
}

@media screen and (max-width: 450px) {
    #bookingtype {
        flex-direction: column;
        align-items: normal;
    }
}

@media (min-width: 451px) {
    #booking_discount_code {
        border-radius: 2px 0 0 2px;
    }
}

#check-discount-code {
    margin-left: 1.25rem;
    padding: 0.375rem 0.75rem;
    border: 1px solid;
    border-radius: 0.25rem;
    cursor: pointer;
    white-space: normal;
    transition: background-color 0.3s;
    font-size: 1rem;
    height: calc(1.5em + 0.75rem + 2px);
}

.juk-filter-container {
    display: -webkit-box;
    display: flex;
    -webkit-box-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-align: start;
    align-items: flex-start;
    margin-bottom: 20px;
}

@media screen and (max-width: 768px) {
    .juk-filter-container {
        -webkit-box-orient: vertical;
        flex-direction: column;
    }

    .juk-filter-select {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

.juk-filter-select {
    -webkit-box-flex: 1;
    flex: 1;
    margin-right: 10px;
    padding: 6px 10px;
    font-size: 1rem;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: #fff;
    transition: border-color 0.3s ease;
    max-width: 250px;
    height: calc(1.5em + .75rem + 2px);
}

.juk-filter-select:focus {
    outline: none;
    border-color: #007bff;
}

.juk-form .payment-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    grid-row-gap: 0;
}

.juk-form .payment-summary > div {
    border-bottom: 1px solid #f2f2f2;
    padding: 10px;
}

/* Stilregeln für die Elemente */
.juk-form .div1 { grid-area: 1 / 1 / 2 / 2; }
.juk-form .div2 { grid-area: 2 / 1 / 3 / 2; }
.juk-form .div3 { grid-area: 3 / 1 / 4 / 2; }
.juk-form .div4 { grid-area: 4 / 1 / 5 / 2; }
.juk-form .div5 { grid-area: 5 / 1 / 6 / 2; }
.juk-form .div6 { grid-area: 6 / 1 / 7 / 2; }
.juk-form .div7 { grid-area: 7 / 1 / 8 / 2; }
.juk-form .div8 { grid-area: 8 / 1 / 9 / 2; }
.juk-form .div9 { grid-area: 9 / 1 / 10 / 2; }
.juk-form .div10 { grid-area: 10 / 1 / 11 / 2; }
.juk-form .div11 { grid-area: 11 / 1 / 12 / 2; }
.juk-form .div12 { grid-area: 12 / 1 / 13 / 2; }

/* Media Query für kleinere Bildschirme */
@media screen and (max-width: 600px) {
    .juk-form .payment-summary {
        grid-template-columns: 1fr;
    }
}

.form-label { margin-bottom: 0.5rem; }
.form-group, .row-group { margin-bottom: 0.75rem;}

.card-body .payment-summary > div {
    border-bottom: 1px solid #f2f2f2;
    padding: 0 !important;
    margin: 0 !important;
}

.card-body .payment-summary {
    padding: 0 !important;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    grid-row-gap: 20px;
    width: 100%;
}

.card-body .text-right {
    text-align: right;
}

.discount-box {
    display: none;
}

.event-badge {
    object-fit: contain;
}

#booking_notes::placeholder {
    padding: 7px!important
}

.payment-summary .last-line {
    border-bottom: none!important;
}
