.popover {
    max-width: 500px !important;
}


/* SORTABLE */

.sortable {
    margin: 20px 0;
}

.sortable, .sortable ol {
    padding-left: 25px;
}

ol.sortable, ol.sortable ol {
    list-style-type: none;
}

.sortable li div:not(.tools) {
    border: 1px solid #d4d4d4;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    cursor: move;
    border-color: #D4D4D4 #D4D4D4 #BCBCBC;
    margin: 0;
    padding: 3px;
}

.sortable li.mjs-nestedSortable-collapsed.mjs-nestedSortable-hovering div {
    border-color: #999;
}

.sortable li.mjs-nestedSortable-collapsed > ol {
    display: none;
}

.sortable li.mjs-nestedSortable-branch > div > .disclose {
    display: inline-block;
}

.sortable span.ui-icon {
    display: inline-block;
    margin: 0;
    padding: 0;
}

.sortable .menuDiv {
    background: #EBEBEB;
}

.sortable .menuDiv span.function {
    margin: 0 3px;
}

.sortable .itemTitle {
    vertical-align: middle;
    cursor: pointer;
}

/* SORTABLE END */



#sortableRoot {
    padding-left: 0;
    margin: 0;
}

option[disabled] {
    background:#eee;
    color:#bbb;
}

.input-total {
    min-width: 10px;
    max-width: 100px;
}
.input-price {
    min-width: 10px;
    max-width: 100px;
}
.input-qty {
    min-width: 10px;
    max-width: 75px;
}
.input-part-name {
    min-width: 10px;
    max-width: 300px;
}

label[for^="waiting_for_parts"] {
    position: relative;
    top: .75rem;
}

.input-total, .input-price, .input-qty, .input-part-name {
    display: inline-block !important;
}

.action-container {
    width: 90px;
}
.action-container a, .action-container button, .action-container div {
    width: 30px;
}

.btn.btn-not-allowed {
    cursor: not-allowed!important;
}

@media (max-width: 768px) {

    .input-total, .input-price, .input-qty, .input-part-name {
        min-width: 45%;
        max-width: 45%;
    }

    .input-qty, .input-total {
        margin-left: 1rem;
    }

    .input-total {
        margin-right: 2rem;
    }

    #remove-material-list-element {
        float: right;
    }


    label[for^="waiting_for_parts"] {
        position: relative;
        top: 0;
        left: .5rem;
    }

    .sidebar-mini.sidebar-open .main-sidebar,
    .sidebar-mini.sidebar-open .main-sidebar::before {
        margin-left: 0;
    }
}

.link-wrap {
    overflow-wrap: break-word;
    white-space: pre-wrap;
    word-wrap: break-word;
    display: inline-block;
    max-width: 200px;
}
