/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification 
for details on configuring this project to bundle and minify static web assets. */
:root {
    --main-bg-color: #fff;
    --head-bg-color: #222;
    --saturday-color: #68a5e2;
    --sunday-color: #226ab2;
    --holiday-color: firebrick;
}

body {
    padding-top: 50px;
    padding-bottom: 20px;
    overflow-y: scroll;
}

.pl-30 {
    padding-left: 30px;
}

.pt5 {
    padding-top: 5px;
}

.pb-15 {
    padding-bottom: 15px;
}

/*Navigation*/
@media (max-width: 767px) {
    .navbar-inverse .navbar-nav .open .dropdown-menu > li > a {
        color: #333;
        background-color: #9d9d9d;
        padding-left: 30px;
    }
}

@media (min-width: 768px) {
    .navbar-right {
        margin-right: -13px;
    }
}

nav .admin {
    background-color: #663333;
}

.navbar-inverse .navbar-nav.admin > .open > a, .navbar-inverse .navbar-nav.admin > .open > a:hover, .navbar-inverse .navbar-nav.admin > .open > a:focus {
    background-color: #663333;
}

.nav > li > a.leftnav {
    display: inline-block;
    padding-right: 3px;
}

.nav > li > a.rightnav {
    display: inline-block;
    padding-left: 3px;
}

/*ProxyMode*/
body.proxy .swp-pedd select {
    background-color: crimson;
    color: white;
    border-color:white;
}

/* Wrapping element */
/* Set some basic padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Carousel */
.carousel-caption p {
    font-size: 20px;
    line-height: 1.4;
}

/* Make .svg files in the carousel display properly in older browsers */
.carousel-inner .item img[src$=".svg"] {
    width: 100%;
}

/* QR code generator */
#qrCode {
    margin: 15px;
}

/* Start SWAP */
/* General */
.highlight, .highlightForm input, .highlightForm select {
    background-color: crimson;
}

.btn-default.tglActive, .btn-default.tglActive:hover {
    background-color: #23527c;
    color: white;
}

#trPassive.btn-default.tglActive, #trPassive.btn-default.tglActive:hover {
    background-color: #ddd;
    color: white;
}

