/* System-wide styles */
body
{
    background: #FAFAFA url("https://homebase.christiaanbye.nl/templates/images/background-gradient.jpg") repeat-x;
}

.pointer { cursor: pointer; }

.overdue { color: #CC0000; }

.smallShadow { text-shadow: 1px 1px 3px #000; }
.tinyShadow { text-shadow: 0px 0px 1px #000; }

.xsmall { font-size: 70%; }


/* FontAwesome icon tweaks */
i.icon
{
    display: inline-block;
    margin-right: 10px;
    width: 15px;
    text-align: center;
}

i.cursorNormal { cursor: default; }

i.information { color: #1D7BFF; }

i.error { color: #C00; }

i.fa-pulse
{
    font-size: 16px; /* To prevent spinners from jumping around */
}


/* Navbar tweaks */
.navbar { margin-bottom: 0; }

.navbar-inverse
{
    background: linear-gradient(to bottom, #444, #111);
    border: 0;
    border-radius: 0;
}

.navbar-inverse .navbar-toggle { border: 1px solid #9d9d9d;  }

.navbar-brand
{
    font-size: 24px;
    font-weight: 200;
}

.dropdown-menu { border-radius: 7px; }

.dropdown-menu li a:hover { background: linear-gradient(to bottom, #EEE, #DDD); }

.badge-padding { margin-left: 12px; }

/* Breadcrumbs */
ol.breadcrumb
{
    border: solid #999;
    border-width: 0 1px 1px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 0 8px #555;
}

/* Panels */
div.panel, div.alert.shadow { box-shadow: 0 0 3px #555; }

div.panel-default div.panel-heading { background: linear-gradient(to bottom, #F6F6F6, #EEE); }

div.panel div.huge { font-size: 250%; }

div.panel div.no-padding { padding: 0; }
div.panel div.top-padding { padding-left: 0; padding-right: 0; }


/* Custom panel colours */
div.panel-black { border-color: #333; }
div.panel-blue { border-color: #337ab7; }
div.panel-orange { border-color: #ca884d; }
div.panel-green { border-color: #1B6A1F; }

div.panel-black div.panel-heading
{
    background: linear-gradient(to bottom, #555, #333);
    background: -webkit-linear-gradient(top, #555555 0%,#333333 100%); /* Chrome10-25,Safari5.1-6 */
    border-color: #333;
    color: #FFF;
}

div.panel-blue div.panel-heading
{
    background: linear-gradient(to bottom, #3b8fd4, #337ab7);
    border-color: #337ab7;
    color: #FFF;
}

div.panel-orange div.panel-heading
{
    background: linear-gradient(to bottom, #edaa4e, #e29e4f);
    border-color: #e7a44e;
    color: #FFF;
}

div.panel-green div.panel-heading
{
    background: linear-gradient(to bottom, #218327, #1B6A1F);
    border-color: #1B6A1F;
    color: #FFF;
}

div.panel-black  a { color: #555; }
div.panel-black  a:hover { color: #000; }
div.panel-orange a { color: #d9954f; }
div.panel-orange a:hover { color: #c3834b; }
div.panel-blue   a { color: #3470ae; }
div.panel-blue   a:hover { color: #2c5389; }

div.panel-heading { line-height: 1.15; }

div.panel-output
{
    margin: 15px;
    text-align: center;
}


/* All columns in row must have same height */
.flexrows .row {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display:         flex;
    flex-wrap: wrap;
}
.flexrows > [class*='col-'] {
    /*display: flex;*/
    flex-direction: column;
}

div.padded-row { padding: 0 10px 0 15px; }

/* Tables */
.table-double-striped > tbody > tr:nth-of-type(4n+0) { background-color: #f9f9f9; }

.table-no-bottom-margin
{
    margin-bottom: 0;
}

.table-hand > tbody > tr { cursor: pointer; }

.table-outlined
{
    border: 1px solid #DDD;
    border-top: none;
}

.table-padded-rows th:first-child, .table-padded-rows td:first-child
{
    padding-left: 15px;
}

.table-padded-rows th:last-child, .table-padded-rows td:last-child
{
    padding-right: 15px;
}

tr.striked
{
    color: #CCC;
    text-decoration: line-through;
}

.hidden-row
{
    padding: 0 !important;
    border-top: none !important;
}

.hidden-row div { padding: 10px; }


/* Forms */
.form-group label.optional { color: #999; }

.form-group div.invalid-feedback
{
    margin-top: 5px;
    text-align: left;
    color: #A94442;
}

input[type=radio]
{
    margin-right: 5px;
}

input.rounded-input
{
    display: inline;
    width: 35px;
    text-align: center;
    border-radius: 15px;
}

button.rounded-buttons
{
    border-radius: 15px;
    padding: 5px 9px;
}


/* Modals */
@media (min-width: 992px)
{
    .modal-md
    {
        width: 450px;
    }
}


/* Finance burndown */
table.burndown-tooltip th
{
    padding: 2px;
    color: #888;
    font-weight: normal;
    text-align: center;
}

table.burndown-tooltip td
{
    padding: 3px;
}

.highcharts-tooltip p.amount
{
    font-size: 170%;
    text-align: center;
    margin: 0 30px 0 30px;
}

.highcharts-tooltip p.amount-label
{
    text-align: center;
    margin-bottom: 0;
}


/* Permissions tree */
.tree ul
{
    margin: 0 0 0 20px;
    list-style: none;
    line-height: 2em;
}

.tree ul li
{
    position: relative;
}

.tree ul li:before
{
    position: absolute;
    left: -15px;
    top: 0;
    content: "";
    display: block;
    border-left: 1px solid #ccc;
    height: 1em;
    border-bottom: 1px solid #ccc;
    width: 10px;
}

.tree ul li:after
{
    position: absolute;
    left: -15px;
    bottom: -7px;
    content: "";
    display: block;
    border-left: 1px solid #ccc;
    height: 100%;
}

.tree ul li.root
{
    margin: 0 0 0 -20px;
}

.tree ul li.root:before
{
    display: none;
}

.tree ul li.root:after
{
    display: none;
}

.tree ul li:last-child:after
{
    display: none;
}


/* Utilities */
.utilities_electricityMeterReading, .utilities_waterMeterReading, .utilities_gasMeterReading
{
    border: 2px solid #C0C0C0;
    border-radius: 8px;
    font: 20px monospace;
    padding: 10px;
    text-align: center;
}

.utilities_electricityMeterReading
{
    background: #A2AB23;
    color: #000;
    letter-spacing: 5px;
}

.utilities_waterMeterReading
{
    background: #000;
    color: #FFF;
}

.utilities_waterMeterReading span, .utilities_gasMeterReading span
{
    background: #333;
    margin: 0 -4px;
    padding: 10px 5px;
}

.utilities_waterMeterReading span.decimal
{
    background: #C20000;
}

.utilities_gasMeterReading
{
    background-color: #000;
    color: #FFF;
}

.utilities_gasMeterReading div.decimal
{
    display: inline;
    border: 4px solid #C20000;
    margin-left: -15px;
    padding: 6px 4px;
}

.utilities_gasMeterReading div.decimal span
{
    padding: 6px 5px;
}

/* Graphs */
.graph-legend-circle
{
    float: right;
    width: 14px;
    height: 14px;
    border-radius: 7px;
}


/* Dropzone */
.dz-clickable, .dz-drag-hover
{
    margin: 15px;
    padding-top: 40px;
    padding-bottom: 30px;
    border: 2px dashed #179CFF;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
}

.dz-drag-hover
{
    border: 2px solid #179CFF;
}

.dz-clickable p
{
    margin-top: 20px;
    font-size: 150%;
}

.dz-clickable p.alternative
{
    margin-top: -10px;
    font-size: 100%;
    color: #999;
}

.dz-drag-hover p, .dz-drag-hover i
{
    color: #AAA;
}


/* Login */
.panel-login { box-shadow: 0 0 8px #000 !important; }


/* Loading overlay */
#loadingWrap
{
    position: fixed;
    width: 100%;
    height:100%;
    display: flex;
    align-items: center;
    top: 0;
    z-index: 100;
}

#loadingContainer
{
    display: flex;
    margin: 0 auto;
    padding: 30px;
    border: 2px solid #AAA;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    box-shadow: 0 0 15px #000;
}

.spinner {
    margin-top: 5px;
    width: 70px;
    text-align: center;
}

.spinner > div {
    width: 18px;
    height: 18px;
    background-color: #FFF;

    border-radius: 100%;
    display: inline-block;
    -webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
    animation: sk-bouncedelay 1.4s infinite ease-in-out both;
}

.spinner .bounce1 {
    -webkit-animation-delay: -0.32s;
    animation-delay: -0.32s;
}

.spinner .bounce2 {
    -webkit-animation-delay: -0.16s;
    animation-delay: -0.16s;
}

@-webkit-keyframes sk-bouncedelay {
    0%, 80%, 100% { -webkit-transform: scale(0) }
    40% { -webkit-transform: scale(1.0) }
}

@keyframes sk-bouncedelay {
    0%, 80%, 100% {
        -webkit-transform: scale(0);
        transform: scale(0);
    } 40% {
          -webkit-transform: scale(1.0);
          transform: scale(1.0);
      }
}

