﻿[data-master='CredOperNavigationBase'] [id$="BOXVehicleFacture"] {
    display: grid;
    grid-auto-columns: 1fr auto auto auto;
    row-gap: var(--size-4);
    width: 100%;
    position: absolute;
    left: 0;
    margin-top: var(--size-4);
}

[id$="LSupplierDiscountPercentage"] {
    grid-column: 1/-1;
}

[data-master='CredOperNavigationBase'] [id$="BOXVehicleFacture"] [id$="Spacer"][class^='FormColumns'] {
    display: none !important;
}

    [data-master='CredOperNavigationBase'] [id$="BOXVehicleFacture"] > fieldset {
        grid-area: 1 / 1 / 2 / 5;
    }

        [data-master='CredOperNavigationBase'] [id$="BOXVehicleFacture"] > fieldset.main {
            padding: 0 !important;
        }

            [data-master='CredOperNavigationBase'] [id$="BOXVehicleFacture"] > fieldset.main [id$="BOXPrice"],
            [data-master='CredOperNavigationBase'] [id$="BOXVehicleFacture"] > fieldset.main [id$="BOXFees"] {
                background-color: var(--surface-1);
                box-shadow: var(--shadow-1) !important;
                border-radius: 0;
                padding: var(--size-4) !important;
            }

    [data-master='CredOperNavigationBase'] [id$="BOXVehicleFacture"] legend {
        width: fit-content !important;
        margin-bottom: var(--font-size-1) !important;
        white-space: nowrap;
    }

    [data-master='CredOperNavigationBase'] [id$="BOXVehicleFacture"] > fieldset.total {
        grid-area: 2 / 1 / 2 / 5;
        display: flex;
        flex-direction: column;
        margin-bottom: var(--size-content-1) !important;
        margin-top: 0 !important;
        background-color: var(--surface-1);
        box-shadow: var(--shadow-1) !important;
        border-radius: 0;
        padding: var(--size-4) !important;
    }

        [data-master='CredOperNavigationBase'] [id$="BOXVehicleFacture"] > fieldset.total .total-fields-container {
            display: grid !important;
            grid-template-columns: repeat(6, 1fr);
            border-bottom: 0 !important;
        }

    [data-master='CredOperNavigationBase'] [id$="BOXVehicleFacture"] > fieldset > div {
        display: flex;
        gap: 24px;
        flex-wrap: wrap;
    }

    [data-master='CredOperNavigationBase'] [id$="BOXVehicleFacture"] > fieldset + .separator {
        grid-area: 2 / 1 / 3 / 2;
    }

        [data-master='CredOperNavigationBase'] [id$="BOXVehicleFacture"] > fieldset + .separator + .FormColumns3x6 {
            grid-row: 2;
            grid-column: 1 / 2;
        }

            [data-master='CredOperNavigationBase'] [id$="BOXVehicleFacture"] > fieldset + .separator + .FormColumns3x6 + .FormColumns1x6 {
                grid-row: 2;
                grid-column: 2 / 3;
            }

                [data-master='CredOperNavigationBase'] [id$="BOXVehicleFacture"] > fieldset + .separator + .FormColumns3x6 + .FormColumns1x6 + .FormColumns1x6 {
                    grid-row: 2;
                    grid-column: 3 / 4;
                }

                    [data-master='CredOperNavigationBase'] [id$="BOXVehicleFacture"] > fieldset + .separator + .FormColumns3x6 + .FormColumns1x6 + .FormColumns1x6 + .FormColumns1x6 {
                        grid-row: 2;
                        grid-column: 4 / 5;
                    }

[data-master='CredOperNavigationBase'] [id$="BOXVehicleFacture"] > fieldset.total .FormLabel {
    color: var(--brand-contrast) !important;
    font-size: var(--font-size-2);
}

    [data-master='CredOperNavigationBase'] [id$="BOXVehicleFacture"] > fieldset.total .FormLabel[id$="LTotalInvoicePrice"],
    span[id$='TBTotalVehiclePrice2'],
    span[id$='TBTotalOtherFees2'],
    span[id$='TBTotalInvoicePrice'] {
        font-weight: var(--font-weight-6);
    }

