﻿
/*
    light orange/yellow: #f39c12
    dark orange: #f77c3a
    dark blue: #2c3e50
    delete red: #e74c3c
    fin green: #18bc9c
    driver blue: #3498db
    customer green: #279781
*/


body {
    color: #2c3e50;
}

.footer-content {
    position: static;
    bottom: 1%;
}

.jrny-col {
    color: #f77c3a;
}

.jrny-shdw {
    text-shadow: 1px 1px 1px #b68334;
}

.cust-col {
    color: #18bc9c;
}

.cust-shdw {
    text-shadow: 1px 1px 1px #279781;
}

.drv-col {
    color: #3498db;
}

.drv-shdw {
    text-shadow: 1px 1px 1px #347cad;
}

.large-title-text {
    font-size: 2.25em;
    font-weight: bolder
}
/*#new-entry-btn {
    position: relative;
    font-size: xx-large;
    height: 50px;
    width: 50px;
    margin-top: 8px;
    padding: 0 0.5rem;
    transform: scale(1);
    animation: pulse 1.65s infinite;
}*/

.view-header {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.show {
    display: block;
}

.hide {
    display: none;
}


.emphasize {
    font-size: 1.25rem;
    font-weight: 600;
}

.nav-username-container {
    margin-right: 10px;
}

.nav-username {
    background-color: #18bc9c;
    color: #fff;
    border-radius: 3px;
    padding: 7px;
}

.nav-logoff-btn {
    border-radius: 3px;
    padding: 7px;
}

.notes-alert {
    background-color: #e74c3c;
    color: #fff;
}

.notes-blank {
    background-color: #fff;
    color: #000;
}


.journey-checkbox {
    margin-top: 20px;
}

.journey-checkbox-mobile {
    margin-top: 10px;
}

.form-container {
    height: auto;
    padding: 25px 100px 50px 100px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px;
    justify-content: flex-start;
    align-items: flex-start;
}

    .form-container > div * {
        margin-bottom: 5px;
    }

.validation-label {
    position: absolute;
    padding-left: 20px;
    color: red;
    font-weight: 900;
}

.input-validation-error {
    border: 2px solid red;
}


/* ---///   Form buttons and containers   \\\--- */
.btn-journey {
    background-color: #f77c3a;
}

    .btn-journey:hover {
        color: #e1e1e1;
        background-color: #d46c33
    }

.new-entry-btn {
    position: fixed;
    right: 6%;
    color: #fff;
    font-size: xx-large;
    height: 50px;
    width: 50px;
    margin-top: 46px;
    padding: 0 0.5rem;
    transform: scale(1);
    animation: pulse 1.65s infinite;
    z-index: 10;
}

.new-entry-btn-sm { /* position the button to the right of the input field */
    position: relative;
    top: 27px;
    left: 30px;
    font-size: 22px;
    height: 36px;
    width: 36px;
    padding: 0 0.5rem;
}

    .new-entry-btn .tooltiptext, .new-entry-btn-sm .tooltiptext {
        visibility: hidden;
        width: 250px;
        font-size: small;
        background-color: #fff;
        color: #2c3e50;
        text-align: center;
        border-radius: 6px;
        border-style: solid;
        border-width: 1px;
        border-color: #2c3e50;
        padding: 5px 0;
        /* Position the tooltip */
        position: absolute;
        top: 60%;
        right: 60%;
        z-index: 1;
    }

    .new-entry-btn:hover .tooltiptext, .new-entry-btn-sm:hover .tooltiptext {
        visibility: visible;
    }

.input-with-btn-wrapper {
    display: flex;
    flex-direction: row;
}

.input-with-btn-container { /* To keep uniform with rest of input fields in form, set height of this container to the height of its input field plus label (plus any margins) */
    height: 66.5px;
    margin-bottom: 10px;
}

.save-btn-container {
    display: flex;
    align-items: flex-end;
}

.save-btn {
    visibility: hidden;
    position: relative;
    top: 15px;
    left: 15px;
    transform: scale(1);
    animation: pulse 1.65s infinite;
    color: #fff;
}

    .save-btn.show {
        visibility: visible;
    }

.table-hdr-btn {
    width: auto;
    font-weight: 600;
    padding: 10px 100px 0px 0px;
}

.journey-edit-wrapper {
    grid-row: 6;
    grid-column: 1/3;
}

.edit-btn-container {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    height: 100%;
    margin-left: 5px;
    margin-top: 5px;
    padding: 5px 0 0 10px;
}

.edit-btn {
    width: 40px;
    height: 40px;
    border: 1px solid;
    z-index: 5;
    margin: 0 0 0 5px;
}

.complete-btn {
    width: 40px;
    height: 40px;
    border: 1px solid;
    border-color: #18bc9c;
    z-index: 5;
    margin: 0 0 0 5px;
}

.delete-btn {
    width: 40px;
    height: 40px;
    border: 1px solid;
    border-color: #e74c3c;
    z-index: 5;
    margin: 0 0 0 5px;
}

.driver-list-btn {
    width: 100%;
    height: 40px;
    z-index: 5;
    margin: 0 0 0 5px;
}

.edit-btn-img {
    position: relative;
    height: 22px;
    left: -4px;
    top: -6px;
}

.delete-btn-img {
    position: relative;
    height: 20px;
    left: -4px;
    top: -8px;
}

.complete-btn-container {
    border-radius: 5px;
    height: 40px;
    width: 40px;
    margin: 10px 0 0 0;
    background-color: #18bc9c;
}

.complete-btn-img {
    position: relative;
    height: 21px;
    left: -4px;
    top: -7px;
}

.driver-list-btn-container {
    border: solid;
    border-width: 1px;
    border-radius: 5px;
    border-color: #2c3e50;
    height: 40px;
    width: 160px;
    margin: 10px 0 0 0;
}

.driver-list-btn-img {
    position: relative;
    height: 30px;
    width: 30px;
    top: -5px;
    left: -65px;
}

.complete-btn-label {
    position: absolute;
    margin: -12px 0 0 -8px;
}

.edit-btn-label {
    position: absolute;
    margin: -12px 0 0 -12px;
}

.delete-btn-label {
    position: absolute;
    margin: -12px 0 0 -10px;
}

.driver-list-label {
    position: absolute;
    margin: 0 0 0 -60px;
    color: #2c3e50;
    z-index: -1;
}

/* --// Journey List View \\-- */

.clock-img {
    position: relative;
    height: 26px;
    margin: 0 7px 0 0;
    top: 3px;
}

.journey-archived-label {
    position: absolute;
    margin: 55px 0 0 0;
    color: #fff;
    font-size: x-large;
    font-weight: 700;
    width: 90%;
    background-color: #7b8a8b;
    border: 2px dashed #2c3e50;
    border-radius: 5px;
    text-align: center;
    z-index: 5;
}

.journey-filter-dropdown {
    margin: 9px 0 0 10px;
    border-color: #f77c3a;
    border-width: 2px;
    font-size: 1.1em;
    height: 35px;
}

.history-filter-btn {
    font-size: small;
    text-align: right;
    margin: -10px 0 0 0;
}

.driver-list-nav-btn {
    color: #fff;
    background-color: #3498db;
    border-color: #2c3e50;
    margin: 5px 0 5px 5px;
    width: 130px;
}

.customer-list-nav-btn {
    color: #fff;
    background-color: #18bc9c;
    border-color: #279781;
    margin: 5px 0 5px 5px;
    width: 130px;
}

.journey-list-wrapper {
    margin: 15px 0 25px 0;
    border-radius: 5px;
    border-style: solid;
    border-width: 2px;
    border-color: darkgrey;
}

.journey-list-header {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    padding: 0 10px;
}

.journey-grid-date-header {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.journey-grid-time-header {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-left: -20px;
}

.journey-list-header-element {
    font-size: 1.5rem;
    /*color: #b68334;*/
    color: #f77c3a;
    text-shadow: 1px 1px 1px #b68334;
    padding: 0 0;
}

.reason-pos {
    margin-top: -30px;
}

.driver-list-header-element {
    font-size: 1.5rem;
    color: #3498db;
    text-shadow: 1px 1px 1px #2c3e50;
    padding: 0 0;
}

.customer-list-header-element {
    font-size: 1.5rem;
    color: #279781;
    text-shadow: 1px 1px 1px #279781;
    padding: 0 0;
}

.journey-list-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 0px 10px;
    padding: 0px 10px 14px 10px;
    margin: 0px 0 0px 0;
    z-index: 1;
}

.journey-list-element-full-width {
    grid-column: 1/3;
}

.journey-list-notes {
    min-height: 50px;
    /*color: #e74c3c;*/
    border-radius: 5px;
    border-width: 5px;
    /*border-color: #f39c12;*/
    border-color: #f77c3a;
    border-style: dashed;
    pointer-events: none;
    margin-bottom: -2px;
}

.driver-claim-list-btn {
    grid-row: 5;
    grid-column: 1/2;
}

.no-driver {
    transform: scale(1);
    animation: driver-alert 0.5s infinite;
    background-color: firebrick;
}

/* --// Journey Detail View \\-- */
.journey-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 0px 10px;
    font-size: 1rem;
    color: grey;
    padding: 0 0;
    max-width: 660px;
}

