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

.adf-card-view-dateitem {
    .adf-property-value {
        padding-top: 6px;
        padding-bottom: 6px;
        line-height: 20px;
        color: var(--adf-metadata-property-panel-title-color);
        margin-top: 10px;

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

        &.adf-property-readonly-value {
            padding: 0 0 0 12px;
        }
    }

    .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;
    }

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

        /* stylelint-disable-next-line no-descending-specificity */
        &-controls {
            display: flex;
            align-items: center;
            justify-content: space-between;

            #{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;
            }

            .adf-date-reset-icon {
                position: relative;
            }
        }
    }
}
