/** GENERAL **/
html, body {
    font-size:14px;
}
body {
    padding-bottom: 20px;
}

/* Set padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
}

.inline-label {
    width: 100px !important;
    text-align: right;
    margin-right: 10px;
}

.enforce-uppercase-field {
    text-transform: uppercase;
}

legend {
    padding-left: 200px;
}

.nav-tabs a, .sortable {
    cursor: pointer;
}

.hr {
    margin-top: 20px;
    margin-bottom: 20px;
    border: 0;
    border-top: 1px solid #eeeeee;
    height: 0;
    box-sizing: content-box;
    clear: both;
}


fieldset {
    padding-bottom: 20px;
    border-bottom: 1px solid #f3f3f3;
    margin-bottom: 40px;
}

    fieldset:last-child {
        padding-bottom: 0px;
        border-bottom: 0;
        margin-bottom: 0px;
    }

/** PAGE LAYOUT **/

body {
    color: #232323;
    font-family: 'Segoe UI', Verdana, Tahoma, Arial, 'Helvetica Neue', Helvetica, sans-serif;
}

    body.test-mode {
        background-color: rgb(221, 51, 51);
    }

    body.fixed-scroll-y {
        overflow-y: scroll;
    }

p {
    margin-bottom: 1em;
}

#login {
    float: right;
    padding: 15px 0;
    color: #333;
}

    #login span {
        color: #ccc;
    }

    #login a:hover {
        color: #337ab7 !important;
    }

.navbar-brand {
}

.navbar-inverse {
    background: #1c1c1c;
    color: #fff;
    border-bottom: 2px solid #0baae2;
}

.inverse-dropdown {
    background-color: #222;
    border-color: #080808;
}

    .inverse-dropdown > li > a {
        color: #999;
        padding: 10px 22px;
    }

        .inverse-dropdown > li > a > .glyphicon {
            margin-right: 1em;
        }

        .inverse-dropdown > li > a:hover {
            color: #fff;
            background-color: #000;
        }

    .inverse-dropdown > .divider {
        background-color: #000;
    }


@media (max-width: 767px) {
    .navbar-inverse {
        margin-bottom: 0px;
    }
}


.body-content {
    background: #fff;
    padding: 0 !important;
}

    .body-content h2 {
        background: #555;
        margin: 0;
        line-height: 50px;
        height: 50px;
        text-indent: 20px;
        color: #f6f6f6;
        font-size: 22px;
    }

.body-content-inner {
    padding: 20px;
}

footer, .debugfooter {
    color: #adadad;
    text-align: center;
    padding: 20px;
}

h2 {
    font-size:1.3rem;
}

/** TABLES **/
.table-actions {
    float: left;
    position: relative;
    z-index: 1;
}

.table-actions-stock {
    float: right;
    margin-top: 0.75em;
    margin-left: 1em;
    position: relative;
    z-index: 1;
}

.table-controls {
    float: right;
    padding-top: 6px;
    margin-bottom: 1em;
}

body table.dataTable {
    margin-bottom: 1.5em !important;
    width: 100% !important;
}

.dataTables_filter, .dataTables_length {
    float: left;
    margin-left: 2em;
}

    .dataTables_filter input {
        width: auto;
    }

.action-col {
    text-align: right;
}

td.action-col {
    color: #ddd;
    white-space: nowrap;
}

.sorting_disabled {
    padding-right: 8px !important;
}

form .col-lg-8 textarea {
    max-width: 560px;
    height: 130px;
}

.form-group {
    margin-bottom:1em;
}
/** COMPONENTS **/


.debug {
    font-size: 1rem;
    color: rebeccapurple;
}

.tab-pane {
    padding-top: 3em;
}

.alert {
    border: 1px solid #111;
    padding: 1.3em;
    border-radius: 0;
}

.alert-danger {
    border-color: #b94a48 !important;
}

.typeahead {
    width: 280px;
}