.limitText {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mhide {
    display: none;
}

.row.hoverable:hover, .row div.hoverable:hover, span.hoverable:hover {
    background-color: #337ab7;
    cursor: pointer;
}

.numeric, .right {
    text-align: right;
}

.optionsHead {
    display: inline-block;
    vertical-align: top;
    margin-right: 20px;
}

/*Calculation*/
/* Report */
@media print {
    .row.force-print {
        display: block !important;
    }

    .row.week {
        border-bottom: 2px solid black;
        break-after: avoid-page;
        break-after: avoid;
    }

        .row.week div {
            font-size: 1.2em;
        }

    .row.day div, .row.title div {
        font-weight: bold;
    }

    .row.task {
        border-width: 0 !important;
        border-collapse: collapse;
    }

    .row.division2 {
        border-top: 4px double black !important;
    }
}

.breakbox {
    padding: 1em;
    margin: 1em 0;
}

    .breakbox p.title {
        font-weight: bold;
    }

/* https://www.colorhexa.com/b22222 */
.special div {
    color: firebrick;
}

.row.title div {
    font-weight: bold;
}

.row.day.holiday div {
    background-color: var(--holiday-color);
    color: white;
}

.row.day.saturday div {
    background-color: var(--saturday-color);
    color: white;
}

.row.day.sunday div {
    background-color: var(--sunday-color);
    color: white;
}

.row.week, .row.day, .row.d3, .row.d4 {
    page-break-after: avoid
}

.row.d4 {
    margin-top: 5px;
    background-color: #eee;
}

.row.d3 {
    margin-top: 5px;
    background-color: #ddd;
}

.row.d2, .row.day {
    margin-top: 5px;
    background-color: #ccc;
}

.row.credit {
    background-color: #bbb;
}

.row.past {
    color: #ddd;
}

.row.d1, .row.week {
    margin-top: 20px;
    border-top-left-radius: 8px;
    background-color: #bbb;
}

    .row.week:not(.isOpen) {
        border-bottom-right-radius: 8px;
    }

.row.antiweek {
    margin-bottom: -20px;
}

.row.antiantiweek {
    margin-top: 20px;
    margin-bottom: -20px;
}

.row.week div {
    font-weight: bold;
    padding-top: 6px;
    padding-bottom: 6px;
}

.row.day div {
    padding-top: 3px;
    padding-bottom: 3px;
}

.row.d3 div, .row.d4 div {
    padding-top: 2px;
    padding-bottom: 1px;
}

.row.task, .row.task-spaced, .row.entry {
    border-top: 1px solid #ddd;
    font-style: oblique;
}

    .row.task div, .row.small, .row.entry div {
        padding-top: 0.1em;
        padding-bottom: 0.1em;
        font-size: 0.8em;
    }

.row.spaced {
    padding-top: 0.5em;
    padding-bottom: 0.5em;
}

.row.expense {
    font-style: oblique;
}

.row.h1, .row.h2, .row.h3 {
    margin-top: 20px;
    margin-bottom: 10px;
}

    .row.h1 h1, .row.h2 h2, .row.h3 h3 {
        margin-top: 0px;
        margin-bottom: 0px;
    }

.row div.in1 {
    padding-left: 1em;
}

.row div.in2 {
    padding-left: 2em;
}

.row div.in3 {
    padding-left: 3em;
}

.row div.in4{
    padding-left: 4em;
}

.row.mt1 {
    margin-top: 1.0em;
}

.row.mt2 {
    margin-top: 2.0em;
}

.row.mt5 {
    margin-top: 5.0em;
}

.row.mb1 {
    margin-bottom: 1.0em;
}

.row.mb2 {
    margin-bottom: 2.0em;
}

.row.mb5 {
    margin-bottom: 5.0em;
}

.row.hr {
    padding-bottom: 0.5em;
    border-bottom: 1px solid #ddd;
}

.row.task-spaced {
    padding-top: 3px;
    padding-bottom: 3px;
}

.row.result, .header {
    font-weight: bold;
}

    .row.result div, .row.header div {
        padding-top: 4px;
        padding-bottom: 4px;
    }

.row.header {
    border-bottom: 2px solid #ddd;
    margin-bottom: 4px;
}

.row.division2 {
    border-top: 2px solid #ddd;
    margin-top: 4px;
}

.icTrAc, .icTrPa {
    font-size: 0.8em;
    font-weight:bold;
    color:white;
    display: inline-block;
    padding-left: 4px;
    padding-right: 4px;
    border-radius: 4px;
}

.icTrAc {
    background-color: #23527c;
}

.icTrPa {
    background-color: #ddd;
}

/* Widgets */
.widgetContainer {
    margin-top: 48px;
}

.daycol {
    border-left: 1px solid #ddd;
    height: 100%;
}

.ddd {
    display: inline-block;
    width: 40px;
}

/* Hide/rearrange for smaller screens */
@media screen and (max-width: 767px) {
    /* Hide captions */
    .carousel-caption {
        display: none;
    }
}

/*calendar*/
.calendar > div.week, .calendar > div.day, .calendar > div.fill {
    height: 80px;
    border: 2px solid white;
}

.calendar > div.week {
    background-color: darkgray;
    text-align: center;
    font-size: 3em;
    line-height: 80px;
    color: lightgray;
    font-weight: 700;
}

.calendar > div, .calendarhead > div {
    padding: 0;
}

@media screen and (max-width: 767px) {
    .calendar > div.week {
        font-size: 1em;
        writing-mode: vertical-lr;
        line-height: 1.5em;
    }
}

.calendar > div.day {
    background-color: lightgray;
    text-align: center;
}

.calendar > div.sunday {
    background-color: var(--sunday-color);
}

.calendar > div.saturday {
    background-color: var(--saturday-color);
}

.calendar > div.holiday {
    background-color: var(--holiday-color);
}

.calendarhead > div {
    text-align: center;
    font-weight:bold;
}

.calendar > div.week:hover ~ div.workday, .calendar > div.workday:hover {
    background-color: orange;
}

.calendar.selected > div.day, .calendar > div.day.selected {
    background-color: orangered;
}

/*cost animation*/
div.aal {
    position: absolute;
    top: auto;
    left: 0;
}

div.cost {
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
}

div.animation {
    width: 100%;
    height: 20px;
}

rect.green {
    fill: #3c3;
}

rect.yellow {
    fill: #cc3;
}

rect.red {
    fill: #c33;
}

rect.lgray {
    fill: lightgray;
}

rect.dgray {
    fill: darkgray;
    width: 100%;
    height: 100%;
}

/*Yearly*/
.agco {
    font-size: 0.8em;
    color: crimson;
}
