/* General */
.bi {
    margin-right: 5px;
}

.status, .status-1 { /* Vorbereitet */
    background-color: #ffa500;
}

.status-769190001 { /* Bestätigt */
    background-color: var(--portalThemeColor4);
}

.status-769190002 { /* Avisiert */
    background-color: var(--portalThemeColor1);
}

.status-769190003 { /* Abgeholt und Verarbeitet */
    background-color: var(--portalThemeColor8);
}

.status-2 { /* Inaktiv */
    background-color: var(--portalThemeColor3);
}

/* Navigation */
.nav-item {
    margin-left: 30px;
}

/* Page Header */
.header-wrapper {
    background-size: cover;
    background-position: center;
    margin-bottom: 30px;
    width: 100%;
    height: 200px;
    max-height: 33vh;
}

.header-wrapper h1 {
    margin: 0 !important;
}

.title-wrapper {
    background-color: rgba(255,255,255, 0.5);
    padding: 20px 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

/* List - Table */
.entitylist {
    border: none !important;
}

.entitylist .view-grid table thead th, .subgrid .view-grid table thead th {
    text-transform: uppercase !important;
    font-size: 16px !important;    
    color: var(--portalThemeColor4) !important;
}

.entitylist .view-grid table thead th a, .subgrid .view-grid table thead th a {
    font-size: 16px !important;
    color: var(--portalThemeColor4) !important;
}

.selected-view.dropdown-toggle:focus, .selected-view.dropdown-toggle:hover {
    outline: none !important;
}

#filterDropdownId a.dropdown-toggle {
    font-size: 16px !important;
}

.pagination>.active>a, .pagination>.active>a:focus, .pagination>.active>a:hover {
    background-color: var(--portalThemeColor4) !important;
}

.entity-list-actions button {
    display: none;
}

.entity-list-actions ul {
    display: flex;
    position: relative !important;
    padding: 0;
    margin-bottom: 0;
    background: transparent;
}

.entity-list-actions ul li {
    list-style-type: none;
}

.entity-list-actions ul li a {
    border: 2px solid transparent;
    line-height: 21px;
}

.modal-form .modal-dialog {
    max-width: 80vw !important;
}

/* Form */
.crmEntityFormView {
    border: none !important;
}

.crmEntityFormView .cell {
    padding-left: 0 !important;
}

.crmEntityFormView .cell .field-label {
    font-weight: normal !important;
    color: var(--portalThemeColor1) !important;
    text-transform: uppercase !important;
    font-size: 18px !important;
}

.subgrid input.form-control {
    padding: .375rem .75rem !important;
}

.subgrid thead th button, .form-subgrid-heading button {
    margin-left: 5px;
}

#save-success-message, #error-success-message, #confirm-error-message {
    display: none;
}

.form-control:disabled {
    background-color: #dedede !important;
    color: #6c757d !important;
}

/* Duplicate Order Line */
.duplicate-info .alert {
    display: none;
}

.input-group.input-disabled input {
    background-color: #dedede !important;
    color: #6c757d !important;
}

.invalid-quantity, .invalid-minimum {
    display: none;
}

.is-invalid.is-invalid-quantity~.invalid-feedback .invalid-quantity, .is-invalid.is-invalid-minimum~.invalid-feedback .invalid-minimum {
    display: inline;
}

.order-adviced-form .subgrid table thead th:first-child, .order-adviced-form .subgrid table tbody td:first-child {
    display: none;
}

#subgrid_orderlines .modal-form .modal-body iframe {
    min-height: 80vh;
}

/* Validate GNN Code */
.loading-feedback {
    display: none;
}

.is-loading~.loading-feedback {
    display: block;
}

.loading-feedback button[disabled] {
    background-color: transparent !important;
}

/* RESPONSIVE */
/* xxl */
@media (min-width: 1400px) {
}

/* xl */
@media (min-width: 1200px) {
}

/* lg */
@media (min-width: 992px) {
}

/* md */
@media (min-width: 768px) {
}

/* sm */
@media (min-width: 576px) {
}

/* xs */
@media (max-width: 575.98px) {
    h1, .h1, .section-landing-heading, .section-landing .row > div .section-landing-heading, .section-inline-search .row > div h1, .section-landing h1, .section-search .header-search h1, .page_section h1, .color-inverse h1, h1 p {
        font-size: 30px !important;
    }

    .header-wrapper h1 {
       color: white;
    }

    a {
        font-size: 14px !important;
    }

    table thead {
        border: none;
        clip: rect(0 0 0 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
    }
  
    table tr {
        display: block;
        /* margin-bottom: .625em; */
    }
  
    table td {
        border-bottom: none;
        display: block;
        font-size: .8em;
        text-align: right;
        padding: 3px 8px !important;
    }

    table td:first-child {
        padding-top: 8px !important;
    }

    table td:last-child:not([data-function]) {
        padding-bottom: 8px !important;
    }

    table td[data-function], table td:has(.entity-list-actions) {
        display: inline-flex;
        width: 50%;
    }

    table td:has(.entity-list-actions) {
        justify-content: start;
    }

    table td[data-function] {
        justify-content: end;
    }    

    table td .control {
        text-align: left;
    }

    table td::before {
        /*
        * aria-label has no advantage, it won't be read inside a table
        content: attr(aria-label);
        */
        content: attr(data-th);
        float: left;
        color: var(--portportalThemeColor1);
        text-transform: uppercase;
    }
    
    table td:last-child {
        border-bottom: 0;
    }

    .modal-form .modal-dialog {
        max-width: 100vw !important;
    }

    .modal-lookup .view-grid table tbody tr td:first-child {
        display: none;
    }

    .modal-lookup .view-grid table tbody tr.selected {
        font-weight: bold;
    }
}