span[id$='TBTotalVehiclePrice2'],
span[id$='TBTotalOtherFees2'],
span[id$='TBTotalInvoicePrice'] {
    color: var(--brand-contrast) !important;
    background-color: var(--brand-rgb-10) !important;
    border-color: var(--brand-rgb-10) !important;
    font-size: var(--font-size-2) !important;
}

    span[id$='TBTotalVehiclePrice2']::before,
    span[id$='TBTotalOtherFees2']::before,
    span[id$='TBTotalInvoicePrice']::before {
        color: var(--brand-contrast) !important;
        opacity: 0.7;
    }

[id$='BOXTotalVehiclePrice2'] {
    grid-column: 4;
    margin: 0 !important;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow: visible;
}

[id$='BOXTotalOtherFees2'] {
    grid-column: 5;
    margin: 0 !important;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow: visible;
}

[id$='BOXTotalInvoicePrice'] {
    grid-column: 6;
    margin: 0 !important;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow: visible;
}

    [id$='BOXTotalVehiclePrice2'] br,
    [id$='BOXTotalOtherFees2'] br,
    [id$='BOXTotalInvoicePrice'] br {
        display: none;
    }


    [id$='BOXTotalVehiclePrice2'] .FormLabel,
    [id$='BOXTotalOtherFees2'] .FormLabel,
    [id$='BOXTotalInvoicePrice'] .FormLabel {
        margin-bottom: 0;
    }

[data-master='CredOperNavigationBase'] [id$="BOXVehicleFacture"] > fieldset > div > div {
    flex: 1;
    /* flex-basis: calc(50% - 12px); */
    flex-basis: calc(50% - 80px);
    height: fit-content;
}

[data-master='CredOperNavigationBase'] [id$="BOXVehicleFacture"] [id$="BOXPrice"],
[data-master='CredOperNavigationBase'] [id$="BOXVehicleFacture"] [id$="BOXFees"] {
    margin-bottom: 0 !important;
}

    [data-master='CredOperNavigationBase'] [id$="BOXVehicleFacture"] [id$="BOXPrice"].FieldsetContent,
    [data-master='CredOperNavigationBase'] [id$="BOXVehicleFacture"] [id$="BOXFees"].FieldsetContent {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--size-6);
    }

    [data-master='CredOperNavigationBase'] [id$="BOXVehicleFacture"] [id$="BOXPrice"] .clear.separator,
    [data-master='CredOperNavigationBase'] [id$="BOXVehicleFacture"] [id$="BOXFees"] .clear.separator {
        grid-column: 1 / 4 !important;
        border-top: 1px solid var(--surface-4);
    }

    [data-master='CredOperNavigationBase'] [id$="BOXVehicleFacture"] [id$="BOXPrice"].FieldsetContent {
        position: relative;
    }

[id$="BOXOptionsAmountWithTaxes"] .ImageButtonBox,
[id$="BOXAccessoriesAmountWithTaxes"] .ImageButtonBox {
    position: absolute;
    right: 0px;
    bottom: 0;
}