.journey-detail-checkbox-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    max-width: 280px;
}

.journey-detail-checkbox {
    margin-top: 15px;
}

.journey-detail-footer-wrapper {
}

.archive-journey-btn {
    height: 100px;
    margin-top: 10px;
}


.driver-list-address {
    grid-column: 1/2;
    min-height: 75px;
    pointer-events: none;
    margin-bottom: -2px;
    padding: 1px 12px 1px 12px;
}

.screen-focus {
    display: none;
    position: absolute;
    background-color: rgba(128, 128, 128, 0.35);
    left: 0;
    top: 70px;
    width: 100%;
    height: 100%;
    z-index: 4;
}

    .screen-focus .confirmation-form-container {
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center;
        position: fixed;
        border: 2px dotted;
        border-radius: 10px;
        width: 40%;
        height: 30%;
        top: 35%;
        left: 30%;
        padding: 20px;
        color: #e74c3c;
        background-color: #fff;
        z-index: 5;
    }


.confirmation-form-container .confirmation-text {
    font-size: larger;
    text-align: center;
    z-index: 5;
}

.confirmation-form-container .confirmation-btn-container {
    display: flex;
    flex-direction: row;
    z-index: 5;
}

.confirmation-btn {
    position: relative;
    width: 75px;
    margin-left: 10px;
    margin-right: 10px;
    border-color: #e74c3c;
    z-index: 5;
}

