.logo img {
    max-height: 100%;
    max-width: 100%;
}

.skin-red .main-header .navbar {
    background-color: #db0019;
}
.bg-red {
    background-color: #db0019 !important;
}
span.badge {
    font-weight: 400 !important;
}
.badge-success {
    color: #fff;
    background-color: #28a745;
}

body.env-dev .main-header .navbar {
    background-color: #1a437f !important;
}
span.email-copy {
    cursor: pointer;
}

body.env-staging .main-header .navbar {
    background-color: #00a65a !important;
}

/* login page has env indicator colors */
.body-login.env-dev {
    background-color: #1a437f !important;
}
.body-login.env-staging {
    background-color: #00a65a !important;
}

.skin-red .main-header .logo {
    background-color: white !important;
}

.main-header .navbar-breadcrumbs {
    float: left;
    background-color: transparent;
    padding: 15px 15px;
}
.navbar-breadcrumbs ol {
    list-style: none;
    margin: 0;
    display: block;
}
.navbar-breadcrumbs ol li .fa {
    margin-right: 5px;
}
.navbar-breadcrumbs ol li {
    color: #EEE;
    display: inline-block;
    font-size: 13px;
}
.navbar-breadcrumbs ol>li+li:before {
    content: '>\00a0';
    padding: 0 5px;
    box-sizing: border-box;
}
.navbar-breadcrumbs ol li a {
    color: #EEE;
    text-decoration: none;
    display: inline-block;
}
.content-header .page-actions {
    float: right;
    position: absolute;
    top: 15px;
    right: 10px;
}
.content-header>h1>.label {
    margin-left: 20px;
    font-size: 10px;
}
.content-header>h1 span {
    margin-left: 15px;
    font-size: 15px;
    font-style: italic;
}

hr {
    border-top: 1px solid #CCC;
}

a.logo, a.logo:hover {
    background-color: white !important;
}

.form-control.line-description {
    margin-bottom: 5px;
}

.factor-control {
    width: 65px !important;
    padding: 6px 6px;
}

.factor-group .input-group-btn {
    left: -11px !important;
}

.btn.semi-disabled {
    cursor: not-allowed;
    filter: alpha(opacity=65);
    opacity: .65;
    box-shadow: none;
}

.factor-group .btn {
    padding: 6px 6px;
}

.discount-control {
    width: 65px !important;
    padding: 6px 6px;
}

td.hover-shows-button .btn {
    visibility: hidden;
}
td.hover-shows-button:hover .btn {
    visibility: visible;
}

#supplies-data-table div.tt,
#supplies-data-table div.tt {
    display: inline-block;
}

.popover-content label {
    display: block;
    margin-bottom: 7px;
}

.btn-group > .btn {
    float: none !important;
}

.btn-group .actual-first {
    border-top-left-radius: 3px !important;
    border-bottom-left-radius: 3px !important;
    margin-left: 7px !important;
}

.btn-group a.urgent {
    font-weight: bold;
    color: darkred;
}
.btn.btn-secondary {
    background-color: #001F3F !important;
    color: #fff;
}

.skin-red .box.box-primary {
    border-top-color: #db0019;
}

.skin-red .dataTables_processing {
    background-color: #db0019;
    color: white;
    position: absolute;
    top: 140px !important;
}

.skin-red-light .main-header .logo {
    color: #dd4b39;
    background-color: #fff;
    border-top: 2px solid #db0019;
    border-left: 2px solid #db0019;
    border-bottom: 2px solid #db0019;
}

.nowrap {
    white-space: nowrap;
}

.order_id_with_clipboard {
    white-space: nowrap;
}

/* Bootstrap and DataTables */
.box .box-body.no-padding {
    margin-top: 9px;
}
.box-body .dataTables_info {
    padding-right: 10px !important;
    padding-left: 10px !important;
    text-align: right !important;
}
.box-body .dataTables_length {
    text-align: left !important;
    padding-left: 10px;
}
.box-body .dataTables_paginate {
    padding-right: 10px;
}
.box-body .dataTables_filter {
    padding-right: 10px !important;
    padding-left: 10px !important;
    text-align: left !important;
}

