
:root {
    --main-blue: #0a3256;
}

.navbar {
    background-color: var(--main-blue);
    color: white;
}

#navbarTogglerMenu {
    line-height: 39px;
}

#sort-cargo-ops-btn {
    all: unset;
}

#sort-cargo-ops-btn:focus {
    all: unset;
}

#sort-cargo-ops-btn:hover {
    cursor: pointer;
}

body {
    color: #212529;
}

h1, h2, h3, h4, h5 {
    color: var(--main-blue);
}

.limit_width {
    max-width: 600px !important;
}

/* Footer */
footer {
    background-color: #eeeeee;
    position: absolute;
    bottom: 0; /* uncomment to stick footer to bottom but also its broken */
    width: 100%;
    height: 150px; /* Height of the footer */
    background: var(--main-blue);
}

footer .row {
    max-width: 1000px;
}

.footer_text {
    font-size: .9rem;
}

#container {
    min-height: 100vh;
    position: relative;
}

#page-content {
    padding-bottom: 150px; /* Height of the footer */
}


/*HEADER STYLES (SEC02)*/
.nav_bar {
    text-align: right;
}

.nav_bar a {
    text-decoration: none;
}

.nav_item {
    display: inline-block;
    padding: 55px 5px 0 5px;
    text-align: center;
    width: 64px;
    height: 34px;
    color: #ABAFB5;
    margin-left: 6px;
    margin-top: 0;
    font-weight: bold;
    cursor: pointer;
}

.navbar-light .navbar-nav .active > .nav-link {
    /*color: var(--main-blue) !important;*/
    color: white;
    opacity: 1;
    border-bottom: 3px solid #ffffffbb;
}

/* General */
.border-blue {
    border: 1px solid var(--main-blue);
}

.border-green {
    border: 1px solid green;
}

.text-blue {
    color: var(--main-blue);
}

.flatpickr_sm, .flatpickr {
    white-space: nowrap;
    overflow: hidden;
}

.flatpickr_tall {
    height: 60px;
}

.text-black {
    color: black;
}

.text-black:hover {
    color: #212529;
}

.nav-link {
    /*color: #494949 !important;*/
    color: white !important;
    opacity: .60;
}
.nav-link:hover {
    opacity: 1;
}

@media screen and (max-width: 575px) {

    .navbar-collapse {
        position: fixed;
        top: 0;
        left: 0;
        background: var(--main-blue);
        width: 100%;
        padding: 10px 10px 0 25px;
        height: 100%;
        z-index: 2000;
        display: block;

        text-transform: uppercase;
        font-size: 22px !important;
        font-family: Roboto, sans-serif;
        font-weight: normal;
        letter-spacing: 3px;
    }

    .nav-item-last {
        /*border-bottom: 1px solid white;*/
    }

    .navbar-light .navbar-nav .nav-link {
        color: white !important;
        text-decoration: none;
        width: 100%;
        /*border-top: 1px solid white;*/
        /*font-size:2em;*/
    }

    .nav-link {
        opacity: .6;
    }

    .navbar-light .navbar-nav .active > .nav-link {
        /*color: #494949 !important;*/
        color: white !important;
        opacity: 1;
    }

    .navbar {
        position: static;
    }

    .navbar-nav {
        /*margin-top: auto;*/
        /*margin-bottom: auto;*/
        /*top: 50%;*/

        position: fixed;
        width: 85%;

        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .navbar-nav .nav-item {
        /*margin-top: auto;*/
        /*margin-bottom: auto;*/
        /*top: 50%;*/

        margin-top: 6px;
        margin-bottom: 6px;
    }

    /*.navbar-toggler{*/
    /*    position: absolute;*/
    /*    left: 12px;*/
    /*    top: 17px;*/
    /*}*/
    #header_row {
        /*height: 62px;*/
    }

    .white-logo img {
        width: 200px;
    }

    .white-logo button {
        float: left;
    }

    .grey-box {
        border-bottom: 2px solid white;
    }

    .mr-3 {
        margin-right: 0 !important;
    }
}


@media screen and (min-width: 768px) {
    #vessel_lineup_table tbody tr:nth-child(even), #vessel_lineup_table thead {
        border-bottom: 1px solid #bbb;
    }
    #vessel_lineup_table tbody tr:nth-child(even) td {
        padding-top: 6px;
        padding-bottom: 20px;
    }
    #vessel_lineup_table tbody tr:nth-child(odd) td {
        padding-top: 20px;
        padding-bottom: 6px;
    }
}

.btn-primary {
    background-color: var(--main-blue);
    border-color: var(--main-blue);
}

.date_widget {
    border: 1px solid #ced4da;
    border-radius: .25rem;
}

input[type=date].date_widget {
    padding-left: 8px;
    height: 40px;
}

input[type=time].date_widget {
    padding-left: 4px;
}

.container-fluid {
    max-width: 1110px;
}

@media (max-width: 575px) {

    .container-fluid {
        padding: 0 !important;
    }
}

.flatpickr .numInput {
    width: 50px !important;
}

.flatpickr-calendar {
    max-width: 80px;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    border: 1px solid #ddd !important;
}