[id$="BOXOptionsAmountWithTaxes"],
[id$="BOXTotalVehicleListPrice"],
[id$="BOXSupplierDiscount"],
[id$="BOXVehicleSalesPrice"],
[id$="BOXAccessoriesAmountWithTaxes"],
[id$="BOXTotalVehiclePrice"],
[id$="BOXRegistrationFees"],
[id$="BOXMalusFees"],
[id$="BOXFeesBonus"],
[id$="BOXTotalOtherFees"],
[id$="BOXTotalOtherFees2"],
[id$="BOXTotalInvoicePrice"] {
    position: relative;
}

    [id$="BOXOptionsAmountWithTaxes"]::before,
    [id$="BOXAccessoriesAmountWithTaxes"]::before,
    /* [id$="BOXRegistrationFees"]::before, */
    /* [id$="BOXMalusFees"]::before, */
    [id$="BOXTotalOtherFees2"]::before {
        content: '\E948';
        -moz-osx-font-smoothing: grayscale;
        -webkit-font-smoothing: antialiased;
        display: inline-block;
        font-family: 'FabricMDL2Icons';
        font-style: normal;
        font-weight: normal;
        speak: none;
        color: var(--text-1);
        height: var(--field-height);
        width: var(--font-size-1);
        font-size: var(--font-size-0);
        display: flex;
        position: absolute;
        z-index: 1;
        left: calc(-1 * var(--font-size-1));
        bottom: 0;
        align-items: center;
    }

    [id$="BOXTotalVehicleListPrice"]::before,
    [id$="BOXVehicleSalesPrice"]::before,
    [id$="BOXTotalVehiclePrice"]::before,
    [id$="BOXTotalOtherFees"]::before,
    [id$="BOXTotalInvoicePrice"]::before {
        content: '\E94E';
        -moz-osx-font-smoothing: grayscale;
        -webkit-font-smoothing: antialiased;
        display: inline-block;
        font-family: 'FabricMDL2Icons';
        font-style: normal;
        font-weight: normal;
        speak: none;
        color: var(--text-1);
        height: var(--field-height);
        width: var(--font-size-1);
        font-size: var(--font-size-0);
        display: flex;
        position: absolute;
        z-index: 1;
        left: calc(-1 * var(--font-size-1));
        bottom: 0;
        align-items: center;
    }

[id$="BOXSupplierDiscount"] {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    column-gap: var(--size-4) !important;
}

    [id$="BOXSupplierDiscount"] .FormTextBoxOneAggregatedIcon:nth-child(3),
    span[id$='TBSupplierDiscountPercentage'] {
        overflow: visible !important;
    }

        /* [id$="BOXSupplierDiscount"] .FormTextBoxOneAggregatedIcon:nth-child(3)::before, */
        /* #LTBSupplierDiscountPercentage::before {
            content: '(';
            font-family: var(--font-sans);
            color: var(--text-2);
            height: var(--field-height);
            width: var(--font-size-1);
            font-size: var(--font-size-1);
            display: flex;
            position: absolute;
            z-index: 1;
            left: calc(-1 * var(--size-4));
            top: 0;
            align-items: center;
            justify-content: center;
        } */

        /* [id$="BOXSupplierDiscount"] .FormTextBoxOneAggregatedIcon:nth-child(3)::after, */
        /* #LTBSupplierDiscountPercentage::after {
            content: '%)';
            font-family: var(--font-sans);
            color: var(--text-2);
            height: var(--field-height);
            width: var(--font-size-1);
            font-size: var(--font-size-1);
            display: flex;
            position: absolute;
            z-index: 1;
            right: calc( -1 * var(--size-4));
            top: 0;
            align-items: center;
            justify-content: center;
        } */

    [id$="BOXSupplierDiscount"] .FormTextBoxOneAggregatedIcon:nth-child(4) {
        grid-column: 1;
        grid-row: 2;
    }

    [id$="BOXSupplierDiscount"] .FormTextBoxOneAggregatedIcon:nth-child(7) {
        grid-column: 2;
        grid-row: 2;
    }

    [id$="BOXSupplierDiscount"] span[id$='TBSupplierDiscountGrandTotal'] {
        overflow: visible !important;
    }

        /* [id$="BOXSupplierDiscount"] #LTBSupplierDiscountGrandTotal::before, */
        /* [id$="BOXFeesBonus"]::before {
            content: '\E949';
            -moz-osx-font-smoothing: grayscale;
            -webkit-font-smoothing: antialiased;
            display: inline-block;
            font-family: 'FabricMDL2Icons';
            font-style: normal;
            font-weight: normal;
            speak: none;
            color: var(--text-1);
            height: var(--field-height);
            width: var(--font-size-1);
            font-size: var(--font-size-0);
            display: flex;
            position: absolute;
            z-index: 1;
            left: calc(-1 * var(--font-size-1) - 6px);
            bottom: 0;
            align-items: center;
        } */