#xsell-form .typeahead, #po-item-form .typeahead, #adjust-item-form .typeahead, #transfer-item-form .typeahead,
#putaway-item-form .typeahead, #series-item-form .typeahead, #goodsin-item-form .typeahead, #mrp-item-form .typeahead {
    width: auto !important;
}

    #xsell-form .typeahead li a strong {
        font-weight: normal !important;
    }

.dropdown-menu.typeahead {
    margin-right: 8px !important;
}

.typeahead-panel input[type=text], .xsell-panel input[type=text] {
    margin-right: 8px;
    display: inline !important;
}

.typeahead-panel .form-group, .xsell-panel input[type=text] {
    margin-left: 0px !important;
}


.field-validation-error {
    color: #b94a48;
}

.help-block, .field-validation-error {
    white-space: nowrap;
}

.panel .checkbox-inline {
    margin-left: 10px;
    min-width: 23%;
    cursor: default;
    font-weight: normal;
}

    .panel .checkbox-inline label, .panel .checkbox-inline input {
        cursor: pointer;
        font-weight: normal;
    }

.delete-link {
    color: rgb(211, 76, 76)
}

    .delete-link:hover, .delete-link:focus {
        color: rgb(173, 55, 55)
    }

/** FORMS **/
label.required::after {
    content: " *";
    color: #b94a48;
    font-weight: bold;
    font-size: 1.3em;
    line-height: 16px;
    vertical-align: top;
}

.checkbox label.required::after {
    line-height: 10px !important;
}

.modal label.required::after {
    content: "*" !important;
}


.navbar-brand > img {
    display: inline;
    height: 1em;
    position: relative;
    bottom: 0.1em;
}



.dashboard-button {
    display: block;
    background: #0baae2;
    color: #fff;
    padding: 2%;
    margin-left: 1%;
    margin-right: 1%;
    margin-bottom: 2%;
    float: left;
    width: 14%;
    min-height: 95px;
    box-sizing: content-box;
}

    .dashboard-button.small {
        min-height: 50px;
    }

        .dashboard-button.small > span {
            display: none;
        }

    .dashboard-button:nth-child(5n) {
        margin-right: 0px;
    }

    .dashboard-button strong {
        font-size: 1.4em;
        font-weight: normal;
    }

    .dashboard-button span {
        display: block;
        padding-top: 0.5em;
    }

    .dashboard-button:hover {
        cursor: pointer;
        text-decoration: none;
        color: #fff;
        background: #1797c4;
    }

.product-image {
    padding: 15px;
    border: 1px dotted #ddd;
    margin: 0 auto;
    display: block;
    max-width: 80%;
}

.flag_wrapper {
    max-height: 220px;
    overflow: auto;
}


#po-item-form #ItemModel_Item_Description, #goodsin-item-form #ItemModel_Item_Description {
    width: 400px;
}

#po-item-form .field-validation-error {
    display: block;
    margin-left: 115px;
}

#po-item-errors {
    margin-bottom: 10px;
}

.header-fixed {
    width: 100%
}

    .header-fixed > thead,
    .header-fixed > tbody,
    .header-fixed > thead > tr,
    .header-fixed > tbody > tr,
    .header-fixed > thead > tr > th,
    .header-fixed > tbody > tr > td {
        display: block;
    }

        .header-fixed > tbody > tr:after,
        .header-fixed > thead > tr:after {
            content: ' ';
            display: block;
            visibility: hidden;
            clear: both;
        }

    .header-fixed > tbody {
        overflow-y: auto;
        height: 300px;
    }

        .header-fixed > tbody > tr > td,
        .header-fixed > thead > tr > th {
            width: 14.28%;
            float: left;
        }

#serialise-table > tbody > tr > td,
#serialise-table > thead > tr > th {
    width: 100% !important;
}

#serialise-table {
    width: 50% !important;
}

    #serialise-table .glyphicon-barcode {
        position: relative;
        top: 2px;
        margin-right: 6px;
    }


