/* general */
body, html {
    min-width: 21.25rem;
}
input[type=text]:read-only, input[type=tel]:read-only, input[type=email]:read-only, input[type=file]:read-only, input[type=url]:read-only, input[type=password]:read-only, textarea:read-only {
    background:#eee;
}
.container {
    width: 85%;
    max-width: 1440px !important;
}
@media (max-width: 1200px) {
    .container {
        width: 95%;
    }
}
@media (max-width: 6000px) {
    .container {
        width: 100%;
    }
}

.card-header {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}
nav#context-menu, nav.context-menu {
    padding: 6px 15px 6px 15px;
}

@media (max-width: 992px) {
    section.edit-file {
        width: 100%;
    }
    section.edit-file header {
        display: flex;
        float: none;
    }
    section.edit-file header h3 {
        margin-right: .5rem;
    }
    section.edit-file div.file-description, section.edit-file div.file-name {
        width: 100%;
    }
    section.edit-file div.file-name {
        padding: 0;
    }
    .shipment-file-upload {
        padding-right: 0;
    }
}
/* general end */

/* dodavatele dreva */
.wood-supliers {
    display: flex;
    margin-top: 2rem;
}
.wood-supliers .left-menu {
    flex-shrink: 0;
    margin-left: 1.5rem;
}
.left-menu #onclick-admin-menu {
    float: none;
    width: 20rem;
}

.wood-supliers .container {
    margin: 0;
}
.wood-supliers .container .header {
    margin-top: 0;
}
/* dodavetele dreva end */

/* banky */
.banks {
    display: flex;
    margin-top: 2rem;
}
.banks .left-menu {
    flex-shrink: 0;
    margin-left: 1.5rem;
}
.banks .container {
    margin: 0;
}
.banks .container .header {
    margin-top: 0;
}
/* banky end */

/* firmy s provizemi */
.commission-companies {
    display: flex;
    margin-top: 2rem;
}
.commission-companies .left-menu {
    flex-shrink: 0;
    margin-left: 1.5rem;
}
.commission-companies .container {
    margin: 0;
}
.commission-companies .container .header {
    margin-top: 0;
}
/* firmy s provizemi end */

.pickup-list .filters-row {
    flex-wrap: wrap;
}

@media (max-width: 992px) {
    body .col-2 {
        -ms-flex: 0 0 9rem;
        flex: 0 0 9rem;
        max-width: 9rem;
    }
    body .col-3 {
        -ms-flex: 0 0 13.5rem;
        flex: 0 0 13.5rem;
        max-width: 13.5rem;
    }
    body .col-4 {
        -ms-flex: 0 0 18rem;
        flex: 0 0 18rem;
        max-width: 18rem;
    }
    body .col-5 {
        -ms-flex: 0 0 22.4rem;
        flex: 0 0 22.4rem;
        max-width: 22.4rem;
    }
    body .col-6 {
        -ms-flex: 0 0 26.875rem;
        flex: 0 0 26.875rem;
        max-width: 26.875rem;
    }
}


/* shipment table */

.shipment-table {
}
/* th */
.shipment-table tr th {
    padding-right: .75rem;
}
.shipment-table tr th:empty, .shipment-table tr td.empty {
    padding: 0;
}
.shipment-table tr th:empty + th, .shipment-table tr td.empty + td {
    padding-left: .75rem;
}
/* td */
.shipment-table tr td {
    padding-right: .75rem;
}
.shipment-table p {
    line-height: 1.4;
    margin-bottom: 0;
}

/* shipment table end */

/* invoice tab */
.invoices-tab .row {
    margin: 0;
}
.invoice-collection-item .compact-file-uploader {
    margin-top: 1.6rem;
}
.invoice-collection-item .collection-item-remove {
    margin-bottom: 1.3rem;
    margin-top: auto;
}

.compact-file-uploader .files-headline {
    display: none;
}
.compact-file-uploader .add-file {
    height: 50px;
    display: flex;
    align-items: center;
}
.compact-file-uploader .add-file .icon-add {
    margin: 0 .5rem;
}

.compact-file-uploader .file {
    width: auto;
    height: auto;
    padding: 5px 10px;
    margin: 0;
    border-radius: .35rem;
}
.compact-file-uploader .file + .file {
    margin-left: .5rem;
}
.compact-file-uploader .file .file-name {
    padding: 0;
    height: auto;
    font-size: 14px;
}
.compact-file-uploader .file .icon-large {
    display: none;
}

