/* Login page */
.vertical-center {
    position: absolute;
    top: 50%;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}

.wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.image-row {
    display: flex;
    align-items: center;
}

.image-column {
    flex: 1 1 auto;
    margin: 5px;
}

.image-column:not(:first-of-type) {
    margin-left: 3rem;
}

.image-column img {
    max-height: 100%;
    max-width: 100%;
}

.img-padded {
    margin: 10px;
    height: auto;
    max-width: 100%;
}

.logo-daikin {
    max-width: 100%;
}

.app-name {
    color: #abca59;
    margin-bottom: 0.75rem;
}

.form-signin {
    width: 100%;
    max-width: 330px;
    padding: 15px;
}

.form-signin .checkbox {
    font-weight: 400;
}

.form-signin .form-control {
    position: relative;
    box-sizing: border-box;
    height: auto;
    padding: 10px;
    font-size: 16px;
}

.form-signin .form-control:focus {
    z-index: 2;
}

.form-signin input[type="text"] {
    margin-bottom: -1px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.form-signin input[type="password"] {
    margin-bottom: 15px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

@media (max-width: 480px) {
    .image-column:not(:first-of-type) {
        margin-left: 1rem;
    }
}

/* Home and base */
.homepage-button {
    border-radius: 15px;
    align-items: center;
    padding-top: 15px;
    padding-bottom: 20px;
}

.home-main-div {
    height: 100%;
}

.buttonrow {
    margin-top: 5px;
}

.container.navbar-container {
    clear: both;
    /* Avoid losing too much border space */
    margin-left: 10px;
    margin-right: 10px;
    max-width: 96.5%;
}

.container.page-container {
    clear: both;
    display: block;
    overflow: auto;
    /* Avoid losing too much border space */
    margin-left: 10px;
    margin-right: 10px;
    max-width: 96.5%;
}

.page-container.bare-base {
    display: -ms-flexbox;
    display: -webkit-box;
    display: flex;
    flex-wrap: wrap;
    -ms-flex-align: center;
    -ms-flex-pack: center;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
}

.messages {
    padding: 10px;
    color: darkslategrey;
}

@media (max-width: 480px) {
    .container.navbar-container {
        /* Avoid losing too much border space */
        margin-left: 0;
        margin-right: 0;
    }
    .container.page-container {
        /* Avoid losing too much border space */
        margin-left: 0;
        margin-right: 0;
    }
}

/* Navigation bar */
.navbar {
    background-color: #abca59;
}

.navbar-nav {
    float: right;
}

.nav-link {
    text-align: left;
}

.navbar-menu-container {
    margin-top: 10px;
}

.navbar-brand {
    font-size: xx-large;
    color: white;
}

/* Sidebar */
.sidebar-wrapper {
    display: flex;
    width: 100%;
}

#sidebar {
    width: 250px;
    height: auto;
    min-height: 81vh;
    z-index: 999;
    background: #abca59;
    color: #fff;
    transition: all 0.3s;
}

#sidebar.active {
    margin-left: -250px;
    transform: rotateY(100deg);
}

#sidebar p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1em;
    font-weight: 300;
    line-height: 1.7em;
    color: #999;
}

a, a:hover, a:focus {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s;
}

#sidebar .sidebar-header {
    padding: 20px;
    background: #abca59;
}

#sidebar ul.components {
    padding: 0 0 20px;
}

#sidebar ul p {
    color: #fff;
    padding: 10px;
}

#sidebar ul li a {
    padding: 10px 10px 10px 15px;
    font-size: 1.1em;
    display: block;
}
#sidebar ul li a:hover {
    color: #95b454;
    background: #fff;
}

#sidebar ul li.active > a, a[aria-expanded="true"] {
    color: #fff;
    background: #95b454;
}
ul ul a {
    font-size: 0.9em !important;
    padding-left: 30px !important;
    background: #abca59;
}

a[data-toggle="collapse"] {
    position: relative;
}

.dropdown-toggle::after {
    display: block;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

#sidebarCollapse {
    float: left;
}

