﻿:root {
    --primary-color: #007e00;
}

body {
    padding-top: 80px;
    padding-bottom: 20px;
    background-color: #EFEFEF;
}

/* Set padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

.pagecard {
    padding: 20px;
    background-color: white;
    border-radius: 3px;
    border: 1px solid #DDDDDD;
    /*box-shadow: 1px 1px 2px 2px #DDDDDD;*/
    margin-bottom: 20px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Bootstrap overrides */

@media (min-width: 1600px) {
    .container {
        max-width: 1540px;
    }
}

.navbar {
    background-color: var(--primary-color);
}

.jumbotron {
    padding: 2rem !important;
    background-color: inherit;
}

h2 {
    margin-bottom: 20px;
}

.alert {
    border-radius: 2px;
}

.btn {
    border-radius: 2px;
}

.text-primary {
    color: #007E00 !important;
}

a {
    color: #008E10;
}

.btn-primary {
    color: #fff;
    background-color: #007E00;
    border-color: #007E00;
}

    .btn-primary:hover {
        color: #fff;
        background-color: #008E10;
        border-color: #008E10;
    }

.btn-outline-primary {
    color: #007E00;
    border-color: #007E00;
}

    .btn-outline-primary:hover {
        background-color: #007E00;
        border-color: #007E00;
    }


.form-control {
    border-radius: 2px;
}

form label {
    font-weight: bold;
}

.dropdown-menu {
    z-index: 2000;
}

.page-link {
    color: var(--primary-color);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Diversion types */

.category {
    display: inline-block;
    padding: 0px 5px 0px 5px;
    color: white;
    font-weight: bold;
}

.cat-v {
    background-color: #D50000;
}

.cat-p {
    background-color: #F57C00;
}

.cat-d {
    background-color: #2962FF;
}

.cat-z {
    background-color: #2E7D32;
}

.cat-v-outline {
    color: #D50000;
    border: 1px solid #D50000;
}

.cat-p-outline {
    color: #F57C00;
    border: 1px solid #F57C00;
}

.cat-d-outline {
    color: #2962FF;
    border: 1px solid #2962FF;
}

.cat-z-outline {
    color: #2E7D32;
    border: 1px solid #2E7D32;
}

/* Lines */

.det-line {
    display: inline-block;
    padding: 0px 5px 0px 5px;
    margin-right: 5px;
    background-color: #2E7D32;
    color: white;
    font-weight: bold;
}

/* XXX */

.divtable .diversion {
/*    margin-bottom: 20px;*/
    clear: both;
    padding: 0.5rem;
    cursor: pointer;
}

.divtable hr {
    margin-top: 0px;
    margin-bottom: 0px;
}

.diversion > div {
    display: inline-block;
}

.divtable .dtype {
    width: 2em;
    float: left;
    padding: 0px 5px 0px 5px;
    color: white;
    font-weight: bold;
    margin-right: 10px;
    text-align: center;
}

.divtable .dnumber {
    font-weight: bold;
    width: 20%;
}

@media only screen and (max-width: 800px) {
    

    
}

/* TEST */

@media only screen and (max-width: 800px) {

    table, thead, tbody, tr {
        display: block;
        border: 0px;
    }
    
    th, td{
        display: inline-block;
        border: 0px !important;
    }

    thead {
        display: none;
    }

    tr {
        padding-top: 5px;
        padding-bottom: 5px;
        border-bottom: 1px solid #dee2e6;
    }

    td.dtitle {
        display: block;
    }

    td.dvalidfrom:before {
        content: "Od ";
    }

    td.dvalidto:before {
        content: " do  ";
    }
}

/* Status pages */

.statuspage {
    text-align: center;
}

.statuspageicon {
    font-size: 200px;
}

/* Folder tree */

.treeitemselected {
    background-color: #008E10;
    color: white;
}

    .treeitemselected:hover {
        background-color: #109E20 !important;
    }

/* Calendar */

.calendar-head {
}

.calendar-head-column {
    height: 30px;
    font-weight: bold;
    text-align: center;
    border-right: 1px solid #CCC;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    flex-basis: 0 !important;
}

    .calendar-head-column:last-child {
        border-right: 0px;
    }

.calendar-body-column {
    height: 30px;
    text-align: center;
    color: #CCC;
    border-right: 1px solid #CCC;
}

    .calendar-body-column:last-child {
        border-right: 0px;
    }

.calendar-sunday {
    font-weight: bold;
    color: red;
    border-right: 2px solid #AAA;
}

.calendar-today {
    background-color: #EEE;
}

.calendar-items {
    position: relative;
}

.calendar-item {
    text-decoration: none;
    position: absolute;
    user-select: none;
    height: 24px;
    line-height: 24px;
    font-size: 0.8em;
    margin: 3px 0px 3px 0px;
    color: white;
    text-align: center;
    background-color: #007E00;
    border-radius: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .calendar-item:hover {
        background-color: #108E10;
        text-decoration: none;
        color: white;
    }

    .calendar-item.no-left-radius {
        border-top-left-radius: 0px;
        border-bottom-left-radius: 0px;
    }

    .calendar-item.no-right-radius {
        border-top-right-radius: 0px;
        border-bottom-right-radius: 0px;
    }

.calendar-item-v {
    color: white;
    background-color: #D50000;
}

    .calendar-item-v:hover {
        background-color: #E51010;
    }

.calendar-item-p {
    color: white;
    background-color: #F57C00;
}

    .calendar-item-p:hover {
        background-color: #FF8C10;
    }

.calendar-item-d {
    color: white;
    background-color: #2962FF;
}

    .calendar-item-d:hover {
        color: white;
        background-color: #3972FF;
    }

.calendar-item-z {
    color: white;
    background-color: #2E7D32;
}

    .calendar-item-z:hover {
        color: white;
        background-color: #3E8D42;
    }
