﻿/* Navbar Inline Details */
.navbar-inline-details {
    display: inline;
    padding: 0px 15px 0px 15px;
}
.navbar-inline-details > .form-group > .form-control-static {
    text-transform: capitalize;
}

/* Navbar Form Toolbar */
.navbar-form > .btn-toolbar {
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

/* Nav Tab Body */
.nav-tab-body {
    border-left: solid 1px #eee;
    border-right: solid 1px #eee;
    border-bottom: solid 1px #eee;
    padding-top: 25px;
    margin-bottom: 20px;
}
.nav-tab-body > .tab-pane > div[class^="col-"] > .form-horizontal > .form-group {
    margin-bottom:10px;
}
.nav-tab-body > .tab-pane > div[class^="col-"] > .form-horizontal > .form-group > div[class^="col-"] > .row {
    padding-top: 5px;
}
.nav-tab-body > .tab-pane > div[class^="col-"] > .form-horizontal > .form-group > div > .row > div > .input-group {
    margin-left: -4px;
    margin-right: 4px;
}

/* Tab Pane Padded */
.tab-pane.tab-pane-padded{
    padding:15px 0px 15px 0px;
}
/* Well Row fix*/
.well > .row {
    padding-top: 15px;
}
.well-sm > .row {
    margin-left: -9px;
    margin-right: -9px;
}
@media (min-width: 992px) {
    .well-sm > .row > div[class^='col-'] {
        margin-bottom: -20px;
    }
}

/* Toggle Row Fix*/
tr[data-toggle-row] > td[colspan] > .row {
    padding-top: 10px;
    margin-left: -14px;
    margin-right: -8px;
    margin-bottom: -10px;
}
tr[data-toggle-row] > td[colspan] > table.table{
    margin-bottom:0px;
}

table > tbody > tr[data-toggle-row] > td[colspan] {
    text-align: left;
}

/* Order Edit Page */
.order-overview-section {
    color: #8a6d3b;
    background-color: #fcf8e3;
    border-style: solid;
    border-color: #faebcc;
    border-width: 1px;
    border-radius: 5px;
    padding-top: 15px;
    margin-top: -7px;
    margin-bottom: 15px;
}

/* Order Dropdowns */
.data-remote-incoterm-selector-result-code,
.data-remote-incoterm-selector-selected-code {
    color: #3c763d;
    padding-right: 8px;
}
.data-remote-vat-rate-selector-result-value,
.data-remote-vat-rate-selector-selected-value {
    color:#333333;
    padding-left:5px;
    font-style:italic;
}

/* Order Totals & Order Predefined Product Panel */
.order-totals-section-panel > .panel-heading,
.order-predefined-product-section-panel > .panel-heading,
.order-predefined-product-section-modal-panel > .panel-heading {
    padding: 0;
    border-bottom: none;
}
.order-totals-section-panel > .panel-heading > span,
.order-predefined-product-section-panel > .panel-heading > span,
.order-predefined-product-section-modal-panel > .panel-heading > span {
    padding: 10px 15px;
}
.order-totals-section-panel > .panel-heading > .form-inline,
.order-predefined-product-section-panel > .panel-heading > .form-inline,
.order-predefined-product-section-modal-panel > .panel-heading > .form-inline {
    text-align: right;
}
.order-totals-section-panel > .panel-heading > .form-inline > .form-group {
    margin-bottom: 0px;
}
.order-totals-section-panel  > .panel-heading > .form-inline > .form-group > .input-group > .input-group-addon:first-child{
    border-top-left-radius:0px;
    border-bottom-left-radius:0px;
}
.order-totals-section-panel > .panel-heading > .form-inline > .form-group > .input-group > .input-group-addon,
.order-totals-section-panel > .panel-heading > .form-inline > .form-group > .input-group > .form-control{
    border-top:0px;
    border-bottom:0px;
    padding-top:12px;
    padding-bottom:12px;
}
.order-totals-section-panel > .panel-heading > .form-inline > .form-group > .input-group > .form-control{
    height:40px;
    box-shadow:none;
}
.order-totals-section-panel > .panel-heading > .form-inline > .form-group > .input-group > .input-group-addon,
.order-totals-section-panel > .panel-heading > .form-inline > .form-group > .input-group > .form-control:last-child{
    border-right:0px;
}
.order-totals-section-panel > .panel-heading > .form-inline > .form-group > .input-group > .input-group-addon:not(:first-child){
    border-left:0px;
}
.order-predefined-product-section-panel > .panel-heading > .form-inline,
.order-predefined-product-section-modal-panel > .panel-heading > .form-inline {
    padding: 3px;
}
.order-predefined-product-section-panel > .panel-heading > .form-inline > .input-group > .form-control,
.order-predefined-product-section-panel > .panel-heading > .form-inline > .input-group > .select2-container > .selection > .select2-selection,
.order-predefined-product-section-modal-panel > .panel-heading > .form-inline > .input-group > .form-control,
.order-predefined-product-section-modal-panel > .panel-heading > .form-inline > .input-group > .select2-container > .selection > .select2-selection {
    min-width: 300px;
    text-align: left;
}
.order-predefined-product-section-modal-panel > .panel-heading > .form-inline.clearfix {
    padding-bottom: 0px;
}
.order-predefined-product-section-modal-panel > .panel-heading > .form-inline.clearfix > .input-group {
    float: right;
}

/* Order Predefined Product/Component Configre Modal */
.order-predefined-product-configure-modal-iframe,
.order-predefined-component-configure-modal-iframe {
    width: 100%;
    height: 500px;
}

/* Form Inline Full Width */
.form-inline.form-inline-full-width > .form-group {
    display: block;
    margin-bottom: 15px;
}
.form-inline.form-inline-full-width > .form-group > .input-group{
    display:table;
    position:relative;
}
.form-inline.form-inline-full-width > .form-group > .input-group > .input-group-addon{
    width:1%;
}

/* Order Item Panel */
.panel-order-item .panel-heading > .pull-right{
    display:inline-table;
    width:300px;
    margin-top:-6px;
    margin-right:-9px;
}
.panel-order-item .panel-heading > .pull-right > .input-group{
    margin-right:65px;
}

/* Order Item Component Table */
.order-item-component-table > thead > tr{
    text-align:right;
}
.order-item-component-table > tbody > tr > td:nth-last-of-type(1) { /* Command Buttons */
    width: 120px;
    text-align: right;
}
.order-item-component-table > tbody > tr > td:nth-last-of-type(2),
.order-item-component-table > tbody > tr > td:nth-last-of-type(3) { /* Unit Tax & Unit Net */
    width: 160px;
}
.order-item-component-table > tbody > tr > td:nth-last-of-type(4) { /* Quantity */
    width: 105px;
}
.order-item-component-table > tbody > tr[data-toggle-row='variable-row'] {
    background-color: #f9f1e5;
}
.order-item-component-table > tbody > tr[data-toggle-row='variable-row'] > td {
    padding: 10px;
}

/* Order Item Predefined Product Configre Modal */
.order-item-component-configure-modal > .modal-dialog{
    width: 1050px;
}
.order-item-component-configure-modal-iframe {
    width: 100%;
    min-height: 600px;
    padding-right: 15px;
}

/* Order Item Component Material Table */
.order-item-component-material-table > tbody > tr > td:nth-last-of-type(1) { /* Command Butons */
    width: 50px;
    text-align: right;
}
.order-item-component-material-table > tbody > tr > td:nth-last-of-type(2) { /* Quantity */
    width: 80px;
}
.order-item-component-material-table > tbody > tr > td:nth-last-of-type(3),
.order-item-component-material-table > tbody > tr > td:nth-last-of-type(4) { /* Cost & Sell */
    width: 110px;
}

/* Order Item Component Procedure Table */
.order-item-component-procedure-table > thead > tr > th:nth-last-of-type(1),
.order-item-component-procedure-table > thead > tr > th:nth-last-of-type(2),
.order-item-component-procedure-table > thead > tr > th:nth-last-of-type(3) { /* Command Butons, Financial & Time Headers */
    text-align: right;
}
.order-item-component-procedure-table > tbody > tr > td:nth-last-of-type(1) { /* Command Butons */
    width: 80px;
    text-align: right;
}
.order-item-component-procedure-table > tbody > tr > td:nth-last-of-type(2) { /* Financial */
    width: 100px;
    text-align: right;
}
.order-item-component-procedure-table > tbody > tr > td:nth-last-of-type(3) { /* Time */
    width: 80px;
    text-align: right;
}
.order-item-component-procedure-table > tbody > tr > td:nth-of-type(1) { /* Procedure */
    width: 150px;
}
.order-item-component-procedure-table .row[data-procedure-resource=template] {
    display: none;
}
.order-item-component-procedure-table .row .form-group > span:only-child{
    float:left;
    padding-top:8px;
}
.order-item-component-procedure-resources-label{
    text-indent:5px;
}

/* Panel Heading Button */
.panel-heading-button > .btn.btn-sm,
.panel-heading-button > .btn-group {
    margin-top: -5px;
    margin-right: -8px;
}

/* Double Panel Body for Panel Heading Extension */
.panel.panel-success > .panel-body.panel-heading-extension + .panel-body {
    border-color: #d6e9c6;
    border-bottom-width:1px;
    border-bottom-style:solid;
}
.panel.panel-success > .panel-body.panel-heading-extension.hide + .panel-body {
    border-color: #fff;
}

/*
 * Predefined Build Tables
 */
.predefined-build-procedure-variables-table > thead > tr > th,
.predefined-build-procedure-table > thead > tr > th,
.predefined-build-materials-table > thead > tr > th {
    border-bottom: 1px solid #ddd;
}
.predefined-build-procedure-table > tbody > tr > td > div.form-group, 
.predefined-build-materials-table > tbody > tr > td > div.form-group {
    text-align: left;
    margin-right: 0px;
    margin-bottom: 0px;
}
.predefined-build-procedure-table > tbody > tr.core-details td:first-child { /* Procedure */
    width: 45%;
}

.predefined-build-procedure-variables-table tr.core-details td:nth-last-child(3) { /* Bespoke */
    width: 90px;
}
.predefined-build-procedure-variables-table tr.core-details td:nth-last-child(2) { /* Required */
    width: 90px;
}
.predefined-build-stack-table > tbody > tr td:nth-last-child(2),
.predefined-build-materials-table > tbody > tr.core-details td:nth-last-child(3),
.predefined-build-materials-table > tbody > tr.core-details td:nth-last-child(2) { /* Order */
    width: 80px;
}
.predefined-build-procedure-table > tbody > tr.core-details td:nth-last-child(1),
.predefined-build-materials-table > tbody > tr.core-details td:nth-last-child(1) { /* Command buttons */
    width: 155px;
    text-align: right;
}
.predefined-build-procedure-variables-table > tbody > tr.core-details td:nth-last-child(1),
.predefined-build-material-variables-table > tbody > tr.core-details td:nth-last-child(1) { /* Save buttons */
    width: 45px;
    text-align: right;
}
.predefined-build-stack-table > tbody > tr td:nth-last-child(1) { /* Save buttons */
    width: 90px;
    text-align: right;
}
.predefined-build-stack-table > tfoot > tr td{
    padding-top:15px;
    padding-right:15px;
}

.predefined-build-materials-table tr.core-details td:nth-last-child(4) span,
.predefined-build-materials-table > thead > tr > th:nth-last-child(4),
.predefined-build-materials-table tr.core-details td:nth-last-child(3) span,
.predefined-build-materials-table > thead > tr > th:nth-last-child(3),
.predefined-build-materials-table > thead > tr > th:nth-last-child(2) {
    text-align: center;
}
.predefined-build-procedure-table > tbody > tr[data-toggle-row] > td[colspan] > .row,
.predefined-build-materials-table > tbody > tr[data-toggle-row] > td[colspan] > .row {
    border: 0px none #ffffff;
    padding-top: 0px;
}
table.predefined-build-procedure-table > tbody > tr[data-toggle-row] > td[colspan],
table.predefined-build-materials-table > tbody > tr[data-toggle-row] > td[colspan] {
    border-top: 0 none #ffffff;
}
/*
 * Nav Placeholder 
 */
.nav-placeholder {
    margin: 4px 0px 4px 0px;
}

/*
 * Bootstrap Pager Row
 */
.table.table-view-command > tfoot > tr.bootstrap-pager-list-view > td{
    padding:0;
    line-height:0;
}
.bootstrap-pager-list-view > td > span > .bootstrap-pager-list-view-total,
.bootstrap-pager-list-view > td > span > .bootstrap-pager-list-view-pagination{
    width:50%;
    float:left;
}
.bootstrap-pager-list-view > td > span > .bootstrap-pager-list-view-total{
    padding:16px 8px 16px 16px;
}
.bootstrap-pager-list-view > td > span > .bootstrap-pager-list-view-pagination{
    padding:8px;
    text-align:right;
}
.bootstrap-pager-list-view > td > span > .bootstrap-pager-list-view-pagination > .bootstrap-pager-list-view-pagination-page {
    display:inline-block;
    position:relative;
    bottom:12px;
    padding-right:6px;
}
.bootstrap-pager-list-view > td > span > .bootstrap-pager-list-view-pagination > .pagination {
    margin-top:0;
    margin-bottom:0;
}

/* Parts Body */
body.parts-body {
    padding-top: 15px;
    width: 99%;
    margin:0 auto;
}

/* Modal Navbar */
.navbar-modal > .container-fluid > .navbar-form {
    float:right;
    margin-right:-15px;
}
.navbar-modal > .container-fluid > .navbar-form > .form-group > .control-label {
    padding-left:5px;
    padding-right:5px;
}
.navbar-modal > .container-fluid > p.navbar-text {
    margin-left: 0px;
    color: #5e5e5e;
}
@media screen and (max-width: 992px) {
    .navbar-modal > .container-fluid > .navbar-form.navbar-right {
        float: right !important;
    }
}

/* Navbar Options */
.navbar.navbar-options {
    background-color: #fcf8e3;
    border-color: #faebcc;
}

/* Navbar Text */
.navbar-modal > .container-fluid > .navbar-form > p.navbar-text {
    margin-top:7px;
    margin-bottom:7px;
}

/* Modal Row */
body.modal-parts-content {
    width:calc(100% - 1px);
    padding-top: 15px;
    margin-left: -7px;
}
body.modal-parts-content > form > .container-fluid > .row > div > .row {
    margin-left: -20px;
    margin-right: -11px;
}

/* Alerts */
.alert.alert-warning .alert-faded {
    color: #d1bb94;
}

/* Material Selectors */
.material-selection-name,
.material-search-name {
    color: #31708f;
}
.material-selection-details,
.material-search-details {
    padding-left: 10px;
    color: #a94442;
}

/* Panel within Panel */
.panel > .panel-body > .panel.panel-thin {
    margin-left:5px;
    margin-right:5px;
}

/* Panel within Panel/Tab-Pane */
.tab-pane > .panel,
.panel > .panel-body > .panel {
    margin-bottom: 10px;
}
.tab-pane > .panel:last-of-type,
.panel > .panel-body > .panel:last-of-type {
    margin-bottom: 0px;
}

/* Panels with rows */
.panel-body > .row + .row{
    margin-top:12px;
}

/* Board Stage Configure Modal */
.board-stage-configuration-modal-iframe {
    width: 100%;
    height: 500px;
}
/*
 * Board Stage Tables
 */
.board-stage-table > thead > tr > th {
    border-bottom: 1px solid #ddd;
}
.board-stage-table > tbody > tr > td > div.form-group {
    text-align: left;
    margin-right: 0px;
    margin-bottom: 0px;
}
.board-stage-table > tbody > tr.core-details td:nth-last-child(3) { /* Configuration Screen */
    width: 45%;
}
.board-stage-table > tbody > tr.core-details td:nth-last-child(2) { /* Order */
    width: 80px;
}
.board-stage-filter-procedures-table > tbody > tr.core-details td:nth-last-child(1),
.board-stage-filters-table > tbody > tr.core-details td:nth-last-child(1), 
.board-stage-table > tbody > tr.core-details td:nth-last-child(1) { /* Command buttons */
    width: 155px;
    text-align: right;
}
.board-stage-table > tbody > tr[data-toggle-row] > td[colspan] > .row {
    border: 0px none #ffffff;
    padding-top: 0px;
}
table.board-stage-table > tbody > tr[data-toggle-row] > td[colspan] {
    border-top: 0 none #ffffff;
}

/* Board Stage Filter Procedure Row */
.panel > .panel-body.panel-body-table-only .table:first-child.board-stage-filter-procedures-table {
    margin-top: 5px;
}

/* Order Consignment */
.panel > .panel-body > .panel.panel-consignment {
    margin-bottom: 20px;
}
.panel-consignment-footer > .row:first-child {
    margin-top: 8px;
    margin-bottom: 10px;
}
tr.no-results > td {
    color: #a94442;
    text-align: center;
}

/* Board */
.board-table > thead > tr > td,
.board-table > tbody > tr > td {
    min-width:100px;
}
.board-table > thead > tr > td:nth-of-type(1),
.board-table > tbody > tr > td:nth-of-type(1){
    width:200px;
}
.board-table > thead > tr > td:nth-of-type(2),
.board-table > tbody > tr > td:nth-of-type(2),
.board-table > thead > tr > td:nth-of-type(3),
.board-table > tbody > tr > td:nth-of-type(3),
.board-table > thead > tr > td:nth-of-type(4),
.board-table > tbody > tr > td:nth-of-type(4) {
    width: 95px;
}
.board-table > thead > tr > td:nth-of-type(5),
.board-table > tbody > tr > td:nth-of-type(5),
.board-table > thead > tr > td:nth-of-type(6),
.board-table > tbody > tr > td:nth-of-type(6) {
    width: 90px;
    text-align:center;
}
.board-table > thead > tr > td:last-of-type,
.board-table > tbody > tr > td:last-of-type {
    width: 300px;
}
/* ERP Planning */
.table-erp-workflow-planning-order-item-component-quantity > thead > tr > th:nth-last-of-type(1),
.table-erp-workflow-planning-order-item-component-quantity > tbody > tr > td:nth-last-of-type(1),
.table-erp-workflow-planning-order-consignment-product-unassigned > thead > tr > th:nth-last-of-type(1),
.table-erp-workflow-planning-order-consignment-product-unassigned > tbody > tr > td:nth-last-of-type(1) {
    width: 130px;
}
.table-erp-workflow-planning-order-item-component-quantity > thead > tr > th:nth-last-of-type(2),
.table-erp-workflow-planning-order-item-component-quantity > tbody > tr > td:nth-last-of-type(2),
.table-erp-workflow-planning-order-item-component-quantity > thead > tr > th:nth-last-of-type(3),
.table-erp-workflow-planning-order-item-component-quantity > tbody > tr > td:nth-last-of-type(3),
.table-erp-workflow-planning-order-item-component-quantity > thead > tr > th:nth-last-of-type(4),
.table-erp-workflow-planning-order-item-component-quantity > tbody > tr > td:nth-last-of-type(4),
.table-erp-workflow-planning-order-item-component-quantity > thead > tr > th:nth-last-of-type(5),
.table-erp-workflow-planning-order-item-component-quantity > tbody > tr > td:nth-last-of-type(5),
.table-erp-workflow-planning-order-item-component-quantity > thead > tr > th:nth-last-of-type(6),
.table-erp-workflow-planning-order-item-component-quantity > tbody > tr > td:nth-last-of-type(6),
.table-erp-workflow-planning-order-item-component-quantity > thead > tr > th:nth-last-of-type(7),
.table-erp-workflow-planning-order-item-component-quantity > tbody > tr > td:nth-last-of-type(7),
.table-erp-workflow-planning-order-item-component-quantity > thead > tr > th:nth-last-of-type(8),
.table-erp-workflow-planning-order-item-component-quantity > tbody > tr > td:nth-last-of-type(8),
.table-erp-workflow-planning-order-item-component-quantity > thead > tr > th:nth-last-of-type(9),
.table-erp-workflow-planning-order-item-component-quantity > tbody > tr > td:nth-last-of-type(9),
.table-erp-workflow-planning-order-item-component-quantity > thead > tr > th:nth-last-of-type(10),
.table-erp-workflow-planning-order-item-component-quantity > tbody > tr > td:nth-last-of-type(10),
.table-erp-workflow-planning-order-item-component-quantity > thead > tr > th:nth-last-of-type(11),
.table-erp-workflow-planning-order-item-component-quantity > tbody > tr > td:nth-last-of-type(11),
.table-erp-workflow-planning-order-item-component-quantity > thead > tr > th:nth-last-of-type(12),
.table-erp-workflow-planning-order-item-component-quantity > tbody > tr > td:nth-last-of-type(12) {
    width: 80px;
    text-align: center;
}
.table-erp-workflow-planning-order-item-component-quantity > thead > tr > th:nth-of-type(1),
.table-erp-workflow-planning-order-item-component-quantity > tbody > tr > td:nth-of-type(1) {
    width: 90px;
}

.table-erp-workflow-planning-order-consignment-product-unassigned > thead > tr > th:nth-last-of-type(2),
.table-erp-workflow-planning-order-consignment-product-unassigned > tbody > tr > td:nth-last-of-type(2),
.table-erp-workflow-planning-order-consignment-product-unassigned > thead > tr > th:nth-last-of-type(3),
.table-erp-workflow-planning-order-consignment-product-unassigned > tbody > tr > td:nth-last-of-type(3),
.table-erp-workflow-planning-order-consignment-product-unassigned > thead > tr > th:nth-last-of-type(4),
.table-erp-workflow-planning-order-consignment-product-unassigned > tbody > tr > td:nth-last-of-type(4),
.table-erp-workflow-planning-order-consignment-product-unassigned > thead > tr > th:nth-last-of-type(5),
.table-erp-workflow-planning-order-consignment-product-unassigned > tbody > tr > td:nth-last-of-type(5),
.table-erp-workflow-planning-order-consignment-product-unassigned > thead > tr > th:nth-last-of-type(6),
.table-erp-workflow-planning-order-consignment-product-unassigned > tbody > tr > td:nth-last-of-type(6) {
    width: 80px;
    text-align: center;
}
.table-erp-workflow-planning-order-consignment-product > thead > tr > th:nth-last-of-type(1),
.table-erp-workflow-planning-order-consignment-product > tbody > tr > td:nth-last-of-type(1) {
    width: 150px;
    text-align:right;
}
.table-erp-workflow-planning-order-consignment-product > thead > tr > th:nth-last-of-type(2),
.table-erp-workflow-planning-order-consignment-product > tbody > tr > td:nth-last-of-type(2) {
    width: 80px;
    text-align: center;
}
.table-erp-workflow-planning-order-consignment-product > thead > tr > th:nth-last-of-type(3),
.table-erp-workflow-planning-order-consignment-product > tbody > tr > td:nth-last-of-type(3) {
    width: 120px;
}
.table-erp-workflow-planning-order-consignment-product > thead > tr > th:nth-last-of-type(4),
.table-erp-workflow-planning-order-consignment-product > tbody > tr > td:nth-last-of-type(4) {
    width: 140px;
}