.AdvanceDetail {
    .SuitePageHeader {
        .actionButtons {
            display: flex;
            gap: 12px;
            margin-left: auto;
        }

        .Metadata {
            display: flex;
            gap: 12px;
        }

        .LabeledItem {
            display: flex;
            gap: 4px;
            align-items: center;

            &-label {
                color: var(--text-secondary);
                margin-bottom: 0;
            }
        }
    }

    .card {
        margin-top: 20px;
        &-title {
            color: var(--gray-900);
            font-size: 16px;
            font-style: normal;
            font-weight: 400;
            line-height: 24px;
        }
        .LabeledItem {
            margin-bottom: 15px;
            .item {
                text-transform: none;
            }
        }
    }
    .TruncatedText {
        display: inline-block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        vertical-align: middle;
        white-space: nowrap;
    }
}

.Sidecar {
    width: 450px;
    .ReactModal {
        &-body {
            overflow-x: hidden;
        }
        &-content {
            min-width: 100%;
        }
        &-header-text {
            margin-left: 0;
        }
    }

    h4 {
        font-weight: 400;
        line-height: 22px;
        margin-bottom: 20px;
        font-size: 16px;
    }
    .Alert {
        margin-bottom: 20px;
        min-height: 20px;
        &-text {
            color: var(--gray-900);
            font-size: 12px;
            font-style: normal;
            font-weight: 400;
            line-height: 18px;
        }
    }
    .step {
        display: flex;
        position: relative;
        &-line {
            height: 100%;
            &::after {
                content: '';
                position: absolute;
                top: 25px;
                left: 11px;
                bottom: 0;
                width: 2px;
                background-image: linear-gradient(
                    0deg,
                    var(--gray-200),
                    var(--gray-200) 40%,
                    transparent 25%,
                    transparent 75%
                );
                background-size: 10px 10px;
            }
            &-last::after {
                bottom: 72px;
            }
        }
    }

    .payment {
        &-title {
            color: var(--gray-800);
            font-size: 14px;
            font-style: normal;
            font-weight: 500;
            line-height: 20px;
            margin-bottom: 20px;
        }
        .Form {
            &Field {
                width: 369px;
            }
            &Control {
                .confirmation-note {
                    margin-top: 20px;
                }
                &-Note {
                    display: inline-flex;
                    flex-wrap: wrap;
                    &-item {
                        display: inline-flex;
                        margin-right: 10px;
                        font-size: 14px;
                        .value {
                            color: var(--gray-800);
                            margin-left: 5px;
                        }
                    }
                }
            }
        }
        hr {
            margin: 20px auto;
        }
    }
    .form-check {
        display: flex;
        align-items: center;
        &-label {
            margin-left: 8px;
            font-size: 14px;
            font-style: normal;
            font-weight: 400;
            line-height: 20px;
            text-transform: none;
            letter-spacing: 0;
        }
    }
    .circle {
        width: 24px;
        height: 24px;
        background-color: var(--gray-800);
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        color: var(--white);
        font-size: 12px;
        font-style: normal;
        font-weight: 400;
        margin-right: 10px;
    }
    .disabled {
        opacity: 0.5;
        pointer-events: none;
        .step-line::after {
            display: none;
        }
    }
}

.Advance-payment-approval-sidecar {
    &-modal {
        .ReactModal-header-text {
            margin-left: 0;
        }
        .Alert {
            max-width: 540px;
        }
    }
}
