/****** Vendor ******/

#manufacturers {
}

#manufacturersView {
    display: flex;
    gap: 5px;
    align-items: center;
    margin-bottom: 20px;
}

#manufacturersViewFocus {
    width: fit-content;
}

#manufacturersList {

}

.manufacturersListItem {
    border: 2px solid var(--primary);
    margin-bottom: 10px;
    padding: 10px;
    display: grid;
    row-gap: 15px;
    border-radius: 5px;
}

.manufacturersListItemToggle {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    background: none;
    border: none;
    padding: 0;
}

.manufacturersListItemToggle::after {
    content: "▼";
}

.manufacturersListItemToggle.active::after {
    content: "▲";
}

.manufacturersListItemBody {
    display: none;
}

.manufacturersListItemToggle.active + .manufacturersListItemBody {
    display: block;
}

/* Global Table Settings */
.manufacturersListItemBody td [name] {
    padding: 3px;
    border: 1px solid lightgray;
    font-size: 14px;
}

.manufacturersListItemBody td [name="unitCost"],
.manufacturersListItemBody td [name="quantity"] {
    width: 70px;
}

.manufacturersListItemBody td [name="note"] {
    height: 60px;
    resize: vertical;
}

.manufacturersListItemBody td [readonly] {
    border: none;
}

/* Label */
.manufacturersListItemBodyLabel {
    font-weight: bold;
    margin-bottom: 5px;
}

/* Stats */
.manufacturersListItemBodyStats {
    margin-bottom: 10px;
}

/* Divider */
.manufacturersListItemBodyDivider {
    height: 4px;
    background-color: var(--primary);
    width: 100%;
    margin: 30px 0;
}

/* Shopify Orders */

.manufacturersListItemBodyShopifyOrders {
}

.manufacturersListItemBodyShopifyOrdersGroup {
    background-color: aliceblue !important;
}

.manufacturersListItemBodyShopifyOrdersGroupAction {
    display: flex;
    gap: 5px;
}

.manufacturersListItemBodyShopifyOrdersGroupActionToggle {

}

.manufacturersListItemBodyShopifyOrdersGroupActionSelectAll {

}

.manufacturersListItemBodyShopifyOrdersRow {
    display: none;
}

.manufacturersListItemBodyShopifyOrdersRow.active {
    display: table-row;
}

.manufacturersListItemBodyShopifyOrdersRowDelete {
    font-size: 14px;
    background-color: darkred;
}

/* Shopify Variants */

.manufacturersListItemBodyShopifyVariants {
    margin-bottom: 20px;
}

.manufacturersListItemBodyShopifyVariantsRows {

}

.manufacturersListItemBodyAddVariant {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.manufacturersListItemBodyNewVariantId {
    width: 250px;
}

/* Custom */

.manufacturersListItemBodyCustom {
    margin-bottom: 20px;
}

.manufacturersListItemBodyCustomRows {

}

.manufacturersListItemBodyNewCustom {

}

/* Add Custom */

.manufacturersListItemBodyAddCustom {

}

.manufacturersListItemBodyNewCustomSku {
    margin-bottom: 10px;

}

.manufacturersListItemBodyNewCustomBtn {

}

/* Summary */

.manufacturersListItemBodySummary {
}

.manufacturersListItemBodySummaryTotal {
    margin-bottom: 10px;
}

.manufacturersListItemBodySummaryLabel {
    margin-bottom: 20px;
}

.manufacturersListItemBodySummaryLabel label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.manufacturersListItemBodySummaryLabelNote {
    font-weight: normal;
    color: #888;
}

.manufacturersListItemBodySummaryInput {
    margin-bottom: 10px;
}

.manufacturersListItemBodySummaryInput[readonly] {
    background-color: #f4f4f4;
    color: #888;
    cursor: not-allowed;
}

.manufacturersListItemBodySummaryPoNumber {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 15px;
}

.manufacturersListItemBodySummaryPoPrefix {
    padding: 6px 10px;
    background: #f0f0f0;
    border: 1px solid lightgray;
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.manufacturersListItemBodySummaryPoInput {
    border-radius: 0 4px 4px 0;
    max-width: 150px;
}

.manufacturersListItemBodySummarySubmit {

}

/* SKU Warning List (Swal modal) */
.createPoWarningList {
    text-align: left;
    margin-top: 8px;
}

.createPoWarningConfirm {
    margin-top: 8px;
}