﻿/* Move down content because we have a fixed navbar that is 50px tall */
body {
    padding-top: 170px;
    padding-bottom: 20px;
}

    body.mce-content-body {
        padding-top: 0px;
        padding-bottom: 0px;
    }

/* Wrapping element */
/* Set some basic padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Set widths on the form inputs since otherwise they're 100% wide */
input,
select,
textarea {
    max-width: 280px;
}

.modalBackground {
    background-color: Gray;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(opacity=50)";
    filter: alpha(opacity=50);
    opacity: 0.50;
}

#weather {
    background-color: #e0e0e0;
    padding: 10px;
    position: fixed;
    width: 100%;
    height: 120px;
    top: 50px;
    z-index: 100;
}

.popover {
    max-width: 800px;
}

#weatherandtemperature {
    float: right;
    cursor: pointer;
}

#weathericonandconditions {
    float: left;
    height: 100px;
}

#weathericon {
}

    #weathericon img {
        height: 90px;
    }

        #weathericon img.withspecialconditions {
            height: 75px;
        }

#weatherspecialconditions {
}

#weatherdetailwrapper {
}

#temperature {
    float: left;
    font-size: 40px;
    margin: 15px 0px;
}

    #temperature.negative {
        color: #db1919;
    }

#weatherdetailwrapper {
    display: none;
}

#weatherdetail {
}

    #weatherdetail .weatherdetailheader {
        font-weight: bold;
    }

#time {
    float: right;
    margin: 15px 20px;
    font-size: 20px;
}

#holdovertimes {
    float: left;
}

    #holdovertimes .holdovertimetype {
        float: left;
        margin-left: 20px;
    }

    #holdovertimes div.holdovertimetypes .holdovertimetype:first-child {
        margin-left: 0px;
    }

#truckGraphs, #tankGraphs {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
}

    #truckGraphs.affix {
        top: 170px;
    }

    #truckGraphs .truck, #tankGraphs .fluidtank {
        margin-bottom: 10px;
    }

        #truckGraphs .truck:last-child, #tankGraphs .fluidtank:last-child {
            margin-bottom: 0px;
        }

        #truckGraphs .truck .tank, #tankGraphs .fluidtank .tank {
            font-size: 11px;
            position: relative;
            border: solid 1px green;
        }

            #truckGraphs .truck .tank .tankvolume, #tankGraphs .fluidtank .tank .tankvolume {
                position: relative;
            }

            #truckGraphs .truck .tank .gauge, #tankGraphs .fluidtank .tank .gauge {
                position: absolute;
                top: 0px;
                right: 0px;
                height: 15px;
                background-color: #fbe91e;
                z-index: 0;
            }

            #truckGraphs .truck .tank.danger, #tankGraphs .fluidtank .tank.danger {
                border: solid 1px #b94a48;
            }

                #truckGraphs .truck .tank.danger .gauge,, #tankGraphs .fluidtank .tank.danger .gauge {
                    background-color: #b94a48;
                }

        #truckGraphs .truck .truckLabel, #tankGraphs .fluidtank .tankLabel {
            font-weight: bold;
        }

        #truckGraphs .truck button.requestRefill, #truckGraphs .truck button.truckBreakdown, #truckGraphs .truck button.truckNoBreakdown {
            height: 20px;
            padding-top: 0px;
            padding-bottom: 0px;
        }

table input[type=text].date, .filters .date {
    max-width: 90px;
}

table input[type=text].time {
    max-width: 60px;
}

#plannedplanes .immatriculation, #plannedplanes .flightnumber, #plannedplanes .aircrafttype {
    max-width: 80px;
}

#plannedplanes thead th:last-child {
    /*width: 170px;*/
}

.filters {
    margin: 20px 10px;
}

table.table .ajax__calendar td {
    padding: 0px;
    border: 0px none;
}

.checkboxlist input[type=checkbox] {
    margin-right: 5px;
    margin-top: 10px;
}

.checkboxlist label {
    margin-right: 10px;
    font-size: 14px;
}

.radiobuttonlist input[type=radio] {
    margin-right: 5px;
    margin-top: 10px;
}

.radiobuttonlist label {
    margin-right: 10px;
    font-size: 14px;
}

.productDisabled td {
    position: relative;
}

    .productDisabled td:before {
        content: " ";
        position: absolute;
        top: 20px;
        left: 0;
        border-bottom: 1px solid #111;
        width: 100%;
    }

a.planeanchor {
    position: relative;
    visibility: hidden;
    display: block;
    top: -175px;
}

tr.moved td, tr.moved td *, tr.cancelled td, tr.cancelled td * {
    background-color: gray !important;
    text-decoration: line-through;
    color: white;
}

.table > tbody > tr.info > td {
    color: #3a87ad;
    background-color: #d9edf7;
}

.dropdown-menu-right {
    left: auto;
    right: 0;
}

.table tbody > tr > td.noborder {
    border: 0px none;
}
select option.brokendown, select:has(> option.brokendown:checked) {
    background-color: #b94a48;
    color:white;
}
    select:has(> option.brokendown:checked) option:not(.brokendown) {
        background-color:white;
        color: #555555;
    }
/* Responsive: Portrait tablets and up */
@media screen and (min-width: 768px) {
    .jumbotron {
        margin-top: 20px;
    }

    .body-content {
        padding: 0;
    }
}

@media print {
    a[href]:after {
        content: none;
    }

    #weather {
        position: static;
        top: 0px;
    }

    body {
        padding-top: 0px;
        padding-bottom: 0px;
    }
}

@media print and (orientation: portrait) {
    #holdovertimes {
        display: none;
    }
}