.export-container {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    margin-top: -20px;
}

.journey-export-container {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    margin-top: -20px;
}

.date-field-container {
    display: flex;
    flex-direction: row;
}

.export-to-date-label {
    margin: 11px 5px 0 5px;
}

.export-date-field {
    width: 140px;
    height: 31px;
    margin: 5px 1px 0 0;
    text-align: right;
    border-radius: 3px;
    z-index: 1;
}

.export-btn {
    font-size: small;
    background-color: #f77c3a;
    color: #fff;
    height: 33px;
    margin: 4px 5px 0 5px;
}
.export-btn-cust {
    font-size: small;
    color: #fff;
    height: 33px;
    margin: 6px 5px 0 5px;
}
.export-btn-drv {
    font-size: small;
    color: #fff;
    height: 33px;
    margin: 6px 5px 0 5px;
}

.export-claim-btn {
    font-size: small;
    background-color: #18bc9c;
    color: #fff;
    height: 33px;
    margin: 4px 5px 0 5px;
}

@media screen and (max-width: 580px) {
    .form-container {
        padding: 25px 100px 25px 30px;
    }

    .new-entry-btn-sm { /* position the button to the right of the input field */
        left: 5px;
    }
}

@media screen and (min-width: 768px) {
    .driver-list-address {
        min-height: 125px;
    }
}

@media screen and (max-width: 768px) {
    .confirmation-form-container {
        width: 50%;
        height: 30%;
        top: 40%;
        left: 25%;
    }

    .history-filter-btn {
        margin: 2px 0 0 0;
    }

    .export-container {
        margin-top: -20px;
        flex-direction: column;
    }

    .journey-export-container {
        margin-top: -20px;
    }

    .date-field-container {
        flex-direction: column;
    }

    .export-to-date-label {
        margin: 11px 5px 0 19px;
    }

    .export-btn {
        margin: 40px 5px 0 2px;
        width: 140px;
    }
    .export-btn-cust {
        width: 140px;
    }
    .export-btn-drv {
        width: 140px;
    }

    .export-claim-btn {
        margin: 32px 5px 0 2px;
        width: 140px;
        height: 40px;
        text-align: center;
        line-height: 15px;
    }

    .journey-list-header {
        flex-direction: column;
    }

    .journey-list-container {
        display: flex;
        flex-direction: column;
    }

        .journey-list-container ~ * {
            grid-column: 1/4;
        }

    .reason-pos {
        margin-top: 0px;
    }

    .journey-list-notes {
        min-height: 75px;
    }

    .journey-detail-container {
        grid-template-columns: 1fr;
    }

    .journey-archived-label {
        margin: 125px 0 0 0;
        font-size: x-large;
    }
}

@media screen and (max-width: 991px) {
    .form-container {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
    }

    .second-form-block-container {
        margin-top: -40px;
    }

    .nav-username-container {
        margin-top: 13px;
        margin-bottom: 20px;
    }

    .nav-username {
        padding: 7px;
    }

    .nav-logoff-btn {
        padding: 7px;
    }

    .nav-manage-container {
        margin-bottom: 12px;
    }

    .journey-checkbox {
        display: none;
    }

    .journey-checkbox-mobile {
        display: block;
    }

    .create-journey-btn div ~ button {
        margin-top: -10px;
    }
}

@media screen and (min-width: 992px) {
    .nav-manage-container {
        display: flex;
        flex-flow: row;
    }

    .nav-for-admin {
        margin-top: 7px;
    }

    .create-journey-btn {
        height: 100px;
        margin-top: 150px;
    }

    .journey-checkbox {
        display: block;
    }

    .journey-checkbox-mobile {
        display: none;
    }

    .create-journey-btn div ~ button {
        margin-top: 20px;
    }
}

@media screen and (min-width: 1200px) {

    .new-entry-btn {
        right: 8%;
    }
}

@media screen and (min-width: 1500px) {

    .new-entry-btn {
        right: 15%;
    }
}

@media screen and (min-width: 1800px) {

    .new-entry-btn {
        right: 18%;
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.98);
        box-shadow: 0 0 0 0 rgba(44, 62, 80, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 4px rgba(0, 0, 0, 0);
    }

    100% {
        transform: scale(0.98);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

@keyframes driver-alert {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(250, 50, 40, 0.8);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}
