/* 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. */
/*body {
    padding-top: 50px;
    padding-bottom: 20px;
}*/
:root {
    --color-primary: #002060;
    --color-secondary: #53ACDB;
    --color-info: #9C9EDB;
    --color-infolight: rgba(156, 158, 219, 0.2);
    --color-warning: #5356DB;
    --color-error: #F44336;
    --color-white: #FAFAFA;
    --color-gray5: #E0E0E0;
}

html, body {
    height: 100%;
}

.all-borders th, .all-borders td {
    border: 1px solid #E0E0E0;
}

body {
    display: flex;
    flex-direction: column;
    font-family: Raleway,sans-serif;
    color: var(--color-primary);
    &.MilControl {
        background-color: var(--color-white);
    }
    &.SprayerAudit {
        background-color: #FFF;
    }
}

.bg-white {
    background-color: var(--color-white);
}

.content {
    flex: 1 0 auto;
}

.footer {
    flex-shrink: 0;
}

/* Wrapping element */
/* Set some basic padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* QR code generator */
#qrCode {
    margin: 15px;
}

/* custom css */
.btn-col {
    margin-top: 10px;
    margin-bottom: 10px;
}

.navbar-light .navbar-brand {
    color: #1fb5b2; /* #75bebc; */
}

.navbar-light .navbar-nav {
    color: #1fb5b2;
    font-size: 1.1rem;
}

.content {
    background-color: rgb(235, 245, 246);
}

.stripeon {
    background-color: var(--color-secondary);
}

.stripeoff {
    background-color: white;
}

.table-striped tbody tr:nth-of-type(odd) {
    /*background-color: var(--color-secondary);*/
    background-color: white;
}

.table-striped tbody tr:nth-of-type(even) {
    background-color: white;
}

.table .thead-light th {
    background-color: var(--color-white);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--color-primary);
}

.btn{
    border-radius:0.5rem;
}

.btn-primary {
    color: var(--color-white);
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    filter: brightness(1.2);
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-primary:active:focus, .btn-primary:focus, .btn-primary:active, .btn-primary.active, .open > .dropdown-toggle.btn-primary {
    color: var(--color-primary);
    background-color: var(--color-white);
    border-color: var(--color-secondary);
}

.card .table {
    margin-bottom: 0;
}

.border-shadow {
    box-shadow: 0px 1px 3px 3px var(--color-gray5);
}

.card {
    border: none;
    &.border-shadow-wide {
        margin-top: 0px;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }
}

.card-header{
    background-color: transparent;
    padding: 1rem;
    border: none;
}

.text-gray {
    color: grey;
}

.text-gray a {
    color: #4e7eb1;
}

.text-gray button {
    color: #4e7eb1;
}
.text-dark {
    color: var(--color-primary)
}

.text-bold {
    font-weight: bold;
}
.text-small {
    font-size: 0.8rem;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--color-primary);
    padding-left: 14px;
    padding-right: 14px;
    text-align: center;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: var(--color-primary);
}

.row-dark {
    background-color: rgba(212, 234, 235, 1);
}

.row-light {
    background-color: white;
}

.table > :not(caption) > * > * {
    border-width:1px;
}

.table > :not(:last-child) > :last-child > * {
    border-bottom-color: var(--color-gray5);
}

.nav-item {
    margin-top: auto;
}

.table-responsive {
    display: block;
    overflow-x: visible;
}

.table-sm > :not(caption) > * > * {
    padding-right: 2rem;
}

.borders {
    border: 1px solid var(--color-gray5);
}

.icon-color {
    color: #1fb5b2;
}

.icon-small {
    font-size: 0.85rem;
}

.youtube {
    max-width: 800px;
    max-height: 450px;
    position: relative !important;
}

.embedresize {
    max-width: 800px;
    margin: auto;
}

.embedresize div {
    position: relative;
    height: 0;
    padding-bottom: 56.25%;
}

.embedresize iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.vertline {
    border-right: 1px solid #1fb5b2
}

.headroom {
    margin-top: 40px;
}

.spacer {
    margin-bottom: 60px;
}

