* {
    font-family: Arial, Helvetica, sans-serif;
}

html, body {
    margin: 0;
    padding: 0;
    background-color: rgba(0, 0, 0, .03);
}

h1, h2, h3 {
    margin: 0;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

.container {
    height: 100%;
    display: table;
    width: 100%;
    max-width: 100%;
}

.row-fluid {
    height: 100%;
    display: table-cell;
    vertical-align: middle;
}

.centerWrapper {
    height: 100%;
    position: relative;
}

.center {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1em;
    margin-top: -0.5em;
}

.d-none {
    display: none;
}

button {
    color: white;
    border: 1px solid black;
}

button:hover {
    opacity: 80%;
    border-style: dashed;
}

/*****************************************************************************
* /\ General
*
* \/ Installation address
******************************************************************************/

#installationAddress {
    margin: 5px;
    background-color: lightgray;
    padding: 20px;
}

#installationAddress > h1 {
    display: inline-block;
}
#installationAddress > h1.d-none {
    display: none;
}

#installationAddressBlock {
    float: right;
    text-align: right;
}

#notesLabel {
    margin-top: 40px;
    margin-bottom: -10px;
    font-weight: bolder;
    font-size: 18px;
    clear: both;
}

#notesContent {
    max-width: 700px;
}

/*****************************************************************************
* /\ Installation address
*
* \/ Month selection
******************************************************************************/

#month {
    vertical-align: middle;
    text-align: center;
    margin-top: 50px;
    margin-bottom: 20px;
}

#monthSelection {
    vertical-align: middle;
    margin-bottom: 10px;
}

.btn-fullheight {
    height: 128px;
    width: 64px;
    font-size: 30px;
}

.btn-fullwidth {
    width: 290px;
    height: 41px;
    margin-bottom: 3px;
    font-size: 16px;
}

.btn-fullwidth:last-child {
    margin-bottom: 0;
}

#monthSelectionWrapper {
    width: 100%;
    display: inline-block;
    text-align: center;
    height: 128px;
}

#monthSelectionWrapperInner {
    width: 700px;
    display: inline-block;
}

#monthSelection table {
    position: relative;
    margin: 0 auto;
}

.progressBarOuter {
    height: 30px;
    border: 2px solid transparent;
    padding: 2px;
}

.progressBarInner {
    height: 30px;
}

.progressBarText {
    position: absolute;
    width: 100%;
    text-align: center;
    line-height: 30px;
}

.progressBarInner.red {
    background-color: #ea4949;
}

.progressBarInner.yellow {
    background-color: #eab42d;
}

.progressBarInner.green {
    background-color: #2bbf60;
}

#progressBarMobileView {
    display: none;
}

.progressBarOuter {
    margin: 0 5px;
}

#progressBarMobileView .progressBarOuter {
    margin: 5px;
}

/*****************************************************************************
* /\ Month selection
*
* \/ Calendar
******************************************************************************/

#calendar td {
}

#calendar td.weeklyGrid {
    text-align: center;
    line-height: 50px;
}

#calendar td.weeklyGrid:first-of-type {
    line-height: 20px;
}

.weeklyGrid.no {
    background-color: darkred;
}

.yes {
    background-color: green;
}

.pending {
    background-color: lightgreen;
}

#calendar td.grid {
    line-height: 7px;
}

.borderVertical {
    border-right: 2px solid transparent;
}

.borderHorizontal {
    border-bottom: 2px solid transparent;
}

#calendar th.header {
    line-height: 50px;
    text-align: center;
}

#calendar th.time {
    padding-right: 1em;
    text-align: right;
    vertical-align: center;
    font-family: inherit;
    font-weight: 700;
    min-width: 70px;
}

.today {
    color: blue;
}

.weekend {
    background-color: salmon;
}

.free {
    background-color: #0000ff;
}

.maybe {
    background-color: #f9f355;
}

.selection {
    background-color: #84abec;
}

.title-large {
    display: inline;
}

.title-small, .title-tiny {
    display: none;
}

.outsideRecommended,.holiday {
    background-color: #dcdcdc;
}

#calendar td {
    cursor: vertical-text;
}

#calendar.selecting td {
    cursor: grab;
}

#calendar.saving td {
    cursor: wait;
}

#calendar .yes {
    cursor: default;
}

/*****************************************************************************
* /\ Calendar
*
* \/ Whole Day / Half Day
******************************************************************************/

.selectWholeDay, .halfDay {
    font-size: 100%;
    text-align: center;
}