.settings-title {
    float: left;
    padding: 0 10px 10px 10px;
}

.settings-body {
    clear: both;
}

@media (max-width: 768px) {
    #sidebar {
        margin-left: -250px;
    }
    #sidebar.active {
        margin-left: 0;
        transform: none;
    }
}

/* Footer */
.footer {
    position: relative;
    height: 6rem;
    width: 100%;
    pointer-events: none
}

p.copyright {
    position: absolute;
    width: 100%;
    line-height: 40px;
    text-align: center;
    bottom:0;
}

.btn-container-ftr {
    position: absolute;
    margin-top: 45px;
    bottom: 20px;
}

a.footer-item {
    pointer-events: auto;
}

/* Charts */
.chart-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.chart {
    height: 250px;
    width: 300px
}

.chart.small{
    height: 150px;
    width: 300px
}

@media (max-width: 675px) {
    .chart {
        height: 200px;
        width: 240px
    }

    .chart.small{
        height: 100px;
        width: 200px
    }
}

/* Tables */
.table-container {
    overflow: auto;
    clear: both;
}

.table tbody tr.table-row:hover {
    background-color: rgba(171, 202, 89, 0.4);
    /*cursor: pointer;*/
}

.table.user-table tbody tr.table-row:hover {
    cursor: pointer;    /* Rows in user table are clickable */
}

.table.prio-table tbody tr.table-row:hover {
    cursor: pointer;    /* Rows in priority table are clickable */
}

.table.prio-table tbody tr.table-row.highlight {
    background-color: rgba(171, 202, 89, 0.4);
}

thead {
    background: #abca59;
}

thead tr th a { /* Table header text */
    color: white;
}

thead tr th a:hover {
    color: darkslategrey;
}

table.wton-table > thead > tr > th {
    border: 1px solid #95b454;
    font-size: 0.90rem;
}

table.wton-table > tbody > tr > td {
    border: 1px solid rgba(171, 202, 89, 0.4);
    font-size: 0.90rem;
}

.table td, th {
    padding: 0.25rem 0.5rem 0.25rem 0.5rem; /* Top, right, bottom, left  */
}

.page-item a.page-link {
    color: #abca59;
    border-color: #abca59;
}

.page-item a.page-link:hover {
    color: #95b454;
    background-color: rgba(171, 202, 89, 0.4)
}

.page-item.active a.page-link {
    background-color: #95b454;
    border-color: #abca59;
}

.page-item.active a.page-link:hover {
    color: white;
    background-color: #95b454;
    border-color: #abca59;
}

/* Trailer calculation */
.card {
    border: 1px solid rgba(0,0,0,.125);
    margin-bottom: 10px;
}

.card-header {
    background-color: #abca59;
}

.card-body {
    padding: 0.75rem;
}

.card-text {
    margin-bottom: 5px;
    margin-left: 5px;
}

.trailer-calc-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.trailer-calc-field-container {
    min-width: 11rem;
    order: 0;
}

.trailer-calc-text {
    margin-bottom: 0;
}

.trailer-calc-result-container {
    text-align: center;
    padding-left: 5px;
    padding-right: 5px;
    order: 10;
}


.trailer-calc-field.qty{
    float: left;
}

.trailer-calc-field input {
    width: 3rem;
    height: 1.5rem;
}

.trailer-calc-result {
    font-weight: bold;
    font-size: 1.5rem;
}

.trailer-calc-totals-container {
    text-align: center;
    order: 20;
}

.trailer-calc-total {
    font-size: 1.25rem;
}

.trailer-calc-diff {
    font-size: 1.25rem;
}

.trailer-calc-button-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    width: min-content;
    order: 30;
}

.trailer-calc-button {
    float: left;
    padding-top: 3px;
    padding-bottom: 3px;
    height: 2rem;
    margin: 5px;
}

.btn-calculate {
    display: block;
    float: left;
}

.btn-reset {
    margin-left: 10px;
}

@media (max-width: 700px) {
    .trailer-calc-button-container {
        width: 100%;
        margin-top: 15px;
    }
}

