@use '../../../styles/mat-selectors' as ms;

.adf-card-view-dateitem {
    display: flow-root;

    .adf-dateitem-editable {
        width: 100%;

        .adf-date-reset-icon {
            padding: 0;
        }

        &-controls {
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: relative;

            #{ms.$mat-icon} {
                opacity: 0.5;

                &:hover {
                    opacity: 1;
                }
            }

            mat-datetimepicker-toggle {
                transform: scale(0.8);
            }

            .adf-datepicker-span-button {
                flex: 1 0 auto;
                font-size: 14px;
                position: relative;
            }
        }
    }

    .adf-property-value {
        line-height: 20px;
        color: var(--adf-metadata-property-panel-title-color);

        &.adf-property-value-editable {
            display: flex;
            align-items: center;
            border-radius: 6px;
            border-bottom: inherit;
            padding-left: 0;
        }
    }

    .adf-invisible-date-input {
        height: 2px;
        width: 0;
        overflow: hidden;
        opacity: 0;
        border: none;
        margin: 0;
        padding: 0;
        float: right;
    }

    .adf-dateitem-chip-list-container.adf-property-field {
        margin-bottom: -7px;
        border-bottom: 0;
        cursor: pointer;
    }
}