.spacer-sm {
    margin-bottom: 30px;
}

.frame {
    background-color: white;
    border: solid rgb(122, 188, 192) 2px;
    padding: 30px;
    text-align: justify;
}

/* Hide/rearrange for smaller screens */
@media screen and (max-width: 767px) {
    /* Hide captions */
    .carousel-caption {
        display: none;
    }
}

@media only screen and (max-width:767px) {
    .dc_about_logo {
        padding-top: 60px;
    }

    .table-responsive {
        margin: 0px;
    }

    .around-table {
        border-style: none;
        display: contents;
        overflow: hidden;
    }
    .card-header {
        padding: 10px 2px;
    }

    .btn-filter-enabled {
        padding: 0px 3px;
    }

    .btn-filter-disabled {
        padding: 0px 3px;
    }
}

@media only screen and (min-width:768px) {
    .dc_about_logo {
        -ms-transform: rotate(90deg); /* IE 9 */
        transform: rotate(90deg);
    }

    .around-table {
        border-style: solid;
        border-radius: .5rem;
        border-width: 1px;
        border-color: var(--color-gray5);
        display: inline-block;
        overflow: auto;
    }

    .border-shadow-wide {
        box-shadow: 0px 1px 3px 3px var(--color-gray5);
        margin-top: 20px;
    }
}

@media (min-width: 576px) {
    .navbar-expand-sm .navbar-nav {
        margin-left: auto;
    }
}

@media screen and (min-width: 577px) {
    .middle-textarea {
        position: relative;
    }

    .middle-textarea-child {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
    }
}

@media screen and (max-width: 576px) {
    .middle-textarea-child {
        margin-bottom: 20px;
    }
}

.icon {
    float: right;
    display: inline-block;
}

.fullsize {
    height: 100%;
    width: 100%;
}

.news-item {
    height: 100%;
    margin-top: 10px;
    margin-bottom: 10px;
    padding-top: 20px;
    padding-bottom: 25px;
}

.title {
    font-size: 2em;
    font-weight: bolder;
}

.news-img {
    width: 100%;
    margin-bottom: 20px;
}

.faqlink {
    color: rgb(122, 188, 192);
}

.indent {
    text-indent: 40px;
}

.indent-content {
    display: inline-block;
    padding-left: 40px;
}

.form-group {
    margin: 16px 0
}

.contact_form {
    padding: 10px 30px 20px;
}

@media screen and (min-width: 577px) {
    .contact_form_send {
        padding: 90px 20px 90px;
    }
}
.form-control {
    background-color: var(--color-infolight);
    border-style: none;
}

.logout-button {
    background-color: var(--color-error);
    color: var(--color-white);
    padding-left: 28px;
    padding-right: 28px;
    text-decoration: none;
    width: 100%;
}

.logout-button:hover {
    color: var(--color-white);
    filter: brightness(1.2);
}

.other-language {
    opacity: 0.5;
}

.btn-filter-enabled {
    color: var(--color-white);
    background-color: var(--color-primary);
    margin: 0px 8px 3px 0px;
}

.btn-filter-disabled {
    color: var(--color-white);
    background-color: var(--color-secondary);
    margin: 0px 8px 3px 0px;
}

.btn-sort-small {
    color: var(--color-white);
    background-color: var(--color-info);
    margin: 0px 8px 3px 0px;
    padding: 0px 3px;
}

.btn-filter-enabled:hover, .btn-filter-disabled:hover, .btn-sort-small:hover {
    color: var(--color-white);
    filter: brightness(1.1);
}

.btn-big {
    padding: .5rem 1rem;
    font-size: 1.5rem;
}

button {
    &.link {
        border: none;
        background: none;
        color: #0d6efd;
        text-decoration: underline;
        &:hover {
            color: #0a58ca;
        }
    }
}

.counter-filter {
    background-color: var(--color-warning);
    color: var(--color-white);
    margin-left: 3px;
    margin-right: 7px;
    font-size: 0.8rem;
    font-weight: 800;
    border-radius: 0.5rem;
    padding: 0px 5px;
}

