body {
	font-family: sans-serif;
}

h1, h2, h3, h4, h5, h6 {
	font-family: 'Merriweather', serif;
}

h2 {
	margin-top: 30px;
}

h3 {
	margin-top: 20px;
}

h4 {
	margin-top: 15px;
	margin-bottom: 5px;
}

@media only screen and (max-width: 768px) {
    /* For tablets */

    .content {
        min-height: calc(100vh - 124px);
    }

    h1.page-title { font-size: 1.4rem; }
    h2.page-subtitle {
        font-size: 1.0rem;
        margin-bottom: 0px;
    }

    h2.subtitle { font-size: 1.0 rem; }

    h2 { font-size: 1.2rem; }
    h3 { font-size: 1.1rem; }
    h4 { font-size: 1.0rem; }

    footer {
        height: 72px;
        padding-top: 3px;
        margin-top: 5px;
        font-size: 0.8rem;
    }

    footer p {
        line-height: 1.1rem;
        margin-bottom: 5px;
    }
}

@media only screen and (min-width: 768px) {
    /* For desktop */

    .content {
        min-height: calc(100vh - 178px);
    }

    h1.page-title { font-size: 2rem; }
    h2.page-subtitle { font-size: 1.3rem; }
    h2.subtitle {
        font-size: 1.4 rem;
        margin-bottom: 15px;
    }

    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.15rem; }

    footer {
        height: 115px;
        padding-top: 10px;
        margin-top: 15px;
    }

    footer p {
        line-height:1.5;
    }
}

h1.page-title {
    font-weight: 900;
    margin-bottom: 0px;
}

h2.page-subtitle {
    font-style: italic;
    font-weight: 400;
    color: #bbbbbb;
    margin-top: 2px;
}

h2.subtitle {
    color: #bbbbbb;
    font-style: italic;
}

h3.subtitle {
    margin-top: 0px;
    color: #bbbbbb;
    font-size: 1.2em;
    font-style: italic;
}

.bg-shade {
	background-color: #666666;
}

.navbar {
    padding: 0px;
}

.nav-item, a.navbar-brand {
    line-height:1.75;
}

.nav-item:hover, .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.navbar-dark .navbar-nav .nav-link, .navbar-dark .dropdown-menu .dropdown-item {
    color: #ffffff;
}

.navbar-dark .navbar-nav .nav-link:hover, .navbar-dark .dropdown-menu .dropdown-item:hover {
    color: #ffffff;
}

.bg-dark, .navbar-dark .dropdown-menu {
    background-color: #0c5371 !important;
    margin-top: 0px;
    border-radius: 0px;
    border: 1px solid #0c5371;
}

div.flashed-messages {
    margin-bottom:1.5rem;
}

footer {
    background-color: #0c5371;
    color: #ffffff;
}
footer a {
	color: #ffffff;
}

footer a:hover {
	color: #ddeeff;
}

.content {
    font-size:0.8rem;
}

.card {
	border: 1px solid #266782;
	border-radius:4px;
	transition: box-shadow 0.5s;
}

.card-light {
    border: 1px solid #dddddd;
}

.card-header {
    color: #ffffff;
	background-color: #266782;
}

.card-header-light {
    color: #000000;
	background-color: #f2f2f2;
}

.card-header-success {
    color: #ffffff;
    background-color: #125f3c;
}

.card-header a {
    color: #dee2e6;
}

.card-header-light a {
    color: rgb(27, 95, 170);
}