#returns-table tbody tr {
    cursor: pointer;
}

#Return_Description {
    width: 450px !important;
}

#serialised-items {
    padding-left: 60px;
    margin-top: 2em;
}

    #serialised-items ul {
        margin: 0;
        padding: 0;
        max-height: 176px;
        overflow-y: scroll;
        width: 250px;
        border: 1px solid #ededed;
    }

    #serialised-items li {
        list-style-type: none;
        list-style-position: inside;
        padding: 6px 10px;
        border-bottom: 1px solid #eee;
        cursor: pointer;
    }

        #serialised-items li:hover {
            background: #fbfbfb;
        }

        #serialised-items li.selected {
            background: #f7f7f7;
        }

    #serialised-items input[type=checkbox] {
        position: relative;
        top: 2px;
        margin-right: 10px;
    }


#ObjectId {
    margin-bottom: 20px;
    width: auto;
}

#add-attribute {
    margin-bottom: 20px;
    display: none;
}

#attributes {
    padding: 10px;
    border: 1px solid #ddd;
    display: none;
    float: left;
    clear: both;
}

.attribute {
    margin-bottom: 4px;
    border-bottom: 1px dotted #eee;
}

.attribute-desc {
    display: inline-block;
    margin-bottom: 0.7em;
    font-weight: bold;
}

.child-attribute .attribute-desc {
    margin-bottom: 0.35em;
    font-weight: normal;
}

.parent-attribute {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dotted #ddd;
    width: 550px;
}

.child-attribute {
    margin-left: 25px;
    width: 525px;
    padding: 2px 0;
}

    .child-attribute.level2 {
        margin-left: 50px;
        width: 500px;
    }

    .child-attribute.level3 {
        margin-left: 75px;
        width: 475px;
    }

    .child-attribute.level4 {
        margin-left: 100px;
        width: 450px;
    }

    .child-attribute.level5 {
        margin-left: 125px;
        width: 425px;
    }

    .child-attribute.level5 {
        margin-left: 150px;
        width: 400px;
    }

    .child-attribute.level6 {
        margin-left: 175px;
        width: 375px;
    }

    .child-attribute.hide-children {
        display: none;
    }

.show-child-attributes-action {
    margin-left: 25px;
    font-size: 85%;
    text-transform: uppercase;
}

.treeview {
    list-style-type: none;
    list-style-position: inside;
    width: 820px;
    font-size: 0.9em;
}

    .treeview ul {
        display: none;
        list-style-type: none;
        list-style-position: inside;
    }

    .treeview li.panel {
        padding: 1em !important;
        margin-bottom: 5px;
    }

        .treeview li.panel div.panel-body {
            padding: 0 !important;
        }

    .treeview li .panel-body > div, .treeview li li > div {
        margin-bottom: 1em;
    }

    .treeview li li > div {
        border-bottom: 1px dotted #ddd;
        padding-bottom: 1em;
    }


    .treeview li li:not(:first-child) > div {
        padding-top: 1em !important;
    }

    .treeview li.collapsed div {
        margin: 0 !important;
        padding: 0 !important;
    }


    .treeview li li.collapsed div {
        margin: 0 !important;
        padding-bottom: 1em !important;
    }

    .treeview li.no-children div {
        padding-top: 0.5em !important;
        padding-bottom: 0.5em !important;
        margin: 0 !important;
    }

    .treeview .badge {
        float: right;
    }

    .treeview .glyphicon {
        color: #9d9d9d;
        margin-right: 1.5em;
    }

    .treeview dl {
        display: inline;
    }

    .treeview dd {
        margin-right: 1.5em;
        font-weight: bold;
        display: inline-block;
    }

    .treeview dt {
        margin-right: 1.5em;
        font-weight: normal;
        display: inline-block;
    }


.cost-bucket:hover {
    background: #f2f2f2;
    cursor: pointer;
}

.treeview .cost-bucket dt.qty {
    width: 30px;
}