[data-master='CredOperNavigationBase'] [id$="BOXVehicleFacture"] [id$="BOXTotalsSpacer"].FormColumns3x6 {
    width: 1px !important;
}


[id$="BOXSupplierDiscount"] .FormTextBoxOneAggregatedIcon:nth-child(7),
span[id$='TBSupplierDiscountGrandTotal'] {
    width: 100% !important;
    grid-column: 2;
    grid-row: 2;
}

[id$="BOXSupplierDiscount"] .FormTextBoxOneAggregatedIcon:nth-child(4),
span[id$='TBSupplierDiscountPercentage'] {
    width: calc(100% - var(--size-5)) !important;
    grid-column: 1;
    grid-row: 2;
}

[id$="BOXSupplierDiscount"] .FormLabel {
    grid-area: 1 / 1 / 2 / 2;
}

[id$="BOXSupplierDiscount"] .FormTextSeparators {
    width: auto;
    height: var(--field-height);
    float: left;
    padding: 0;
    font-size: var(--font-size-1);
    line-height: normal;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

fieldset [id$="BOXVersionPrice"],
fieldset [id$="BOXOtherFees"] {
    grid-column: 1 !important;
}

fieldset [id$="BOXOptionsAmountWithTaxes"],
fieldset [id$="BOXRegistrationFees"] {
    grid-column: 2 !important;
}

[id$="BOXVehicleFacture"] fieldset .clear:not(.separator) {
    grid-column: 1 !important;
}

fieldset [id$="BOXDiscountSpacer"] {
    grid-column: 1 !important;
}

fieldset [id$="BOXSalesSpacer"],
fieldset [id$="BOXAccessoriesSpacer"],
fieldset [id$="BOXTotalSpacer"],
fieldset [id$="BOXBonusSpacer"],
fieldset [id$="BOXFeesSpacer"] {
    grid-column: 1 / 3 !important;
}

fieldset [id$="BOXSupplierDiscount"] {
    grid-column: 2 / 4 !important;
}

fieldset [id$="BOXTotalVehicleListPrice"],
fieldset [id$="BOXVehicleSalesPrice"],
fieldset [id$="BOXAccessoriesAmountWithTaxes"],
fieldset [id$="BOXTotalVehiclePrice"],
fieldset [id$="BOXMalusFees"],
fieldset [id$="BOXFeesBonus"],
fieldset [id$="BOXTotalOtherFees"] {
    grid-column: 3 !important;
}

[data-master='CredOperNavigationBase'] .PanelAssetSheet.FormBox,
[data-master='CredOperNavigationBase'] .PanelEquipmentOptions.FormBox,
[data-master='CredOperNavigationBase'] .PanelEquipmentAcessories.FormBox,
[data-master='CredOperNavigationBase'] .PanelResultsDetail.FormBox {
    border-radius: none;
    padding: var(--size-6) !important;
}

.PanelEquipmentOptions .PanelEquipmentOptionsGrid, .PanelEquipmentAcessories .PanelEquipmentAcessoriesGrid {
    padding: 0;
    width: 100%;
}

.PanelEquipmentOptions .FormTextBox,
.PanelEquipmentOptions .FormTextBoxRequired,
.PanelEquipmentOptions .FormTextBoxError,
.PanelEquipmentOptions .FormTextBoxReadonly,
.PanelEquipmentOptions .FormField,
.PanelEquipmentOptions .FormFieldReadonly,
.PanelEquipmentOptions input[type=file],
.PanelEquipmentOptions .LoginTextBox {
    border-color: var(--surface-3);
    background-color: transparent;
}

.PanelEquipmentOptions [id$="EquipmentOptionsFilter"] {
    overflow: visible;
}

@media (max-width: 768px), (max-width: 900px) and (orientation: portrait) {
    [data-master='CredOperNavigationBase'] [id$="BOXVehicleFacture"] [id$="BOXPrice"].FieldsetContent,
    [data-master='CredOperNavigationBase'] [id$="BOXVehicleFacture"] [id$="BOXFees"].FieldsetContent {
        grid-template-columns: repeat(1, 1fr);
    }

   

}

@media (max-width: 640px) {
    .total-fields-container {
        grid-template-columns: repeat(1, 1fr) !important;
    }

    .total-fields-container [class^='FormColumns'] {
        grid-column: 1/-1;
    }
}

[id$="BOXNoOptions"].FormColumnsOneImageButton,
[id$="BOXNoAccessories"].FormColumnsOneImageButton,
[id$="BOXSerialNumber"].FormColumnsOneImageButton,
[id$="BOXModelCode"].FormColumnsOneImageButton {
    grid-template-columns: 1fr auto;
    grid-column-gap: 0 !important;
}

    [id$="BOXNoOptions"].FormColumnsOneImageButton span[id$='TBNoOptions'],
    [id$="BOXNoAccessories"].FormColumnsOneImageButton span[id$='TBNoAccessories'],
    [id$="BOXSerialNumber"].FormColumnsOneImageButton span[id$='TBSerialNumber'],
    [id$="BOXModelCode"].FormColumnsOneImageButton span[id$='TBModelCode'] {
        width: 100% !important;
        border-top-right-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
    }

    [id$="BOXNoOptions"].FormColumnsOneImageButton .ImageButtonBox.glyphicon-square-new-window,
    [id$="BOXNoAccessories"].FormColumnsOneImageButton .ImageButtonBox.glyphicon-square-new-window,
    [id$="BOXSerialNumber"].FormColumnsOneImageButton .ImageButtonBox.glyphicon-search,
    [id$="BOXModelCode"].FormColumnsOneImageButton .ImageButtonBox.glyphicon-search {
        border-left: 0;
        background-color: transparent;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
        border-top-right-radius: var(--border-radius);
        border-bottom-right-radius: var(--border-radius);
    }

    [id$="BOXNoOptions"].FormColumnsOneImageButton .ImageButtonBox.glyphicon-square-new-window,
    [id$="BOXNoAccessories"].FormColumnsOneImageButton .ImageButtonBox.glyphicon-square-new-window,
    [id$="BOXSerialNumber"].FormColumnsOneImageButton .ImageButtonBox.glyphicon-search,
    [id$="BOXModelCode"].FormColumnsOneImageButton .ImageButtonBox.glyphicon-search {
        box-shadow: none;
    }

        [id$="BOXNoOptions"].FormColumnsOneImageButton .ImageButtonBox.glyphicon-square-new-window::before,
        [id$="BOXNoAccessories"].FormColumnsOneImageButton .ImageButtonBox.glyphicon-square-new-window::before,
        [id$="BOXSerialNumber"].FormColumnsOneImageButton .ImageButtonBox.glyphicon-search::before,
        [id$="BOXModelCode"].FormColumnsOneImageButton .ImageButtonBox.glyphicon-search::before {
            -moz-osx-font-smoothing: grayscale;
            -webkit-font-smoothing: antialiased;
            display: inline-block;
            font-family: 'FabricMDL2Icons';
            font-style: normal;
            font-weight: normal;
            speak: none;
            color: var(--text-1);
            position: absolute;
            line-height: var(--font-size-1);
            font-size: var(--font-size-1);
        }

[id$="BOXNoOptions"].FormColumnsOneImageButton .ImageButtonBox.glyphicon-square-new-window::before,
[id$="BOXNoAccessories"].FormColumnsOneImageButton .ImageButtonBox.glyphicon-square-new-window::before {
    content: "\F6AB";
}

[id$="BOXSerialNumber"].FormColumnsOneImageButton .ImageButtonBox.glyphicon-search::before,
[id$="BOXModelCode"].FormColumnsOneImageButton .ImageButtonBox.glyphicon-search::before {
    content: "\E721";
}