﻿.tours {
    --tour-summary-marker: 30px;
    --tour-date: 20%;
    --tour-status: 7%;
    --tour-time: 70px;
    --tour-count: 7%;
    --tour-guide: 15%;
    --tour-comments: 25%;
    --tour-operations: 5%;
}

h1 {
    font-size: xx-large;
}

    .tours .mud-picker,
    .tours .mud-input,
    .tours .mud-input-control-input-container,
    .tours .mud-input-label-inputcontrol {
        font-size: 14px;
        max-width: none;
    }

    .tours .mud-input .mud-icon-button {
        padding: 0 12px 0 0;
    }

    .tours header {
        margin-bottom: 10px;
    }

        .tours header .colHeaders {
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

.addTour,
.editTour {
    cursor: pointer;
}

.tourEditor.edit {
    display: block;
}

.tourSummaryMarker {
    width: var(--tour-summary-marker);
    min-width: var(--tour-summary-marker);
}

.tourStatus {
    display: flex;
    justify-content: center;
    width: var(--tour-status);
}

.tourStatus .form-check {
    min-height: auto;
}

.tourDate {
    width: var(--tour-date);
    min-width: 240px;
    padding-right: 10px;
}

.tourTime {
    min-width: var(--tour-time);
    max-width: var(--tour-time);
}

.tourMaxTour,
.tourMaxCompany,
.tourCount {
    width: var(--tour-count);
    text-align: center;
}

.tourMaxTour input,
.tourMaxCompany input {
    text-align: center;
    border-bottom: solid thin lightgrey;
}

.summaryContent .label {
    display: none;
}

.organizerName {
    width: 30vw;
}

.numberOfVisitors {
    width: 5vw;
}

.operations {
    position: relative;
    display: flex;
    color: var(--clickable-color);
    margin-left: 50px;
}

    .operations .item {
        width: 25px;
        text-align: center;
    }

.registrationComments textarea {
    height: calc(3 * var(--row-height-1));
    background-color: #fafafa;
    min-width: 250px;
}

.eMailSent {
    margin-left: 60px;
    min-width: 250px;
}

details.tour > summary {
    line-height: 32px;
}

    details.tour > summary .summaryContent {
        display: inline-flex;
        position: absolute;
        left: 30px;
        top: 0;
        justify-content: space-between;
        align-items: center;
        width: calc(100% - var(--tour-summary-marker));
        height: 30px;
        line-height: 30px;
    }

details.tour[open] .addRegistration {
    visibility: visible;
}

details.tour.isClosed .locked {
    visibility: visible;
}

details.tour .details {
    display: flex;
}

details.tour.edit .details {
    display: none;
}

details.tour .registrations {
    padding: 10px;
}

details.registration summary .summaryContent {
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    width: calc(100% - 30px);
}

details.registration .detailsContent {
    display: flex;
    flex-wrap: wrap;
    margin: 0 0 0 10px;
}


.mailSent .registrationConfirmation {
    display: block;
}

.mailSent form {
    display: none;
}

.tourEditor {
    display: none;
    position: fixed;
    top: 20vh;
    left: 10vw;
    width: 80vw;
    height: 60vh;
    padding: 15% 5% 5% 5%;
    border: solid medium lightgrey;
    background-color: white;
    z-index: 1000;
}

.closeTourEdit {
    position: absolute;
    top: 5px;
    right: 5px;
    cursor: pointer;
    z-index: 1000;
}

.tourEditor .tourDate,
.tourEditor .tourTime,
.tourEditor .tourMaxTour,
.tourEditor .tourMaxCompany,
.tourEditor .tourGuide,
.tourEditor .tourComments {
    display: flex;
    max-width: none;
    width: 100%;
    padding: 0;
    height: 32px;
    align-items: center;
}
.tourEditor .tourCount {
    display: none;
}

.tourEditor .label {
    display: block;
    text-align: left;
    width: 70px;
}

.tourEditor .tourStatus {
    position: absolute;
    top: 10px;
    left: 0;
}

.tourEditor .tourGuide,
.tourEditor .tourComments {
    display: flex;
}

.tourGuide {
    width: var(--tour-guide);
}

    .tourGuide > select {
        width: 100%;
    }

.tourComments {
    width: var(--tour-comments);
}

    .tourComments .text {
        height: 30px;
    }

    .tourComments .textarea {
        line-height: normal;
        border: solid thin lightgrey;
        display: none;
    }

    .edit .tourComments .textarea {
        display: block;
    }

    .edit .tourComments .text {
        display: none;
    }

.tourEditor .tourComments {
    margin-top: 25px;
    height: 20vh;
}

    .tourEditor .tourComments .textarea {
        display: block;
        width: 100%;
        height: 100%;
        padding: 5px;
    }

        .tourEditor .tourComments .textarea .close,
        .tourEditor .tourComments .text {
            display: none;
        }

.tourOperations {
    display: flex;
    justify-content: space-between;
    width: var(--tour-operations);
}

.confirmTourDelete {
    display: none;
    padding: 10px;
    max-width: 250px;
    line-height: normal;
    background-color: white;
    border: solid medium lightgrey;
    z-index: 1000;
    position: absolute;
    top: 0;
    right: 0;
}

    .confirmTourDelete .responses {
        display: flex;
        width: 100%;
        margin-top: 10px;
        justify-content: space-around;
        font-weight: bold;
    }

.confirmTourDelete .response {
    cursor: pointer;
}

.confirmTourDelete.confirmDelete {
    display: block;
}


@media (max-width: 1000px) {
    body, .form-control {
        font-size: small;
    }

    .tours {
        --tour-date: 15%;
        --tour-status: 8%;
        --tour-count: 12%;
        --tour-guide: 40%;
        --tour-operations: 10%;
    }

    .tours header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: xx-large;
    }

        .tours header select {
            font-size: small;
        }

        .tours header .colHeaders{
            display: none;
        }

    .tourDate {
        min-width: 75px;
    }

    .tourStatus {
        margin-left: 20px;
    }

    details.tour > summary {
       line-height: 24px;
    }

    details.tour > summary .summaryContent{
        line-height: 24px;
    }

    details.tour .registrations {
        padding: 0 0 10px 10px;
        width: 100%;
    }

    details.registration summary .summaryContent {
        width: calc(100% - 15px);
    }

    details.registration .detailsContent {
        margin: 0;
    }

    .organizerName {
        width: 40vw;
    }

    .operations {
        position: relative;
        display: flex;
        color: var(--clickable-color);
        margin-left: 0;
    }

        .operations .item {
            width: 20px;
            text-align: center;
        }

    .registrationComments textarea {
        height: calc(3 * var(--row-height-1));
        background-color: #fafafa;
        min-width: 250px;
    }

    .editTour {
        width: var(--tour-edit);
        transform: scaleX(-1);
    }

    .eMailSent {
        display: none
    }

}