.treeview .cost-bucket dd.qty {
    width: 40px;
}

.treeview .cost-bucket dt.allocated {
    width: 40px;
}

.treeview .cost-bucket dd.allocated {
    width: 40px;
}

.treeview .cost-bucket dt.cost {
    width: 40px;
}

.treeview .cost-bucket dd.cost {
    width: 30px;
}

.treeview .cost-bucket dt.current-cost {
    width: 75px;
}

.treeview .cost-bucket dd.current-cost {
    width: 40px;
}

.treeview .cost-bucket dt.status {
    width: 40px;
}

.treeview .cost-bucket dd.status {
    width: 50px;
}

.treeview .cost-bucket-po dt.po-number {
    width: 30px;
}

.treeview .cost-bucket-po dd.po-number {
    width: 60px;
}

.treeview .cost-bucket-po dt.date {
    width: 30px;
}

.treeview .cost-bucket-po dd.date {
    width: 100px;
}

.treeview .cost-bucket-po dt.status {
    width: 30px;
}

.treeview .cost-bucket-po dd.status {
    width: 120px;
}

.treeview .cost-bucket-item dt.item-number {
    width: 20px;
}

.treeview .cost-bucket-item dd.item-number {
    width: 20px;
}

.treeview .cost-bucket-item dt.sku {
    width: 20px;
}

.treeview .cost-bucket-item dd.sku {
    width: 40px;
}

.treeview .cost-bucket-item dt.desc {
    width: 0px;
}

.treeview .cost-bucket-item dd.desc {
    width: 280px;
}

.treeview .cost-bucket-item dt.qty {
    width: 20px;
}

.treeview .cost-bucket-item dd.qty {
    width: 50px;
}

.modal-body label.col-lg-2 {
    width: 150px !important;
}


#item-asns ul {
    list-style-type: none;
    list-style-position: inside;
    padding: 0;
    height: 120px;
    overflow-y: scroll;
    width: 350px;
    border: 1px solid #ddd;
    padding: 6px;
}

#item-asns input {
    margin-right: 4px;
    position: relative;
    top: 2px;
}


.file-upload-input {
    position: fixed;
    top: -200px;
}

.file-upload-list {
    font-size: 90%;
}

/* Product Imagery */
#productimages #image-list-outer {
    padding-bottom: 0;
    margin-bottom: 15px;
}

#productimages .image-wrap {
    display: inline-block;
    padding: 10px;
    margin-right: 1em;
    margin-bottom: 1em;
    min-height: 225px;
    width: 180px;
    vertical-align: top;
}

    #productimages .image-wrap .mask {
        margin-top: 5px;
        width: 140px;
        font-size: 90%;
    }

        #productimages .image-wrap .mask > .name {
            display: inline-block;
            width: 12em;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
        }

#productimages .image-list-border {
    border: 1px dotted #1797c4;
}

    #productimages .image-list-border.default {
        border: 2px solid #1797c4;
    }

#productimages .image-list {
    width: 150px;
    height: 150px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 100%;
}

    #productimages .image-list > div {
        visibility: hidden;
        background-color: white;
        opacity: 0.9;
        height: 150px;
        width: 150px;
        padding: 10px;
    }

    #productimages .image-list:hover > div {
        visibility: visible;
    }


.clear-date {
    color: red;
    position: absolute;
    top: 3px;
    right: 48px;
    z-index: 1000;
    font-weight: bold;
    font-size: 1.3em;
    cursor: pointer;
}

/* Traffic Lights */

.tl-small {
    position: relative;
    top: -2px;
    width: 1.5em;
}

.col-lg-8 legend {
    padding-left: 133px;
}

.col-lg-4 legend {
    padding-left: 66px;
}

/* Supplier */

.supplier-details > .row {
    margin-bottom: 0.5em;
}

/* Subtotals */

.subtotals-row > td {
    font-size: 1.05em;
    border-top: 2px solid #ddd !important;
}