#calendar td.selectWholeDay {
    height: 60px;
    line-height: 60px;
}

#calendar td.halfDay {
    position: relative;
    min-width: 140px;
    line-height: 16px;
}

.spacerWholeDay, .spacerMorning, .spacerAfternoon {
    background-color: #1e7e34;
    color: white;
    text-align: center;
    border: 1px solid;
}

.spacerWholeDay:hover, .spacerMorning:hover, .spacerAfternoon:hover {
    opacity: 90%;
    border-style: dashed;
}

.spacerWholeDay {
    left: 10px;
    right: 10px;
}

.spacerWholeDay:hover {
    opacity: 90%;
    border-style: dashed;
}

.selectWholeDay div {
    margin-left: 0.5px;
    margin-right: 0.5px;
}

.spacerMorning, .spacerAfternoon {
    position: absolute;
    left: 0;
    right: 0;
}

.spacerMorning {
    top: 0;
    bottom: 2px;
}

.spacerAfternoon {
    bottom: 0;
    top: 2px;
}

/*****************************************************************************
* /\ Whole Day / Half Day
*
* \/ Delete
******************************************************************************/

#deleteWrapper {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: lightgray;
    background: rgba(25, 25, 25, 0.7);
}

#delete {
    position: absolute;
    left: 50%;
    top: 25%;
    height: 100px;
    width: 700px;
    margin-left: -350px;
}

#delete span {
    font-weight: bold;
}

#delete > div {
    padding: 50px 50px 20px 50px;
}

#delete form {
    margin-top: 50px;
}

.buttonDelete, .buttonDeleteAbort {
    width: 200px;
    height: 50px;
    line-height: 50px;
    font-size: 18px;
}

.buttonDeleteAbort {
    float: right;
    background-color: gray !important;
}

/*****************************************************************************
* /\ Delete
*
* \/ Errors
******************************************************************************/

#errorWrapper {
    height: 50px;
}

#error {
    text-align: center;
    vertical-align: middle;
    line-height: 50px;
    background-color: indianred;
    padding: 0 20px;
}

/*****************************************************************************
* /\ Errors
*
* \/ Media queries
******************************************************************************/

@media (max-width: 1450px) and (min-width: 920px) {
    .spacerWholeDay {
        line-height: 30px;
    }
}

@media (max-width: 1250px) and (min-width: 920px) {
    #installationAddress > h1 {
        display: inline;
    }

    #installationAddressBlock {
        float: none;
        text-align: left;
        margin-top: 1em;
    }

    .title-large, .title-tiny {
        display: none;
    }

    .title-small {
        display: inline;
    }

    th.time {
        padding-right: 0;
        text-align: center;
    }

    #calendar td.halfDay {
        min-width: 100px;
    }

    .middle2 {
        height: 3em;
        margin-top: -1.5em;
    }

    .spacerWholeDay {
        line-height: 30px;
    }

    #monthSelectionWrapper {
        height: auto;
    }
}

@media (max-width: 920px) {

    #installationAddress > h1 {
        display: inline;
        font-size: 1.5em;
    }

    #installationAddressBlock {
        float: none;
        text-align: left;
        margin-top: 1em;
    }

    #notesContent {
        font-size: 0.8em;
    }

    #notesLabel {
        margin: 10px 0 -5px 0;
    }

    #month {
        margin: 0;
    }

    .title-large, .title-small {
        display: none;
    }

    .title-tiny {
        display: inline;
    }

    th.time {
        padding-right: 0;
        text-align: center;
    }

    .container .card-body {
        padding: 0;
    }

    #calendar td.halfDay {
        min-width: 60px;
    }

    .center {
        height: 5em;
        margin-top: -2.5em;
    }

    .spacerWholeDay, #calendar th.header {
        line-height: 25px;
    }

    #monthSelectionWrapperInner {
        width: auto;
    }

    #monthSelectionWrapper {
        height: auto;
    }

    .btn-fullheight {
        height: 128px;
        width: 30px;
        font-size: 30px;
    }

    #delete {
        width: 100%;
        left: 0;
        margin-left: 0;
        margin-top: -50px;
    }

    .buttonDelete, .buttonDeleteAbort {
        width: 100%;
    }

    .buttonDeleteAbort {
        float: none;
        margin-top: 20px;
    }

    #progressBarMobileView {
        display: initial;
    }

    #progressBarMobileView.d-none {
        display: none;
    }
}
