﻿/* LOADING SCREEN */

.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #212121AA;
    z-index: 9999;
}

#loading-screen.inactive {
    visibility: hidden;
}

.loading-container-strip {
    height: 100px;
    background-color: #FFFFFF11;
    top: 30%;
    position: relative;
}

#svg-top {
    width: 50px;
    height: 50px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    animation: to-side 1s infinite ease-in;
}

#svg-main {
    width: 50px;
    height: 50px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    animation: to-side 1s infinite ease-in;
    animation-delay: 0.1s;
}

#svg-sides {
    width: 50px;
    height: 50px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    animation: to-side 1s infinite ease-in;
    animation-delay: 0.2s;
}

#svg-top path {
    fill: #EFF2F8;
    animation: to-color 1s infinite ease-in;
}

#svg-main path {
    fill: #EFF2F8;
    animation: to-color 1s infinite ease-in;
    animation-delay: 0.1s;
}

#svg-sides path {
    fill: #EFF2F8;
    animation: to-color 1s infinite ease-in;
    animation-delay: 0.2s;
}

@keyframes to-color {
    0% {
        fill: #EFF2F8;
    }

    40% {
        fill: #4E73AD;
    }

    75% {
        fill: #4E73AD;
    }

    100% {
        fill: #EFF2F8;
    }
}

@keyframes to-side {
    0% {
        left: 0;
    }

    25% {
        left: calc(50% - 50px);
    }

    75% {
        left: calc(50% - 50px);
    }

    100% {
        left: calc(100% - 50px);
    }
}

/* TMS_AUTO_COMPLETE */
.strikethrough input,
.strikethrough .mud-popover-cascading-value,
.strikethrough .mud-list-item,
p.tms-autocopmlete-item-template-abbr.strikethrough,
p.tms-autocopmlete-item-template-desc.strikethrough {
    text-decoration: line-through;
}

.strikethrough .mud-input-error {
    text-decoration: none !important;
}

/* TMS_PORT_EVENT_DETAILS_TABLE */
.port-event-details-table {
    text-align: left !important;
}

    .port-event-details-table > tr > td {
        padding-left: 10px;
    }

/* TMS_TRANSPORT_UNIT_ON_LEASE_EDITOR */
.transport_unit_on_lease_editor {
    min-height: 361px;
}


/* TMS FORMS */
.tms-form-border {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    border-radius: 4px;
    box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12);
}

.tms-search-form-content-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    .inputs-container

{
    display: flex;
    flex-direction: column;
    width: 100%;
    .main-inputs-container

{
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px 20px;
}

.extra-inputs-button {
    margin-top: 10px;
    .extra-inputs-container

{
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px 20px;
}

.extra-inputs-container.show-section {
    max-height: 500px;
    transition: max-height 1s ease;
}

}
}


.actions-container {
    display: flex;
    flex-wrap: wrap-reverse;
    align-content: flex-end;
    justify-content: flex-end;
    column-gap: 20px;
    row-gap: 10px;
    width: 30%;
    min-width: 200px;
}

.mud-input-control {
    border: 0;
    padding: 0;
    display: flex;
    width: 100%;
    max-width: 200px;
    min-width: 140px;
    position: relative;
    flex-direction: column;
    vertical-align: top;
    margin: 0;
    box-sizing: border-box;
}

.mud-select {
    display: flex;
    flex-grow: 0;
    width: 100%;
    max-width: 200px;
    min-width: 140px;
    position: relative;
    box-sizing: border-box;
}

.mud-picker-inline {
    display: flex;
    flex-grow: 0;
    position: relative;
    width: 100%;
    max-width: 200px;
    min-width: 140px;
    box-sizing: border-box;
}

}

.extra-inputs-button > span {
    font-size: 0.75rem;
    color: var(--tms-link-text-color);
}

    .extra-inputs-button > span:hover {
        cursor: pointer;
        color: var(--tms-link-text-color-hover);
        text-decoration: underline;
    }

@media only screen and (max-width: 890px) {
    .tms-search-form-content-container {
        flex-direction: column;
    }

    tms-search-form-content-container .inputs-container {
        width: 100%;
    }

    .tms-search-form-content-container > .inputs-container .extra-inputs-container {
        width: 100%;
    }

    .tms-search-form-content-container > .actions-container {
        width: 100%;
        align-content: end;
        justify-content: flex-end;
    }
}

.tms-form-content-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    .inputs-container

{
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    padding-right: 4%;
}

.tms-form-content-container > .actions-container {
    display: flex;
    justify-content: flex-end;
    column-gap: 20px;
    padding-right: 4%;
}

}

.tms-form-bottom-content-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
    .tms-form-bottom-content-container > .actions-container {
        display: flex;
        flex-direction: row-reverse;
        column-gap: 20px;
    }

/* INLINE DIVS */
.inline-div-container {
    display: flex;
    gap: 20px;
    flex-direction: row;
}

.inline-div-item {
    max-width: 700px;
    flex: 1 1 auto;
}

@media only screen and (max-width: 1200px) {
    .inline-div-container {
        display: flex;
        gap: 20px;
        flex-direction: column;
    }
}

/* TMS TABLES */
.max-height-300px > .mud-table-container {
    max-height: 300px;
}