/* Text */

span.ellipsis-block {
    display: inline-block;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 100%;
    overflow: hidden;
}

td > span.ellipsis-block {
    padding-right: 15%;
}

[v-cloak] > * {
    display: none
}

[v-cloak]::before {
    content: "loading"
}

.glyphicon-mnp-enabled {
    color: green;
}

.glyphicon-mnp-disabled {
    color: darkred;
}

.hidden {
    display: none;
}

.options-spacer {
    margin-top: 0.8em !important;
    border-top: 1px solid #ddd;
    padding-top: 0.8em !important;
}

.error-note {
    color: red;
    font-weight: bold;
}

.dropdown-menu.bootstrap-datetimepicker-widget {
    display: block;
}

.page-actions {
    margin-bottom: 20px;
}

.pagination {
    display: block;
}

.pagination-link {
    position: relative;
    float: left;
    padding: 6px 12px;
    margin-left: -1px;
    line-height: 1.42857143;
    color: #337ab7;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #ddd;
    cursor: pointer;
}

    .pagination-link.active {
        color: #fff;
        cursor: default;
        background-color: #337ab7;
        border-color: #337ab7;
    }

    .pagination-link:hover:not(.active) {
        color: #23527c;
        background-color: #eee;
        border-color: #ddd;
    }

    .pagination-link:hover {
        text-decoration: none !important;
    }

.pagination .items-per-page {
    float: right;
}

    .pagination .items-per-page label, .pagination .items-per-page select {
        display: inline;
        width: auto;
    }

.pagination-text {
    margin-left: 1em;
    line-height: 2.3em;
}

.cancel-link {
    margin-left: 1em;
}

.btn + .btn {
    margin-left: 1em;
}

.validation-summary-errors {
    color: red;
}

.cell-valid {
    background-color: #e6f6e1;
    color: #086508;
}

.cell-invalid {
    background-color: #f1c8c8;
    color: #bc1414;
}

.cell-valid, .cell-invalid {
    text-align: center;
}

.table-hover tbody tr {
    cursor: pointer;
}

.table-striped-2 tbody tr:nth-of-type(4n+1),
.table-striped-2 tbody tr:nth-of-type(4n+2) {
    background: #f9f9f9 !important;
}

    .table-striped-2 tbody tr:nth-of-type(4n+2) td,
    .table-striped-2 tbody tr:nth-of-type(4n+4) td {
        border-top: 0 !important;
    }

.table-striped-2 tbody tr:nth-of-type(4n+3),
.table-striped-2 tbody tr:nth-of-type(4n+4) {
    background: #fff !important;
}

.table-right-divider {
    border-right: 1px solid #CCC;
}

.invalid-feedback {
    color: red;
}

dl {
    overflow: hidden;
}

dt, dd {
    float: left;
    border-bottom: 1px dotted #ddd;
    width: 12em;
    line-height: 2em;
}

dl.wide dt,dd {
    width: 30em;
}

dt {
    clear: both;
}

#login .muted {
    opacity: 0.5;
}

.overlay {
    background: rgba(0,0,0,0.6);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

.close-modal {
    color: red;
    position: absolute;
    top: 1em;
    right: 1em;
}


td.empty-table {
    padding:2em;
    text-align:center;
    font-weight:bold;
}


.sortable {
    background: #f2f2f2;
    cursor:pointer;
}

.sort-asc, .sort-desc {
    position: relative;
    cursor: pointer;
    background: #dadaf6
}

    .sort-desc::before, .sort-asc::before {
        font-size: 1.4em;
        position: absolute;
        top: 0;
        right:0.5em;
        font-weight: bold;
    }
    
    .sort-desc::before {
        content: "\2193";
    }

    .sort-asc::before {
        content: "\2191";
    }

.modal-content {
    background:#fff;
    padding:1.6em;
    width:40vw;
    position:relative;
    top:10vh;
    margin:0 auto;
}