.btn-group-flex {
    /* prevent btn-group wrapping */
    display: flex;
}




a.suggestion,  .sync-btn {
    cursor: pointer;
}

.sync-btn i.fa {
    width: inherit !important;
}

.sync-relations {
    cursor: pointer;
}

.sync-relations i.fa {
    width: inherit !important;
}

.dropdown-menu .slimScrollDiv,
.dropdown-menu .slimScrollDiv .menu {
    height: auto !important;
}

/* datatable enhancements */

table.dataTable tbody th.dt-body-right,
table.dataTable tbody td.dt-body-right {
    text-align: right;
}

.dataTable .filters .form-control {
    padding: 6px 6px;
}

.dataTable .filters div.form-control {
    /* select 2 field */
    padding: 0 !important;
}

.table-sub-table {
    width: auto;
}

.table-sub-table td {
    font-size: 12px;
    color: #626262;
}

a.link170 {
    max-width: 170px;
    float: left;
}

#letter_comment_commentParagraph,
#letter_cleanConditions,
#order_mail_paragraph_mailParagraph,
#external_decline_declineReason {
    width: 100%;
    min-height: 130px;
}

#client_order_deliveryNotes,
#client_order_sticker {
    width: 100%;
    min-height: 170px;
}

#form_sticker {
    width: 100%;
    height: 230px;
}

.order-create-container .select2-container {
    height: 80px !important;
}
.order-create-container span.select2-selection {
    height: 80px !important;
}
#select2-client_order_deliveryRelation-container {
    line-height: 18px;
}



#external_request_question_body,
#question_forward_answer,
#question_answer_originalAnswer,
#letter_confirmation_confirmation,
#question_body {
    min-height: 200px;
}

#letter_confirmation_confirmation {
    width: 100%;
}

input.money.error {
    border-color: #9f191f;
    color: #9f191f;
}

td.expander {
    background: url('https://datatables.net/examples/resources/details_open.png') no-repeat center center;
    cursor: pointer;
}

td.expander.expanded {
    background: url('https://datatables.net/examples/resources/details_close.png') no-repeat center center;
}
.custom-search-form .select2-selection {
    border: none !important;
    background-color: transparent !important;
}
.btn-remove-paragraph {
    margin-right: 10px;
}
.form-horizontal table.order-list .form-group {
    margin-left: 0;
    margin-right: 0;
}

.select2-results__option {
    line-height: 1.1em;
}

/* Create Offer page */
table.lines .form-control {
    padding: 6px 6px;
}

table.lines input.ppp,
table.lines input.line-total {
    min-width: 60px;
}

.box .no-padding table tr:first-child>td {
    border-top: 0 !important;
}


.direct-chat .direct-chat-messages {
    height: auto;
    max-height: 230px !important;
    min-height: 5px;
}

.mail-request-overflow {
    overflow-y: scroll;
}


/* request label */

.request-label-unknown {
    background-color: #f39c12 !important;
    color: white;
}

.request-label-unidentified {
    background-color: #d2d6de;
    color: #444;
}

.request-label-new {
    background-color: #3c8dbc !important;
    color: white;
}


.request-label-not-an-rfq {
    background-color: #dd4b39 !important;
    color: white;
}

.request-label-created-elsewhere {
    background-color: #61d061 !important;
    color: white;
}

.request-label-created {
    background-color: #157e21 !important;
    color: white;
}

/* question label */
td .question-label {
    margin-right: 5px;
}

.question-label-,
.question-label-new {
    background-color: #d2d6de;
    color: #444;
}

.question-label-sent {
    background-color: #3c8dbc !important;
    color: white;
}

.question-label-answered {
    background-color: #605ca8 !important;
    color: white;
}

.question-label-forwarded {
    background-color: #D81B60 !important;
    color: white;
}

/* timed out is orange */
.question-label-timed-out {
    background-color: #f39c12 !important;
    color: white;
}

.question-label-expired, .question-label-historic {
    background-color: #d2d6de;
    color: #444;
}

.question-label-done {
    background-color: #61d061 !important;
    color: white;
}