@media (min-width: 520px) and (max-width: 650px) {
    .trailer-calc-result-container {
        order: 25;
        padding-top: 15px;
    }
}

@media (max-width: 520px) {
    .trailer-calc-field-container {
        padding-bottom: 10px;
    }
}

/* Table filters */
.table-options-container {
    display: flex;
    flex-wrap: wrap;
}

.customer-tab-container {
    margin-right: 10px;
}

div.filter-container {
    overflow: auto;
}

.filter {
    float: left;
}

.filter.field {
    margin-left: 10px;
    margin-top: 5px;
}

.filter-button {
    float: left;
    padding-top: 4px;
    padding-bottom: 4px;
    margin: 3px 5px;
}

form.filter-form {
    margin: 0;
    float: left;
}

@media (max-width: 775px) {
    .filter-container {
    }
    form.filter-form {
        float: none;
    }
}

@media (max-width: 465px) {
    .filter.field {
        float: none;
    }
}

/* Forms */
.form-row {
    padding-bottom: 25px;
}

.help-block {
    font-size: x-small;
}

div.controls ul li {
    font-size: x-small;
}

.custom-checkbox-input {
    height: 1rem;
    width: 1rem;
    margin-top: 0.5rem;
}

.margin-top {
    margin-top: 1rem;
}

.pw-change-link {
    display: block;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
    color: #007bff
}

.control-group {
    margin-top: 0.5rem;
}

textarea.form-control {
    height: 75px;
}

.form-margin {
    margin-top: 10px;
    margin-bottom: 10px;
}

.form-btn-container {
    overflow: auto;
}

@media (min-width: 481px) {
    .block-limit {
        max-width: 30rem;
    }
}

.errornote {
    color: red;
}

/* Modals */
.modal-header {
    background-color: #abca59;
}

.modal-header h3 {
    color: white;
    margin: 0;
}

/* Icons */
.fa-times-circle {
    color: red;
}

.fa-check-circle {
    color: green;
}

.fa-trash {
    color: dimgrey;
}

.fa-trash:hover {
    color: black;
}

.panel-btn-container {
    float: left;
}

.panel-button {
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 3px;
    float: left;
}

.panel-button:focus {
    box-shadow: 0 0 0 0;
}

/* Buttons */
.btn-primary {
    background-color: #abca59;
    border-color: #abca59;
}

.btn-primary:hover {
    background-color: #95b454;
    border-color: #abca59;
}

.btn-primary.active {
    background-color: #95b454;
    border-color: #abca59;
}

.btn-outline-primary {
    color: #abca59;
    border-color: #abca59;
}

.btn-outline-primary:hover {
    background-color: #95b454;
    border-color: #abca59;
}

.btn-outline-primary.active {
    background-color: #95b454;
    border-color: #abca59;
}

.btn-secondary {
    background-color: #878787;
    border-color: #878787;
}

.btn-secondary:hover {
    background-color: #696969;
    border-color: #696969;
}

.btn-container .btn-lg {
    margin: 5px;
    font-size: x-large;
}

.btn-tab {
    background-color: #abca59;
    border-color: #95b454;
    color: white;
    padding-top: 7px;
    padding-bottom: 7px;
    border-radius: 8px 8px 0 0;
}

.btn-tab:hover {
    background-color: #95b454;
    border-color: #95b454;
    color: white;
}

.btn-tab:focus {
    box-shadow: 0 0 0 0;
}

.btn-tab.open {
    background-color: #86a553;
}

@media (max-width: 480px) {
    .btn.block-sm {
        width:100%;
    }
}

/* Prevent hyperlink line from appearing when hovering button */
a:hover {
    text-decoration-line: none;
}

/* Quick layout */
.hidden {
    visibility: hidden;
    display: none;
}

.no-hover {
    pointer-events: none;
}

.clickable {
    cursor: pointer;
}

.color-red {
    color: red;
}

.color-black {
    color: black;
}

.bold {
    font-weight: bold;
}