.form-label {
    font-size:0.95rem;
    font-weight:900;
    margin-bottom:0.1rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

a, .nav-link {
    text-decoration: none;
}

.btn-primary {
    background-color: #1b5faa;
    border-color: #1b5faa;
}

.vertical-centered td {
    vertical-align: middle;
}

.card.blue {
	border: 1px solid #0c5371;
	border-radius:4px;
	transition: box-shadow 0.5s;
}

.blue .card-header {
    background-color: #08364a;
    color: #ffffff;
    font-family: 'Merriweather', serif;
    font-size:1.3em;
}

.alert {
    padding:4px 8px;
    margin:0px;
}

.badge {
    padding: .3em .6em;
}

.table td {
    padding: 0.2rem 0.4rem !important;
}

span.bi {
    font-size: 1.0rem;
    line-height: 1.0rem;
}

input[type="date"].form-control, input[type="time"].form-control {
    line-height: 1.5em;
}

button {
    margin-top:7px;
    margin-bottom:7px;
}

button.sales-step-button {
    clip-path: polygon(calc(100% - 6px) 0px, 100% 50%, calc(100% - 6px) 100%, 2px 100%, 8px 50%, 2px 0px);
    border:none;
    display: inline;
    margin-right: -8px;
    height: 30px;
}

button.sales-step-button span {
    font-size: 0.75rem;
}

button.sales-step-button:hover {
    margin-top: 0px;
    padding-top: 0px;
}

button.sales-step-button:hover span {
    font-size: 0.9rem;
}

input.btn {
    padding: 0.2rem 0.8rem;
	margin-top: 5px;
}

.form-control {
    font-size: 0.9rem;
}

.container-border {
    border: 1px solid;
    border-radius: 5px;
    margin-top: 3px;
    margin-bottom: 3px;
    padding: 5px;
}

.border-grey {
    border: 1px solid #cccccc;
}

.border-green {
    border: 1px solid #44aa00;
}

.background-alert {
    background-color: #ff3300 !important;
}

.background-green {
    background-color: #234d00 !important;
}

.invoice {
    padding:5px;
    margin:3px;
    border: solid 1px #cccccc;
    border-radius: 5px;
    background: #131313;
}

.sale.card {
    margin-bottom:10px;
}

.overdue {
    border-color: #990000;
}

.overdue .card-header {
    background-color: #a00000;
    border-color: #990000;
}

.overdue .card-header a {
    color: #dee2e6;
}

.overdue .card-body {
    background-color: #660000;
}


.action_required {
    border-color: #cc7425;
}

.action_required .card-header {
    background-color: #815a00;
    border-color: #bc6415;
}

.action_required .card-header a {
    color: #dee2e6;
}

.action_required .card-body {
    background-color: #5d4100;
}

.onetime {
    color: #777777;
}

.onetime card-header {
    background: #fcfcfc;
}

.onetime a {
    color: #5d9bd0;
}

form.tiny input {
    font-size:0.8rem;
    padding: 2px 5px;
    margin: 4px 0px;
}

ul.no-bullet {
    list-style-type: none;
    padding-left:0px;
    margin:0px;
}

ul.no-bullet li {
    padding: 3px 0px 2px 0px;
}

ul.large-title li a {
    font-size:1.2rem;
}

div.form-group.row {
    margin-bottom:5px;
}

tr.too-late {
    background-color:#ff4800;
}

tr.too-late a {
    color:#ff6464;
}

tr.too-late a:hover {
    color:#fc0000;
}

@media print {
    html, body {
        width: 210mm;
        height: 297mm;
    }

    .navbar {
        display: none;
    }

    .header-print {
        position: fixed;
        top: 0;
    }

    .footer-print {
        position: fixed;
        bottom: 0;
    }

    .header-space, .header-print {
        height: 2.5cm;
    }

    .footer-space, footer-print {
        height: 1cm;
    }

    h1.page-title {
        margin-top:1.5cm;
    }

    h2.page-subtitle {
        color: #666666;
        font-weight: normal;
        font-size: 1.5rem;
    }
}

@media screen {
    div.page {
        width:210mm;
        margin-left:auto; margin-right:auto;
        margin-top:10px; margin-bottom:10px;
        border:1px solid #cccccc;
    }
}

h2.for-print {
    font-size: 1.3rem;
    margin-top: 1.0cm;
}

body.print .content {
    font-size: 11pt;
}

body.print h1 {
    margin-top:25px;
}

body.print table.table tr {
    border-bottom: 1px solid #000000;
}

body.print table.table th {
    border-top: 1px solid #000000;
}

.header-print {
    font-size: 9pt;
    width:100%;
}

.footer-print {
    font-size: 9pt;
    width:100%;
}

@page {
    size: A4;
    margin: 11mm;
}