.header {
    display: flex;
}

.header nav {
    flex-grow: 1;
}

.nav .nav-child {
    padding-left: 30px;
}

.nav .nav-child .nav-child {
    padding-left: 20px;
}

#headercontent > img {
    margin-top: 7px;
}

/* Add margin above main container when we have no header */
#containercenter > #container:first-child {
    margin-top: 10px;
}

@-webkit-keyframes blinker {
    0% {
        color: red;
        opacity: 1.0;
    }
    25% {
        color: purple;
    }
    50% {
        color: blue;
        opacity: 0;
    }
    75% {
        color: green;
    }
    100% {
        color: red;
        opacity: 1.0;
    }
}

@keyframes blinker {
    0% {
        color: red;
        opacity: 1.0;
    }
    25% {
        color: purple;
    }
    50% {
        color: blue;
        opacity: 0;
    }
    75% {
        color: green;
    }
    100% {
        color: red;
        opacity: 1.0;
    }
}

.newmail > span {
    font-weight: bold;
    -webkit-animation-name: blinker;
    animation-name: blinker;
    -webkit-animation-duration: 1.5s;
    animation-duration: 1.5s;
    -webkit-animation-timing-function: linear;
    animation-timing-function: linear;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
}

td, th {
    vertical-align: top;
}

/* In-place notification messages */
.success,
.warning,
.error,
.validationFailed {
    padding: 2px 10px;
    border-radius: 11px;
}

.success > p:first-child,
.warning > p:first-child,
.error > p:first-child {
    margin-top: 5px;
}

.success > p:last-child,
.warning > p:last-child,
.error > p:last-child {
    margin-bottom: 5px;
}

.success {
    background-color: #08b93e;
}

.warning {
    background-color: #fbc86b;
}

.error,
.validationFailed {
    margin-bottom: 2px;

    background-color: #ff8f8f;

}

/* Override ai2008 template's text justification  */
div, p, td, tbody {
    text-align: left;
}

ul.menu > li > ul > li > ul {
    padding-left: 10px;
}

.toggleHelptext {
    float: right;
    cursor: pointer;

    font-weight: bold;

    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

table.bordered td, table.bordered th {
    text-align: center;
}

table.bordered th.left {
    text-align: left;
}

table.bordered td.seperator {
    border-top: 0px;
    border-bottom: 0px;
}

table tr th.right:not(:last-child),
table tr td.right:not(:last-child) {
    text-align: right;
    padding-right: 10px;
}

.table th {
    white-space: nowrap;
}

.table th.small-column {
    width: 1px;
}

/* Map */
.markerWithLabel {
    color: black;
    font-family: "Lucida Grande", "Arial", sans-serif;
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
    padding-top: 2px;
    background-repeat: no-repeat;
    background-position: bottom;
}

.marker-cluster div {
    width: 30px;
    height: 30px;
    margin: 5px;
    text-align: center;
    border-radius: 50%;
    font: 12px "Lucida Grande", Arial, sans-serif;
}

.marker-cluster span {
    line-height: 30px;
    color: white;
    font-weight: bold;
    /* Poor man's outline, webkit doesn't support text-stroke under text */
    text-shadow:  1px 0 0 black,
                  1px 1px 0 black,
                  0 1px 0 black,
                 -1px 1px 0 black,
                 -1px 0 0 black,
                 -1px -1px 0 black,
                  0 -1px 0 black,
                  1px -1px 0 black;
}

span.icon-checkbox::before {
    font-size: 36px;
    content: "\25fb";
}

table.deliveryList {
    margin-top: 10px;
    width: 100%;
}

table.deliveryList th.actions,
table.deliveryList td.actions {
    text-align: right;
    padding-right: 3px;
}

table.deliveryList th.actions span.icon,
table.deliveryList td.actions span.icon {
    font-size: 24px;
}

table.deliveryList td.actions span.icon.action {
    cursor: pointer;
}

table.deliveryList td.actions span.icon.ion-md-hourglass {
    padding-right: 5px;
}

.deliveryPopover,
.generalInfoPopover {
    z-index: 10000;
}

.deliveryPopover {
    padding: 1px;
    width: 250px;
    background-color: rgba(0, 0, 0, 0.2);
    box-shadow: rgba(0, 0, 0, 0.3) 0px 1px 4px -1px;
}

.generalInfoPopover {
    width: 208px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.generalInfoPopover > div {
    display: flex;
    padding: 4px;
    height: 30px;
    background-color: white;
    border-radius: 4px;
    text-align: center;
}

.generalInfoPopover > div > div {
    flex: 1 0 33%;
    text-align: center;
    font-size: 15px;
    font-weight: bold;
}
.generalInfoPopover > div > div > span {
    font-size: inherit;
}

.deliveryPopover .deliveryPopoverContents
{
    padding: 10px;
    background-color: white;
}

.deliveryPopover h1,
.deliveryPopover h1 span {
    font-size: 18px;
}

.deliveryPopover table.deliveryInfo {
    width: 100%;
}

.deliveryPopover table.deliveryInfo th {
    width: 50px;
}

.deliveryPopover table.deliveryInfo tr {
    border-bottom: 1px dashed grey;
}

.deliveryPopover table.deliveryInfo th,
.deliveryPopover table.deliveryInfo td {
    padding: 4px;
}

@media not print {
    .onlyprint {
        display: none;
    }
}

@media print {
    /* Menu button */
    #container > button.d-inline-block {
        display: none !important;
    }

    /* Header and sidebar*/
    #containerheader,
    #sidebarblock {
        display: none !important;
    }

    /* Black text everywhere */
    body,
    .table {
        color: black;
    }

    .noprint {
        display: none;
    }
}

/* Undo/improve scoutingtv4 styling */
body {
    font-size: 1rem;
    line-height: 1.5rem;
}

h1 {
    font-size: 2.2rem;
}

h1,
h2,
h3,
h4,
h5 {
    margin-top: 0;
}

a {
    color: #007bff;
}

nav {
    background-color: transparent;
    box-shadow: none;
    -webkit-box-shadow: none;
}

nav ol.breadcrumb,
div.breadcrumb {
    background-color: #e9ecef;
    padding-left: 20px;
    font-size: 1em;
    color: #242121;
}

div.breadcrumb {
    padding-right: 20px;
    padding-top: 20px;
}

ul.menu li {
    list-style-position: outside;
    line-height: 1.4em;
}

ul.menu li a {
    text-decoration: none;
}