/** Harry chat box -->
.chat .item .text {
    margin-top: 10px;
    margin-left: 55px;
}
.chat div.item > a.name {
    font-weight: bold;
    margin-left: 13px;
}
.chat .item p.error {
    font-weight: bold;
    color: #9f191f;
}
.chat div.item pre {
    overflow-x: scroll;
}

/* RFQ LABELS */
.rfq-label {
    display: inline-block;
    margin-right: 5px;
    background-color: #d2d6de;
    color: #444;
}

.rfq-label-new {
    background-color: #d2d6de;
    color: #444;
}
.rfq-label-sent {
    background-color: #3c8dbc !important;
    color: white;
}

.rfq-label-rejected {
    background-color: #dd4b39 !important;
    color: white;
}

.rfq-label-canceled {
    background-color: #f39c12 !important;
    color: white;
}

.rfq-label-historic {
    background-color: #f39c12 !important;
    color: white;
}
.rfq-label-done {
    background-color: #61d061 !important;
    color: white;
}
.rfq-label-unquoted {
    background-color: #001F3F !important;
    color: white;
}
.rfq-label-entered {
    background-color: #157e21 !important;
    color: white;
}
.rfq-label-expired {
    background-color: #605ca8 !important;
    color: white;
}

.rfq-label-created {
    background-color: #d2d6de;
    color: #444;
}

/* margins and elasticity */
tr.irrelevant {
    font-size: 12px;
    color: grey;
}

/* alert for boat-parent info */
#boat-company .alert {
    margin: 10px 0 0 0 !important;
}

.alert.alert-acknowledgement {
    padding-left: 30px;
    margin-bottom: 5px;
    position: relative;
    background-color: #fce1ba;
    color: #4a2f08;
}
.alert.alert-acknowledgement input {
    position: absolute;
    left: 10px;
}

.btn-reset {
    text-decoration: none !important;
}

.btn-reset.btn-danger {
    color: #fff !important;
}

.btn-reset.btn-warning {
    color: #fff !important;
}

.btn-reset.btn-default {
    color: #444 !important;
}

.btn-reset.btn-primary {
    color: #fff !important;
}

/* form line count */
table.order-list tr {
    counter-increment: line;
}

table.order-list tr span {
    color: #303030;
}

table.order-list tr span.count:before {
    content: counter(line);
    display: inline-block§;
}

.edit-decline {
    border-bottom: 1px solid #ddd !important;
}
.btn-declined {
    color: darkred;
}
.description-editted {
    border: 1px dashed #1a437f !important;
}

#external_boat_info {
    margin-top: 10px;
}
#external_boat_info .btn-default {
    text-align: left;
    color: #444;
    text-decoration: none;
}

.callout-info.callout-purple,
.callout-purple {
    background-color: #9794C6 !important;
    border-color: #555299;
}

/* Custom label for parked tickets */
.label-purple {
    background-color: #9b59b6 !important;
    color: white;
}

.project_detail .btn-group {
    margin-right: 10px;
}
div.notes {
    padding: 10px 20px;
    margin: 0 0 7px 0;
    border-left: 5px solid #eee;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    border-right: 1px solid #eee;
    background-color: #f5f5f5;
}
.buttons-block .btn {
    margin-bottom: 6px;
}

.box .table sub {
    color: #999;
    margin-left: 5px;
}

.dot {
    height: 18px;
    width: 18px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    vertical-align: sub;
    margin-right: 5px;
}

.dot.opdracht {
    background-color: #157e21 !important;
}

.dot.historic {
    background-color: #f39c12 !important;
}

.letter-header {
    margin-top: 10px;
    font-size: 22px;
    cursor: pointer;
}
.letter-header.mistaken {
    color: #999 !important;
}

.letter-header:after {
    font-family: Fontawesome;
    content: '\f078';
    float: left;
    font-size: 16px;
    font-weight: 300;
    margin: 5px 6px 0 0;
}

.letter-header.collapsed:after {
    font-family: Fontawesome;
    content: '\f054';
    margin: 5px 6px 0 4px;
}