.other-invoices .list-group {
    flex-flow: row wrap;
}
.other-invoices .list-group-item, .shipment-invoices .list-group-item {
    border: none;
    width: auto;
    box-shadow: 0 1px 1px rgba(0,0,0,0.25);
    border-radius: 0.35rem;
    background: #43a7e3;
    margin: 2.25rem 0 auto 0;
    padding: 9px 15px;
}
.other-invoices .list-group-item:last-child, .shipment-invoices .list-group-item:last-child {
    border-radius: 0.35rem;
}
.other-invoices .list-group-item h5, .shipment-invoices .list-group-item h5 {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    margin: 0 !important;
}
.other-invoices .list-group-item:hover, .other-invoices .list-group-item:focus,
.shipment-invoices .list-group-item:hover, .shipment-invoices .list-group-item:focus{
    background: #43a7e3;
}
/* invoice tab end */

/* container invoice tab */

.finished-container {
    opacity: 0.4;
}

.volume-over-tolerance {
    color: red;
}

.volume-under-tolerance {
    color: green;
}

.volume-in-tolerance {
    color: darkorange;
}

/* container invoice tab end */

/* invoice centrum */
.invoice-centrum table {
    margin-top: 0;
}
.invoice-centrum .remaining-volume {
    display: inline-block;
    position: sticky;
    top: 1.5rem;
    width: auto;
    padding: .5rem 1rem;
    margin: 0;
    background: #fff;
    z-index: 100;
    box-shadow: 0 .5rem 2rem rgba(0, 0, 0, 0.25) !important;
    opacity: 0;
}
.invoice-centrum .remaining-volume[stuck] {
    background: red;
}

.invoice-detail-shipment + .invoice-detail-shipment {
    margin-top: 1.5rem;
    border-top: .063rem solid #5a5c69;
}

.unassignable-item-table td {
    font-size: inherit;
    padding: 0 0.75rem;
}

.invoicing-overview .level-0 {
    background: rgba(0, 0, 255, 0.05);
}

.invoicing-overview .level-1 {
    background: rgba(0, 0, 255, 0.025);
}

.invoicing-overview .level-2 {
    background: rgba(0, 0, 255, 0.001);
}

.invoicing-overview .level-3 {
    background: white;
}

.invoicing-overview .item-info-wrapper {
    display: flex;
}

.invoicing-overview .level-1 .item-info-wrapper {
    padding-left: 1em;
}

.invoicing-overview .level-2 .item-info-wrapper {
    padding-left: 2em;
}

.invoicing-overview .level-3 .item-info-wrapper {
    padding-left: 3em;
}

.invoicing-overview .status-wrapper {
    display: flex;
}

.invoicing-overview .status-wrapper > div {
    flex: 1;
}

.invoicing-overview .status-icon-wrapper {
    text-align: center;
    flex: 1;
}

.invoicing-overview .status-button-wrapper {
    text-align: right;
    max-width: 30px;
    flex-grow: 0;
    margin-left: 20px
}

.invoicing-overview .basic-info {
    color: rgb(103, 103, 103);
}

.invoicing-overview .level-icon-wrapper {
    width: 1.5em;
    flex-grow: 0;
}

.invoicing-overview .level-icon {
    display: inline-block;
}

.invoicing-overview .profit {
    font-weight: bold;
}

.invoicing-overview .profit.profit-positive {
    color: green;
}

.invoicing-overview .profit.profit-neutral {
    color: darkorange;
}

.invoicing-overview .profit.profit-negative {
    color: red;
}

.invoicing-overview .profit-table {
    margin: 3rem auto;
    font-size: 0.8em;
}

.invoicing-overview .invoicing-table {
    margin: 3rem auto;
}

.invoicing-overview .result-wrapper {
    display: flex;
    align-items: center;
}

.invoicing-overview .result-wrapper > div {
    flex: 1;
}

.invoicing-overview .result-text-wrapper {
    text-align: center;
    flex: 1;
    flex-shrink: 0;
    min-width: 70px;
}

.invoicing-overview .estimate-button-wrapper {
    display: block;
    flex-shrink: 0;
    flex-grow: 0;
    width: 25px;
    text-align: right
}