.fullwidth {
    width: 100%;
}

.rounded-4 {
    border-radius: .5rem
}

.rounded-5 {
    border-radius: 1rem
}

.horizontal-scrollable > .row {
    display: flow;
    overflow-x: auto;
    white-space: nowrap;
    margin: 3px 0px;
}

.horizontal-scrollable > .row > a {
    display: inline-block;
    float: none;
    width: unset;
}

.filter-col {
    position: relative;
    padding-right: 20px;
}

.bi-sort-down, .bi-sort-down-alt {
    position: absolute;
    right: 0;
}

.contact_form_KeuringMachines {
    width: 0;
    height: 0;
    overflow: hidden;
    position: absolute;
}

.header-small-table {
    display: none;
}


.filter-small {
    display: none;
}

ul.nav-tabs > li > a.nav-link {
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    padding: .5rem 2rem;
    border-color: #e9ecef #e9ecef #dee2e6;
    font-weight: 700;
    color: var(--color-primary);
}

    ul.nav-tabs > li > a.nav-link.active {
        border-bottom: 0;
        box-shadow: 0px 1px 3px 3px var(--color-gray5);
        position: relative;
        background-color: var(--color-white);
        isolation: unset;
        border: 0px;
    }
        /*hide bottom shadow*/
        ul.nav-tabs > li > a.nav-link.active:after {
            position: absolute;
            background-color: var(--color-white);
            height: 20px;
            content: "";
            position: absolute;
            bottom: -10px;
            left: 0px;
            right: 0px;
            z-index: 1;
        }



.btn-view-small {
    cursor: pointer;
}
.error-banner {
    background-color: var(--color-error);
    color:var(--color-white);
    padding:.5rem;
    margin-bottom:.25rem;
}

/* 
Max width before this PARTICULAR table gets nasty
This query will take effect for any screen smaller than 760px
and also iPads specifically.
*/
@media only screen and (max-width: 767px) { /*, (min-device-width: 768px) and (max-device-width: 1024px) {*/

    .main-content {
        padding: 0px;
        max-width: unset;
    }

    /* Force table to not be like tables anymore */
    .table-resp,
    .thead-resp,
    .tbody-resp,
    .th-resp, 
    .td-resp, 
    .tr-resp {
        display: block;
    }

    /* Hide table headers (but not display: none;, for accessibility) */
    .thead-resp .tr-resp {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    .tr-resp {
        box-shadow: 0px 0px 5px 1px var(--color-gray5);
        margin-bottom: 12px;
    }

    .td-resp {
        /* Behave  like a "row" */
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
    }
    
    .td-resp:before {
        /* Now like a table header */
        /* Top/left values mimic padding */
        top: 6px;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
    }

    h1, h2 {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .header-small-table {
        display: inline-flex;
        padding-right: 3px;
        font-weight: 800;
        width: 55%;
    }

    .table > :not(caption) > * > td {
        padding: 0.1rem 0.5rem;
        &.sprayerauditdetailcontainer {
            padding:0;
        }
    }

    .container-btn-view-small {
        text-align: center;
    }

    .btn-view-small {
        color: var(--color-white);
        background-color: var(--color-primary);
        margin: 8px 8px 8px 0px;
        display: inline-block;
        font-weight: 400;
        line-height: 1.5;
        text-align: center;
        text-decoration: none;
        vertical-align: middle;
        -moz-user-select: none;
        user-select: none;
        border: 1px solid transparent;
        padding: .375rem .75rem;
        font-size: 1rem;
        border-radius: .5rem;
    }

    .btn-view-small:hover {
        color: var(--color-white);
        filter: brightness(1.2);
    }

    .btn-view-small:focus {
        outline: 0;
        box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25);
    }

    .filter-small {
        display: block;
    }
    
}

    @media only screen and (min-width: 767px) {
        .text-start {
            margin-top: 1.5rem;
            margin-bottom: 1.5rem;
        }

        .table-resp > * > .td-resp, .th-resp {
            max-width: 150px;
            word-wrap: break-word;
        }
    }