.letter-header div.label {
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

/* file uplaoder */
.fs-upload-target {
    padding: 10px;
    border-top: 1px solid #f4f4f4;
}

.fs-upload-dropping {
    background-color: #9ac3d6;
}

/* for big checkboxes */
div.big .checkbox input {
    width: 30px;
    height: 30px;
    margin-left: -40px;
}

div.big.form-group label {
    padding-left: 40px;
    line-height: 35px;
}
.align-right {
    text-align: right;
}

/* assign users */
div.assigning {
    /* force assigning on 1 line */
    white-space: nowrap;
}
div.assigning select.form-control {
    max-width: 130px;
}
span.assignee {
    min-width: 100px;
}
input.edit-expected-date {
    border: none !important;
    background-color: transparent;
    width: 90px !important;
}
.user-assign-btn {
    margin-right: 10px;
}

.table-list-no-styling{
    margin: 0;
    padding: 0;
    list-style-type: none;
}

@media (min-width: 1660px) {
    /* datatable input styling */
    #datatable-grouped-inputs {
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
    }
}

.filter-mode-menu .label-info {
    right: -3px !important;
}
.filter-mode-menu li.active,
.filter-mode-menu li.active a {
    cursor: auto;
    font-weight: bold;
}
/* filter mode labels */
.label-filter-all {
    background-color: #3c8dbc !important;
}
.label-filter-trade {
    background-color: #39CCCC !important;
}
.label-filter-engineering {
    background-color: #605ca8 !important;
}

/** This fixes the entries selector to show 10.000 on windows */
#quote-data-table_wrapper .dataTables_length .input-sm{
    width: 80px;
}

#question-box-body {
    overflow-x: visible;
}

@media (max-width: 1660px) {
    /* datatable input styling for small devices */
    #datatable-grouped-inputs {
        display: flex;
        flex-wrap: wrap;
    }
    #datatable-grouped-inputs .input-group{
        width: 100%;
    }
}
.datatable-grouped-inputs-items {
    width: 100%;
    min-width: 50px;
}
.comment-holder{
    margin-bottom: 6px;
}
.comment-input{
    flex: 5;
    margin-right: 10px;
}
.comment-send .form-group{
    margin-bottom: 0;
}
.table-holder{
    display: flex;
}
/* Parsley.css */
input.parsley-error,
select.parsley-error,
textarea.parsley-error {
    color: #B94A48;
    background-color: #F2DEDE;
    border: 1px solid #EED3D7;
}

.parsley-errors-list {
    margin: 2px 0 3px;
    padding: 0;
    list-style-type: none;
    font-size: 0.9em;
    line-height: 0.9em;
    opacity: 0;
    color: #B94A48;

    transition: all .3s ease-in;
    -o-transition: all .3s ease-in;
    -moz-transition: all .3s ease-in;
    -webkit-transition: all .3s ease-in;
}

.parsley-errors-list.filled {
    opacity: 1;
}

/** my document-list, to choose document */
.document-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid #ccc;
}

.document-block {
    display: block;
    border: 1px solid #ccc;
    border-radius: 2px;
    padding: 4px 6px;
    background-color: #fdfdfd;
    font-weight: normal;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    margin-bottom: 0; /* no space between blocks */
    border-top: 0; /* no border-top! */
}
.document-block:hover {
    background-color: #f0f0f0;
}
.document-content {
    display: flex;
    align-items: center;
    gap: 6px;
}
.doc-filename {
    position: relative;
}
.doc-date {
    position: absolute;
    right: 0;
}
.doc-desc {
    display: block;
    color: #999;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}


/* Checkbox styling */
.document-content input[type="checkbox"] {
    margin-right: 8px;
}
/* Highlight whole block when checked */
.document-content input[type="checkbox"]:checked ~ i,
.document-content input[type="checkbox"]:checked ~ * {
    color: white;
}
.document-content input[type="checkbox"]:checked ~ * {
    background-color: inherit;
}
.document-content input[type="checkbox"]:checked ~ * {
    background-color: #003366;
}
/* Fix label background on checked */
.document-content input[type="checkbox"]:checked {
    /* let’s target the parent label via :has if supported (progressive enhancement) */
}
@supports selector(:has(input:checked)) {
    .document-block:has(input:checked) {
        background-color: #003366;
        color: white;
    }
}