.invoicing-overview .overridden-value {
    text-decoration: line-through;
}

.invoicing-overview .estimate {
    font-weight: bold;
    color: dimgrey;
}

.invoicing-overview .estimate-editor {
    display: flex;
    width: 100%;
    align-items: center
}

.invoicing-overview .estimate-input-wrapper {
    flex: 1;
}

.profit-table td {
    width: 7.5rem;
    padding: 5px;
}

.switch-account-button-wrapper {
    text-align: center;
}

/* invoice centrum end */

/* contract meta data */
.contract-meta-data-goods-varieties {
    border: none;
    padding: 0;
    margin: 0;
}
.contract-meta-data-goods-varieties td {
    padding: 0;
}
/* contract meta data end */

/* provizorni kontrakty v ZC */

.card-header.hot-pink {
    background-color: #ffcef5;
}
.card-header.hot-pink .text-primary {
    color: #da1884 !important;
}
.card-header.hot-pink .btn-primary {
    background-color: #da1884;
    border-color: #da1884;
}
.card-header.hot-pink .btn-primary:hover {
    background-color: #be066d;
    border-color: #be066d;
}
.card-header.hot-pink .btn-primary:focus, .card-header.hot-pink .btn-primary:active {
    background-color: #be066d;
    border-color: #be066d !important;
    box-shadow: 0 0 0 0.2rem rgba(190, 6, 109, 0.5) !important;
}

/*.contract-temporary {*/
/*    background: #ffe6eb;*/
/*}*/
/*.contract-temporary .text-primary {*/
/*    color: #df4e4e !important;*/
/*}*/
/*.contract-temporary .btn-primary, .contract-temporary .btn-primary:active {*/
/*    background-color: #df4e4e;*/
/*    border-color: #df4e4e;*/
/*}*/
/*.contract-temporary .btn-primary:hover {*/
/*    background-color: #e85c5c;*/
/*}*/

/* provizorni kontrakty v ZC end */

/* shipping container detail */
.js-wood-log select {
    background: white;
    -webkit-appearance: auto;
}

.js-wood-log {
    background: transparent;
}
.js-wood-log.bg1 {
    background: #9ddaec;
}
.js-wood-log.bg2 {
    background: #c1acd3;
}
.js-wood-log.bg3 {
    background: #f29ac0;
}
.js-wood-log.bg4 {
    background: #feddb4;
}
.js-wood-log.bg5 {
    background: #edeea2;
}
.js-wood-log.bg6 {
    background: #b9db9f;
}
.js-wood-log.bg7 {
    background: #b0ddd6;
}
.js-wood-log.bg8 {
    background: #d3d3d3;
}
.js-wood-log.bg9 {
    background: rgb(155, 131, 126);
}
.js-wood-log.bg10 {
    background: #c8d6ff;
}
/* shipping container detail end */

.important-container {
    background-color: #f2e2d6 !important;
}

.readonly-checkbox {
    opacity: 0.5;
    pointer-events: none;
}

.aria-autocomplete__list {
    width: calc(100% + 3.75rem);
}
.aria-autocomplete__option {
    font-size: 0.75rem;
    padding: 4px 5px;
}
.aria-autocomplete__list--has-results[aria-label]:before {
    display: none;
}
.aria-autocomplete__list--has-results[aria-label] li:first-child {
    margin-top: 0;
}

.container.invoice-centrum .aria-autocomplete__input {
    border-radius: 5px 0 0 5px;
}
.container.invoice-centrum .aria-autocomplete__show-all {
    top: 4px;
    border-radius: 0 5px 5px 0;
    border-width: 1px;
    border-color: #9fb7c5;
    border-style: solid solid solid none;
}

/* Rada tlacitek s wrappery pro zobrazovani dalsich informaci pod tlacitkem */
.button-row {
    display: flex;
}

.button-row .button-row-item {
    margin-right: 0.5rem;
}

.button-row .button-row-button {
    text-align: center;
}

.button-row .button-row-button .btn {
    margin-bottom: 0;
}

.button-row .button-row-info {
    margin-top: 0.25rem;
    text-align: center;
    font-size: 0.8em;
}

.goods-invoice-delete {
    position: relative;
    top: 1rem;
    right: 3.5rem;
}