.flatpickr-calendar .arrowUp, .flatpickr-calendar .arrowDown {
    display: none !important;
}

.flatpickr-calendar.inline {
    display: inline-block !important;
    top: 0 !important;
}

.row-pointer tbody tr {
    cursor: pointer;
}

textarea {
    min-height: 135px;
}

.btn {
    cursor: pointer;
}


#job_picts, .uploader-picts {
    max-height: 1000px;
    overflow-y: auto;
    padding-top: 10px;
}

.uploader-picts .pic_holder, #job_picts .pic_holder {
    float: left;
    height: 222px;
    position: relative;
    padding-left: 30px;
}

#task_picts .pic_holder {
    float: left;
    position: relative;
}

.uploader-picts .pic, #job_picts .pic, #task_picts .pic {
    position: relative;
    z-index: 5;
}

.uploader-picts .img-name, #job_picts .img-name, #task_picts .img-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: #333;
    background: #ebf5e4;
    font-size: 0.7em;
    word-wrap: break-word;
    max-width: 100%;
    line-height: inherit;
    padding: 2px 2px 2px 4px;
    text-align: left;
}

.uploader-picts .img-name:hover:after, #job_picts .img-name:hover:after, #task_picts .img-name:hover:after {
    content: "\f044";
    font-family: 'Font Awesome 5 Pro';
    position: absolute;
    right: 4px;
    bottom: 0;
    font-size: 14px;
}

.uploader-picts .no-pointer-events, #job_picts .no-pointer-events {
    pointer-events: none;
}

.uploader-picts .delete_file, #job_picts .delete_file, #task_picts .delete_file {
    position: absolute;
    top: -10px;
    right: -10px;
    z-index: 6;

}

.uploader-picts .delete_file2 {
    position: absolute;
    top: -10px;
    right: -10px;
    z-index: 6;

}

@media (max-width: 455px) {
    .report_btn {
        padding-left: .3rem;
        padding-right: .3rem;
    }
}

.svg_white {
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(162deg) brightness(117%) contrast(100%);
}

.hamburger_image {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.menu_btn {
    position: absolute;
    left: 50px;
    top: 50%;
    transform: translateY(-50%);
}

#vessel_suggestions, #voyage_suggestions {
    width: 160px;
    position: absolute;
    top: 40px;
    left: 0;
    background-color: white;
    border: 1px solid var(--main-blue);
    z-index: 999;
}
.suggestion_item {
    cursor: pointer;
    border-bottom: 1px solid lightgray;
}
.suggestion_add {
    color: #3cb2ed;
}
.suggestion_item.selected {
    background-color: #efefef;
}

.suggestion_item:hover {
    background-color: #efefef;
}

.report_link {
    unset: all;
    display: block;
    background-color: var(--main-blue);
    color: #ffffffaa;
    border-bottom: 3px solid var(--main-blue);
    border-top: 3px solid var(--main-blue);

}
.report_link.selected {
    color: #ffffff;
    border-bottom: 3px solid #ffffffbb;
}
.report_link:hover {
    color: white;
    text-decoration: none;
}

.report_menu a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sticky_footer {
    z-index: 99999;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translate(-50%);
    background-color: #eee;
    width: 100%;
    /*height: 100px;*/
    opacity: .98;
}

.sticky_footer > .container {
    max-width: 600px;
}

#cargo_table td{
    padding-left: .75rem;
    padding-right: .75rem;
}
#vessel_lineup_table td {
    padding-left: .2rem;
    padding-right: .2rem;
}
#cargo_table .cargo_delete,
#vessel_lineup_table .cargo_delete {
    padding: 10px 5px 5px 5px;
}
#cargo_table tr td:last-child,
#cargo_table tr th:last-child ,
#vessel_lineup_table tr td:last-child,
#vessel_lineup_table tr th:last-child {
    padding-right: 2px;
}

@media (max-width: 700px) {
    #cargo_table td,
    #cargo_ops_table td,
    #vessel_lineup_table td {
        padding-left: .05rem;
        padding-right: .05rem;
    }

    #tidal_window_table td {
        padding-left: .2rem;
        padding-right: .2rem;
    }
}

/* Responsive table stuff */
@media screen and (max-width: 767px) {
    .responsive-stacked-table tr {
        display: flex;
        flex-wrap: wrap;
        margin-bottom: 1rem;
        border-bottom: 1px solid #dee2e6;
        padding-bottom: 0.5rem;
    }
    .responsive-stacked-table .date_widget {
        max-width: 130px;
    }
    .responsive-stacked-table .lineup-type-cell {
        max-width: 85px;
    }

    .responsive-stacked-table .vessel-name-cell {
        flex: 0 0 100%;
        padding-bottom: 0;
    }

    .responsive-stacked-table .lineup-type-cell {
        flex: 0 0 25%;
    }

    .responsive-stacked-table .date-cell {
        flex: 0 0 65%;
    }

    .responsive-stacked-table .actions-cell {
        flex: 0 0 5%;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }
}


@media screen and (max-width: 500px) {
    .date_widget {
        max-width: 140px;
    }
}