@use '~@/style/globals';

.EventEstimates {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: globals.$content-padding-large-vertical;

    &__no-estimate,
    &__create-new {
        margin: 0 0 globals.$content-padding-large-horizontal;
        color: globals.$text-light-color;
        font-style: italic;
        text-align: center;
    }

    &__create-new {
        display: flex;
        flex-direction: column;
        align-items: center;

        &__text {
            margin: 0 0 globals.$content-padding-large-horizontal;
        }
    }

    &__list {
        width: 100%;
        max-width: 500px;
        margin: 0 0 1rem;
        padding: 0;
        font-size: 1.1rem;

        &__item {
            display: flex;
            align-items: center;
            width: 100%;
            margin-bottom: globals.$content-padding-large-horizontal;
            list-style: none;

            &__icon {
                flex: 0 0 auto;
                font-size: 1.5rem;
            }

            &__text {
                flex: 1;
                padding: 0 globals.$content-padding-small-vertical;
                font-size: 1rem;
                line-height: 1.3;
            }

            &__actions {
                flex: 0 0 auto;
            }

            &__download {
                display: inline-block;
                padding: 6px 9px;
                border: 1px solid;
                border-radius: globals.$input-border-radius;
                font-size: 1rem;
                cursor: pointer;

                &--disabled {
                    opacity: 0.6;
                    // stylelint-disable-next-line declaration-no-important
                    cursor: not-allowed !important;
                }
            }

            &__delete {
                margin-left: globals.$content-padding-small-vertical;
            }

            &--old {
                .EventEstimates__list__item__icon,
                .EventEstimates__list__item__text {
                    color: globals.$text-light-color;
                }
            }
        }
    }

    &__loading {
        margin: globals.$content-padding-large-vertical 0;
        font-size: 1.2rem;
        text-align: center;
    }

    &__warning-has-bill {
        margin: 0 0 globals.$content-padding-large-horizontal;
        color: globals.$text-warning-color;
        font-size: 1.1rem;
        text-align: center;
    }

    &__not-billable {
        color: globals.$text-danger-color;

        &__text {
            margin: 0;
            font-style: italic;
        }
    }
}
